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.

Linux/AM3351: Kernel boot hangs

Part Number: AM3351
Other Parts Discussed in Thread: AM3352, TPS65910

Tool/software: Linux

Hi, i have a custom board with ti am3351 processor, 

i am using ti-processor-sdk 03.00.00.04

kernel blocked at "waiting for root device PARTUUID=0007D795-02" print

please let me know what are the changes need to do.

thankyou.

  • Please post details. What is the boot device? What is the board configuration? Also post the boot log file.
  • hi i am using mmc boot for custom board, there is no EEprom in my case,

    i am using ti-processor-sdk -am335x-03.00.00.04 sdk

    /***************PinMux Details for MMC1 in Device tree *********/
    arch/arm/boot/dts/am335x-evmsk.dts


    mmc1_pins: pinmux_mmc1_pins {
    pinctrl-single,pins = <
    0xf0 ( PIN_INPUT | MUX_MODE0 ) /* (H19) mmc0_dat3.mmc0_dat3 */
    0xf4 ( PIN_INPUT | MUX_MODE0 ) /* (H18) mmc0_dat2.mmc0_dat2 */
    0xf8 ( PIN_INPUT | MUX_MODE0 ) /* (H17) mmc0_dat1.mmc0_dat1 */
    0xfc ( PIN_INPUT | MUX_MODE0 ) /* (G18) mmc0_dat0.mmc0_dat0 */
    0x100 ( PIN_INPUT | MUX_MODE0 ) /* (G19) mmc0_clk.mmc0_clk */
    0x104 ( PIN_INPUT | MUX_MODE0 ) /* (G17) mmc0_cmd.mmc0_cmd */
    0x160 (PIN_INPUT | MUX_MODE5) /* (B16) spi0_cs1.gpio0_6 */
    >;
    };

    &mmc1 {
    status = "okay";
    vmmc-supply = <&vmmc_reg>;
    bus-width = <4>;
    pinctrl-names = "default";
    pinctrl-0 = <&mmc1_pins>;
    cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
    };
    /***********************************************************************************/

    ////////////i hard coded dtb file name in path: u-boot directory include/configs/am335x_evm.h

    #define CONFIG_EXTRA_ENV_SETTINGS \
    DEFAULT_LINUX_BOOT_ENV \
    DEFAULT_MMC_TI_ARGS \
    "boot_fdt=try\0" \
    "bootpart=0:2\0" \
    "bootdir=/boot\0" \
    "bootfile=zImage\0" \
    "fdtfile=am335x-evmsk.dtb\0" \ //hard coded path
    "console=ttyO0,115200n8\0" \
    "partitions=" \
    "uuid_disk=${uuid_gpt_disk};" \
    "name=rootfs,start=2MiB,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" \


    //////////////////please check below log s for ENV , boot log Messages
    /*******************************************************printenv Log Start*********************************************************/
    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 ${fdt_addr_r}; then bootefi ${i
    boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.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_targets=mmc0 legacy_mmc0 mmc1 legacy_mmc1 nand0 pxe dhcp
    bootcmd=run findfdt; run init_console; run envboot; run distro_bootcmd
    bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi
    bootcmd_legacy_mmc0=setenv mmcdev 0; setenv bootpart 0:2 ; run mmcboot
    bootcmd_legacy_mmc1=setenv mmcdev 1; setenv bootpart 1:2 ; run mmcboot
    bootcmd_mmc0=setenv devnum 0; run mmc_boot
    bootcmd_mmc1=setenv devnum 1; run mmc_boot
    bootcmd_nand=run nandboot
    bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
    bootcount=2
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootfile=zImage
    bootm_size=0x10000000
    bootpart=0:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyO0,115200n8
    cpu=armv7
    dfu_alt_info_emmc=rawemmc raw 0 3751936
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x100;u-boot.img.raw raw 0x300 0x400;spl-os-args.raw raw 0x80 0x81
    dfu_alt_info_ram=kernel ram 0x80200000 0xD80000;fdt ram 0x80F80000 0x80000;ramdisk ram 0x81000000 0x4000000
    distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
    efi_dtb_prefixes=/ /dtb/ /dtb/current/
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run lo;
    eth1addr=de:ad:be:ef:00:01
    ethaddr=a0:f6:fd:28:0a:73
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=8ef3bed8
    fdtfile=am335x-evmsk.dtb
    findfdt=if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb; fi; if test $board_name = A335BNLT; then setenv fdtfile am335x-bo
    finduuid=part uuid mmc 0:2 uuid
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    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
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
    mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
    mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};run envboot; if run loadimage; then run mmcloados;fi;fi;
    mmcdev=0
    mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if;
    mmcrootfstype=ext4 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=rootfs,start=2MiB,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_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${de
    scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtbe
    scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/exi
    scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found e
    scriptaddr=0x80000000
    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@44e09000
    stdin=serial@44e09000
    stdout=serial@44e09000
    usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
    usbnet_devaddr=de:ad:be:ef:00:01
    vendor=ti
    ver=U-Boot 2016.05-00230-g120a8a3-dirty (Oct 12 2017 - 12:31:20 +0530)

    /*******************************************************printenv Log END*************************************/


    //////////////////please check below log s for boot log Messages
    /*******************************************************boot logs*************************************/

    Warning: ethernet@4a100000 using MAC address from ROM
    eth0: ethernet@4a100000
    Warning: usb_ether using MAC address from ROM
    , eth1: usb_ether

    Press SPACE to abort autoboot in 2 seconds
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0

    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...

    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0

    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0

    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    3661656 bytes read in 337 ms (10.4 MiB/s)
    40555 bytes read in 56 ms (707 KiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x37df58 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8ef2d000, end 8ef39e6a ... OK
    ft_board_setup

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.12-g3639bea54a (root@sridhar-ThinkCentre-M73) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #7 PREEM7
    [ 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] Machine model: TI AM335x EVM-SK
    [ 0.000000] cma: Reserved 24 MiB at 0x8d000000
    [ 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: 64960
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=0007d795-02 rw rootfstype=ext4 rootwait
    [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.000000] Memory: 224376K/262144K available (7095K kernel code, 292K rwdata, 2444K rodata, 288K init, 263K bss, 13192K reserved, 24576K c)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc0959034 (9541 kB)
    [ 0.000000] .init : 0xc095a000 - 0xc09a2000 ( 288 kB)
    [ 0.000000] .data : 0xc09a2000 - 0xc09eb248 ( 293 kB)
    [ 0.000000] .bss : 0xc09ed000 - 0xc0a2eed8 ( 264 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 19200000 Hz
    [ 0.000030] sched_clock: 32 bits at 19MHz, resolution 52ns, wraps every 111848106981ns
    [ 0.000079] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 99544814920 ns
    [ 0.000103] OMAP clocksource: timer1 at 19200000 Hz
    [ 0.001177] clocksource_probe: no matching clocksources found
    [ 0.001533] Console: colour dummy device 80x30
    [ 0.001588] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [ 0.001603] This ensures that you still see kernel messages. Please
    [ 0.001617] update your kernel commandline.
    [ 0.001650] Calibrating delay loop... 302.28 BogoMIPS (lpj=1511424)
    [ 0.057722] pid_max: default: 32768 minimum: 301
    [ 0.057987] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.058015] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.059472] Initializing cgroup subsys io
    [ 0.059534] Initializing cgroup subsys memory
    [ 0.059603] Initializing cgroup subsys devices
    [ 0.059637] Initializing cgroup subsys freezer
    [ 0.059669] Initializing cgroup subsys perf_event
    [ 0.059699] Initializing cgroup subsys pids
    [ 0.059761] CPU: Testing write buffer coherency: ok
    [ 0.060465] Setting up static identity map for 0x80008200 - 0x80008258
    [ 0.065463] devtmpfs: initialized
    [ 0.094813] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.128894] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.133260] omap_hwmod: d_can0: _wait_target_ready failed: -16
    [ 0.133284] omap_hwmod: d_can0: cannot be enabled for reset (3)
    [ 0.136855] omap_hwmod: d_can1: _wait_target_ready failed: -16
    [ 0.136873] omap_hwmod: d_can1: cannot be enabled for reset (3)
    [ 0.199266] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.203450] pinctrl core: initialized pinctrl subsystem
    [ 0.206274] NET: Registered protocol family 16
    [ 0.211559] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.237732] cpuidle: using governor ladder
    [ 0.267715] cpuidle: using governor menu
    [ 0.279145] OMAP GPIO hardware version 0.1
    [ 0.305474] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.369204] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.371210] reg-fixed-voltage fixedregulator@2: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_wl12xx_ge
    [ 0.378247] vgaarb: loaded
    [ 0.379553] SCSI subsystem initialized
    [ 0.380326] usbcore: registered new interface driver usbfs
    [ 0.380509] usbcore: registered new interface driver hub
    [ 0.380727] usbcore: registered new device driver usb
    [ 0.382008] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring e
    [ 0.382370] media: Linux media interface: v0.10
    [ 0.382533] Linux video capture interface: v2.00
    [ 0.382661] pps_core: LinuxPPS API ver. 1 registered
    [ 0.382680] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.382757] PTP clock support registered
    [ 0.383290] EDAC MC: Ver: 3.0.0
    [ 0.385876] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.386656] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.389475] clocksource: Switched to clocksource timer1
    [ 0.416813] NET: Registered protocol family 2
    [ 0.418470] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.418560] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.418629] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.418786] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.418834] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.419169] NET: Registered protocol family 1
    [ 0.420053] RPC: Registered named UNIX socket transport module.
    [ 0.420087] RPC: Registered udp transport module.
    [ 0.420104] RPC: Registered tcp transport module.
    [ 0.420120] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.422053] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.426588] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.447119] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.449066] NFS: Registering the id_resolver key type
    [ 0.449187] Key type id_resolver registered
    [ 0.449208] Key type id_legacy registered
    [ 0.449387] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.454076] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [ 0.454138] io scheduler noop registered
    [ 0.454171] io scheduler deadline registered
    [ 0.454584] io scheduler cfq registered (default)
    [ 0.458331] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.465489] backlight supply power not found, using dummy regulator
    [ 0.622617] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 0.631900] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [ 1.287750] console [ttyS0] enabled
    [ 1.293763] [drm] Initialized drm 1.1.0 20060810
    [ 1.301644] of_graph_get_next_endpoint(): no port node found in /ocp/lcdc@4830e000
    [ 1.310705] of_graph_get_next_endpoint(): no port node found in /ocp/lcdc@4830e000
    [ 1.319180] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 1.325944] [drm] No driver support for vblank timestamp query.
    [ 1.354955] Console: switching to colour frame buffer device 60x34
    [ 1.367253] tilcdc 4830e000.lcdc: fb0: frame buffer device
    [ 1.399545] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [ 1.423851] loop: module loaded
    [ 1.433170] libphy: Fixed MDIO Bus: probed
    [ 1.499549] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [ 1.505659] davinci_mdio 4a101000.mdio: no live phy, scanning all
    [ 1.512239] davinci_mdio: probe of 4a101000.mdio failed with error -5
    [ 1.535612] cpsw 4a100000.ethernet: Detected MACID = a0:f6:fd:28:0a:73
    [ 1.559422] cpsw 4a100000.ethernet: cpsw: Detected MACID = de:ad:be:ef:00:01
    [ 1.568311] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [ 1.575965] usbcore: registered new interface driver pegasus
    [ 1.581959] usbcore: registered new interface driver asix
    [ 1.587491] usbcore: registered new interface driver ax88179_178a
    [ 1.593758] usbcore: registered new interface driver cdc_ether
    [ 1.599871] usbcore: registered new interface driver smsc75xx
    [ 1.605783] usbcore: registered new interface driver smsc95xx
    [ 1.611727] usbcore: registered new interface driver net1080
    [ 1.617579] usbcore: registered new interface driver cdc_subset
    [ 1.623669] usbcore: registered new interface driver zaurus
    [ 1.629537] usbcore: registered new interface driver cdc_ncm
    [ 1.636987] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.643611] ehci-pci: EHCI PCI platform driver
    [ 1.648209] ehci-platform: EHCI generic platform driver
    [ 1.654055] ehci-omap: OMAP-EHCI Host Controller driver
    [ 1.659633] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 1.665871] ohci-pci: OHCI PCI platform driver
    [ 1.670586] ohci-platform: OHCI generic platform driver
    [ 1.677087] usbcore: registered new interface driver usb-storage
    [ 1.684193] mousedev: PS/2 mouse device common for all mice
    [ 1.691979] i2c /dev entries driver
    [ 1.699745] cpuidle: enable-method property 'ti,am3352' found operations
    [ 1.706979] sdhci: Secure Digital Host Controller Interface driver
    [ 1.713254] sdhci: Copyright(c) Pierre Ossman
    [ 1.718859] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.780199] Synopsys Designware Multimedia Card Interface Driver
    [ 1.787330] sdhci-pltfm: SDHCI platform and OF driver+-----------------------------+
    [ 1.796510] ledtrig-cpu: registered to indicate activ| |
    [ 1.803348] usbcore: registered new interface driver | Cannot open /dev/ttyUSB0! |
    [ 1.808908] usbhid: USB HID core driver | |
    [ 1.819965] NET: Registered protocol family 10 +-----------------------------+
    [ 1.827514] sit: IPv6 over IPv4 tunneling driver
    [ 1.834096] NET: Registered protocol family 17
    [ 1.839163] Key type dns_resolver registered
    [ 1.844048] omap_voltage_late_init: Voltage driver support not added
    [ 1.852670] ThumbEE CPU extension supported.
    [ 1.856988] Registering SWP/SWPB emulation handler
    [ 1.889873] tps65910 0-002d: No interrupt support, no core IRQ
    [ 1.897455] tps65910 0-002d: Error in configuring external control EN1
    [ 1.904128] tps65910 0-002d: Failed to initialise ext control config
    [ 1.911105] vrtc: failed to enable
    [ 1.914763] tps65910 0-002d: failed to register tps65910-pmic regulator
    [ 1.921515] tps65910-pmic: probe of tps65910-pmic failed with error -121
    [ 1.930237] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.937212] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 2.094947] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 2.132522] input: gpio_buttons@0 as /devices/platform/gpio_buttons@0/input/input0
    [ 2.142687] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 2.147662] hctosys: unable to open rtc device (rtc0)
    [ 2.161978] vbat: disabling
    [ 2.164945] lis3_reg: disabling
    [ 2.168091] vwl1271: disabling
    [ 2.171516] ALSA device list:
    [ 2.174488] No soundcards found.
    [ 2.180544] Waiting for root device PARTUUID=0007d795-02... ///////////Kernel Booting is stopped here
    [ 110.558232] random: nonblocking pool is initialized
    /***************************************************************************************************/

    /////////////////////:Please tell me where i need to set rootfs path( "/dev/mmcblkop2" )

    Thankyou,

  • Khageswararao,

    I suspect you have missed setting of "args_mmc" in your boot args:

    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}

    See all environment variables of my board in attachment.

    arch=arm
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    baudrate=115200
    board=am57xx
    board_name=am57xx_evm
    board_rev=A.20
    board_serial=40154P550058
    boot_fdt=try
    boot_fit=0
    bootcmd=if test ${dofastboot} -eq 1; then echo Boot fastboot requested, resetting dofastboot ...;setenv dofastboot 0; saveenv;echo Booting into fastboot ...; fastboot 1; fi;if test ${boot_fit} -eq 1; then run up;
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootfile=zImage
    bootm_size=0x10000000
    bootpart=0:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyO2,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 0x100;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.1
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x100;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;s1
    dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
    dfu_bufsiz=0x10000
    dofastboot=0
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv; then echo Loaded env from ${bootenvfile};run importbootenv;
    eth1addr=74:da:ea:49:e7:9d
    ethact=cpsw
    ethaddr=74:da:ea:49:e7:9c
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fdf1e958
    fdtfile=undefined
    findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $board_name = dra72x-revc; then setenv fdtfile dra72-e 
    finduuid=part uuid mmc ${bootpart} uuid
    fit_bootfile=fitImage
    fit_loadaddr=0x87000000
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadfit=run args_mmc; bootm ${loadaddr}#${fdtfile};
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test ${boot_fit} -eq 1; then run loadfit; else run mmcl;
    mmcdev=0
    mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the ;
    mmcrootfstype=ext4 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=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}
    partitions_android=uuid_disk=${uuid_gpt_disk};name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};name=bootloader,size=2304K,uuid=${uuid_gpt_bootloader};name=environment,size=256K,uuid=${uuid_gpt_environm}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rdaddr=0x88080000
    rootpath=/export/rootfs
    scriptaddr=0x80000000
    scsidevs=0
    soc=omap5
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
    stderr=serial@48020000
    stdin=serial@48020000
    stdout=serial@48020000
    update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
    usbtty=cdc_acm
    vendor=ti
    ver=U-Boot 2017.01-g590c7d7fe1 (Sep 26 2017 - 20:05:42 -0400)
    vram=16M
    
    

    BR

    Tsvetolin Shulev

  • I checked it look same as my env settings.
  • hi, eeprom is not there in my custom board,
    please suggest me what are the things we need to take care for sd card & Nand boot
  • The NAND timings are vendor specific and depends on the NAND chips which you are using. They are describe in the u-boot/arch/arm/cpu/armv7/omap-common/mem-common.c file. You can find an example of patch changing NAND timings at:
    lists.denx.de/.../215582.html
    But I suggest you to start with linked below guides about MMC and NAND booting:
    processors.wiki.ti.com/.../AM335x_PSP_User's_Guide
    processors.wiki.ti.com/.../AM335x_U-Boot_User's_Guide

    BR
    Tsvetolin Shulev