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.

AM620-Q1: Issue with USB DFU Boot on AM62x SK Board: Kernel Panic (VFS: Unable to mount root fs on unknown-block(0,0))

Part Number: AM620-Q1
Other Parts Discussed in Thread: AM625

Tool/software:

Hi Team,

I am using the USB DFU mode to boot the Linux image on an AM62x SK board, following commands have used. I have utilized pre-built images, specifically the Image and am62-sk.dtb files from the pre-built binaries.

Steps followed:

setenv dfu_alt_info "k3-am625-sk.dtb ram 0x90000000 0x300000"
dfu 0 ram 0
DFU prompt - dfu-util.exe -a 0 -D k3-am625-sk.dtb


setenv dfu_alt_info "Image ram 0x93000000 0x3500000"
dfu 0 ram 0
DFU prompt - dfu-util.exe -a 0 -D Image

bootm 0x93000000 - 0x90000000

However, during the boot process, I encounter the following error, and the booting process halts:

[ 3.484870] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 3.493126] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.80-ti-g2e423244f8c0 #1
[ 3.500514] Hardware name: Texas Instruments AM625 SK (DT)
[ 3.505991] Call trace:
[ 3.508433] dump_backtrace.part.0+0xdc/0xf0
[ 3.512712] show_stack+0x18/0x30
[ 3.516022] dump_stack_lvl+0x68/0x84
[ 3.519684] dump_stack+0x18/0x34
[ 3.522994] panic+0x188/0x348
[ 3.526045] mount_block_root+0x188/0x23c
[ 3.530052] mount_root+0x208/0x248
[ 3.533534] prepare_namespace+0x130/0x170
[ 3.537625] kernel_init_freeable+0x258/0x284
[ 3.541976] kernel_init+0x24/0x130
[ 3.545463] ret_from_fork+0x10/0x20
[ 3.549036] SMP: stopping secondary CPUs
[ 3.552956] Kernel Offset: disabled
[ 3.556435] CPU features: 0x00000,00800084,0000420b
[ 3.561305] Memory Limit: none
[ 3.564360] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

Could you please confirm steps which i am following is correct booting Linux image AM62x SK board using USB DFU mode?

 

Thanks & Regards,

