ls1046a qspi starts SD card without any log printing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ls1046a qspi starts SD card without any log printing

511 Views
hongyuanz
Contributor IV

nor flash boot log

=> reset
resetting ...
NOTICE: Fixed DDR on board

NOTICE: 4 GB DDR4, 64-bit, CL=16, ECC on
NOTICE: BL2: v2.4(release):LSDK-21.08-3-gc7bc3ee95
NOTICE: BL2: Built : 11:27:27, Sep 28 2022
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.4(release):LSDK-21.08-3-gc7bc3ee95
NOTICE: BL31: Built : 11:27:27, Sep 28 2022
NOTICE: Welcome to ls1046apscb BL31 Phase


U-Boot 2021.04-00050-gb1a740a22e (Sep 27 2022 - 04:43:29 +0100)

SoC: LS1046AE Rev1.0 (0x87070010)
Clock Configuration:
CPU0(A72):1600 MHz CPU1(A72):1600 MHz CPU2(A72):1600 MHz
CPU3(A72):1600 MHz
Bus: 600 MHz DDR: 2100 MT/s FMAN: 700 MHz
Reset Configuration Word (RCW):
00000000: 0c150010 0e000000 00000000 00000000
00000010: 11338888 40000016 40025000 c1000000
00000020: 00000000 00000000 00000000 0002a804
00000030: 20004504 283e1101 00000096 00000001
Model: LS1046A PSCB Board
Board: LS1046APSCB, boot from QSPI
SERDES Reference Clocks:
SD1_CLK1 = 100.00MHZ, SD1_CLK2 = 156.25MHZ
DRAM: 3.9 GiB (DDR4, 64-bit, CL=16, ECC on)
Using SERDES1 Protocol: 4403 (0x1133)
Using SERDES2 Protocol: 34952 (0x8888)
NAND: 1024 MiB
MMC: FSL_SDHC: 0
Loading Environment from SPIFlash... SF: Detected s25fs512s with page size 256 Bytes, erase size 256 KiB, total 64 MiB
OK
EEPROM: Read failed.
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
IIC3 is used, configure mux to use IIC3_SCL/IIC3/SDA
Net: Fman1: Uploading microcode version 106.4.18
eth0: fm1-mac5 [PRIME]
Error: fm1-mac10 address not set.

Hit any key to stop autoboot: 0
scanning bus for devices...
SATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst

Device 0: unknown device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk esdhc@1560000.blk...
Found 5 disks
No EFI system partition
ERROR: invalid device tree
Scanning mmc 0:2...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
ERROR: invalid device tree
Scanning mmc 0:3...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
ERROR: invalid device tree
Scanning mmc 0:4...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
ERROR: invalid device tree
starting USB...
Bus usb@2f00000: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb@3000000: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb@3100000: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@2f00000 for devices... 1 USB Device(s) found
scanning bus usb@3000000 for devices... 1 USB Device(s) found
scanning bus usb@3100000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
PCIe1: pcie@3400000 Root Complex: x4 gen1
PCIe2: pcie@3500000 disabled
PCIe3: pcie@3600000 disabled
BOOTP broadcast 1
DHCP client bound to address 172.16.16.182 (19 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET
BOOTP broadcast 1
DHCP client bound to address 172.16.16.182 (18 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET
Trying load from qspi..
SF: Detected s25fs512s with page size 256 Bytes, erase size 256 KiB, total 64 MiB
device 0 offset 0x1000000, size 0x2800000
SF: 41943040 bytes @ 0x1000000 Read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>

 

sd boot failure log
=> reset
resetting ...

 

 

SD Normal board should have bl2 printing 

=> reset
resetting ...
=VERBOSE: NUM of cluster = 0x1, Cores per cluster = 0x4
soc_early_init ...
INFO: SoC workaround for Errata A008850 Early-Phase was applied
INFO: SoC workaround for Errata A010539 was applied
INFO: RCW BOOT SRC is SD/EMMC

 

how to debug ..?

 

0 Kudos
3 Replies

495 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please check whether you have configured SD boot RCW correctly?

In LSDK 21.08 build environment,

1. $ flex-builder -c rcw -m ls1046ardb

2. Please modify components/firmware/rcw/ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_sdboot.rcw according to your custom board.

3. $ flex-builder -c rcw -m ls1046ardb

4. $ flex-builder -c atf -m ls1046ardb -b sd

Get ATF image bl2_sd.pbl and fip_uboot.bin in folder build/firmware/atf/ls1046ardb/.

0 Kudos

437 Views
hongyuanz
Contributor IV

hongyuanz_0-1681784358746.png

Exception: There is nothing printed in the atf code How to debug here 。。?

0 Kudos

385 Views
yipingwang
NXP TechSupport
NXP TechSupport

Do you have CodeWarrior TAP and CodeWarrior license?

You could import bl2.elf to CodeWarrior to create a bareboard project to debug atf, you could refer to u-boot debugging section in https://community.nxp.com/t5/CodeWarrior-for-QorIQ-Knowledge/Use-CodeWarrior-for-ARMv8-to-Debug-U-bo...

0 Kudos