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.

AM3352: EMMC is not being detected in TI-SDK-Linux

Part Number: AM3352

Hi,

I'm using AM3352 Sitara Processor with ti-sdk-linux version 5.2. We're interfacing MTFC32GJDED-4M_IT_eMMC through MMC interface. Here is my mmc portion of dts file:

mmc2_pins: mmc2_pins {
pinctrl-single,pins = <
/************************ EMMC Interface ************************/
/* Control Lines */
0x80 (PIN_INPUT | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
0x168 (PIN_OUTPUT | MUX_MODE7) /* (E18) UART0_nCTS.gpio1[8] nEMMC1_RST */

/* Data Lines */
0x20 (PIN_INPUT | MUX_MODE2) /* GPMC_AD8.EMMC1_DATA0 */
0x24 (PIN_INPUT | MUX_MODE2) /* GPMC_AD9.EMMC1_DATA1 */
0x28 (PIN_INPUT | MUX_MODE2) /* GPMC_AD10.EMMC1_DATA2 */
0x2C (PIN_INPUT | MUX_MODE2) /* GPMC_AD11.EMMC1_DATA3 */
0x30 (PIN_INPUT | MUX_MODE2) /* GPMC_AD12.EMMC1_DATA4 */
0x34 (PIN_INPUT | MUX_MODE2) /* GPMC_AD13.EMMC1_DATA5 */
0x38 (PIN_INPUT | MUX_MODE2) /* GPMC_AD14.EMMC1_DATA6 */
0x3C (PIN_INPUT | MUX_MODE2) /* GPMC_AD15.EMMC1_DATA7 */
/************************ EMMC Interface ************************/
>;
};

With this configuration, U-Boot is detecting the MMC, and it printing log message like: MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1 (Here MMC0 is SD card, MMC1 is eMMC). But when it comes to linux, device is not getting mapped under /dev directory.

Please advice as I'm new in this area.

Regards,

Srikanth Vemula.

  • Hello Srikanth,

    Can you attach the complete boot log?

    Best regards,
    Kemal

  • Hi Kemal,

    Please find the attached boot log.

    U-Boot SPL 2014.07-00128-gf9d19de-dirty (Apr 28 2017 - 13:00:46)
    Found CCS SOM
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    FAT: Misaligned buffer address (807ffc70)
    Verifying secure image ... OK
    U-Boot decrypted in 65 ms
    
    
    U-Boot 2014.07-00128-gf9d19de-dirty (Apr 28 2017 - 13:00:46)
    
    I2C:   ready
    DRAM:  1 GiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env
    
    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment
    
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    RGMII Mode selected
    cpsw, usb_ether
    Hit any key to stop autoboot:  2  1  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading uEnv.txt
    155 bytes read in 2 ms (75.2 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    reading /boot/zImage
    3787720 bytes read in 211 ms (17.1 MiB/s)
    reading /boot/am335x-evm.dtb
    35082 bytes read in 6 ms (5.6 MiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x39cbc8 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff4000, end 8ffff909 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.79-gbde58ab01e (root@osboxes) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Wed Aug 14 17:49:59 IST 2019
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM335x EVM
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] cma: Reserved 24 MiB at 0xbe800000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro 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: 1000920K/1048576K available (8192K kernel code, 303K rwdata, 2484K rodata, 1024K init, 262K bss, 23080K reserved, 24576K cma-reserved, 237568K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
    [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
    [    0.000000]       .data : 0xc0d00000 - 0xc0d4bf68   ( 304 kB)
    [    0.000000]        .bss : 0xc0d4bf68 - 0xc0d8db14   ( 263 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000] 	Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000034] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000044] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000433] timer_probe: no matching timers found
    [    0.000654] Console: colour dummy device 80x30
    [    0.000693] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089215] pid_max: default: 32768 minimum: 301
    [    0.089409] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.089429] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.090242] CPU: Testing write buffer coherency: ok
    [    0.090314] CPU0: Spectre v2: using BPIALL workaround
    [    0.091058] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.091211] Hierarchical SRCU implementation.
    [    0.092846] devtmpfs: initialized
    [    0.099724] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
    [    0.100201] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.100493] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.100514] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.102503] pinctrl core: initialized pinctrl subsystem
    [    0.103642] NET: Registered protocol family 16
    [    0.105723] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.108681] omap_hwmod: rtc: no dt node
    [    0.108697] ------------[ cut here ]------------
    [    0.108740] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2494 _init.constprop.20+0x1e0/0x4a4
    [    0.108748] omap_hwmod: rtc: doesn't have mpu register target base
    [    0.108754] Modules linked in:
    [    0.108772] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.79-gbde58ab01e #1
    [    0.108779] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    0.108786] Backtrace: 
    [    0.108821] [<c010b6d0>] (dump_backtrace) from [<c010b9b4>] (show_stack+0x18/0x1c)
    [    0.108833]  r7:00000009 r6:00000000 r5:c0a9bc00 r4:ee853e20
    [    0.108859] [<c010b99c>] (show_stack) from [<c07f45c8>] (dump_stack+0x24/0x28)
    [    0.108880] [<c07f45a4>] (dump_stack) from [<c0128648>] (__warn+0xe8/0x100)
    [    0.108891] [<c0128560>] (__warn) from [<c01286a0>] (warn_slowpath_fmt+0x40/0x48)
    [    0.108902]  r9:000000be r8:c0c35820 r7:00000000 r6:c0d0b684 r5:00000000 r4:c0a9beb4
    [    0.108914] [<c0128664>] (warn_slowpath_fmt) from [<c0c098f8>] (_init.constprop.20+0x1e0/0x4a4)
    [    0.108922]  r3:c0adc3b4 r2:c0a9beb4
    [    0.108928]  r4:c0d0b640
    [    0.108939] [<c0c09718>] (_init.constprop.20) from [<c0c0a0f0>] (__omap_hwmod_setup_all+0x48/0x98)
    [    0.108950]  r10:c0d4bf80 r9:000000be r8:c0c35820 r7:c0d4bf80 r6:c0c0a0a8 r5:c0d086e0
    [    0.108956]  r4:c0d0b640
    [    0.108968] [<c0c0a0a8>] (__omap_hwmod_setup_all) from [<c01019e4>] (do_one_initcall+0x4c/0x170)
    [    0.108975]  r5:00000000 r4:ffffe000
    [    0.108986] [<c0101998>] (do_one_initcall) from [<c0c00ea8>] (kernel_init_freeable+0x148/0x1e4)
    [    0.108996]  r8:c0c35820 r7:c0d4bf80 r6:00000003 r5:c0c450f8 r4:c0b6b5e4
    [    0.109009] [<c0c00d60>] (kernel_init_freeable) from [<c08075f8>] (kernel_init+0x10/0x114)
    [    0.109020]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c08075e8
    [    0.109026]  r4:00000000
    [    0.109037] [<c08075e8>] (kernel_init) from [<c0107d08>] (ret_from_fork+0x14/0x2c)
    [    0.109044]  r5:c08075e8 r4:00000000
    [    0.109062] ---[ end trace e25402002104ea9c ]---
    [    0.118328] omap_hwmod: debugss: _wait_target_disable failed
    [    0.170399] cpuidle: using governor ladder
    [    0.170433] cpuidle: using governor menu
    [    0.174476] OMAP GPIO hardware version 0.1
    [    0.181935] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/gpmc_pins_default, deferring probe
    [    0.183784] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.195283] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.198432] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins, deferring probe
    [    0.198564] media: Linux media interface: v0.10
    [    0.198603] Linux video capture interface: v2.00
    [    0.198703] pps_core: LinuxPPS API ver. 1 registered
    [    0.198710] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.198733] PTP clock support registered
    [    0.198765] EDAC MC: Ver: 3.0.0
    [    0.200008] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.200300] FPGA manager framework
    [    0.200377] Advanced Linux Sound Architecture Driver Initialized.
    [    0.201592] clocksource: Switched to clocksource timer1
    [    0.209496] NET: Registered protocol family 2
    [    0.210245] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.210320] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.210388] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.210535] UDP hash table entries: 512 (order: 1, 8192 bytes)
    [    0.210557] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
    [    0.210716] NET: Registered protocol family 1
    [    0.211201] RPC: Registered named UNIX socket transport module.
    [    0.211217] RPC: Registered udp transport module.
    [    0.211223] RPC: Registered tcp transport module.
    [    0.211229] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.212286] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.212413] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.213875] workingset: timestamp_bits=14 max_order=18 bucket_order=4
    [    0.217855] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.218649] NFS: Registering the id_resolver key type
    [    0.218700] Key type id_resolver registered
    [    0.218707] Key type id_legacy registered
    [    0.218752] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.227814] bounce: pool size: 64 pages
    [    0.227943] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [    0.227956] io scheduler noop registered
    [    0.227963] io scheduler deadline registered
    [    0.228179] io scheduler cfq registered (default)
    [    0.228190] io scheduler mq-deadline registered
    [    0.228197] io scheduler kyber registered
    [    0.229089] pinctrl-single 44e10800.pinmux: please update dts to use #pinctrl-cells = <1>
    [    0.229431] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.275769] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.276005] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a OMAP UART0
    [    1.096865] console [ttyO0] enabled
    [    1.101063] omap_uart 48024000.serial: no wakeirq for uart2
    [    1.107178] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 31, base_baud = 3000000) is a OMAP UART2
    [    1.117256] omap_uart 481aa000.serial: no wakeirq for uart5
    [    1.123267] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 32, base_baud = 3000000) is a OMAP UART5
    [    1.141175] loop: module loaded
    [    1.146146] libphy: Fixed MDIO Bus: probed
    [    1.151166] CAN device driver interface
    [    1.156342] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=37)
    [    1.231680] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.239686] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
    [    1.248397] libphy: 4a101000.mdio: probed
    [    1.252717] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Micrel KSZ9031 Gigabit PHY
    [    1.262842] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
    [    1.273878] cpsw 4a100000.ethernet: Detected MACID = 7c:38:66:06:c8:c0
    [    1.280807] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.287569] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.293875] cpsw 4a100000.ethernet: cpsw: Detected MACID = 7c:38:66:06:c8:c2
    [    1.302601] mousedev: PS/2 mouse device common for all mice
    [    1.309008] i2c /dev entries driver
    [    1.312901] IR NEC protocol handler initialized
    [    1.317633] IR RC5(x/sz) protocol handler initialized
    [    1.322953] IR RC6 protocol handler initialized
    [    1.327679] IR JVC protocol handler initialized
    [    1.332434] IR Sony protocol handler initialized
    [    1.337250] IR SANYO protocol handler initialized
    [    1.342170] IR Sharp protocol handler initialized
    [    1.347076] IR MCE Keyboard/mouse protocol handler initialized
    [    1.353276] IR XMP protocol handler initialized
    [    1.359487] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 10 sec
    [    1.367340] cpu cpu0: "syscon" is missing, cannot use OPPv2 table.
    [    1.373911] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.383526] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.392560] NET: Registered protocol family 10
    [    1.398595] Segment Routing with IPv6
    [    1.402653] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.409526] NET: Registered protocol family 17
    [    1.414301] can: controller area network core (rev 20170425 abi 9)
    [    1.420850] NET: Registered protocol family 29
    [    1.425551] can: raw protocol (rev 20170425)
    [    1.430024] can: broadcast manager protocol (rev 20170425 t)
    [    1.435970] can: netlink gateway (rev 20170425) max_hops=1
    [    1.442113] Key type dns_resolver registered
    [    1.446693] omap_voltage_late_init: Voltage driver support not added
    [    1.458979] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.464562] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.501822] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.509916] vrtc: supplied by vbat
    [    1.517175] vio: supplied by vbat
    [    1.522078] vdd1: supplied by vbat
    [    1.527344] vdd2: supplied by vbat
    [    1.533252] random: fast init done
    [    1.537526] vdig1: supplied by vbat
    [    1.542462] vdig2: supplied by vbat
    [    1.547384] vpll: supplied by vbat
    [    1.552214] vdac: supplied by vbat
    [    1.557036] vaux1: supplied by vbat
    [    1.561953] vaux2: supplied by vbat
    [    1.566873] vaux33: supplied by vbat
    [    1.571864] vmmc: supplied by vbat
    [    1.576693] vbb: supplied by vbat
    [    1.581203] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.702400] hctosys: unable to open rtc device (rtc0)
    [    1.708155] lis3_reg: disabling
    [    1.711781] ALSA device list:
    [    1.715972]   No soundcards found.
    [    1.722430] Waiting for root device /dev/mmcblk0p2...
    [    1.753434] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.767450] mmc0: new high speed SDHC card at address aaaa
    [    1.773787] mmcblk0: mmc0:aaaa SS08G 7.40 GiB 
    [    1.784074]  mmcblk0: p1 p2
    [    1.816951] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [    1.824711] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [    1.858673] EXT4-fs (mmcblk0p2): recovery complete
    [    1.865593] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.874175] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    1.886704] devtmpfs: mounted
    [    1.891298] Freeing unused kernel memory: 1024K
    [    2.175633] systemd[1]: System time before build time, advancing clock.
    [    2.223942] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.238667] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.255213] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
    [    2.274923] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2016.08!
    
    [    2.325984] systemd[1]: Set hostname to <am335x-evm>.
    [    2.416343] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
    [    2.608148] systemd[1]: [/lib/systemd/system/gadget-init.service:15] Unknown lvalue 'ExecStopPre' in section 'Service'
    [    2.882032] systemd[1]: sysinit.target: Found ordering cycle on sysinit.target/start
    [    2.890173] systemd[1]: sysinit.target: Found dependency on alignment.service/start
    [    2.898304] systemd[1]: sysinit.target: Found dependency on basic.target/start
    [    2.905883] systemd[1]: sysinit.target: Found dependency on sockets.target/start
    [    2.913627] systemd[1]: sysinit.target: Found dependency on avahi-daemon.socket/start
    [    2.921838] systemd[1]: sysinit.target: Found dependency on sysinit.target/start
    [ SKIP ] Ordering cycle found, skipping alignment.service
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Created slice User and Session Slice.
    [  OK  ] Listening on Journal Socket.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on Journal Socket (/dev/log).
    [  OK  ] Created slice System Slice.
             Starting Setup Virtual Console...
    [  OK  ] Created slice system-getty.slice.
             Mounting Temporary Directory...
             Mounting Debug File System...
             Starting Load Kernel Modules...
    [  OK  ] Reached target Slices.
             Starting File System Check on Root Device...
             Mounting POSIX Message Queue File System...
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Listening on udev Kernel Socket.
    [  OK  ] Reached target Swap.
    [  OK  ] Listening on Syslog Socket.
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
             Starting Journal Service...
    [  OK  ] Listening on Network Service Netlink Socket.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Debug File System.
    [  OK  ] Mounted Temporary Directory.
    [  OK  ] Started Setup Virtual Console.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started File System Check on Root Device.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Started Journal Service.
             Starting udev Kernel Device Manager...
             Starting Remount Root and Kernel File Systems...
             Starting Apply Kernel Variables...
    [    4.137259] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [  OK  ] Started Remount Root and Kernel File Systems.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started udev Kernel Device Manager.
             Starting udev Coldplug all Devices...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [    4.857742] systemd-journald[72]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
             Starting Load/Save Random Seed...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Reached target System Time Synchronized.
             Starting Synchronize System and HW clocks...
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Found device /dev/ttyO0.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting Permit User Sessions...
             Starting Telephony service...
             Starting Login Service...
             Starting uim-sysfs.service...
    [  OK  ] Started System Logging Service.
    [  OK  ] Started D-Bus System Message Bus.
    [  OK  ] Started Telephony service.
             Starting Network Service...
    [  OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
             Starting Print notice about GPLv3 packages...
             Starting Avahi mDNS/DNS-SD Stack...
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Network Service.
    [    9.925824] net eth1: initializing cpsw version 1.12 (0)
    [   10.116782] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:01, irq=POLL)
    [   10.290774] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [   10.532823] net eth0: initializing cpsw version 1.12 (0)
    [   10.603046] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [   10.737006] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [   10.741536] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Login Service.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target Network.
             Starting Lightning Fast Webserver With Light System Requirements...
             Starting Network Name Resolution...
    [  OK  ] Started Serial Getty on ttyO0.
    [  OK  ] Started Getty on tty1.
    [FAILED] Failed to start Lightning Fast Webs... With Light System Requirements.
    See 'systemctl status lighttpd.service' for details.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Found device /dev/mmcblk0p1.
             Starting Start USB gadget...
    [FAILED] Failed to start Start USB gadget.
    See 'systemctl status gadget-init.service' for details.
    [   17.298249] random: crng init done
    [   17.301837] random: 7 urandom warning(s) missed due to ratelimiting
    
    am335x-evm login: ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    	autoconf
    	binutils
    	bison-dev
    	bison
    	cpp-symlinks
    	cpp
    	dosfstools
    	g++-symlinks
    	g++
    	gawk-dev
    	gawk
    	gcc-symlinks
    	gcc
    	gdb
    	gdbserver
    	gstreamer1.0-libav
    	hidapi
    	libcairo-perf-utils
    	libgmp10
    	libidn11
    	libmpc3
    	libmpfr4
    	make
    	nettle
    	swig-dev
    	swig
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [   21.123494] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   21.131994] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   23.144233] sio3_gpio_driver: loading out-of-tree module taints kernel.
    [   23.151355] sio3_gpio_driver: disagrees about version of symbol gpiod_get_raw_value
    [   23.163649] sio3_gpio_driver: Unknown symbol gpiod_get_raw_value (err -22)
    [   23.173974] sio3_gpio_driver: disagrees about version of symbol gpiod_set_raw_value
    [   23.184188] sio3_gpio_driver: Unknown symbol gpiod_set_raw_value (err -22)
    [   23.191395] sio3_gpio_driver: disagrees about version of symbol gpiod_to_irq
    [   23.202754] sio3_gpio_driver: Unknown symbol gpiod_to_irq (err -22)
    [   23.209518] sio3_gpio_driver: disagrees about version of symbol gpiod_set_debounce
    [   23.221813] sio3_gpio_driver: Unknown symbol gpiod_set_debounce (err -22)
    [   23.229045] sio3_gpio_driver: disagrees about version of symbol gpio_to_desc
    [   23.240202] sio3_gpio_driver: Unknown symbol gpio_to_desc (err -22)
    
    am335x-evm login: root
    executing /etc/profile
    -sh: cd: /root: No such file or directory
     
        ----------------------------- 
      /  .-.          TI            !
     /   /v\    L   I   N   U   X    !
    !   // \\                        !
    !  /(   )\  Kernel 4.14.79-gbde58ab01e
    !   ^^-^^
    ! PATH=/sbin:/bin:/usr/sbin:/usr/bin:/root:.
    ! HOME=/root, PWD=/home/root, USER=root
     ---
    -sh-3.2# su
    sh-3.2# 

  • Can you post the mmc2 node content and the output of fdisk -l command?

    &mmc2 {
    	vmmc-supply = <&vmmcsd_fixed>;
    	pinctrl-names = "default";
    	pinctrl-0 = <&emmc_pins>;
    	bus-width = <8>;
    	status = "okay";
    };
  • mmc2 node content:

    &mmc2 {
    status = "okay";
    vmmc-supply = <&vmmc_reg>;
    bus-width = <8>;
    pinctrl-names = "default";
    pinctrl-0 = <&mmc2_pins>;
    reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
    };

    fdisk -l:

    -sh-3.2# fdisk -l

    Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors

    Units: sectors of 1 * 512 = 512 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

    Disklabel type: dos

    Disk identifier: 0x0008d680

     

    Device         Boot  Start      End  Sectors  Size Id Type

    /dev/mmcblk0p1 *      2048   145407   143360   70M  c W95 FAT32 (LBA)

    /dev/mmcblk0p2      145408 15491071 15345664  7.3G 83 Linux

    -sh-3.2#

  • Can you change the regulator-min-microvolt to 3300000 in vmmc_reg node and check if the eMMC will be detected then?

            vmmc_reg: regulator@12 {
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                regulator-always-on;
            };
  • Thanks a lot for your quick response. EMMC is detected now and I could mount the rootfs.