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.

J721EXSOMXEVM: The emmc is burned using the fastboot tool. After booting up, the root file system cannot be mounted.

Part Number: J721EXSOMXEVM

Tool/software:

step 1

With "fakeroot make_ext4fs -s -l 4096M -L linux rootfs.img  targetfs/ "  , pack the targetfs directory into a rootfs.img file.

step 2

With "fastboot flash rootfs rootfs_pylon.img -S 512M"  , burn the rootfs.img file to eMMC.

step 3

When booting up, the following error log is found.

[ 2.449182] EXT4-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
[ 2.458882] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Quota mode: none.
[ 2.473191] VFS: Mounted root (ext4 filesystem) on device 179:1.
[ 2.479576] devtmpfs: mounted
[ 2.483379] Freeing unused kernel memory: 1984K
[ 2.487998] Run /sbin/init as init process
[ 2.494923] Run /etc/init as init process
[ 2.499277] Run /bin/init as init process
[ 2.503543] Run /bin/sh as init process
[ 2.507745] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

  • Hi pingping,

    Can you help me share the full boot logs what is the boot flow you are using is it SPL or SBL?

    Regards
    Diwakar

  • Hi, Sir 

    1, it  is SPL mode.

    2. The phenomenon is different every time after flashing.

    U-Boot 2023.04 (Sep 04 2024 - 01:04:19 +0000)
    
    SoC:   J721E SR1.0 GP
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E8
    DRAM:  2 GiB (effective 4 GiB)
    Core:  126 devices, 35 uclasses, devicetree: separate
    Flash: 0 Bytes
    MMC:   mmc@4f80000: 0, mmc@4fb0000: 1
    Loading Environment from nowhere... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-VSC8514-ETH rev E2
    cdns,sierra serdes@5000000: sierra probed
    Net:   eth0: ethernet@46000000port@1
    Hit any key to stop autoboot:  0
    =>
    =>
    => mmc list
    mmc@4f80000: 0
    mmc@4fb0000: 1
    => ls mmc 0
    < ? >          0▒▒▒     ^
    =>
    < ? >          0▒▒▒     ^
    => setenv mmcdev 0
    => setenv bootpart 0:1
    => setenv bootcmd  "run envboot; run distro_bootcmd;"
    => setenv bootargs console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait
    => boot
    switch to partitions #0, OK
    mmc0(part 0) is current device
    SD/MMC found on device 0
    Failed to load 'boot.scr'
    Can't set block device
    gpio: pin gpio@22_17 (gpio 281) value is 1
    gpio: pin gpio@22_16 (gpio 280) value is 0
    k3_r5f_rproc r5f@41000000: Core 1 is already in use. No rproc commands work
    Failed to load '/lib/firmware/j7-mcu-r5f0_1-fw'
    Failed to load '/lib/firmware/j7-main-r5f0_0-fw'
    Failed to load '/lib/firmware/j7-main-r5f0_1-fw'
    Failed to load '/lib/firmware/j7-main-r5f1_0-fw'
    Failed to load '/lib/firmware/j7-main-r5f1_1-fw'
    Failed to load '/lib/firmware/j7-c66_0-fw'
    Failed to load '/lib/firmware/j7-c66_1-fw'
    Failed to load '/lib/firmware/j7-c71_0-fw'
    Failed to load '/boot/Image'
    Failed to load '/boot/dtb/ti/k3-j721e-common-proc-board.dtb'
    libfdt fdt_check_header(): FDT_ERR_BADMAGIC
    No FDT memory address configured. Please configure
    the FDT address via "fdt addr <address>" command.
    Aborting!
    Bad Linux ARM64 Image magic!
    switch to partitions #0, OK
    mmc0(part 0) is current device
    Scanning mmc 0:1...
    No EFI system partition
    No EFI system partition
    Failed to persist EFI variables
    BootOrder not defined
    EFI boot manager: Cannot load any image
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    BootOrder not defined
    EFI boot manager: Cannot load any image
    starting USB...
    Bus usb@6400000: cdns-usb3-host usb@6400000: Unable to get USB2 phy (ret -61)
    cdns-usb3-host usb@6400000: Unable to get USB3 phy (ret -61)
    cdns-usb3-host usb@6400000: DRD version v1 (ID: 0004024e, rev: 00000200)
    Register 2000840 NbrPorts 2
    Starting the controller
    USB XHCI 1.00
    scanning bus usb@6400000 for devices... 2 USB Device(s) found
           scanning usb for storage devices... 0 Storage Device(s) found
    
    Device 0: unknown device
    k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    missing environment variable: pxeuuid
    Retrieving file: pxelinux.cfg/01-e4-15-f6-58-30-a0
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/00000000
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/0000000
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/000000
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/00000
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/0000
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/000
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/00
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/0
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/default-arm-k3-j721e
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/default-arm-k3
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete.......user interrupt!
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/default-arm
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete...user interrupt!
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Retrieving file: pxelinux.cfg/default
    am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
    ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
    am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
    Config file not found

    3,switch to SD mode, then bringup , enter the following command and find that there is a problem with the emmc mount.

    root@j721e-evm:~#
    root@j721e-evm:~# lsblk -f
    NAME         FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
    sda          ext4                6bef9e19-bd68-452b-947a-40089dfee101   23.7M     0% /run/media/sda
    sdb          ext4                f6d8ad18-5f9d-41b4-b673-7288ea649f1a   21.6G    21% /run/media/sdb
    mtdblock0
    mtdblock1
    mtdblock2
    mtdblock3
    mtdblock4
    mtdblock5
    mtdblock6
    mtdblock7
    mtdblock8
    mtdblock9
    mtdblock10
    mtdblock11
    mtdblock12
    mtdblock13
    mtdblock14
    mtdblock15
    mmcblk0
    `-mmcblk0p1  ext4         linux  20fc1eee-2485-a159-a346-5deada1421b2
    mmcblk0boot0
    mmcblk0boot1
    mmcblk1
    |-mmcblk1p1  vfat         BOOT   D2E8-E03A                             119.5M     5% /run/media/BOOT-mmcblk1p1
    `-mmcblk1p2  ext4         rootfs 42af20b1-d317-41bb-8965-bd50dd615d2d    7.9G    40% /
    root@j721e-evm:~# mount /dev/mmcblk0p1 /mnt/sd/
    [   91.884678] EXT4-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
    [   91.894128] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Quota mode: none.
    root@j721e-evm:~# [   95.085950] EXT4-fs error (device mmcblk0p1): ext4_validate_block_bitmap:428: comm ext4lazyinit: bg 24: block 786432: invalid block bitmap
    [   95.099126] EXT4-fs (mmcblk0p1): Remounting filesystem read-only
    [   95.105337] EXT4-fs error (device mmcblk0p1): ext4_validate_block_bitmap:428: comm ext4lazyinit: bg 7: block 229825: invalid block bitmap
    
    root@j721e-evm:~#
    root@j721e-evm:~# lsblk -f
    NAME         FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
    sda          ext4                6bef9e19-bd68-452b-947a-40089dfee101   23.7M     0% /run/media/sda
    sdb          ext4                f6d8ad18-5f9d-41b4-b673-7288ea649f1a   21.6G    21% /run/media/sdb
    mtdblock0
    mtdblock1
    mtdblock2
    mtdblock3
    mtdblock4
    mtdblock5
    mtdblock6
    mtdblock7
    mtdblock8
    mtdblock9
    mtdblock10
    mtdblock11
    mtdblock12
    mtdblock13
    mtdblock14
    mtdblock15
    mmcblk0
    `-mmcblk0p1  ext4         linux  20fc1eee-2485-a159-a346-5deada1421b2  429.6M    94% /mnt/sd
    mmcblk0boot0
    mmcblk0boot1
    mmcblk1
    |-mmcblk1p1  vfat         BOOT   D2E8-E03A                             119.5M     5% /run/media/BOOT-mmcblk1p1
    `-mmcblk1p2  ext4         rootfs 42af20b1-d317-41bb-8965-bd50dd615d2d    7.9G    40% /
    root@j721e-evm:~# ls /mnt/sd/
    [  216.587164] EXT4-fs error (device mmcblk0p1): ext4_readdir:258: inode #2: block 29636: comm ls: path /mnt/sd: bad entry in directory: rec_len % 4 != 0 - offset=0, inode=2114701757, rec_len=3102, size=4096 fake=0
    root@j721e-evm:~#
    

  • No errors were found during burning either.

  • Hi pingping,

    These error may come because corruption in the emmc due to some abrupt shut down as well.

    on how many sample you are seeing this behaviour also can you share the full emmc boot logs to make sure kernal command line is updated.

    Regards
    Diwakar