Yashavantha Gowda

  • Hello,

    Looks like filesystem is not mounted in the boot media.

    What is the boot media being used here?

    Refer here: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1127618/faq-sk-am62-how-to-flash-emmc-using-usb-dfu-on-am62x-sk-e2

    Regards,
    Aparna

  • Hi Aparna,

    We have used OSPI boot mode & once u-boot is up, we alt the u-boot & using USB-DFU for loading & Booting from RAM.

    I have attached the logs

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    U-Boot 2023.04 (Nov 07 2024 - 16:56:54 +0530)
    SoC: AM62X SR1.0 GP
    Model: Texas Instruments AM625 SK
    EEPROM not available at 80, trying to read at 81
    Board: AM62-SKEVM rev E3
    DRAM: no bloblist found!2 GiB
    Core: 72 devices, 32 uclasses, devicetree: separate
    MMC: mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from MMC... OK
    In: serial@2800000
    Out: serial@2800000
    Err: serial@2800000
    Net: eth0: ethernet@8000000port@1
    Hit any key to stop autoboot: 0
    => setenv dfu_alt_info "k3-am625-sk.dtb ram 0x90000000 0x300000"
    => dfu 0 ram 0
    generic_phy_get_bulk : no phys property
    #DOWNLOAD ... OK
    Ctrl+C to exit ...
    => setenv dfu_alt_info "Image ram 0x93000000 0x3500000"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Yes, you will have to mount root filesystem in OSPI flash.

    One quick way to test using SD card is to flash the wic image and use SD card as boot media to see if your Linux images boot.

    But if the goal is to be able to boot completely from OSPI, you will have to create a ubifs image and flash it into your mtd partition in OSPI, I cannot provide the steps to the above method right away. You can refer to the following documentations as required.
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1018036/am6442-how-to-create-ospi-rootfs-ubifs-and-boot-linux-from-ospi-without-sd/3769546#3769546

    Regards,
    Aparna

  • Thank you for your quick response.

    Is it Possible to give the steps for booting Prebuilt Linux Binaries through UART or USB DFU method? Currently we don't want to flash the linux images into storage devices(OSPI-Flash).

    We took the linux binaries from below path

    ti-processor-linux-sdk/board-support/prebuilt-Images

    • Image
    • k3-am625-sk.dtb

    Thanks & Regards,

    Yashavantha Gowda

  • Hi Aparna,

    we have Linux images and working Uboot for UART/USB DFU mode, Also we have TFTP options available.

    can you give us steps to do TFTP Linux image to Eval board ?

    Thanks & Regards,

    Yashavantha Gowda

  • Hi Aparna,

    Thank you for your reply.

    We want steps to Boot Linux binaries through UART/TFTP. hope our query is cleared.

    We need only steps for Booting the Linux OS image through TFTP/UART any of one Mode.

    Note: Currently we don't want to flash our images in storage media.(No Emmc,No SD card, Not required for Flash)

  • Hi Aparna,

    Looking forward to your response.

  • Hi,

    You will have to create an initram fs image to boot kernel via Ethernet or DFU

    Steps to create, load and use a .cpio-formatted rootfs image to boot Linux from U-Boot: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1176944/faq-linux-how-to-boot-sitara-am3x-am4x-am6x-devices-from-initramfs-cpio-archive-ram-disk

    Regards,
    Aparna

  • Hi Aparna,

    Sorry, i was on leave last week.

    Thank you for sharing the steps 

    I followed the approach below through USB-DFU:

    Reference:  [FAQ] Linux: How to boot Sitara AM3x/AM4x/AM6x devices from initramfs (.cpio Archive, RAM Disk) - Processors forum - Processors - TI E2E support forums

    Option 2b: Load a standard cpio image in U-Boot and pass it directly to the Kernel through initrd=

    Procedure i followed for USB-DFU

    setenv dfu_alt_info "k3-am625-sk.dtb ram ${fdtaddr} 0x300000"   
    dfu 0 ram 0
    DFU prompt - dfu-util.exe -a 0 -D k3-am625-sk.dtb

     setenv dfu_alt_info "Image-am62xx-evm.bin ram ${loadaddr} 0x3500000"
    dfu 0 ram 0
    DFU prompt - dfu-util.exe -a 0 -D Image-am62xx-evm.bin

    setenv dfu_alt_info "tisdk-tiny-initramfs-am62xx-evm.cpio ram ${rdaddr} 0x1000000"   
    dfu 0 ram 0
    DFU prompt - dfu-util.exe -a 0 -D tisdk-tiny-initramfs-am62xx-evm.cpio

     

    => setenv args_initramfs 'setenv bootargs console=${console} ${optargs} initrd=${rdaddr},0x${filesize}'
    => run args_all args_initramfs
    => booti ${loadaddr} - ${fdtaddr}

    I used the tisdk-tiny-initramfs-am62xx-evm.cpio image from the SDK/filesystem folder and the k3-am625-sk.dtb and Image-am62xx-evm.bin binaries from the prebuilt images folder.

     

    However, we are encountering an error while booting the linux image  & attached the logs

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    => printenv fdtaddr
    fdtaddr=0x88000000
    => printenv loadaddr
    loadaddr=0x82000000
    => printenv rdaddr
    rdaddr=0x88080000
    => setenv dfu_alt_info "k3-am625-sk.dtb ram ${fdtaddr} 0x300000"
    => dfu 0 ram 0
    generic_phy_get_bulk : no phys property
    #DOWNLOAD ... OK
    Ctrl+C to exit ...
    => setenv dfu_alt_info "Image-am62xx-evm.bin ram ${loadaddr} 0x3500000"
    => dfu 0 ram 0
    generic_phy_get_bulk : no phys property
    ##########################################################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    => setenv dfu_alt_info "tisdk-tiny-initramfs-am62xx-evm.cpio ram ${rdaddr} 0x1000000"
    => dfu 0 ram 0
    generic_phy_get_bulk : no phys property
    #####################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    :

     

    [ 16.537423] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1
    [ 16.547622] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [ 16.557569] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1250000 KHz, changing to: 1000000 KHz
    [ 16.571199] mmc0: CQHCI version 5.10
    [ 16.582225] pca953x 1-0022: supply vcc not found, using dummy regulator
    [ 16.589099] pca953x 1-0022: using AI
    [ 16.616612] mm

    Could you please help us to resolve this issue ?

  • Hi Aparna,

    could you please help us on this issue ? this issue is not resolved yet.

  • Hello Aparna,

    Good morning

    We are waiting for your response

  • Hi Aparna,

    Could you please Help us on this issue ?