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.

[FAQ] How to flash u-boot to GPMC-NAND with USB-DFU on AM62L

Part Number: AM62L

Tool/software:

AM62L ROM supports boot from ONFI 1.0 compatible 8-bit parallel NAND memory of 2Gbytes or less in size connected to GPMC CS0 with the following geometries and features
• 2Kbyte page and spare area of at least 64 bytes or
• 4Kbyte page size and spare area of at least 128 bytes.
• Non-ECC part only
- ROM uses ELM to handle ECC.
- ECC is BCH8 using D7:0 for data
- The param page CRC is checked and in case of failure the redundant page is used.

The FAQ lists how to flash u-boot to GPMC-NAND with USB-DFU on AM62L EVM + NAND daughter card with AM62L Linux EA release, where MT29F8G08ADAFAH4 is on the gpmc-nand daughter card as listed
[ 2.759530] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xd3
[ 2.768643] nand: Micron MT29F8G08ADAFAH4
[ 2.774662] nand: 1024 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 256
[ 2.782546] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme

There's companion FAQ on how to boot u-boot from GPMC-NAND from SD boot as listed below

https://e2e.ti.com/support/processors-group/processors/f/791/t/1468486

  • Build u-boot to support GPMC-NAND
    - apply the u-boot gpmc-nand patch <0001-add-enabling-u-boot-gpmc-nand-on-AM62L-EVM-nand-daug.patch>
    The gpmc-nand drivers are included in AM62L Linux EA package, but GPMC-NAND is disabled in u-boot by default as the nand daughter card is an optional component.
    - build the u-boot with <am62lx_evm_defconfig> with the gpmc-nand patch.

    Boot u-boot from USB-DFU boot mode
    - configure BOOTMODE pins as USB-DFU boot mode
    - power on the board
    - issue the cmds from Linux host (dfu-util installed)
    sudo dfu-util -l
    sudo dfu-util -R -a bootloader -D tiboot3.bin
    sudo dfu-util -R -a bootloader -D tispl.bin
    sudo dfu-util -R -a u-boot.img -D u-boot.img

    - stop @u-boot prompt, and run the cmds to prepare for GPMC-NAND flashing next
    => setenv dfu_alt_info "tiboot3.bin raw 0x0 0x080000; tispl.bin raw 0x080000 0x200000; u-boot.img raw 0x200000 0x400000; rootfs raw 0x880000 0x20000000"
    => dfu 0 mtd nand0

    Flash u-boot to GPMC-NAND
    - issue the cmds from Linux host (dfu-util installed)
    sudo dfu-util -l
    sudo dfu-util -a 0 -D tiboot3.bin
    sudo dfu-util -a 1 -D tispl.bin
    sudo dfu-util -a 2 -D u-boot.img

    The three logs are attached for reference:
    - am62l_ea3_dfu_nand_host.log: the linux host log from USB-DFU gpmc-nand flashing
    - am62l_ea3_dfu_nand_target.log: the u-boot target log from USB-DFU gpmc-nand flashing
    - am62l_ea3_nand_boot.log: the u-boot log from gpmc-nand booting

    4721.0001-add-enabling-u-boot-gpmc-nand-on-AM62L-EVM-nand-daug.patch

    am62l_ea3_dfu_nand_host.log
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -l
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Found DFU: [0451:6165] ver=0200, devnum=89, cfg=1, intf=0, path="1-4", alt=1, name="SocId", serial="01.00.00.00"
    Found DFU: [0451:6165] ver=0200, devnum=89, cfg=1, intf=0, path="1-4", alt=0, name="bootloader", serial="01.00.00.00"
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -R -a bootloader -D tiboot3.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #0 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 512
    Copying data from PC to DFU device
    Download	[=========================] 100%       225024 bytes
    Download done.
    state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    dfu-util: can't detach
    Resetting USB to switch back to runtime mode
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -l
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Found DFU: [0451:6165] ver=0200, devnum=90, cfg=1, intf=0, path="1-4", alt=1, name="SocId", serial="01.00.00.00"
    Found DFU: [0451:6165] ver=0200, devnum=90, cfg=1, intf=0, path="1-4", alt=0, name="bootloader", serial="01.00.00.00"
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -R -a bootloader -D tispl.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #0 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 512
    Copying data from PC to DFU device
    Download	[=========================] 100%      1390600 bytes
    Download done.
    state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    dfu-util: can't detach
    Resetting USB to switch back to runtime mode
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -l
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Found DFU: [0451:6165] ver=7e8a, devnum=91, cfg=1, intf=0, path="1-4", alt=0, name="u-boot.img", serial="UNKNOWN"
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -R -a u-boot.img -D u-boot.img
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #0 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%      1431115 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Resetting USB to switch back to runtime mode
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -l
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Found DFU: [0451:6165] ver=7e8a, devnum=92, cfg=1, intf=0, path="1-4", alt=3, name="rootfs", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e8a, devnum=92, cfg=1, intf=0, path="1-4", alt=2, name="u-boot.img", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e8a, devnum=92, cfg=1, intf=0, path="1-4", alt=1, name="tispl.bin", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e8a, devnum=92, cfg=1, intf=0, path="1-4", alt=0, name="tiboot3.bin", serial="UNKNOWN"
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -a 0 -D tiboot3.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #0 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%       225024 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -a 1 -D tispl.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #1 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%      1390600 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ sudo dfu-util -a 2 -D u-boot.img
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #2 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%      1431115 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    jason@laptop:~/am6/am62l_ea3/board-support/u-boot-build/a53$ 
    
    
    

    am62l_ea3_dfu_nand_target.log
    NOTICE:  Booting Trusted Firmware
    NOTICE:  BL1: v2.11.0(release):11.00.00.02-6-gd6f5db4d9
    NOTICE:  BL1: Built : 16:31:47, Nov 24 2024
    NOTICE:  bl1_platform_setup DDR init done
    NOTICE:  k3_bl1_handoff ENTERING WFI - end of PreBL 
    NOTICE:  BL31: v2.11.0(release):11.00.00.02-6-gd6f5db4d9
    NOTICE:  BL31: Built : 16:31:47, Nov 24 2024
    NOTICE:  k3_sysctrler_boot_notification_response: boot notification recevied from TIFS: 0x70815000
    NOTICE:  SYSFW ABI: 3.1 (firmware rev 0x0000 '0.0.0-w2024.01-am62lx (WAKUP)')
    NOTICE:  Upgrade Firmwares for Power off functionality
    ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported
    
    U-Boot SPL 2024.10-rc5-gc8de66a7a8d3-dirty (Nov 24 2024 - 11:43:34 -0600)
    SPL initial stack usage: 1872 bytes
    Trying to boot from DFU
    ######DOWNLOAD ... OK
    Ctrl+C to exit ...
    
    
    U-Boot 2024.10-rc5-gc8de66a7a8d3-dirty (Nov 24 2024 - 11:43:34 -0600)
    
    SoC:   AM62LX SR1.0 HS-FS
    Model: Texas Instruments AM62L3 EVM
    DRAM:  2 GiB
    ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported
    Core:  62 devices, 31 uclasses, devicetree: separate
    NAND:  512 MiB
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from nowhere... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   eth0: ethernet@8000000port@1
    Warning: ethernet@8000000port@2 (eth1) using random MAC address - 5e:5d:d6:a3:a2:ea
    , eth1: ethernet@8000000port@2
    Hit any key to stop autoboot:  2  0 
    => mtd list
    List of MTD devices:
    * nand0
      - device: nand@0,0
      - parent: memory-controller@3b000000
      - driver: gpmc-nand
      - path: /bus@f0000/memory-controller@3b000000/nand@0,0
      - type: NAND flash
      - block size: 0x40000 bytes
      - min I/O: 0x1000 bytes
      - OOB size: 128 bytes
      - OOB available: 142 bytes
      - ECC strength: 8 bits
      - ECC step size: 512 bytes
      - bitflip threshold: 6 bits
      - 0x000000000000-0x000020000000 : "nand0"
    	  - 0x000000000000-0x000000080000 : "NAND.tiboot3"
    	  - 0x000000080000-0x000000200000 : "NAND.tispl"
    	  - 0x000000200000-0x000000400000 : "NAND.u-boot"
    	  - 0x000000400000-0x000000480000 : "NAND.tiboot3.backup"
    	  - 0x000000480000-0x000000600000 : "NAND.tispl.bin.backup"
    	  - 0x000000600000-0x000000800000 : "NAND.u-boot.backup"
    	  - 0x000000800000-0x000000840000 : "NAND.u-boot-env"
    	  - 0x000000840000-0x000000880000 : "NAND.u-boot-env.backup"
    	  - 0x000000880000-0x000020000000 : "NAND.file-system"
    * spi-nand0
      - device: flash@3
      - parent: spi@fc40000
      - driver: spi_nand
      - path: /bus@f0000/bus@fc00000/spi@fc40000/flash@3
      - type: NAND flash
      - block size: 0x20000 bytes
      - min I/O: 0x800 bytes
      - OOB size: 64 bytes
      - OOB available: 40 bytes
      - 0x000000000000-0x000008000000 : "spi-nand0"
    	  - 0x000000000000-0x000000080000 : "ospi_nand.tiboot3"
    	  - 0x000000080000-0x000000280000 : "ospi_nand.tispl"
    	  - 0x000000280000-0x000000680000 : "ospi_nand.u-boot"
    	  - 0x000000680000-0x0000006c0000 : "ospi_nand.env"
    	  - 0x0000006c0000-0x000000700000 : "ospi_nand.env.backup"
    	  - 0x000002000000-0x000007fc0000 : "ospi_nand.rootfs"
    	  - 0x000007fc0000-0x000008000000 : "ospi_nand.phypattern"
    => setenv dfu_alt_info "tiboot3.bin raw 0x0 0x080000; tispl.bin raw 0x080000 0x200000; u-boot.img raw 0x200000 0x400000; rootfs raw 0x880000 0x20000000"
    => printenv dfu_alt_info
    dfu_alt_info=tiboot3.bin raw 0x0 0x080000; tispl.bin raw 0x080000 0x200000; u-boot.img raw 0x200000 0x400000; rootfs raw 0x880000 0x20000000
    => nand erase 0x0 0x400000
    
    NAND erase: device 0 offset 0x0, size 0x400000
    
    Erasing at 0x0 --   6% complete.
    Erasing at 0x40000 --  12% complete.
    Erasing at 0x80000 --  18% complete.
    Erasing at 0xc0000 --  25% complete.
    Erasing at 0x100000 --  31% complete.
    Erasing at 0x140000 --  37% complete.
    Erasing at 0x180000 --  43% complete.
    Erasing at 0x1c0000 --  50% complete.
    Erasing at 0x200000 --  56% complete.
    Erasing at 0x240000 --  62% complete.
    Erasing at 0x280000 --  68% complete.
    Erasing at 0x2c0000 --  75% complete.
    Erasing at 0x300000 --  81% complete.
    Erasing at 0x340000 --  87% complete.
    Erasing at 0x380000 --  93% complete.
    Erasing at 0x3c0000 -- 100% complete.
    OK
    => printenv dfu_alt_info
    dfu_alt_info=tiboot3.bin raw 0x0 0x080000; tispl.bin raw 0x080000 0x200000; u-boot.img raw 0x200000 0x400000; rootfs raw 0x880000 0x20000000
    => dfu 0 mtd nand0
    generic_phy_get_bulk : no phys property
    #DOWNLOAD ... OK
    Ctrl+C to exit ...
    ######DOWNLOAD ... OK
    Ctrl+C to exit ...
    ######DOWNLOAD ... OK
    Ctrl+C to exit ...
    

    am62l_ea3_nand_boot.log
    NOTICE:  Booting Trusted Firmware
    NOTICE:  BL1: v2.11.0(release):11.00.00.02-6-gd6f5db4d9
    NOTICE:  BL1: Built : 16:31:47, Nov 24 2024
    NOTICE:  bl1_platform_setup DDR init done
    NOTICE:  k3_bl1_handoff ENTERING WFI - end of PreBL 
    NOTICE:  BL31: v2.11.0(release):11.00.00.02-6-gd6f5db4d9
    NOTICE:  BL31: Built : 16:31:47, Nov 24 2024
    NOTICE:  k3_sysctrler_boot_notification_response: boot notification recevied from TIFS: 0x70815000
    NOTICE:  SYSFW ABI: 3.1 (firmware rev 0x0000 '0.0.0-w2024.01-am62lx (WAKUP)')
    NOTICE:  Upgrade Firmwares for Power off functionality
    ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported
    
    U-Boot SPL 2024.10-rc5-gc8de66a7a8d3-dirty (Nov 24 2024 - 11:21:22 -0600)
    SPL initial stack usage: 1872 bytes
    Trying to boot from NAND
    
    
    U-Boot 2024.10-rc5-gc8de66a7a8d3-dirty (Nov 24 2024 - 11:21:22 -0600)
    
    SoC:   AM62LX SR1.0 HS-FS
    Model: Texas Instruments AM62L3 EVM
    DRAM:  2 GiB
    ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported
    Core:  62 devices, 31 uclasses, devicetree: separate
    NAND:  512 MiB
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from nowhere... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   eth0: ethernet@8000000port@1
    Warning: ethernet@8000000port@2 (eth1) using random MAC address - de:d3:44:66:9a:46
    , eth1: ethernet@8000000port@2
    Hit any key to stop autoboot:  2  0
    => md.l 0x43010030 1
    43010030: 0000025b                             [...
    => mtd list
    List of MTD devices:
    * nand0
      - device: nand@0,0
      - parent: memory-controller@3b000000
      - driver: gpmc-nand
      - path: /bus@f0000/memory-controller@3b000000/nand@0,0
      - type: NAND flash
      - block size: 0x40000 bytes
      - min I/O: 0x1000 bytes
      - OOB size: 128 bytes
      - OOB available: 142 bytes
      - ECC strength: 8 bits
      - ECC step size: 512 bytes
      - bitflip threshold: 6 bits
      - 0x000000000000-0x000020000000 : "nand0"
    	  - 0x000000000000-0x000000080000 : "NAND.tiboot3"
    	  - 0x000000080000-0x000000200000 : "NAND.tispl"
    	  - 0x000000200000-0x000000400000 : "NAND.u-boot"
    	  - 0x000000400000-0x000000480000 : "NAND.tiboot3.backup"
    	  - 0x000000480000-0x000000600000 : "NAND.tispl.bin.backup"
    	  - 0x000000600000-0x000000800000 : "NAND.u-boot.backup"
    	  - 0x000000800000-0x000000840000 : "NAND.u-boot-env"
    	  - 0x000000840000-0x000000880000 : "NAND.u-boot-env.backup"
    	  - 0x000000880000-0x000020000000 : "NAND.file-system"
    * spi-nand0
      - device: flash@3
      - parent: spi@fc40000
      - driver: spi_nand
      - path: /bus@f0000/bus@fc00000/spi@fc40000/flash@3
      - type: NAND flash
      - block size: 0x20000 bytes
      - min I/O: 0x800 bytes
      - OOB size: 64 bytes
      - OOB available: 40 bytes
      - 0x000000000000-0x000008000000 : "spi-nand0"
    	  - 0x000000000000-0x000000080000 : "ospi_nand.tiboot3"
    	  - 0x000000080000-0x000000280000 : "ospi_nand.tispl"
    	  - 0x000000280000-0x000000680000 : "ospi_nand.u-boot"
    	  - 0x000000680000-0x0000006c0000 : "ospi_nand.env"
    	  - 0x0000006c0000-0x000000700000 : "ospi_nand.env.backup"
    	  - 0x000002000000-0x000007fc0000 : "ospi_nand.rootfs"
    	  - 0x000007fc0000-0x000008000000 : "ospi_nand.phypattern"
    => nand info
    
    Device 0: nand0, sector size 256 KiB
      Page size         4096 b
      OOB size           128 b
      Erase size      262144 b
      ecc strength         8 bits
      ecc step size      512 b
      subpagesize       1024 b
      options       0x4000400c
      bbt options   0x00000000
    =>