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.

AM572x SD card fails in kernel

Other Parts Discussed in Thread: DRA752

Hello,

We are using u-boot 2015.07, kernel 4.1.18, DRA752-GP ES1.1, and have configured both the bootloader and kernel with settings generated by the PinMux tool - genericFileFormatIOdelay.txt and genericFileFormatPadConf.txt.

While attempting to boot from a Micro SD card, the bootloader is able to read the micro sd card and load both the kernel and initramfs into memory.  The kernel is then started, initramfs mounted, and the init shell script executed.  The init shell script then attempts to mount the root file system from the micro sd card but the device is non-existent.

Could anyone please take a look athe the boot log below my name and help us troubleshoot this problem?

Thanks.

Wilson

#############################

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.18-gbbe8cfc (...) (gcc version 4.9.2 (GCC) ) #1 SMP PREEMPT Tue Oct 11 15:53:50 EDT 2016
[ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine model: TI AM572x
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
[ 0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
[ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
[ 0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
[ 0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
[ 0.000000] cma: Reserved 24 MiB at 0x00000000fe400000
[ 0.000000] Forcing write-allocate cache policy for SMP
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] OMAP4: Map 0x00000000ffd00000 to fe600000 for dram barrier
[ 0.000000] DRA752 ES1.1
[ 0.000000] PERCPU: Embedded 12 pages/cpu @ee532000 s17088 r8192 d23872 u49152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 472658
[ 0.000000] Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 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: 1679372K/1897472K available (6327K kernel code, 288K rwdata, 2248K rodata, 2124K init, 258K bss, 29684K reserved, 188416K cma-reserved, 1291264K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0868074 (8577 kB)
[ 0.000000] .init : 0xc0869000 - 0xc0a7c000 (2124 kB)
[ 0.000000] .data : 0xc0a7c000 - 0xc0ac4228 ( 289 kB)
[ 0.000000] .bss : 0xc0ac7000 - 0xc0b07924 ( 259 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] OMAP clockevent source: timer1 at 32768 Hz
[ 0.000000] clocksource 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65535999984741ns
[ 0.000000] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.000427] Architected cp15 timer(s) running at 6.14MHz (virt).
[ 0.000427] clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[ 0.000462] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[ 0.000472] Switching to timer-based delay loop, resolution 162ns
[ 0.000995] Console: colour dummy device 80x30
[ 0.001017] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[ 0.001030] pid_max: default: 32768 minimum: 301
[ 0.001111] Security Framework initialized
[ 0.001147] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001157] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001691] Initializing cgroup subsys blkio
[ 0.001705] Initializing cgroup subsys memory
[ 0.001730] Initializing cgroup subsys devices
[ 0.001742] Initializing cgroup subsys freezer
[ 0.001755] Initializing cgroup subsys perf_event
[ 0.001776] CPU: Testing write buffer coherency: ok
[ 0.002024] /cpus/cpu@0 missing clock-frequency property
[ 0.002075] /cpus/cpu@1 missing clock-frequency property
[ 0.002086] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002126] Setting up static identity map for 0x800082c0 - 0x80008318
[ 0.060683] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.060751] Brought up 2 CPUs
[ 0.060764] SMP: Total of 2 processors activated (24.59 BogoMIPS).
[ 0.060771] CPU: All CPU(s) started in SVC mode.
[ 0.061146] devtmpfs: initialized
[ 0.085467] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[ 0.086268] omap_hwmod: l3_main_2 using broken dt data from ocp
[ 0.280513] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.284449] pinctrl core: initialized pinctrl subsystem
[ 0.285248] NET: Registered protocol family 16
[ 0.286166] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.310645] cpuidle: using governor ladder
[ 0.340672] cpuidle: using governor menu
[ 0.348683] OMAP GPIO hardware version 0.1
[ 0.355054] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
[ 0.375870] No ATAGs?
[ 0.375902] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.375911] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.376364] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[ 0.376372] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[ 0.376943] OMAP DMA hardware revision 0.0
[ 0.416143] edma 43300000.edma: memcpy is disabled
[ 0.420965] edma 43300000.edma: TI EDMA DMA engine driver
[ 0.423706] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver
[ 0.427887] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[ 0.428064] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[ 0.428223] omap-iommu 58882000.mmu: 58882000.mmu registered
[ 0.428389] omap-iommu 55082000.mmu: 55082000.mmu registered
[ 0.428644] omap-iommu 41501000.mmu: 41501000.mmu registered
[ 0.428821] omap-iommu 41502000.mmu: 41502000.mmu registered
[ 0.429029] vgaarb: loaded
[ 0.429409] SCSI subsystem initialized
[ 0.429919] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/i2c1_pins_default, deferring probe
[ 0.429952] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/i2c2_pins_default, deferring probe
[ 0.430384] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
[ 0.430792] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
[ 0.430952] media: Linux media interface: v0.10
[ 0.431005] Linux video capture interface: v2.00
[ 0.431045] pps_core: LinuxPPS API ver. 1 registered
[ 0.431052] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.431075] PTP clock support registered
[ 0.431646] omap-mailbox 4883c000.mailbox: omap mailbox rev 0x400
[ 0.431929] omap-mailbox 4883e000.mailbox: omap mailbox rev 0x400
[ 0.432212] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[ 0.432489] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[ 0.432723] Advanced Linux Sound Architecture Driver Initialized.
[ 0.433524] Switched to clocksource arch_sys_counter
[ 0.443363] NET: Registered protocol family 2
[ 0.443964] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.444029] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.444154] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.444202] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.444234] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.444386] NET: Registered protocol family 1
[ 0.444615] RPC: Registered named UNIX socket transport module.
[ 0.444624] RPC: Registered udp transport module.
[ 0.444630] RPC: Registered tcp transport module.
[ 0.444636] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.522662] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[ 0.522707] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[ 0.524722] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.524808] audit: initializing netlink subsys (disabled)
[ 0.524842] audit: type=2000 audit(0.519:1): initialized
[ 0.531868] VFS: Disk quotas dquot_6.6.0
[ 0.532033] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.534104] NFS: Registering the id_resolver key type
[ 0.534133] Key type id_resolver registered
[ 0.534141] Key type id_legacy registered
[ 0.534201] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.535553] NET: Registered protocol family 38
[ 0.535636] bounce: pool size: 64 pages
[ 0.535656] io scheduler noop registered
[ 0.535669] io scheduler deadline registered
[ 0.535707] io scheduler cfq registered (default)
[ 0.539097] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[ 0.572428] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
[ 0.572441] pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
[ 0.572452] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[ 0.572462] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.572565] pci 0000:00:00.0: IOMMU is currently not supported for PCI
[ 0.572828] PCI: bus0: Fast back to back transfers disabled
[ 0.572952] PCI: bus1: Fast back to back transfers enabled
[ 0.573043] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
[ 0.573057] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
[ 0.573069] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.577684] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.580606] console [ttyS2] disabled
[ 0.580649] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 301, base_baud = 3000000) is a 8250
[ 1.517006] console [ttyS2] enabled
[ 1.521525] [drm] Initialized drm 1.1.0 20060810
[ 1.534515] brd: module loaded
[ 1.541654] loop: module loaded
[ 1.545712] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.603553] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
[ 1.609679] davinci_mdio 48485000.mdio: detected phy mask fffffffc
[ 1.620195] libphy: 48485000.mdio: probed
[ 1.624249] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver Micrel KSZ8081 or KSZ8091
[ 1.633872] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
[ 1.644128] cpsw 48484000.ethernet: Random MACID = 1e:e1:f4:5b:e3:d0
[ 1.651217] cpsw 48484000.ethernet: cpsw: Random MACID = 32:b2:bb:6c:a9:63
[ 1.659231] mousedev: PS/2 mouse device common for all mice
[ 1.664989] i2c /dev entries driver
[ 1.671739] omap_hsmmc 4809c000.mmc: Got CD GPIO
[ 1.714617] reg-fixed-voltage fixedregulator-vdd_3v3: Failed to resolve vin-supply for vdd_3v3
[ 1.743870] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.750612] Alarm: Major: 501; Minor: 0
[ 1.755759] davinci-mcasp 48468000.mcasp: ERRATA i868 workaround is enabled
[ 1.763325] oprofile: using timer interrupt.
[ 1.767875] Initializing XFRM netlink socket
[ 1.772180] NET: Registered protocol family 17
[ 1.776687] NET: Registered protocol family 15
[ 1.781215] Key type dns_resolver registered
[ 1.785617] omap_voltage_late_init: Voltage driver support not added
[ 1.792213] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.voltdm
[ 1.798525] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.voltdm
[ 1.804855] omap_voltdm 4a003b20.voltdm: Unable to get vdd regulator:-517
[ 1.811675] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
[ 1.820449] cpu cpu0: cpu0 clock notifier not ready, retry
[ 1.826097] Power Management for TI OMAP4+ devices.
[ 1.831207] ThumbEE CPU extension supported.
[ 1.835530] Registering SWP/SWPB emulation handler
[ 1.841706] dmm 4e000000.dmm: workaround for errata i878 in use
[ 1.849197] dmm 4e000000.dmm: initialized all PAT entries
[ 1.855883] palmas 0-0058: Irq flag is 0x00000008
[ 2.873544] omap_i2c 48070000.i2c: timeout waiting for bus ready
[ 2.879582] palmas 0-0058: POLARITY_CTRL updat failed: -110
[ 2.885504] palmas: probe of 0-0058 failed with error -110
[ 2.891050] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[ 2.897321] omap_i2c 48072000.i2c: bus 1 rev0.12 at 400 kHz
[ 2.904005] omap_hsmmc 4809c000.mmc: Got CD GPIO
[ 2.934741] reg-fixed-voltage fixedregulator-vdd_3v3: Failed to resolve vin-supply for vdd_3v3
[ 2.963815] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.voltdm
[ 2.970110] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.voltdm
[ 2.976441] omap_voltdm 4a003b20.voltdm: Unable to get vdd regulator:-517
[ 2.983263] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
[ 2.992034] cpu cpu0: cpu0 clock notifier not ready, retry
[ 2.997789] hctosys: unable to open rtc device (rtc0)
[ 3.015229] pbias_mmc_omap5: disabling
[ 3.019004] vdd_3v3: disabling
[ 3.022269] ALSA device list:
[ 3.025262] No soundcards found.
[ 3.030449] Freeing unused kernel memory: 2124K (c0869000 - c0a7c000)
Mounting /proc and /sys
e2fsck: No such file or directory while trying to open /dev/mmcblk0p2
Possibly non-existent device?
mount: mounting /dev/mmcblk0p2 on /os_rootfs failed: No such file or directory

  • The software team have been notified. They will respond here.
  • Hi Wilson,

    How did you create the SD card? Did you use the create-sdcard.sh script provided with the TI SDK (also which SDK are you using?) ?

    Best Regards,
    Yordan
  • Yordan,

    We are using Processor SDK 02.00.02.11, ELDK 5.8 toolchain, and the SD card was partitioned by means of the sfdisk tool.  MLO and u-boot.img were then copied to the first (fat32) partition and the root file system installed on the second (ext4) partition.  We have successfully created the SD card for our AM572x EVM but are having issues booting on our custom board.

    The bootloader and kernel have been updated to the pixmux configuration generated by the PinMux tool.  The bootloader is able to see the SD card but Linux does not find the device, no /dev/mmcblk*.

    Thanks for your help.

    Wilson

  • Hi Wilson,

    Can you fsck your sdcard? Does the behavior of your system change?

    If fsck does not work. Can you try creating your sdcard with the create-sdcard.sh from our SDK? Also it could be a good idea to try a different sd card.  What I see from the create-sdcard.sh, that is different from what you do is:

        ################################################################################

    Now making 2 partitions

    ################################################################################

    EOM

    dd if=/dev/zero of=$DRIVE bs=1024 count=1024

    SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`

    echo DISK SIZE - $SIZE bytes

    parted -s $DRIVE mklabel msdos

    parted -s $DRIVE unit cyl mkpart primary fat32 -- 0 9

    parted -s $DRIVE set 1 boot on

    parted -s $DRIVE unit cyl mkpart primary ext2 -- 9 -2

    cat << EOM

    ################################################################################

    Partitioning Boot

    ################################################################################

    EOM

    mkfs.vfat -F 32 -n "boot" ${DRIVE}${P}1

    cat << EOM

    ################################################################################

    Partitioning rootfs

    ################################################################################

    EOM

    mkfs.ext3 -L "rootfs" ${DRIVE}${P}2

    sync

    sync

    INSTALLSTARTHERE=n

    fi

    #Break between partitioning and installing file system

    cat << EOM 

    Best Regards, 
    Yordan

  • Thanks, Yordan.

    The problem has been resolved.  In our case, it was an incorrect value in the i2c1 pinctrl (pinmux) configuration.

    Wilson

  • Thanks for updating the thread.

    Best Regards,
    Yordan