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.

AM3354: Issue in loading rootfs. Device hangs after the message "Waiting for root device /dev/mmcblk0p2..."

Part Number: AM3354

Hi,

    I'm booting my AM3354 based device from sd card. The device is able to read dtb and zImage from sd card boot partition, u-boot is successful, kernel boots and hangs while loading rootfs, not loading rootfs from root partition. Hangs after the log "Waiting for root device /dev/mmcblk0p2...".

Could you please guide me to resolve the issue. I've attached the logs and uEnv.txt for your reference.

Thanks,

Shanti

uEnv.txt:

displaylogo=if fatload mmc 0 80008000 logo.bmp; then bmp display 80008000; fi;

uenvcmd=run displaylogo; \
setenv bootargs 'console=ttyS0,115200 mem=511M fbcon=logo-pos:center fbcon=rotate:1 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait'; \
fatload mmc 0:1 80100000 zImage; \
fatload mmc 0:1 81000000 am335x-boneblack.dtb; \
bootz 80100000 - 81000000

-------------------------------------------

Boot logs:

switch to partitions #0, OK

mmc0 is current device

gpio: pin 54 (gpio 54) value is 1

Checking for: /uEnv.txt ...

reading uEnv.txt

354 bytes read in 8 ms (43 KiB/s)

gpio: pin 55 (gpio 55) value is 1

Loaded environment from uEnv.txt

Importing environment from mmc ...

Checking if uenvcmd is set ...

gpio: pin 56 (gpio 56) value is 1

Running uenvcmd ...

reading logo.bmp

202854 bytes read in 28 ms (6.9 MiB/s)

reading zImage

9286600 bytes read in 1062 ms (8.3 MiB/s)

reading am335x-boneblack.dtb

71138 bytes read in 16 ms (4.2 MiB/s)

Kernel image @ 0x80100000 [ 0x000000 - 0x8db3c8 ]

## Flattened Device Tree blob at 81000000

   Booting using the fdt blob at 0x81000000

   Loading Device Tree to 8ffeb000, end 8ffff5e1 ... OK


Starting kernel ...


