This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: Uboot to dump the Nand flash size

Part Number: AM625

Tool/software:

Champs:

   please see the customer log, may we know how to let user know the Nand flash size even they used the SD card boot?

Thanks.

BR Rio

U-Boot SPL 2024.04-dirty (Apr 17 2025 - 17:08:26 +0800)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.8--v10.01.08 (Fiery Fox)')
SPL initial stack usage: 13456 bytes
CTRL_MMR0 (BootMode): 0x243
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
NOTICE:  BL31: Built : 04:20:32, Nov  1 2024

U-Boot SPL 2024.04-dirty (Apr 17 2025 - 17:08:43 +0800)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.8--v10.01.08 (Fiery Fox)')
SPL initial stack usage: 1904 bytes
CTRL_MMR0 (BootMode): 0x243
Trying to boot from MMC2
Authentication passed
Authentication passed


U-Boot 2024.04-dirty (Apr 17 2025 - 17:08:43 +0800)

SoC:   AM62X SR1.0 HS-FS
Model: Texas Instruments AM62x LP SK
EEPROM not available at 0x50, trying to read at 0x51
Board: AM62-LP-SKEVM rev E2
DRAM:  2 GiB
Core:  83 devices, 32 uclasses, devicetree: separate
NAND:  Tony add board_nand_init
tony add gpmc_nand_init
tony add gpmc_nand_init in
tony add gpmc_nand_init exit
0 MiB
MMC:   mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from NAND... tony add gpmc_nand_init
tony add gpmc_nand_init in
tony add gpmc_nand_init error exit
nand: error: Unable to find NAND settings in GPMC Configuration - quitting
tony add gpmc_nand_init
tony add gpmc_nand_init in
tony add gpmc_nand_init error exit
nand: error: Unable to find NAND settings in GPMC Configuration - quitting
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@8000000port@1
Hit any key to stop autoboot:  0
=> mtdparts

device spi-nand0 <spi-nand0>, # parts = 13
 #: name                size            offset          mask_flags
 0: tiboot3             0x00080000      0x00000000      0
 1: tispl               0x00200000      0x00080000      0
 2: UBOOT               0x00400000      0x00280000      0
 3: ENV                 0x00100000      0x00680000      0
 4: RAWDATA             0x00080000      0x00780000      0
 5: DTB0                0x00080000      0x00800000      0
 6: DTB1                0x00080000      0x00880000      0
 7: KERNEL0             0x00a00000      0x00900000      0
 8: KERNEL1             0x00a00000      0x01300000      0
 9: ROOTFS0             0x00a00000      0x01d00000      0
10: ROOTFS1             0x00a00000      0x02700000      0
11: BOOT_BAK            0x00400000      0x03100000      0
12: HMI                 0x04b00000      0x03500000      0

active partition: spi-nand0,0 - (tiboot3) 0x00080000 @ 0x00000000

defaults:
mtdids  : spi-nand0=spi-nand0
mtdparts: mtdparts=spi-nand0:512k(tiboot3),2m(tispl),4m(UBOOT),512k(ENV0),512k(ENV1),512k(RAWDATA),512k(DTB0),512k(DTB1),10m(KERNEL0),10m(KERNEL1),10m(ROOTFS0),10m(ROOTFS1),4m(BOOT_BAK),-(HMI)
=> sf probe
=> nand device 0
=> nand info

=>

  • Hi Rio,

    'sf probe' command should print the flash information, including size.

    tony add gpmc_nand_init in
    tony add gpmc_nand_init error exit
    nand: error: Unable to find NAND settings in GPMC Configuration - quitting

    The U-Boot log already tells the NAND device is not configured properly.