Dear NXP Team,
LS1043A #The serial port is printed as follows, the cpu restarts periodically, and the printing also contains some errors, please tell me how to solve
NOTICE: 4 GB DDR4, 32-bit, CL=12, ECC off
NOTICE: BL2: v2.4(release):9e883512b-dirty
NOTICE: BL2: Built : 01:17:57, Jul 1 2024
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.4(release):9e883512b-dirty
NOTICE: BL31: Built : 01:17:57, Jul 1 2024
NOTICE: Welcome to ls1043aqds BL31 Phase
U-Boot 2021.04 (Jul 01 2024 - 01:17:24 -0700)
SoC: LS1043AE Rev1.1 (0x87920211)
Clock Configuration:
CPU0(A53):1600 MHz CPU1(A53):1600 MHz CPU2(A53):1600 MHz
CPU3(A53):1600 MHz
Bus: 400 MHz DDR: 1600 MT/s FMAN: 500 MHz
Reset Configuration Word (RCW):
00000000: 08100010 0a000000 00000000 00000000
00000010: 45550002 00004012 40025000 c1002000
00000020: 00000000 00000000 00000000 00038ffd
00000030: 00104404 00001002 00000096 00000001
Model: LS1043A QDS Board
Board: LS1043AQDS, boot from QSPI
Sys ID: 0xff, Sys Ver: 0xff
FPGA: v255 (▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒), build 65535
DRAM: select_i2c_ch_pca9547: Cannot find udev for a bus 0
3.9 GiB (DDR4, 32-bit, CL=12, ECC off)
Using SERDES1 Protocol: 17749 (0x4555)
select_i2c_ch_pca9547: Cannot find udev for a bus 0
select_i2c_ch_pca9547: Cannot find udev for a bus 0
board_retimer_init: Cannot find udev for a bus 0
Flash: 0 Bytes
NAND: 0 MiB
MMC: FSL_SDHC: 0
Loading Environment from SPIFlash... jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 0b, 60, 18
*** Warning - spi_flash_probe_bus_cs() failed, using default environment
EEPROM: Read failed.
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
Net: jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 0b, 60, 18
"Synchronous Abort" handler, esr 0x96000004
elr: 0000000082054074 lr : 000000008205405c (reloc)
elr: 00000000fbd6d074 lr : 00000000fbd6d05c
x0 : 49444d5f53445141 x1 : 0000000000000000
x2 : 0000000000000521 x3 : 00000000fbc1a6b0
x4 : 00000000fbdc4cf8 x5 : 00000000fbc1ab90
x6 : 00000000fbdc4d08 x7 : 00000000fbc31f40
x8 : 00000000fbc12458 x9 : 0000000000000008
x10: 00000000fffffff0 x11: 0000000000000010
x12: 0000000000000270 x13: 00000000fbc127cc
x14: 00000000fbc12950 x15: 0000000000000021
x16: 00000000fbd72318 x17: 0000000000000000
x18: 00000000fbc14db0 x19: 00000000fbc21f40
x20: 49444d5f53445141 x21: 0000000001a00000
x22: 0000000000000000 x23: 00000000fbdb38a2
x24: 00000000fbda6000 x25: 0000000000000001
x26: 0000000000000000 x27: 0000000000000000
x28: 0000000000000000 x29: 00000000fbc127a0
Code: 90000220 912cb400 9400c136 17ffffd7 (f940c400)
Resetting CPU ...
resetting ...
NOTICE: 4 GB DDR4, 32-bit, CL=12, ECC off
NOTICE: BL2: v2.4(release):9e883512b-dirty
NOTICE: BL2: Built : 01:17:57, Jul 1 2024
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.4(release):9e883512b-dirty
NOTICE: BL31: Built : 01:17:57, Jul 1 2024
NOTICE: Welcome to ls1043aqds BL31 Phase
Thank you in advance for any insights you can provide.
Best regards!
Solved! Go to Solution.
The error occurs because sf probe is set to 1 in the default configuration. Change the value to 0.
Please go to u-boot source code folder components/firmware/uboot
1. In configs/ls1043aqds_tfa_defconfig, please modify the following configuration.
CONFIG_SPI_FLASH_SPANSION=y
2. Please check drivers/mtd/spi/spi-nor-ids.c whether your QSPI flash is listed in this file.
3. Modify the following device node in arch/arm/dts/fsl-ls1043a-qds.dtsi
&qspi {
status = "okay";
s25fl128s0: flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
reg = <0>;
};
};
Then rebuild atf image
$ rm -rf build/firmware/u-boot/ls1043aqds/
$ flex-builder -c atf -m ls1043aqds -b qspi
Thank you very much for your help, it is now in uboot, but there are still some problems, the complete serial print is in the attached file.
These are the problems I encountered from the beginning, but I still haven't solved them.
1, where FGPA, NAND, EEPROM are not what I expect, because I do not have these,how to ignore them?
2. Why is the value of Flash equal to 0?
3. Is the error printing in DRAM caused by repeated initialization of DDR?
4.Why is a message indicating that the qspi flash cannot be detected again after I enter the uboot? This error is the same as the return print of sf probe command when I enter the command "sf probe" in the uboot.
------------------------------------------------------------------------------------------------------------
Of course, in addition to this, the rest of the printing also shows that there are still problems, looking forward to your detailed explanation or suggestions. Thanks again.
In dts file arch/arm/dts/fsl-ls1043a-qds.dtsi, please delete the following section, if there is no dspi flash on your target board.
&dspi0 {
bus-num = <0>;
status = "okay";
dflash0: n25q128a {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
spi-max-frequency = <1000000>; /* input clock */
spi-cpol;
spi-cpha;
reg = <0>;
};
dflash1: sst25wf040b {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
spi-max-frequency = <3500000>;
spi-cpol;
spi-cpha;
reg = <1>;
};
dflash2: en25s64 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
spi-max-frequency = <3500000>;
spi-cpol;
spi-cpha;
reg = <2>;
};
};
In u-boot prompt, please type "sf probe 0:0" to check whether the QSPI flash can be detected.
Thank your advices, but it doesn't work. I've tried setting the state of dspi0 to disabled, but it still seems to execute the command sf probe.
The error occurs because sf probe is set to 1 in the default configuration. Change the value to 0.