Hello
I encountered a problem while upgarding xspi image to NOR Flash
(I know , i should have started from sdcard first )
I followed the instuctions but due to some logistics problems
instead of uploading the (prebuild) xspi image via tftp i used XMODEM( it took me while )
So the load address was different from tftp load adrress
Standart uboot load address is 0xA0000000 - for TFTP
The xmodem address is 0x90000000
According to documentation(Table 1. System memory map)
both are valid( DRAM - GPP DRAM Region #1 (0-2 GB)) .
there were no errors while uploading image .
The standart burn command for NOR flash is (from docs):
4. Program the firmware to FlexSPI NOR flash.
=> sf probe 0:0
=> sf erase 0 +$filesize && sf write $load_addr 0 $filesize
5. Reset and boot the board from FlexSPI NOR flash. The system will automatically boot up TinyDistro (log in
using root/root) or LSDK distro (log in using root/root or user/user) available on the removable storage device.
=> qixis_reset
I tweaked the command to take xmodem load address (0x90000000) and filesize 54501351 (bytes)
sf probe 0:0
sf erase 0 +54501351 && sf write 0x90000000 0 54501351
here is snippet from my console :
=> sf probe 0:0
SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 2 GiB
=> sf erase 0 +54501351 && sf write 0x90000000 0 54501351
SF: 1414660096 bytes @ 0x0 Erased: OK
device 0 offset 0x0, size 0x54501351
at this stage it hung and i never got to "qixis_reset" command
After that , the only was to see something in console
if i config deep switch to boot from emmc(i tried boot from sdcard )
here is console dump:
U-Boot SPL 2018.03-00144-gc53e2aca78 (Dec 07 2018 - 12:38:39 +0000)
Initializing DDR....
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
Trying to boot from MMC1
U-Boot 2018.03-00144-gc53e2aca78 (Dec 07 2018 - 12:38:39 +0000)
SoC: LS1028AE Rev1.0 (0x870b0010)
Clock Configuration:
CPU0(A72):1300 MHz CPU1(A72):1300 MHz
Bus: 400 MHz DDR: 1600 MT/s
Reset Configuration Word (RCW):
00000000: 34004010 00000030 00000000 00000000
00000010: 00000000 00bf0000 0030c000 00000000
00000020: 00a03150 00002580 00000000 00002496
00000030: 00000000 00000010 00000000 00000000
00000040: 00000000 00000000 00000000 00000000
00000050: 00000000 00000000 00000000 00000000
00000060: 00000000 00000000 2006705a 00000000
00000070: bb580000 00000000
Model: NXP Layerscape 1028a RDB Board
Board: LS1028AE Rev1.0-RDB, Version: C, boot from eMMC
FPGA: v8 (RELEASED: RDB_2020_0330_1829)
SERDES1 Reference : Clock1 = 100.00MHz Clock2 = 100.00MHz
I2C: ready
DRAM: 3.9 GiB
DDR 3.9 GiB (DDR4, 32-bit, CL=11, ECC on)
"Error" handler, esr 0xbf000002
elr: 0000000096042730 lr : 00000000960020a0 (reloc)
elr: 00000000fbda9730 lr : 00000000fbd690a0
x0 : 0000000020400000 x1 : 0000000000000000
x2 : 00000000d00dfeed x3 : 0000000001e00210
x4 : 0000000001e00214 x5 : 00000000000011a0
x6 : 0000000000001168 x7 : 0000000000000002
x8 : 0000000000001164 x9 : 000000000000000c
x10: 00000000fbb6093c x11: 00000000fbb60a88
x12: 0000000000001168 x13: 00000000fbb6099c
x14: 00000000fbb60a88 x15: 00000000fbb609ac
x16: 0000000000000001 x17: 0000000000000000
x18: 00000000fbb62d88 x19: 0000000020400000
x20: 00000000fbdd2298 x21: 0000000065d67000
x22: 000000001801deb1 x23: 0000000018009dd8
x24: 000000001801de99 x25: 0000000018020000
x26: 00000000deadbeef x27: 0000000001e00404
x28: 0000000001e00210 x29: 00000000fbb60960
Resetting CPU ...
### ERROR ### Please RESET the board ###
So it seems like the problem heappans before uboot reloc someware in fip.bin :
I am not sure what heappened
My questions :
Is it recoverable ?
Is Jtag can reprogram NORFlash
Is it any way to recover?
Any help will be super appriciated
Thanks