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.

PROCESSOR-SDK-AM335X: How to improve the speed of uboot attaching ubi device.

Part Number: PROCESSOR-SDK-AM335X

When booting from nandflash,uboot attaches ubi device which spending almost 10 seconds.It's too long ,and how to improve it?

I had set

# define CONFIG_MTD_UBI_FASTMAP 1

# define CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT 1

in include/configs/am335x-evm.h.But it didn't work.

  • Please post what U-boot and Linux version you use.
  • Thank you for your attention!
    u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd
    linux-rt-4.9.69+gitAUTOINC+7069a470d5-g7069a470d5

    When booting from nandflash,this process is too slow,spends almost 10 second.

    <ethaddr> not set. Validating first E-fuse MAC
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Booting from nand ...
    ubi0: default fastmap pool size: 185
    ubi0: default fastmap WL pool size: 92
    ubi0: attaching mtd1
    ubi0: scanning is finished
    ubi0: attached mtd1 (name "mtd=5", size 474 MiB)
    ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    ubi0: good PEBs: 3794, bad PEBs: 0, corrupted PEBs: 0
    ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    ubi0: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 1792844026
    ubi0: available PEBs: 0, total reserved PEBs: 3794, PEBs reserved for bad PEB handling: 80
    Loading file 'boot/am335x-evm.dtb' to addr 0x88000000...
    Done

    NAND read: device 0 offset 0x1c0000, size 0x400000
    4194304 bytes read: OK
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8df05000, end 8df13384 ... OK
    Fixing up ETH0 & ETH1 to PRUSS Ethernet
    Node /pruss_eth not found. Please update DTB.

    Starting kernel ...

  • Hi Chen,

    Do you use AM335x TI board (EVM, StarterKit, BBB, ICE) or custom board?

    Make sure you are aligned with the u-boot user guide:

    software-dl.ti.com/.../Foundational_Components_U-Boot.html

    Regards,
    Pavel
  • If you have no more questions related to the subject, please close/verify/resolve this thread.

    Regards,
    Pavel