[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.119+ (admin1@admin1-Precision-3650-Tower) (arm-none-linux-gnueabihf-gcc (Arm GNU Toolchain 11.3.Rel1) 11.3.1 20220712, GNU ld (Arm GNU Toolchain 11.3.Rel1) 2.38.20220708) #2 SMP PREEMPT Fri Dec 12 16:14:36 IST 2025
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 24 MiB at 0x9e000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fcfffff]
[    0.000000]   node   0: [mem 0x000000009fe00000-0x000000009fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000] On node 0, zone Normal: 256 pages in unavailable ranges
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] percpu: Embedded 13 pages/cpu s24148 r8192 d20908 u53248
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129410
[    0.000000] Kernel command line: console=ttyS0,115200 mem=511M fbcon=logo-pos:center fbcon=rotate:1 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 475076K/522240K available (9216K kernel code, 1298K rwdata, 4224K rodata, 1024K init, 515K bss, 22588K reserved, 24576K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000]     Trampoline variant of Tasks RCU enabled.
[    0.000000]     Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000002] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000022] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000363] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.001608] Console: colour dummy device 80x30
[    0.001672] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.048423] CPU: Testing write buffer coherency: ok
[    0.048489] CPU0: Spectre v2: using BPIALL workaround
[    0.048498] pid_max: default: 32768 minimum: 301
[    0.048607] LSM: Security Framework initializing
[    0.048637] Yama: becoming mindful.
[    0.048795] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.048813] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050123] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.051161] cblist_init_generic: Setting adjustable number of callback queues.
[    0.051172] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.051309] cblist_init_generic: Setting adjustable number of callback queues.
[    0.051316] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.051478] Setting up static identity map for 0x80100000 - 0x80100054
[    0.051675] rcu: Hierarchical SRCU implementation.
[    0.051683] rcu:     Max phase no-delay instances is 1000.
[    0.053366] smp: Bringing up secondary CPUs ...
[    0.053382] smp: Brought up 1 node, 1 CPU
[    0.053392] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.053403] CPU: All CPU(s) started in SVC mode.
[    0.054121] devtmpfs: initialized
[    0.068317] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.068779] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.068809] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.071046] pinctrl core: initialized pinctrl subsystem
[    0.072900] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.075600] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.076053] audit: initializing netlink subsys (disabled)
[    0.077124] thermal_sys: Registered thermal governor 'fair_share'
[    0.077138] thermal_sys: Registered thermal governor 'bang_bang'
[    0.077144] thermal_sys: Registered thermal governor 'step_wise'
[    0.077238] cpuidle: using governor ladder
[    0.077271] cpuidle: using governor menu
[    0.080509] audit: type=2000 audit(0.072:1): state=initialized audit_enabled=0 res=1
[    0.089602] OF: /ocp/target-module@47400000/usb@1400: could not get #interrupt-cells for /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@24
[    0.089721] OF: /ocp/target-module@47400000/usb@1400: could not get #interrupt-cells for /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@24
[    0.093000] No ATAGs?
[    0.093015] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.110391] iommu: Default domain type: Translated 
[    0.110407] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.111909] SCSI subsystem initialized
[    0.112188] usbcore: registered new interface driver usbfs
[    0.112243] usbcore: registered new interface driver hub
[    0.112291] usbcore: registered new device driver usb
[    0.112967] pps_core: LinuxPPS API ver. 1 registered
[    0.112977] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.112999] PTP clock support registered
[    0.114410] Bluetooth: Core ver 2.22
[    0.114475] NET: Registered PF_BLUETOOTH protocol family
[    0.114482] Bluetooth: HCI device and connection manager initialized
[    0.114496] Bluetooth: HCI socket layer initialized
[    0.114505] Bluetooth: L2CAP socket layer initialized
[    0.114526] Bluetooth: SCO socket layer initialized
[    0.114549] NetLabel: Initializing
[    0.114554] NetLabel:  domain hash size = 128
[    0.114559] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.114633] NetLabel:  unlabeled traffic allowed by default
[    0.115548] clocksource: Switched to clocksource dmtimer
[    0.115898] VFS: Disk quotas dquot_6.6.0
[    0.115958] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.126462] NET: Registered PF_INET protocol family
[    0.126786] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.128497] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.128540] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.128557] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.128603] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.128704] TCP: Hash tables configured (established 4096 bind 4096)
[    0.128801] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.128827] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.129027] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.129748] RPC: Registered named UNIX socket transport module.
[    0.129761] RPC: Registered udp transport module.
[    0.129766] RPC: Registered tcp transport module.
[    0.129771] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.131458] Initialise system trusted keyrings
[    0.131866] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.138750] zbud: loaded
[    0.142202] NFS: Registering the id_resolver key type
[    0.142263] Key type id_resolver registered
[    0.142270] Key type id_legacy registered
[    0.142371] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.142381] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.143283] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.144040] fuse: init (API version 7.38)
[    0.145979] gfs2: GFS2 installed
[    0.146428] ceph: loaded (mds proto 32)
[    0.237476] Key type asymmetric registered
[    0.237494] Asymmetric key parser 'x509' registered
[    0.237686] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.237943] io scheduler mq-deadline registered
[    0.237956] io scheduler kyber registered
[    0.242954] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.246497] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[    0.246621] usbcore: registered new interface driver udl
[    0.248735] brd: module loaded
[    0.256301] loop: module loaded
[    0.281849] rbd: loaded (major 253)
[    0.282839] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.285297] eql: Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)
[    0.286988] tun: Universal TUN/TAP device driver, 1.6
[    0.288070] PPP generic driver version 2.4.2
[    0.288306] PPP BSD Compression module registered
[    0.288323] PPP Deflate Compression module registered
[    0.288659] PPP MPPE Compression module registered
[    0.288672] NET: Registered PF_PPPOX protocol family
[    0.290182] aoe: AoE v85 initialised.
[    0.291103] usbcore: registered new interface driver usb-storage
[    0.291818] mousedev: PS/2 mouse device common for all mice
[    0.292832] i2c_dev: i2c /dev entries driver
[    0.293210] Bluetooth: HCI UART driver ver 2.3
[    0.293221] Bluetooth: HCI UART protocol H4 registered
[    0.293229] Bluetooth: HCI UART protocol BCSP registered
[    0.293234] Bluetooth: HCI UART protocol ATH3K registered
[    0.293289] usbcore: registered new interface driver btusb
[    0.294125] cpuidle: enable-method property 'ti,am3352' found operations
[    0.294980] hid: raw HID events driver (C) Jiri Kosina
[    0.295731] usbcore: registered new interface driver usbhid
[    0.295744] usbhid: USB HID core driver
[    0.298071] NET: Registered PF_INET6 protocol family
[    0.299995] Segment Routing with IPv6
[    0.300054] In-situ OAM (IOAM) with IPv6
[    0.300154] mip6: Mobile IPv6
[    0.300178] NET: Registered PF_PACKET protocol family
[    0.300449] Bluetooth: RFCOMM TTY layer initialized
[    0.300471] Bluetooth: RFCOMM socket layer initialized
[    0.300513] Bluetooth: RFCOMM ver 1.11
[    0.300531] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    0.300538] Bluetooth: BNEP filters: protocol multicast
[    0.300549] Bluetooth: BNEP socket layer initialized
[    0.300556] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    0.300567] Bluetooth: HIDP socket layer initialized
[    0.300679] Key type dns_resolver registered
[    0.300705] Key type ceph registered
[    0.301270] libceph: loaded (mon/osd proto 15/24)
[    0.301288] mpls_gso: MPLS GSO support
[    0.301454] ThumbEE CPU extension supported.
[    0.301475] Registering SWP/SWPB emulation handler
[    0.301483] omap_voltage_late_init: Voltage driver support not added
[    0.301739] PM: Cannot get wkup_m3_ipc handle
[    0.302598] registered taskstats version 1
[    0.302639] Loading compiled-in X.509 certificates
[    0.303141] zswap: loaded using pool lzo/zbud
[    0.305617] Key type encrypted registered
[    0.330355] remoteproc remoteproc0: wkup_m3 is available
[    0.340192] TI-am335x-tsc TI-am335x-tsc.0.auto: ti,charge-delay not specified
[    0.340608] input: ti-tsc as /devices/platform/ocp/44c00000.interconnect/44c00000.interconnect:segment@200000/44e0d000.target-module/44e0d000.tscadc/TI-am335x-tsc.0.auto/input/input0
[    0.345871] platform 44e10800.pinmux: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@10000/scm@0/pinmux@800/pinmux_clkout2_pin
[    0.346475] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    0.351256] ti-sysc: probe of 44e31000.target-module failed with error -16
[    0.354511] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    0.361319] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
[    0.367691] ti-sysc: probe of 48040000.target-module failed with error -16
[    0.378101] gpio-29 (EMMC ResetN): hogged as output/high
[    0.378175] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
[    0.378647] OMAP GPIO hardware version 0.1
[    0.383338] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.391854] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 27, base_baud = 3000000) is a 8250
[    0.394773] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 28, base_baud = 3000000) is a 8250
[    0.397349] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
[    0.399849] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
[    0.410666] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    0.410838] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    0.411294] tilcdc 4830e000.lcdc: no encoders/connectors found
[    0.432328] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    0.432360] edma 49000000.dma: TI EDMA DMA engine driver
[    0.438352] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
[    0.438601] am335x-phy-driver 47401300.usb-phy: dummy supplies not allowed for exclusive requests
[    0.443058] OF: /ocp/target-module@47400000/usb@1400: could not get #interrupt-cells for /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@24
[    0.443133] musb-dsps 47401400.usb: error -ENXIO: IRQ vbus not found
[    0.445115] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
[    0.445364] am335x-phy-driver 47401b00.usb-phy: dummy supplies not allowed for exclusive requests
[    0.454435] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    0.454485] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    0.454756] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    0.454771] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.454781] usb usb1: Product: MUSB HDRC host driver
[    0.454788] usb usb1: Manufacturer: Linux 6.1.119+ musb-hcd
[    0.454796] usb usb1: SerialNumber: musb-hdrc.1
[    0.455696] hub 1-0:1.0: USB hub found
[    0.455750] hub 1-0:1.0: 1 port detected
[    0.477078] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.482205] l3-aon-clkctrl:0000:0: failed to disable
[    0.485657] PM: Cannot get wkup_m3_ipc handle
[    0.486157] gpio gpiochip3: (gpio-96-127): not an immutable chip, please consider fixing it!
[    0.488157] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 37, base_baud = 3000000) is a 8250
[    1.859295] printk: console [ttyS0] enabled
[    1.888208] tps65217-pmic: Failed to locate of_node [id: -1]
[    1.903412] tps65217-bl tps65217-bl: DMA mask not set
[    1.909943] tps65217-charger: Failed to locate of_node [id: -1]
[    1.916822] tps65217-pwrbutton: Failed to locate of_node [id: -1]
[    1.923982] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.929803] at24 0-0050: supply vcc not found, using dummy regulator
[    1.936875] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.946227] rtc-pcf8523 0-0068: registered as rtc0
[    1.951423] rtc-pcf8523 0-0068: setting system clock to 2017-01-10T14:01:17 UTC (1484056877)
[    1.966159] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.976509] remoteproc remoteproc0: powering up wkup_m3
[    1.988651] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    1.999115] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 230328
[    2.007689] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    2.018460] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    2.025029] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[    2.042510] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 1
[    2.098880] Console: switching to colour frame buffer device 60x50
[    2.121622] tilcdc 4830e000.lcdc: [drm] fb0: tilcdcdrmfb frame buffer device
[    2.130735] cpu cpu0: _opp_add_static_v2: opp key field not found
[    2.137048] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -19
[    2.144051] cpu cpu0: OPP table can't be empty
[    2.149870] pm33xx: probe of pm33xx failed with error -22
[    2.156462] pinctrl-single 44e10800.pinmux: pin PIN109 already requested by 44e10800.pinmux; cannot claim for user_keys
[    2.167491] pinctrl-single 44e10800.pinmux: pin-109 (user_keys) status -22
[    2.174451] pinctrl-single 44e10800.pinmux: could not request pin 109 (PIN109) from group pinmux_key_pins  on device pinctrl-single
[    2.186404] gpio-keys user_keys: Error applying setting, reverse things back
[    2.194560] clk: Disabling unused clocks
[    2.199430] Waiting for root device /dev/mmcblk0p2...
[   57.487558] random: crng init done

  • Hi Shanti,

    The kernel boot log doesn't have any mmc related message. Did you enable mmc1 node in your kernel devicetree or MMC drivers in kernel config?

  • Hello Bin,

    Yes, mmc1 is enabled in dts and kenel config too.


      

    &mmc1 {
    vmmc-supply = <&vmmcsd_fixed>;
    status = "okay";

    }

    mmc1_pins: pinmux_mmc1_pins {
    pinctrl-single,pins = <
    AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT, MUX_MODE7) /* spio0_cs1.gpio0_6 */
    AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0)
    AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0)
    AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0)
    AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0)
    AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0)
    AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
    >;
    };

    mmc1: mmc@0 {
    compatible = "ti,am335-sdhci";
    ti,needs-special-reset;
    dmas = <&edma 24 0>, <&edma 25 0>;
    dma-names = "tx", "rx";
    interrupts = <64>;
    reg = <0x0 0x1000>;
    status = "okay";

    };

  • Also, below are the logs from u-boot mode which shows the root partition contents also, for your reference.

    u-boot> mmc list

    OMAP SD/MMC: 0

    OMAP SD/MMC: 1 (eMMC)

    u-boot> mmc dev0

    mmc - MMC sub system


    u-boot> mmc dev0 0

    switch to partitions #0, OK

    mmc0 is current device

    u-boot> mmc dev 0 1

    switch to partitions #0, OK

    mmc1(part 0) is current device

    u-boot> mmc info

    Device: OMAP SD/MMC

    Manufacturer ID: 11

    OEM: 100

    Name: 008G3

    Tran Speed: 52000000

    Rd Block Len: 512

    MMC version 4.0

    High Capacity: Yes

    Capacity: 7.3 GiB

    Bus Width: 4-bit

    Erase Group Size: 512 KiB

    u-boot>

    u-boot> mmc part


    Partition Map for MMC device 1 -- Partition Type: DOS


    Part Start Sector Num Sectors UUID Type

    1 16 250032 00000000-01 0c Boot

    2 250048 1953216 00000000-02 83

    3 2203264 1953216 00000000-03 83

    4 4156480 11113408 00000000-04 83

    u-boot> fatls mmc 0:1

    4531 bootflag

    90672 logo.bin

    202854 logo.bmp

    394284 upgradestatus

    97452 upgradestatus5

    71554 am335x-boneblack.dtb

    extlinux/

    81176 mlo

    18998471 ramdisk.img

    315248 u-boot.img

    354 uenv.txt

    9286600 zimage

    .trash-1000/


    11 file(s), 2 dir(s)


    u-boot> ext4ls mmc 0:2

    <DIR> 4096 .

    <DIR> 4096 ..

    <DIR> 0 bin

    <DIR> 4096 boot

    <DIR> 4096 dev

    <DIR> 4096 etc

    <DIR> 0 home

    <DIR> 0 lib

    <DIR> 30 media

    <DIR> 4096 mnt

    <DIR> 0 opt

    <DIR> 4096 proc

    <DIR> 144 run

    <DIR> 0 sbin

    <DIR> 4096 srv

    <DIR> 0 sys

    <DIR> 4096 tmp

    <DIR> 1807 usr

    <DIR> 4096 var

    <DIR> 0 www

    u-boot>

  • Hi Shanti,

    First of all, the &mmc1 node in am335x-bone-common.dtsi defines cd-gpios to gpio0_6. Do you use the same gpio0_6 for the sdcard detect on your board? If not, you would have to modify the devicetree to define the correct card detect gpio pin for your board.

  • Hello Bin,

    Yes, the same is used for SD card detect.  Also, I wonder how u-boot from SD card boot partition is successful and kernel boot hangs while trying to access the root partiton.  Could you please refer my previous logs that show the u-boot environment logs that prints contents of SD boot partition and root partition. Doesn't it mean that sd card is detected? Please correct me if I'm wrong.

    I'm stuck up with this issue and not able to proceed further without solving this. Thanks 

    Thank you,

    Shanti

  • Hi Shanti,

    U-Boot and kernel used different mechanism to enable/detect sdcard. The kernel boot log doesn't have any mmc1 related message, so the problem is either in kernel devicetree, kernel mmc related drivers/modules, or something else, but I am not sure what the problem is. You first can debug the kernel function sdhci_omap_probe() in  drivers/mmc/host/sdhci-omap.c, for example, by add kernel printk in some places to see if this function fails at anywhere.

  • Hello Bin,

    Thank you for your suggestion. Below is the log with kernel prints in sdhci_omap_probe() function. Probe function's prints are tagged with "***SHJ***" for easy search. 

    Also I'm pasting the screenshot of menuconfig here. I see no error message function from probe(), but clk rate set to 0.. I'm attaching the sreenshot of cle set section of code also for your reference. 

    Thank you,

    Shanti

    Menuconfig:

    Kernel Boot log:

    Starting kernel ...
    
    
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 6.1.119+ (admin1@admin1-Precision-3650-Tower) (arm-none-linux-gnueabihf-gcc (Arm GNU Toolchain 11.3.Rel1) 11.3.1 20220712, GNU ld (Arm GNU Toolchain 11.3.Rel1) 2.38.20220708) #4 SMP PREEMPT Fri Dec 19 18:08:44 IST 2025
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
    [ 0.000000] earlycon: ns16550a0 at MMIO32 0x44e09000 (options '')
    [ 0.000000] printk: bootconsole [ns16550a0] enabled
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] cma: Reserved 24 MiB at 0x9e000000
    [ 0.000000] Zone ranges:
    [ 0.000000] Normal [mem 0x0000000080000000-0x000000009fefffff]
    [ 0.000000] HighMem empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000080000000-0x000000009fcfffff]
    [ 0.000000] node 0: [mem 0x000000009fe00000-0x000000009fefffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
    [ 0.000000] On node 0, zone Normal: 256 pages in unavailable ranges
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (sgx neon)
    [ 0.000000] percpu: Embedded 13 pages/cpu s24148 r8192 d20908 u53248
    [ 0.000000] pcpu-alloc: s24148 r8192 d20908 u53248 alloc=13*4096
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129410
    [ 0.000000] Kernel command line: console=ttyS0,115200
    [ 0.000000] earlycon=ns16550a,mmio32,0x44e09000
    [ 0.000000] loglevel=8
    [ 0.000000] mem=511M
    [ 0.000000] fbcon=logo-pos:center fbcon=rotate:1
    [ 0.000000] root=/dev/mmcblk0p2 rw
    [ 0.000000] rootfstype=ext4
    [ 0.000000] rootwait rootdelay=2
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [ 0.000000] Memory: 475072K/522240K available (9216K kernel code, 1300K rwdata, 4268K rodata, 1024K init, 517K bss, 22592K reserved, 24576K cma-reserved, 0K highmem)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [ 0.000000] Trampoline variant of Tasks RCU enabled.
    [ 0.000000] Tracing variant of Tasks RCU enabled.
    [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [ 0.000001] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.008062] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.017969] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [ 0.029154] Console: colour dummy device 80x30
    [ 0.033853] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
    [ 0.058416] CPU: Testing write buffer coherency: ok
    [ 0.063497] CPU0: Spectre v2: using BPIALL workaround
    [ 0.068699] pid_max: default: 32768 minimum: 301
    [ 0.073552] LSM: Security Framework initializing
    [ 0.078336] Yama: becoming mindful.
    [ 0.082087] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.089632] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.098913] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [ 0.105315] cblist_init_generic: Setting adjustable number of callback queues.
    [ 0.112805] cblist_init_generic: Setting shift to 0 and lim to 1.
    [ 0.119225] cblist_init_generic: Setting adjustable number of callback queues.
    [ 0.126687] cblist_init_generic: Setting shift to 0 and lim to 1.
    [ 0.133125] Setting up static identity map for 0x80100000 - 0x80100054
    [ 0.140075] rcu: Hierarchical SRCU implementation.
    [ 0.145035] rcu: Max phase no-delay instances is 1000.
    [ 0.152108] smp: Bringing up secondary CPUs ...
    [ 0.156817] smp: Brought up 1 node, 1 CPU
    [ 0.160956] SMP: Total of 1 processors activated (995.32 BogoMIPS).
    [ 0.167412] CPU: All CPU(s) started in SVC mode.
    [ 0.172888] devtmpfs: initialized
    [ 0.190620] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.198994] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [ 0.209070] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
    [ 0.218207] pinctrl core: initialized pinctrl subsystem
    [ 0.225392] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [ 0.234330] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.241928] audit: initializing netlink subsys (disabled)
    [ 0.248526] thermal_sys: Registered thermal governor 'fair_share'
    [ 0.248543] thermal_sys: Registered thermal governor 'bang_bang'
    [ 0.254873] audit: type=2000 audit(0.164:1): state=initialized audit_enabled=0 res=1
    [ 0.269044] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.269133] cpuidle: using governor ladder
    [ 0.279585] cpuidle: using governor menu
    [ 0.295913] OF: /ocp/target-module@47400000/usb@1400: could not get #interrupt-cells for /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@24
    [ 0.311037] OF: /ocp/target-module@47400000/usb@1400: could not get #interrupt-cells for /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@24
    [ 0.329253] No ATAGs?
    [ 0.331604] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.355233] iommu: Default domain type: Translated
    [ 0.360485] iommu: DMA domain TLB invalidation policy: strict mode
    [ 0.368522] SCSI subsystem initialized
    [ 0.372694] usbcore: registered new interface driver usbfs
    [ 0.378418] usbcore: registered new interface driver hub
    [ 0.383963] usbcore: registered new device driver usb
    [ 0.389649] pps_core: LinuxPPS API ver. 1 registered
    [ 0.394785] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.404205] PTP clock support registered
    [ 0.409685] Bluetooth: Core ver 2.22
    [ 0.413524] NET: Registered PF_BLUETOOTH protocol family
    [ 0.419007] Bluetooth: HCI device and connection manager initialized
    [ 0.425560] Bluetooth: HCI socket layer initialized
    [ 0.430587] Bluetooth: L2CAP socket layer initialized
    [ 0.435808] Bluetooth: SCO socket layer initialized
    [ 0.440854] NetLabel: Initializing
    [ 0.444361] NetLabel: domain hash size = 128
    [ 0.448848] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
    [ 0.454750] NetLabel: unlabeled traffic allowed by default
    [ 0.461413] clocksource: Switched to clocksource dmtimer
    [ 0.467333] VFS: Disk quotas dquot_6.6.0
    [ 0.471466] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.488917] NET: Registered PF_INET protocol family
    [ 0.494332] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [ 0.503436] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [ 0.512196] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.520208] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [ 0.528230] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
    [ 0.535676] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.542326] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
    [ 0.549078] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
    [ 0.556467] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [ 0.562970] RPC: Registered named UNIX socket transport module.
    [ 0.569167] RPC: Registered udp transport module.
    [ 0.574027] RPC: Registered tcp transport module.
    [ 0.578872] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.587207] Initialise system trusted keyrings
    [ 0.592512] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [ 0.605825] zbud: loaded
    [ 0.611851] NFS: Registering the id_resolver key type
    [ 0.617284] Key type id_resolver registered
    [ 0.621616] Key type id_legacy registered
    [ 0.625876] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [ 0.632795] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [ 0.641323] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
    [ 0.649218] fuse: init (API version 7.38)
    [ 0.655312] gfs2: GFS2 installed
    [ 0.659160] ceph: loaded (mds proto 32)
    [ 0.751689] Key type asymmetric registered
    [ 0.755929] Asymmetric key parser 'x509' registered
    [ 0.761135] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [ 0.769019] io scheduler mq-deadline registered
    [ 0.773738] io scheduler kyber registered
    [ 0.782963] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
    [ 0.792967] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
    [ 0.799895] usbcore: registered new interface driver udl
    [ 0.807402] brd: module loaded
    [ 0.818137] loop: module loaded
    [ 0.846817] rbd: loaded (major 253)
    [ 0.851513] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 0.860593] eql: Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)
    [ 0.871611] tun: Universal TUN/TAP device driver, 1.6
    [ 0.877899] PPP generic driver version 2.4.2
    [ 0.882599] PPP BSD Compression module registered
    [ 0.887483] PPP Deflate Compression module registered
    [ 0.893018] PPP MPPE Compression module registered
    [ 0.898033] NET: Registered PF_PPPOX protocol family
    [ 0.904673] aoe: AoE v85 initialised.
    [ 0.909677] usbcore: registered new interface driver usb-storage
    [ 0.916483] mousedev: PS/2 mouse device common for all mice
    [ 0.923327] i2c_dev: i2c /dev entries driver
    [ 0.928186] Bluetooth: HCI UART driver ver 2.3
    [ 0.932810] Bluetooth: HCI UART protocol H4 registered
    [ 0.938112] Bluetooth: HCI UART protocol BCSP registered
    [ 0.943587] Bluetooth: HCI UART protocol ATH3K registered
    [ 0.949206] usbcore: registered new interface driver btusb
    [ 0.955718] cpuidle: enable-method property 'ti,am3352' found operations
    [ 0.963004] sdhci: Secure Digital Host Controller Interface driver
    [ 0.969480] sdhci: Copyright(c) Pierre Ossman
    [ 0.974166] Synopsys Designware Multimedia Card Interface Driver
    [ 0.980542] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 0.987090] hid: raw HID events driver (C) Jiri Kosina
    [ 0.992948] usbcore: registered new interface driver usbhid
    [ 0.998722] usbhid: USB HID core driver
    [ 1.004975] NET: Registered PF_INET6 protocol family
    [ 1.011977] Segment Routing with IPv6
    [ 1.015943] In-situ OAM (IOAM) with IPv6
    [ 1.020105] mip6: Mobile IPv6
    [ 1.023197] NET: Registered PF_PACKET protocol family
    [ 1.028638] Bluetooth: RFCOMM TTY layer initialized
    [ 1.033772] Bluetooth: RFCOMM socket layer initialized
    [ 1.039113] Bluetooth: RFCOMM ver 1.11
    [ 1.042998] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [ 1.048472] Bluetooth: BNEP filters: protocol multicast
    [ 1.053863] Bluetooth: BNEP socket layer initialized
    [ 1.058982] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [ 1.065084] Bluetooth: HIDP socket layer initialized
    [ 1.070305] Key type dns_resolver registered
    [ 1.074736] Key type ceph registered
    [ 1.078925] libceph: loaded (mon/osd proto 15/24)
    [ 1.083837] mpls_gso: MPLS GSO support
    [ 1.087892] ThumbEE CPU extension supported.
    [ 1.092320] Registering SWP/SWPB emulation handler
    [ 1.097262] omap_voltage_late_init: Voltage driver support not added
    [ 1.104079] PM: Cannot get wkup_m3_ipc handle
    [ 1.109565] registered taskstats version 1
    [ 1.113877] Loading compiled-in X.509 certificates
    [ 1.119326] zswap: loaded using pool lzo/zbud
    [ 1.126321] Key type encrypted registered
    [ 1.155107] remoteproc remoteproc0: wkup_m3 is available
    [ 1.170531] TI-am335x-tsc TI-am335x-tsc.0.auto: ti,charge-delay not specified
    [ 1.178367] input: ti-tsc as /devices/platform/ocp/44c00000.interconnect/44c00000.interconnect:segment@200000/44e0d000.target-module/44e0d000.tscadc/TI-am335x-tsc.0.auto/input/input0
    [ 1.200433] platform 44e10800.pinmux: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@10000/scm@0/pinmux@800/pinmux_clkout2_pin
    [ 1.216532] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [ 1.227552] ti-sysc: probe of 44e31000.target-module failed with error -16
    [ 1.237916] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.251778] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
    [ 1.264053] ti-sysc: probe of 48040000.target-module failed with error -16
    [ 1.281994] gpio-29 (EMMC ResetN): hogged as output/high
    [ 1.287596] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
    [ 1.296577] OMAP GPIO hardware version 0.1
    [ 1.306073] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 1.320925] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 27, base_baud = 3000000) is a 8250
    [ 1.333030] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 28, base_baud = 3000000) is a 8250
    [ 1.344606] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
    [ 1.355719] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
    [ 1.368612] ***SHJ***SDHCI_OMAP: probe entered ***SHJ***
    [ 1.378125] ***SHJ*** match data OK, offset=0x200 ***SHJ***
    [ 1.387330] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 1.397922] ***SHJ*** regs start=0x481d8000 size=1000 ***SHJ***
    [ 1.404313] ***SHJ*** sdhci_pltfm_init OK ***SHJ***
    [ 1.409547] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 1.420242] ***SHJ*** mmc_of_parse OK f_max=0 caps=0x41 ***SHJ***
    [ 1.426617] ***SHJ*** clock get OK ***SHJ***
    [ 1.431450] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 1.437534] ***SHJ*** clock rate set to 0 ***SHJ***
    [ 1.448735] ***SHJ*** pm_runtime_resume OK ***SHJ***
    [ 1.457913] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
    [ 1.478579] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
    [ 1.487250] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [ 1.496268] ***SHJ*** capabilities set ***SHJ***
    [ 1.501153] edma 49000000.dma: TI EDMA DMA engine driver
    [ 1.506666] ***SHJ*** calling sdhci_setup_host ***SHJ***
    [ 1.522031] ***SHJ***SDHCI_OMAP: probe entered ***SHJ***
    [ 1.530165] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
    [ 1.538861] ***SHJ*** match data OK, offset=0x200 ***SHJ***
    [ 1.553409] ***SHJ*** regs start=0x47810000 size=1000 ***SHJ***
    [ 1.565648] am335x-phy-driver 47401300.usb-phy: dummy supplies not allowed for exclusive requests
    [ 1.575070] ***SHJ*** sdhci_pltfm_init OK ***SHJ***
    [ 1.585492] ***SHJ*** mmc_of_parse OK f_max=0 caps=0x1 ***SHJ***
    [ 1.598055] ***SHJ*** sdhci_setup_host OK ***SHJ***
    [ 1.606377] OF: /ocp/target-module@47400000/usb@1400: could not get #interrupt-cells for /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@24
    [ 1.621547] ***SHJ*** clock get OK ***SHJ***
    [ 1.625977] ***SHJ*** iodelay pinctrl OK ***SHJ***
    [ 1.630932] ***SHJ*** clock rate set to 0 ***SHJ***
    [ 1.641466] ***SHJ*** pm_runtime_resume OK ***SHJ***
    [ 1.649433] musb-dsps 47401400.usb: error -ENXIO: IRQ vbus not found
    [ 1.656021] sdhci-omap 47810000.mmc: supply pbias not found, using dummy regulator
    [ 1.671035] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
    [ 1.685957] sdhci-omap 47810000.mmc: supply vqmmc not found, using dummy regulator
    [ 1.700116] am335x-phy-driver 47401b00.usb-phy: dummy supplies not allowed for exclusive requests
    [ 1.709715] ***SHJ*** capabilities set ***SHJ***
    [ 1.715059] ***SHJ*** calling sdhci_setup_host ***SHJ***
    [ 1.725736] mmc2 bounce up to 128 segments into one, max segment size 65536 bytes
    [ 1.736347] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 1.741953] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
    [ 1.749999] ***SHJ*** __sdhci_add_host OK (MMC REGISTERED) ***SHJ***
    [ 1.756716] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 1.764472] ***SHJ*** sdhci_setup_host OK ***SHJ***
    [ 1.769652] ***SHJ*** iodelay pinctrl OK ***SHJ***
    [ 1.774856] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
    [ 1.784346] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 1.791879] usb usb1: Product: MUSB HDRC host driver
    [ 1.797166] usb usb1: Manufacturer: Linux 6.1.119+ musb-hcd
    [ 1.803056] usb usb1: SerialNumber: musb-hdrc.1
    [ 1.808828] hub 1-0:1.0: USB hub found
    [ 1.812908] hub 1-0:1.0: 1 port detected
    [ 1.817075] mmc2: SDHCI controller on 47810000.mmc [47810000.mmc] using DMA
    [ 1.834643] ***SHJ*** __sdhci_add_host OK (MMC REGISTERED) ***SHJ***
    [ 1.855308] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 1.869215] l3-aon-clkctrl:0000:0: failed to disable
    [ 1.876772] pinctrl-single 44e10800.pinmux: pin PIN16 already requested by 47810000.mmc; cannot claim for leds
    [ 1.887648] pinctrl-single 44e10800.pinmux: pin-16 (leds) status -22
    [ 1.894446] pinctrl-single 44e10800.pinmux: could not request pin 16 (PIN16) from group pinmux_led_pins on device pinctrl-single
    [ 1.906581] leds-gpio leds: Error applying setting, reverse things back
    [ 1.914070] PM: Cannot get wkup_m3_ipc handle
    [ 1.919139] gpio gpiochip3: (gpio-96-127): not an immutable chip, please consider fixing it!
    [ 1.930480] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 39, base_baud = 3000000) is a 8250
    [ 1.939634] printk: console [ttyS0] enabled
    [ 1.939634] printk: console [ttyS0] enabled
    [ 1.948526] printk: bootconsole [ns16550a0] disabled
    [ 1.948526] printk: bootconsole [ns16550a0] disabled
    [ 1.962777] mmc1: new high speed MMC card at address 0001
    [ 1.970783] mmcblk1: mmc1:0001 008G30 7.28 GiB
    [ 1.978230] mmcblk1: p1 p2 p3 p4
    [ 1.983038] mmcblk1boot0: mmc1:0001 008G30 4.00 MiB
    [ 1.990782] mmcblk1boot1: mmc1:0001 008G30 4.00 MiB
    [ 1.996010] tps65217-pmic: Failed to locate of_node [id: -1]
    [ 2.008191] mmcblk1rpmb: mmc1:0001 008G30 4.00 MiB, chardev (244:0)
    [ 2.021250] tps65217-bl tps65217-bl: DMA mask not set
    [ 2.027805] tps65217-charger: Failed to locate of_node [id: -1]
    [ 2.034687] tps65217-pwrbutton: Failed to locate of_node [id: -1]
    [ 2.041835] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [ 2.047654] at24 0-0050: supply vcc not found, using dummy regulator
    [ 2.054724] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [ 2.064046] rtc-pcf8523 0-0068: registered as rtc0
    [ 2.069240] rtc-pcf8523 0-0068: setting system clock to 2017-01-13T16:16:27 UTC (1484324187)
    [ 2.084150] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 2.094592] remoteproc remoteproc0: powering up wkup_m3
    [ 2.103424] pinctrl-single 44e10800.pinmux: pin PIN88 already requested by 48030000.spi; cannot claim for 48060000.mmc
    [ 2.119347] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 2.129782] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 230328
    [ 2.138032] pinctrl-single 44e10800.pinmux: pin-88 (48060000.mmc) status -22
    [ 2.145867] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [ 2.145894] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [ 2.159596] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 2.171892] pinctrl-single 44e10800.pinmux: could not request pin 88 (PIN88) from group pinmux_mmc1_pins on device pinctrl-single
    [ 2.185000] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 1
    [ 2.192639] sdhci-omap 48060000.mmc: Error applying setting, reverse things back
    [ 2.246863] Console: switching to colour frame buffer device 60x50
    [ 2.269550] tilcdc 4830e000.lcdc: [drm] fb0: tilcdcdrmfb frame buffer device
    [ 2.278676] cpu cpu0: _opp_add_static_v2: opp key field not found
    [ 2.284976] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -19
    [ 2.291913] cpu cpu0: OPP table can't be empty
    [ 2.297840] pm33xx: probe of pm33xx failed with error -22
    [ 2.304388] pinctrl-single 44e10800.pinmux: pin PIN109 already requested by 44e10800.pinmux; cannot claim for user_keys
    [ 2.315341] pinctrl-single 44e10800.pinmux: pin-109 (user_keys) status -22
    [ 2.322290] pinctrl-single 44e10800.pinmux: could not request pin 109 (PIN109) from group pinmux_key_pins on device pinctrl-single
    [ 2.334198] gpio-keys user_keys: Error applying setting, reverse things back
    [ 2.342376] clk: Disabling unused clocks
    [ 2.347047] Waiting 2 sec before mounting root device...
    [ 4.361674] Waiting for root device /dev/mmcblk0p2...
    [ 39.505426] random: crng init done

  • Hi Shanti,

    I see no error message function from probe(), but clk rate set to 0.

    clk_set_rate() returning 0 means the function runs successfully, it doesn't mean the clk rate is set to 0.

    But now I see the log has message:

    [ 2.192639] sdhci-omap 48060000.mmc: Error applying setting, reverse things back

    which is printed from the pinmux driver - drivers/pinctrl/core.c. It seems you have mmc1 pinmux error, please review your device tree mmc1 pinmux.

  • Hello Bin,

    Thank you very much for your prompt replies. As you suggested, I reviewed all pinmux of my custom board and I found that very few pins ofmy custom board had been used in TI SDK for some other purpose.  I commented/disabled those lines or nodes and it worked. MMC was detected, kernel boot was successful and I'm able to login as root. Now I'm able to run qt demos of TI SDK on my custom board also, but on linuxfb platform.

    Now I'm working on running those demos on eglfs platform (GPU enabled), but facing problem in loading the pvrsrvkm module.(It was working fine on BBB).

    Below is the screenshot of the error.


    Also, my touchscreen is not working even though it is enabled. I'm testing the demos with mouse for time being.

    I greatly appreciate and thank you for all your help and support till this point.

    Thanks,

    Shanti 

  • Hello Bin,'

    An update from my side. Now sgx KM module is loaded successfully and Um and KM Match ok. Still I'm working on Touch screen. Also, when I tried to run qt demo with eglfs platform, it is not working, Log display "Mesa loader failed to lload zink_dri.so", which was perfectly working on BBB with ti sdk without any error.  So, I'm working on building and installing Mesa shim. Please let me know if this is the right direction to solve the issue on gpu.

    Thank you,

    Shanti

  • I am out of office for the holidays, my response will be delayed until the New Year. 

  • Hello Bin,

    Update from my side. Now my sd card is detected and kernel boots successfully and I'm able to login. Touch screen is also working now. I'm using this kernel (6.1) and dtb on my custom board. I'm able to run TI SDK GPU demos on my custom board, with TI SDK rootfs. Now finally I'm trying to use my custom device's rootfs and application with this kernel and dtb. I'm facing issue with eMMC enumberation. eMMC is registered but not enumberated as mmcblk device where as sd card is enumerated as mmcblk0 by kernel. Attaching the logs for your reference. Could you please assist me in solving this issue?

    Thanks,

    Shanti

    Welcome to ARM
    
    arm login: root
    [root@arm:~]# dmesg -i[J[J| grep -i mmc
    [ 0.510927] gpio-29 (EMMC ResetN): hogged as output/high
    [ 0.616501] ***SHJ*** mmc_of_parse OK f_max=0 caps=0x101 ***SHJ***
    [ 0.616640] sdhci-omap 47810000.mmc: supply pbias not found, using dummy regulator
    [ 0.617164] sdhci-omap 47810000.mmc: supply vqmmc not found, using dummy regulator
    [ 0.617590] mmc2 bounce up to 128 segments into one, max segment size 65536 bytes
    [ 0.652142] mmc2: SDHCI controller on 47810000.mmc [47810000.mmc] using DMA
    [ 0.652157] ***SHJ*** __sdhci_add_host OK (MMC REGISTERED) ***SHJ***
    [ 2.356303] pinctrl-single 44e10800.pinmux: pin PIN19 already requested by 47810000.mmc; cannot claim for 48030000.spi
    [ 2.485007] sdhci-omap 48060000.mmc: Got CD GPIO
    [ 2.489948] ***SHJ*** mmc_of_parse OK f_max=0 caps=0x1 ***SHJ***
    [ 2.519292] sdhci-omap 48060000.mmc: supply pbias not found, using dummy regulator
    [ 2.524443] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
    [ 2.552541] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
    [ 2.552560] ***SHJ*** __sdhci_add_host OK (MMC REGISTERED) ***SHJ***
    [ 2.669161] mmc0: new high speed SDHC card at address aaaa
    [ 2.682814] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
    [ 2.704099] mmcblk0: p1 p2
    [ 6.919514] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [root@arm:~]#
    
    
    Full log is attached below.
    
    Starting kernel ...
    
    
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 6.1.119+ (admin1@admin1-Precision-3650-Tower) (arm-none-linux-gnueabihf-gcc (Arm GNU Toolchain 11.3.Rel1) 11.3.1 20220712, GNU ld (Arm GNU Toolchain 11.3.Rel1) 2.38.20220708) #22 SMP PREEMPT Mon Jan 5 11:54:06 IST 2026
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] cma: Reserved 24 MiB at 0x9e000000
    [ 0.000000] Zone ranges:
    [ 0.000000] Normal [mem 0x0000000080000000-0x000000009fefffff]
    [ 0.000000] HighMem empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000080000000-0x000000009fcfffff]
    [ 0.000000] node 0: [mem 0x000000009fe00000-0x000000009fefffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
    [ 0.000000] On node 0, zone Normal: 256 pages in unavailable ranges
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (sgx neon)
    [ 0.000000] percpu: Embedded 13 pages/cpu s24148 r8192 d20908 u53248
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129410
    [ 0.000000] Kernel command line: console=ttyO0,115200 mem=511M fbcon=logo-pos:center fbcon=rotate:1 root=/dev/ram verify=n
    [ 0.000000] Unknown kernel command line parameters "verify=n", will be passed to user space.
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [ 0.000000] Memory: 456504K/522240K available (9216K kernel code, 1308K rwdata, 4312K rodata, 1024K init, 518K bss, 41160K reserved, 24576K cma-reserved, 0K highmem)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [ 0.000000] Trampoline variant of Tasks RCU enabled.
    [ 0.000000] Tracing variant of Tasks RCU enabled.
    [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [ 0.000002] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000022] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000364] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [ 0.001562] Console: colour dummy device 80x30
    [ 0.001599] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [ 0.001606] This ensures that you still see kernel messages. Please
    [ 0.001611] update your kernel commandline.
    [ 0.001643] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
    [ 0.048424] CPU: Testing write buffer coherency: ok
    [ 0.048490] CPU0: Spectre v2: using BPIALL workaround
    [ 0.048501] pid_max: default: 32768 minimum: 301
    [ 0.048605] LSM: Security Framework initializing
    [ 0.048634] Yama: becoming mindful.
    [ 0.048794] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.048815] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.050123] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [ 0.051158] cblist_init_generic: Setting adjustable number of callback queues.
    [ 0.051172] cblist_init_generic: Setting shift to 0 and lim to 1.
    [ 0.051317] cblist_init_generic: Setting adjustable number of callback queues.
    [ 0.051324] cblist_init_generic: Setting shift to 0 and lim to 1.
    [ 0.051492] Setting up static identity map for 0x80100000 - 0x80100054
    [ 0.051689] rcu: Hierarchical SRCU implementation.
    [ 0.051697] rcu: Max phase no-delay instances is 1000.
    [ 0.053417] smp: Bringing up secondary CPUs ...
    [ 0.053435] smp: Brought up 1 node, 1 CPU
    [ 0.053445] SMP: Total of 1 processors activated (995.32 BogoMIPS).
    [ 0.053456] CPU: All CPU(s) started in SVC mode.
    [ 0.054178] devtmpfs: initialized
    [ 0.068615] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.069015] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [ 0.069045] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
    [ 0.071237] pinctrl core: initialized pinctrl subsystem
    [ 0.073083] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [ 0.075770] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.076212] audit: initializing netlink subsys (disabled)
    [ 0.077277] thermal_sys: Registered thermal governor 'fair_share'
    [ 0.077293] thermal_sys: Registered thermal governor 'bang_bang'
    [ 0.077299] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.077391] cpuidle: using governor ladder
    [ 0.077421] cpuidle: using governor menu
    [ 0.080514] audit: type=2000 audit(0.076:1): state=initialized audit_enabled=0 res=1
    [ 0.093375] No ATAGs?
    [ 0.093393] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.110935] iommu: Default domain type: Translated
    [ 0.110953] iommu: DMA domain TLB invalidation policy: strict mode
    [ 0.112690] SCSI subsystem initialized
    [ 0.112969] usbcore: registered new interface driver usbfs
    [ 0.113023] usbcore: registered new interface driver hub
    [ 0.113072] usbcore: registered new device driver usb
    [ 0.113522] pps_core: LinuxPPS API ver. 1 registered
    [ 0.113531] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.113553] PTP clock support registered
    [ 0.114953] Bluetooth: Core ver 2.22
    [ 0.115022] NET: Registered PF_BLUETOOTH protocol family
    [ 0.115029] Bluetooth: HCI device and connection manager initialized
    [ 0.115041] Bluetooth: HCI socket layer initialized
    [ 0.115051] Bluetooth: L2CAP socket layer initialized
    [ 0.115073] Bluetooth: SCO socket layer initialized
    [ 0.115096] NetLabel: Initializing
    [ 0.115100] NetLabel: domain hash size = 128
    [ 0.115106] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
    [ 0.115179] NetLabel: unlabeled traffic allowed by default
    [ 0.116094] clocksource: Switched to clocksource dmtimer
    [ 0.116577] VFS: Disk quotas dquot_6.6.0
    [ 0.116649] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.126938] NET: Registered PF_INET protocol family
    [ 0.127271] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [ 0.129006] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [ 0.129049] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.129066] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [ 0.129111] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
    [ 0.129213] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.129318] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
    [ 0.129344] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
    [ 0.129546] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [ 0.130288] RPC: Registered named UNIX socket transport module.
    [ 0.130302] RPC: Registered udp transport module.
    [ 0.130307] RPC: Registered tcp transport module.
    [ 0.130312] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.131986] Initialise system trusted keyrings
    [ 0.132406] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [ 0.136524] Trying to unpack rootfs image as initramfs...
    [ 0.137085] rootfs image is not initramfs (no cpio magic); looks like an initrd
    [ 0.146885] zbud: loaded
    [ 0.160810] NFS: Registering the id_resolver key type
    [ 0.160905] Key type id_resolver registered
    [ 0.160913] Key type id_legacy registered
    [ 0.161032] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [ 0.161044] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [ 0.161970] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
    [ 0.162641] fuse: init (API version 7.38)
    [ 0.164760] gfs2: GFS2 installed
    [ 0.165237] ceph: loaded (mds proto 32)
    [ 0.346282] Key type asymmetric registered
    [ 0.346310] Asymmetric key parser 'x509' registered
    [ 0.346597] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [ 0.352261] io scheduler mq-deadline registered
    [ 0.352284] io scheduler kyber registered
    [ 0.360296] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
    [ 0.364625] usbcore: registered new interface driver udl
    [ 0.366561] brd: module loaded
    [ 0.381967] loop: module loaded
    [ 0.387607] Freeing initrd memory: 18556K
    [ 0.412949] rbd: loaded (major 253)
    [ 0.413953] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 0.416383] eql: Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)
    [ 0.418083] tun: Universal TUN/TAP device driver, 1.6
    [ 0.419000] PPP generic driver version 2.4.2
    [ 0.419235] PPP BSD Compression module registered
    [ 0.419244] PPP Deflate Compression module registered
    [ 0.419576] PPP MPPE Compression module registered
    [ 0.419590] NET: Registered PF_PPPOX protocol family
    [ 0.421248] aoe: AoE v85 initialised.
    [ 0.422152] usbcore: registered new interface driver usb-storage
    [ 0.422457] UDC core: g_ether: couldn't find an available UDC
    [ 0.422891] mousedev: PS/2 mouse device common for all mice
    [ 0.423890] i2c_dev: i2c /dev entries driver
    [ 0.424464] Bluetooth: HCI UART driver ver 2.3
    [ 0.424478] Bluetooth: HCI UART protocol H4 registered
    [ 0.424485] Bluetooth: HCI UART protocol BCSP registered
    [ 0.424491] Bluetooth: HCI UART protocol ATH3K registered
    [ 0.424545] usbcore: registered new interface driver btusb
    [ 0.425387] cpuidle: enable-method property 'ti,am3352' found operations
    [ 0.425754] sdhci: Secure Digital Host Controller Interface driver
    [ 0.425763] sdhci: Copyright(c) Pierre Ossman
    [ 0.426070] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 0.426972] hid: raw HID events driver (C) Jiri Kosina
    [ 0.427546] usbcore: registered new interface driver usbhid
    [ 0.427556] usbhid: USB HID core driver
    [ 0.429952] NET: Registered PF_INET6 protocol family
    [ 0.431730] Segment Routing with IPv6
    [ 0.431791] In-situ OAM (IOAM) with IPv6
    [ 0.431890] mip6: Mobile IPv6
    [ 0.431911] NET: Registered PF_PACKET protocol family
    [ 0.432294] Bluetooth: RFCOMM TTY layer initialized
    [ 0.432315] Bluetooth: RFCOMM socket layer initialized
    [ 0.432371] Bluetooth: RFCOMM ver 1.11
    [ 0.432392] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [ 0.432398] Bluetooth: BNEP filters: protocol multicast
    [ 0.432409] Bluetooth: BNEP socket layer initialized
    [ 0.432416] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [ 0.432426] Bluetooth: HIDP socket layer initialized
    [ 0.432548] Key type dns_resolver registered
    [ 0.432574] Key type ceph registered
    [ 0.433130] libceph: loaded (mon/osd proto 15/24)
    [ 0.433146] mpls_gso: MPLS GSO support
    [ 0.433306] ThumbEE CPU extension supported.
    [ 0.433324] Registering SWP/SWPB emulation handler
    [ 0.433334] omap_voltage_late_init: Voltage driver support not added
    [ 0.433597] PM: Cannot get wkup_m3_ipc handle
    [ 0.434496] registered taskstats version 1
    [ 0.434537] Loading compiled-in X.509 certificates
    [ 0.435054] zswap: loaded using pool lzo/zbud
    [ 0.437529] Key type encrypted registered
    [ 0.462280] remoteproc remoteproc0: wkup_m3 is available
    [ 0.471909] TI-am335x-tsc TI-am335x-tsc.0.auto: ti,charge-delay not specified
    [ 0.472453] input: ti-tsc as /devices/platform/ocp/44c00000.interconnect/44c00000.interconnect:segment@200000/44e0d000.target-module/44e0d000.tscadc/TI-am335x-tsc.0.auto/input/input0
    [ 0.478389] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [ 0.483264] ti-sysc: probe of 44e31000.target-module failed with error -16
    [ 0.486490] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 0.493665] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
    [ 0.500188] ti-sysc: probe of 48040000.target-module failed with error -16
    [ 0.510927] gpio-29 (EMMC ResetN): hogged as output/high
    [ 0.510998] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
    [ 0.511489] OMAP GPIO hardware version 0.1
    [ 0.516682] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.524988] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 27, base_baud = 3000000) is a 8250
    [ 0.527901] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 28, base_baud = 3000000) is a 8250
    [ 0.530528] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
    [ 0.533106] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
    [ 0.541953] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 0.542282] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 0.542951] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 0.596116] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 250000
    [ 0.596148] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [ 0.599044] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Marvell 88E1510
    [ 0.599516] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [ 0.599532] cpsw 4a100000.ethernet: ALE Table size 1024
    [ 0.599629] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
    [ 0.599697] cpsw 4a100000.ethernet: Detected MACID = b4:bc:7c:52:ee:ba
    [ 0.611104] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [ 0.611138] edma 49000000.dma: TI EDMA DMA engine driver
    [ 0.616006] ***SHJ***SDHCI_OMAP: probe entered ***SHJ***
    [ 0.616027] ***SHJ*** match data OK, offset=0x200 ***SHJ***
    [ 0.616036] ***SHJ*** regs start=0x47810000 size=1000 ***SHJ***
    [ 0.616417] ***SHJ*** sdhci_pltfm_init OK ***SHJ***
    [ 0.616501] ***SHJ*** mmc_of_parse OK f_max=0 caps=0x101 ***SHJ***
    [ 0.616580] ***SHJ*** clock get OK ***SHJ***
    [ 0.616589] ***SHJ*** clock rate set to 0 ***SHJ***
    [ 0.616627] ***SHJ*** pm_runtime_resume OK ***SHJ***
    [ 0.616640] sdhci-omap 47810000.mmc: supply pbias not found, using dummy regulator
    [ 0.617164] sdhci-omap 47810000.mmc: supply vqmmc not found, using dummy regulator
    [ 0.617479] ***SHJ*** capabilities set ***SHJ***
    [ 0.617492] ***SHJ*** calling sdhci_setup_host ***SHJ***
    [ 0.617590] mmc2 bounce up to 128 segments into one, max segment size 65536 bytes
    [ 0.617601] ***SHJ*** sdhci_setup_host OK ***SHJ***
    [ 0.617605] ***SHJ*** iodelay pinctrl OK ***SHJ***
    [ 0.620730] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
    [ 0.620996] am335x-phy-driver 47401300.usb-phy: dummy supplies not allowed for exclusive requests
    [ 0.635313] using random self ethernet address
    [ 0.635342] using random host ethernet address
    [ 0.636343] usb0: HOST MAC c6:b8:c3:cd:84:b7
    [ 0.636362] usb0: MAC f6:8e:7d:e2:b5:4f
    [ 0.636420] using random self ethernet address
    [ 0.636436] using random host ethernet address
    [ 0.636525] g_ether gadget.0: Ethernet Gadget, version: Memorial Day 2008
    [ 0.636536] g_ether gadget.0: g_ether ready
    [ 0.636824] musb-dsps 47401400.usb: error -ENXIO: IRQ vbus not found
    [ 0.638492] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
    [ 0.638775] am335x-phy-driver 47401b00.usb-phy: dummy supplies not allowed for exclusive requests
    [ 0.646979] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 0.647020] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 0.647292] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
    [ 0.647308] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 0.647318] usb usb1: Product: MUSB HDRC host driver
    [ 0.647326] usb usb1: Manufacturer: Linux 6.1.119+ musb-hcd
    [ 0.647334] usb usb1: SerialNumber: musb-hdrc.1
    [ 0.648228] hub 1-0:1.0: USB hub found
    [ 0.648284] hub 1-0:1.0: 1 port detected
    [ 0.652142] mmc2: SDHCI controller on 47810000.mmc [47810000.mmc] using DMA
    [ 0.652157] ***SHJ*** __sdhci_add_host OK (MMC REGISTERED) ***SHJ***
    [ 0.671415] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.676549] l3-aon-clkctrl:0000:0: failed to disable
    [ 0.680345] PM: Cannot get wkup_m3_ipc handle
    [ 0.680862] gpio gpiochip3: (gpio-96-127): not an immutable chip, please consider fixing it!
    [ 0.682783] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 41, base_baud = 3000000) is a 8250
    [ 2.241446] printk: console [ttyS0] enabled
    [ 2.268748] tps65217-pmic: Failed to locate of_node [id: -1]
    [ 2.283991] tps65217-bl tps65217-bl: DMA mask not set
    [ 2.290525] tps65217-charger: Failed to locate of_node [id: -1]
    [ 2.297420] tps65217-pwrbutton: Failed to locate of_node [id: -1]
    [ 2.304604] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [ 2.310416] at24 0-0050: supply vcc not found, using dummy regulator
    [ 2.317509] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [ 2.326834] rtc-pcf8523 0-0068: registered as rtc0
    [ 2.332038] rtc-pcf8523 0-0068: setting system clock to 2022-05-12T15:23:40 UTC (1652369020)
    [ 2.346761] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 2.356303] pinctrl-single 44e10800.pinmux: pin PIN19 already requested by 47810000.mmc; cannot claim for 48030000.spi
    [ 2.367278] remoteproc remoteproc0: powering up wkup_m3
    [ 2.372631] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 230328
    [ 2.380816] pinctrl-single 44e10800.pinmux: pin-19 (48030000.spi) status -22
    [ 2.388496] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [ 2.395540] pinctrl-single 44e10800.pinmux: could not request pin 19 (PIN19) from group pinmux_am335x_spi0_pins on device pinctrl-single
    [ 2.408005] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [ 2.414769] omap2_mcspi 48030000.spi: Error applying setting, reverse things back
    [ 2.424591] ***SHJ***SDHCI_OMAP: probe entered ***SHJ***
    [ 2.435178] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 2.445694] ***SHJ*** match data OK, offset=0x200 ***SHJ***
    [ 2.451423] ***SHJ*** regs start=0x48060000 size=1000 ***SHJ***
    [ 2.457967] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 2.468888] ***SHJ*** sdhci_pltfm_init OK ***SHJ***
    [ 2.474192] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
    [ 2.485007] sdhci-omap 48060000.mmc: Got CD GPIO
    [ 2.489948] ***SHJ*** mmc_of_parse OK f_max=0 caps=0x1 ***SHJ***
    [ 2.497276] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [ 2.504993] ***SHJ*** clock get OK ***SHJ***
    [ 2.509401] ***SHJ*** clock rate set to 0 ***SHJ***
    [ 2.519236] ***SHJ*** pm_runtime_resume OK ***SHJ***
    [ 2.519292] sdhci-omap 48060000.mmc: supply pbias not found, using dummy regulator
    [ 2.524443] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
    [ 2.525678] ***SHJ*** capabilities set ***SHJ***
    [ 2.525694] ***SHJ*** calling sdhci_setup_host ***SHJ***
    [ 2.526389] ***SHJ*** sdhci_setup_host OK ***SHJ***
    [ 2.526454] ***SHJ*** iodelay pinctrl OK ***SHJ***
    [ 2.552541] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
    [ 2.552560] ***SHJ*** __sdhci_add_host OK (MMC REGISTERED) ***SHJ***
    [ 2.564168] Console: switching to colour frame buffer device 60x50
    [ 2.641477] tilcdc 4830e000.lcdc: [drm] fb0: tilcdcdrmfb frame buffer device
    [ 2.650637] cpu cpu0: _opp_add_static_v2: opp key field not found
    [ 2.657130] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -19
    [ 2.664441] cpu cpu0: OPP table can't be empty
    [ 2.669161] mmc0: new high speed SDHC card at address aaaa
    [ 2.675973] pm33xx: probe of pm33xx failed with error -22
    [ 2.682814] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
    [ 2.689120] input: user_keys as /devices/platform/user_keys/input/input1
    [ 2.699800] clk: Disabling unused clocks
    [ 2.704099] mmcblk0: p1 p2
    [ 2.708726] RAMDISK: gzip image found at block 0
    [ 4.375620] EXT4-fs (ram0): mounted filesystem without journal. Quota mode: none.
    [ 4.383489] VFS: Mounted root (ext4 filesystem) readonly on device 1:0.
    [ 4.390911] devtmpfs: mounted
    [ 4.395401] Freeing unused kernel image (initmem) memory: 1024K
    [ 4.401940] Run /sbin/init as init process
    [ 4.452785] EXT4-fs (ram0): re-mounted. Quota mode: none.
    [ 4.458480] ext4 filesystem being remounted at / supports timestamps until 2038-01-19 (0x7fffffff)
    Starting logging: OK
    Starting watchdog...
    Initializing random number generator... [ 5.440108] random: crng init done
    done.
    Starting system message bus: done
    Starting network...
    [ 5.623070] cpsw 4a100000.ethernet: initializing cpsw version 1.12 (0)
    [ 5.705208] Marvell 88E1510 4a101000.mdio:00: attached PHY driver (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    Starting user program...
    
    
    Welcome to ARM
    
    arm login: running system update...
    [ 6.919514] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    Info: Upgrading device using SD
    UPDATE FLAG : FALSE
    
    
    Welcome to ARM

    My pinmux and node details are as below:


    emmc_pins: pinmux_emmc_pins {
    pinctrl-single,pins = <
    AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_INPUT_PULLUP, MUX_MODE2) /* gpmc_csn1.mmc1_clk */
    AM33XX_PADCONF(AM335X_PIN_GPMC_CSN2, PIN_INPUT_PULLUP, MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
    AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
    AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
    AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
    AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
    AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
    AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
    AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
    AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
    >;
    };

    /* eMMC Reset */
    &gpio1{
    emmc_rst {
    gpio-hog;
    gpios = <29 0>;
    output-high;
    line-name = "EMMC ResetN";
    };
    };

    &mmc2 {
    vmmc-supply = <&vmmcsd_fixed>;
    vqmmc-supply = <&vmmcsd_fixed>;
    pinctrl-names = "default";
    pinctrl-0 = <&emmc_pins >;
    bus-width = <8>;
    status = "okay";
    non-removable;
    //reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
    };

  • Hi Shanti,

    I'm facing issue with eMMC enumberation. eMMC is registered but not enumberated as mmcblk device where as sd card is enumerated as mmcblk0 by kernel.

    Glad to hear the original SD card boot problem is resolved.

    Please create a new e2e thread for the new eMMC enumeration issue.