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: Kernel Not Booting via EMMC

Part Number: PROCESSOR-SDK-AM335X

Tool/software:

Hello ALL,

I am facing an issue in booting kernel(4.9.59) u-boot (2023.04(latest TISDK 9.1)) via eMMC.. just to cross verify. but if i boot via SD card i am able to boot successfully.

Below is the log where i am not able to boot via eMMC.

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.59-g8b65c0d22f (sem@ubuntu) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #2 PREEMPT Mon Mar 20 23:25:07 PDT 2023
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: TI AM335x EVM
[ 0.000000] cma: Reserved 48 MiB at 0xbd000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (neon)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260416
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID= rw rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 978392K/1048576K available (7168K kernel code, 280K rwdata, 1988K rodata, 1024K init, 274K bss, 21032K reserved, 49152K cma-reserved, 212992K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0800000 (8160 kB)
[ 0.000000] .init : 0xc0a00000 - 0xc0b00000 (1024 kB)
[ 0.000000] .data : 0xc0b00000 - 0xc0b46390 ( 281 kB)
[ 0.000000] .bss : 0xc0b46390 - 0xc0b8acdc ( 275 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000029] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000078] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000105] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000484] clocksource_probe: no matching clocksources found
[ 0.000824] Console: colour dummy device 80x30
[ 0.000889] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[ 0.067772] pid_max: default: 32768 minimum: 301
[ 0.068039] Security Framework initialized
[ 0.068129] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.068158] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.069894] CPU: Testing write buffer coherency: ok
[ 0.070599] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.076057] devtmpfs: initialized
[ 0.105740] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.106534] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.106589] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.113642] pinctrl core: initialized pinctrl subsystem
[ 0.115953] NET: Registered protocol family 16
[ 0.120454] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.153748] omap_hwmod: debugss: _wait_target_disable failed
[ 0.237857] cpuidle: using governor ladder
[ 0.267839] cpuidle: using governor menu
[ 0.283277] OMAP GPIO hardware version 0.1
[ 0.322971] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.388010] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.393313] SCSI subsystem initialized
[ 0.394301] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 0.394667] pps_core: LinuxPPS API ver. 1 registered
[ 0.394693] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.394758] PTP clock support registered
[ 0.394879] EDAC MC: Ver: 3.0.0
[ 0.397382] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.399568] Bluetooth: Core ver 2.22
[ 0.399660] NET: Registered protocol family 31
[ 0.399681] Bluetooth: HCI device and connection manager initialized
[ 0.399716] Bluetooth: HCI socket layer initialized
[ 0.399745] Bluetooth: L2CAP socket layer initialized
[ 0.399775] Bluetooth: SCO socket layer initialized
[ 0.402260] clocksource: Switched to clocksource timer1
[ 0.428688] NET: Registered protocol family 2
[ 0.430374] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.430609] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.430825] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.431039] UDP hash table entries: 512 (order: 1, 8192 bytes)
[ 0.431109] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
[ 0.431442] NET: Registered protocol family 1
[ 0.433093] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 1.963617] VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6
[ 1.971766] Please append a correct "root=" boot option; here are the available partitions:
[ 1.980717] b300 31178752 mmcblk0 [ 1.984839] driver: mmcblk
[ 1.987804] b301 31154654 mmcblk0p1 b762c638-01[ 1.993283]
[ 1.994876] b310 3702784 mmcblk1 [ 1.998906] driver: mmcblk
[ 2.001860] b311 71680 mmcblk1p1 3f11fbc6-01[ 2.007406]
[ 2.009002] b312 1048576 mmcblk1p2 3f11fbc6-02[ 2.014440]
[ 2.016030] b313 1048576 mmcblk1p3 3f11fbc6-03[ 2.021426]
[ 2.023046] b314 1 mmcblk1p4 [ 2.027441]
[ 2.029027] b315 51200 mmcblk1p5 3f11fbc6-05[ 2.034457]
[ 2.036046] b316 1458559 mmcblk1p6 3f11fbc6-06[ 2.041441]
[ 2.043062] b330 2048 mmcblk1boot1 [ 2.047548] (driver?)
[ 2.050045] b320 2048 mmcblk1boot0 [ 2.054562] (driver?)
[ 2.057061] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.065764] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

