LX2160ARDB-REV2 boot from Invalid setting ,xmap 7 Hi Team I want to start the Board through xspi, but I see "Board: LX2160AE Rev2.0-RDB, Board version: O, boot from invalid setting, xmap: 7" in the log. NOTICE: BL2: v2.4(release): NOTICE: BL2: Built : 10:26:27, Sep 3 2024 NOTICE: UDIMM CBD32D4S2S8MR-8 NOTICE: DDR PMU Hardware version-0x1210 NOTICE: DDR PMU Firmware vision-0x1001 (vA-2019.04) NOTICE: DDR4 UDIMM with 1-rank 64-bit bus (x8) NOTICE: 8 GB DDR4, 64-bit, CL=22, ECC off NOTICE: BL2: Booting BL31 NOTICE: BL31: v2.4(release): NOTICE: BL31: Built : 10:26:26, Sep 3 2024 NOTICE: Welcome to lx2160ardb BL31 Phase U-Boot 2021.04 (Sep 03 2024 - 10:26:20 +0800) SoC: LX2160AE Rev2.0 (0x87361020) Clock Configuration: CPU0(A72):2200 MHz CPU1(A72):2200 MHz CPU2(A72):2200 MHz CPU3(A72):2200 MHz CPU4(A72):2200 MHz CPU5(A72):2200 MHz CPU6(A72):2200 MHz CPU7(A72):2200 MHz CPU8(A72):2200 MHz CPU9(A72):2200 MHz CPU10(A72):2200 MHz CPU11(A72):2200 MHz CPU12(A72):2200 MHz CPU13(A72):2200 MHz CPU14(A72):2200 MHz CPU15(A72):2200 MHz Bus: 750 MHz DDR: 3200 MT/s Reset Configuration Word (RCW): 00000000: 5883833c 24580058 00000000 00000000 00000010: 00000000 0c010000 00000000 00000000 00000020: 01e001a0 00002580 00000000 1800064e 00000030: 08250400 00000001 00000000 00000000 00000040: 00000000 00000000 00000000 00000000 00000050: 00000000 00000000 00000000 00000000 00000060: 00000000 00000000 00027088 00000000 00000070: 00a80031 00150032 Model: NXP Layerscape LX2160ARDB Board Board: LX2160AE Rev2.0-RDB, Board version: O, boot from invalid setting, xmap: 7 FPGA: v255.255 SERDES1 Reference: Clock1 = 161.13MHz Clock2 = 161.13MHz SERDES2 Reference: Clock1 = 100MHz Clock2 = 100MHz SERDES3 Reference: Clock1 = 100MHz Clock2 = 100MHz VID: Bus 0 has no device with address 0x63 VID: Couldn't read sensor abort VID adjustment core voltage not adjusted DRAM: 7.9 GiB DDR 7.9 GiB (DDR4, 64-bit, CL=22, ECC off) PCA: failed to select proper channel Using SERDES1 Protocol: 8 (0x8) Using SERDES2 Protocol: 5 (0x5) Using SERDES3 Protocol: 0 (0x0) SERDES3[PRTCL] = 0x0 is not valid PCIe1: pcie@3400000 disabled PCIe2: pcie@3500000 disabled PCIe3: pcie@3600000 Root Complex: no link PCIe4: pcie@3700000 disabled PCIe5: pcie@3800000 disabled PCIe6: pcie@3900000 disabled WDT: Started with servicing (30s timeout) MMC: FSL_SDHC: 0, FSL_SDHC: 1 Loading Environment from SPIFlash... SF: Detected mx25um51245g with page size 256 Bytes, erase size 16 KiB, total 64 MiB *** Warning - bad CRC, using default environment EEPROM: Invalid ID (ff ff ff ff) In: serial_pl01x Out: serial_pl01x Err: serial_pl01x SEC0: RNG instantiated Net: Warning: DPMAC3@usxgmii (eth0) using random MAC address - 5e:df:5d:a5:7a:98 Warning: DPMAC4@usxgmii (eth1) using random MAC address - a2:e1:07:33:60:c7 Warning: DPMAC5@25g-aui (eth2) using random MAC address - 5a:a6:ad:bc:e1:7e Warning: DPMAC6@usxgmii (eth3) using random MAC address - fa:e3:56:29:f3:12 Warning: DPMAC17@rgmii-id (eth4) using random MAC address - 92:c0:55:9f:c2:a0 Warning: DPMAC18@rgmii-id (eth5) using random MAC address - ce:ea:c1:c9:d2:3d eth0: DPMAC3@usxgmii, eth1: DPMAC4@usxgmii, eth2: DPMAC5@25g-aui, eth3: DPMAC6@usxgmii, eth4: DPMAC17@rgmii-id, eth5: DPMAC18@rgmii-id SF: Detected mx25um51245g with page size 256 Bytes, erase size 16 KiB, total 64 MiB device 0 offset 0x640000, size 0x80000 SF: 524288 bytes @ 0x640000 Read: OK device 0 offset 0xa00000, size 0x300000 SF: 3145728 bytes @ 0xa00000 Read: OK device 0 offset 0xe00000, size 0x100000 SF: 1048576 bytes @ 0xe00000 Read: OK crc32+ fsl-mc: Booting Management Complex ... SUCCESS fsl-mc: Management Complex booted (version: 10.30.0, boot status: 0x1) Hit any key to stop autoboot: 0 SF: Detected mx25um51245g with page size 256 Bytes, erase size 16 KiB, total 64 MiB device 0 offset 0x6c0000, size 0x40000 SF: 262144 bytes @ 0x6c0000 Read: OK device 0 offset 0xd00000, size 0x100000 SF: 1048576 bytes @ 0xd00000 Read: OK starting USB... Bus usb3@3100000: Register 200017f NbrPorts 2 Starting the controller USB XHCI 1.00 Bus usb3@3110000: Register 200017f NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus usb3@3100000 for devices... 1 USB Device(s) found scanning bus usb3@3110000 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Device 0: unknown device MMC: no card present switch to partitions #0, OK mmc1(part 0) is current device Scanning mmc 1:1... Found U-Boot script /lx2160ardb_boot.scr 1372 bytes read in 5 ms (267.6 KiB/s) ## Executing script at 80000000 30659072 bytes read in 110 ms (265.8 MiB/s) 49935 bytes read in 6 ms (7.9 MiB/s) ## Flattened Device Tree blob at 90000000 Booting using the fdt blob at 0x90000000 Loading Device Tree to 000000009fff0000, end 000000009ffff30e ... OK fsl-mc: Deploying data path layout ... WARNING: Firmware returned an error (GSR: 0x3f) Starting kernel ... How can I solve this problem? Thanks Re: LX2160ARDB-REV2 boot from Invalid setting ,xmap 7 Hi yipingwang Thank you for your help. I don't know why the value read from the register BRDCFG0(050h) is 0xFF. Do you have any other suggestions to help me solve the problem? BR Re: LX2160ARDB-REV2 boot from Invalid setting ,xmap 7 Please refer to the following source code in board/freescale/lx2160a/lx2160a.c
sw = QIXIS_READ(arch); printf("Board version: %c, boot from ", (sw & 0xf) - 1 + 'A');
if (src== BOOT_SOURCE_SD_MMC) { puts("SD\n"); } else if (src== BOOT_SOURCE_SD_MMC2) { puts("eMMC\n"); } else { sw = QIXIS_READ(brdcfg[0]); sw = (sw >> QIXIS_XMAP_SHIFT) & QIXIS_XMAP_MASK; switch (sw) { case 0: case 4: puts("FlexSPI DEV#0\n"); break; case 1: puts("FlexSPI DEV#1\n"); break; case 2: case 3: puts("FlexSPI EMU\n"); break; default: printf("invalid setting, xmap: %d\n", sw); break; }
It means CPLD register BRDCFG0 wasn't read correctly.
Please refer to section "3.44 Board Configuration 0 (BRDCFG0)" in the attached document.
View full article