如果版子上沒有bootloader(u-boot), 可使用UART mode 來recovery.
a. build UART images, they are located in
build/a3700/debug/uart-images/
directory:$ ls build/a3700/debug/uart-images TIM_ATF.bin atf-ntim.txt boot-image_h.bin wtmi_h.bin
b. 調jump to UART mode, 參考boot modes table
Boot modes - ESPRESSObin v7
| |||
ESPRESSObin boot mode | J11 | J3 | J10 |
Serial NOR flash download mode | 2-3 | 2-3 | 1-2 |
eMMC download mode | 2-3 | 1-2 | 2-3 |
eMMC alternate download mode | 2-3 | 1-2 | 2-3 |
SATA download mode | 2-3 | 1-2 | 2-3 |
Serial NAND flash download mode | 2-3 | 1-2 | 2-3 |
UART mode | 2-3 | 1-2 | 2-3 |
MicroSD card | 2-3 | 1-2 | 2-3 |
c. open comport from windows and we should should see the
>
prompt presented on the HyperTerminal screen. In this terminal, type wtp
to switch the BootROM to WTP download mode.
e. run this command from cmd.exe(-C 38 is your COM number)
>> WtpDownload.exe -P UART -C 38 -R 115200 -B path\to\TIM_ATF.bin -I path\to\wtmi_h.bin -I path\to\boot-image_h.bin -E
f. when you see the "Mavell>>" , use tftp to update bootloader
set ip address
set ip address
Marvell>> setenv serverip 192.168.x.x Marvell>> setenv ipaddr 192.168.x.x
check
Marvell>> ping $serveripupdate u-boot
Marvell>> bubt espressobin-bootloader-cpu-1000-ddr3-2cs-1g-atf-ga3306ab-uboot-gaee49fc-20180129-REL.bin Burning U-BOOT image "espressobin-bootloader-cpu-1000-ddr3-2cs-1g-atf-ga3306ab-uboot-gaee49fc-20180129-REL.bin" from "tftp" to "spi" Using neta@30000 device TFTP from server 192.168.10.134; our IP address is 192.168.10.145 Filename 'espressobin-bootloader-cpu-1000-ddr3-2cs-1g-atf-ga3306ab-uboot-gaee49fc-20180129-REL.bin'. Load address: 0x2000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ########################## 2.3 MiB/s done Bytes transferred = 4194304 (400000 hex) Image checksum...OK! SF: Detected w25q32dw with page size 256 Bytes, erase size 4 KiB, total 4 MiB Erasing 4198400 bytes (1025 blocks) at offset 0 ...Done! Writing 4194304 bytes from 0x2000000 to offset 0 ...Done!g. chang jump to "Serial NOR flash download mode"
沒有留言:
張貼留言