please let me know what i need to change in enviornment viable.

  • Hi Manu,

    just on a quick look your kernel options look strange to me:

    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID= rw rootfstype=ext4 rootwait

    And that is also where the kernel starts to complain, right?

    1.963617] VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6

    It just can't find the root file system. Should this be on eMMC too?

    Regards, Frank

  • ,

    And that is also where the kernel starts to complain, right?

    Yes, what is the argument that it has to pass in boot arguments

    And that is also where the kernel starts to complain, right?

    Yes

    My current bootargs,

    "boot=mmc\0" \
    "bootpart=0:2\0" \
    "flagpart=1:5\0" \
    "bootdir=/boot\0" \
    "bootfile=zImage\0" \
    "fdtfile=undefined\0" \
    "console=ttyO0,115200n8\0" \
    "partitions=" \
    "uuid_disk=${uuid_gpt_disk};" \
    "name=bootloader,start=384K,size=1792K," \
    "uuid=${uuid_gpt_bootloader};" \
    "name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}\0" \
    "optargs=\0" \
    "ramroot=/dev/ram0 rw\0" \
    "ramrootfstype=ext2\0" \
    "spiroot=/dev/mtdblock4 rw\0" \
    "spirootfstype=jffs2\0" \
    "spisrcaddr=0xe0000\0" \
    "spiimgsize=0x362000\0" \
    "spibusno=0\0" \
    "mmcargs=setenv bootargs console=${console} " \
    "${optargs} " \
    "root=${mmcroot} " \
    "rootfstype=${mmcrootfstype}\0" \
    "spiargs=setenv bootargs console=${console} " \
    "${optargs} " \
    "root=${spiroot} " \
    "rootfstype=${spirootfstype}\0" \
    "ramargs=setenv bootargs console=${console} " \
    "${optargs} " \
    "root=${ramroot} " \
    "rootfstype=${ramrootfstype}\0" \
    "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
    "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
    "loaduimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
    "mmcboot=echo Booting  mmc ...; " \
    "run mmcargs; " \
    "run args_mmc; " \
    "run mmcloados; \0 " \
    ' "spiboot=echo Booting from spi ...; " \
    "run spiargs; " \
    "sf probe ${spibusno}:0; " \
    "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \
    "bootz ${loadaddr}\0" \
    "ramboot=echo Booting from ramdisk ...; " \
    "run ramargs; " \
    "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
    "findfdt=setenv fdtfile am335x-evmsk.dtb\0" \
    "init_console=setenv console ttyO0,115200n8\0" \

    Is ther anything to change? please let me know

  • Hi Manu,

    You mentioned you use SDK9.1 U-Boot, but your U-Boot ENV doesn't seem to be the default setting in the SDK. It doesn't have the macro to detect the MMC UUID, which leads to the PARTUUID parameter not set properly for the kernel. Attached below is the default U-Boot ENV in the SDK9.1 U-Boot for AM335x.

    arch=arm
    baudrate=115200
    board=am335x
    board_name=A335BNLT
    board_rev=000C
    board_serial=2032BBBG0907
    boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
    boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr -q ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
    boot_efi_bootmgr=if fdt addr -q ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr;fi
    boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
    boot_fdt=try
    boot_net_usb_start=usb start
    boot_prefixes=/ /boot/
    boot_script_dhcp=boot.scr.uimg
    boot_scripts=boot.scr.uimg boot.scr
    boot_syslinux_conf=extlinux/extlinux.conf
    boot_targets=mmc0 mmc1 nand0 usb0 pxe dhcp 
    bootcmd=run findfdt; run init_console; run finduuid; run distro_bootcmd
    bootcmd_dhcp=devtype=dhcp; run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr -q ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
    bootcmd_mmc0=devnum=0; run mmc_boot
    bootcmd_mmc1=devnum=1; run mmc_boot
    bootcmd_nand=run nandboot
    bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
    bootcmd_usb0=devnum=0; run usb_boot
    bootcount=3
    bootdelay=2
    bootm_size=0x10000000
    console=ttyO0,115200n8
    cpu=armv7
    dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw raw 0x1700 0x6900;spl-os-args fat 1 1;spl-os-image fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw raw 0x1700 0x6900;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
    dfu_alt_info_nand=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.backup3 part 0 4;u-boot part 0 5;u-boot-spl-os part 0 6;kernel part 0 8;rootfs part 0 9
    dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
    distro_bootcmd=extension_need_init=; setenv extension_overlay_addr ${fdtoverlay_addr_r}; for target in ${boot_targets}; do run bootcmd_${target}; done
    dtboaddr=0x89000000
    efi_dtb_prefixes=/ /dtb/ /dtb/current/
    eth1addr=e4:15:f6:f9:e8:67
    eth2addr=e4:15:f6:f9:e8:65
    eth3addr=de:ad:be:ef:00:01
    ethaddr=e4:15:f6:f9:e8:65
    extension_apply=if fdt addr -q ${fdt_addr_r}; then extension apply all; fi
    extension_init=echo Extension init...; if ${extension_need_init}; then extension_need_init=false; extension scan; fi
    extension_overlay_cmd=load ${devtype} ${devnum}:${distro_bootpart} ${extension_overlay_addr} ${prefix}${extension_overlay_name}
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=9df2cb20
    fdtfile=undefined
    fdtoverlay_addr_r=0x89000000
    findfdt=if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb; fi; if test $board_name = A335BNLT; then setenv fdtfile am335x-boneblack.dtb; fi; if test $board_name = A335PBGL; then setenv fdtfile am335x-pocketbeagle.dtb; fi; if test $board_name = BBBW; then setenv fdtfile am335x-boneblack-wireless.dtb; fi; if test $board_name = BBG1; then setenv fdtfile am335x-bonegreen.dtb; fi; if test $board_name = BBGW; then setenv fdtfile am335x-bonegreen-wireless.dtb; fi; if test $board_name = BBBL; then setenv fdtfile am335x-boneblue.dtb; fi; if test $board_name = BBEN; then setenv fdtfile am335x-sancloud-bbe.dtb; fi; if test $board_name = BBELITE; then setenv fdtfile am335x-sancloud-bbe-lite.dtb; fi; if test $board_name = BBE_EX_WIFI; then setenv fdtfile am335x-sancloud-bbe-extended-wifi.dtb; fi; if test $board_name = A33515BB; then setenv fdtfile am335x-evm.dtb; fi; if test $board_name = A335X_SK; then setenv fdtfile am335x-evmsk.dtb; fi; if test $board_name = A335_ICE; then setenv fdtfile am335x-icev2.dtb; if test $ice_mii = mii; then setenv pxe_label_override Pruss; fi;fi; if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi; 
    finduuid=part uuid mmc 0:2 uuid
    ice_mii=mii
    init_console=if test $board_name = A335_ICE; then setenv console ttyO3,115200n8;else setenv console ttyO0,115200n8;fi;
    kernel_addr_r=0x82000000
    load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
    loadaddr=0x82000000
    loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
    mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
    mtdids=nand0=nand.0
    mtdparts=mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)
    nandargs=setenv bootargs console=${console} ${optargs} root=${nandroot} rootfstype=${nandrootfstype}
    nandboot=echo Booting from nand ...; run nandargs; nand read ${fdtaddr} NAND.u-boot-spl-os; nand read ${loadaddr} NAND.kernel; bootz ${loadaddr} - ${fdtaddr}
    nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048
    nandrootfstype=ubifs rootwait
    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}
    netloadfdt=tftp ${fdtaddr} ${fdtfile}
    netloadimage=tftp ${loadaddr} ${bootfile}
    nfsopts=nolock
    partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
    pxefile_addr_r=0x80100000
    ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
    ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
    ramdisk_addr_r=0x88080000
    ramroot=/dev/ram0 rw
    ramrootfstype=ext2
    rdaddr=0x88080000
    rootpath=/export/rootfs
    scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
    scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then part uuid ${devtype} ${devnum}:${distro_bootpart} distro_bootpart_uuid ; run scan_dev_for_boot; fi; done; setenv devplist
    scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; run extension_init; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; run extension_apply; fi;done;run boot_efi_bootmgr;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootarm.efi; then echo Found EFI removable media binary efi/boot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
    scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo EXTLINUX FAILED: continuing...; fi
    scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
    scriptaddr=0x80000000
    serial#=2032BBBG0907
    soc=am33xx
    spiargs=setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype=${spirootfstype}
    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; bootz ${loadaddr}
    spibusno=0
    spiimgsize=0x362000
    spiroot=/dev/mtdblock4 rw
    spirootfstype=jffs2
    spisrcaddr=0xe0000
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
    stderr=serial@0
    stdin=serial@0
    stdout=serial@0
    usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
    usbnet_devaddr=de:ad:be:ef:00:01
    vendor=ti
    ver=U-Boot 2023.04-gd74d0993e2 (Oct 18 2023 - 17:49:46 +0000)
    
    Environment size: 8905/131068 bytes
    => 
    

  • while booting into kernel i am finding a log like below,

    Booting from mmc ...

    ** Invalid partition 2 **
    37552 bytes read in 9 ms (4 MiB/s)
    ## Error: "get_overlay_mmc" not defined
    Kernel image @ 0x82000000 [ 0x000000 - 0x327a88 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000

    will it be a cause for that?

  • ## Error: "get_overlay_mmc" not defined

    Despite this message, are you able to boot into Linux successfully?

  •  and ,

    However i am able to booting linux kernel (previous 4.9) with latest u-boot (2023.04).. but if i use the latest kernel from TISDK 9.1 for am335x 

    i am not able to boot to linux kernel (6.1) may i know what are all changes that has been updated from last version of TISDK to latest 9.1 ?

    please let me know what are all the changes that we need to change?

    steps that i follwed is 

    i entered into kernel devshell by,

    bitbake -c devshell virtual/kernel (saved with defaulchanges)

    bitbake savedefconfig 

    coped defconfig into "sources/meta-ti/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/ti33x/defconfig"

    Compile and build kernel and tried to boot kernel in custom board..

    i am able to see only "Starting Kernel......" after this we are not able to see any kernel related logs..

    mmc0 is current device
    micro SD card found
    <DIR> 4096 .
    <DIR> 4096 ..
    100278 am335x-evmsk.dtb
    7647744 zImage
    kernel image is present in sdcard
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    7647744 bytes read in 990 ms (7.4 MiB/s)
    loaduimage .
    100278 bytes read in 19 ms (5 MiB/s)
    Booting from mmc ...
    100278 bytes read in 19 ms (5 MiB/s)
    ## Error: "get_overlay_mmc" not defined
    Kernel image @ 0x82000000 [ 0x000000 - 0x74b200 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
    Loading Device Tree to 8ffe4000, end 8ffff7b5 ... OK
    Working FDT set to 8ffe4000

    Starting kernel ...

    please let me know if there is any chnages that i missed.. 

    please help on this

  • Hi Manu,

    100278 am335x-evmsk.dtb
    7647744 zImage
    kernel image is present in sdcard
    switch to partitions #0, OK
    mmc0 is current device

    Is this booting from SD card? Early in this thread you mentioned you were able to boot from SD card but failed from eMMC. Are you having issues in booting from SD card now?

  • Yes Liu,

    I was trying on both SD card and eMMC.. now i am able to boot from eMMC..(previous kernel 4.9 from latest TSDK 9.1 u-boot 2023) but with latest kernel 6.1 and latest u-boot 20203(TISDK 9.1) we are not able make kernel up.. 

    Request to please refer as i have opened a new ticket https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1399595/processor-sdk-am335x-kernel-not-coming-up-stuck-at-starting-kernel-tisdk-9-1 for further communication on the same

  • Hi Manu,

    I see the new ticket has been assigned to our Yocto expert. I will watch the new ticket and comment whenever necessary.