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.

How to access blank emmc from linux uart shell

Other Parts Discussed in Thread: AM3352, TPS65910, CSD

I have custom board based am3352 with a 2GiB emmc connected on mmc0 port in 8 bit mode. I can boot linux and a stripped down minimal file system of the arago from TI linux SDK. How do I mount and or /or partition the blank emmc. fdisk and sf disk commands on /dev/mmcnlk0 are causing the system to hang.  I do not know how to proceed from here.

  • Can you post your boot console messages and the fdisk hang?

    Steve K.

  • ================================================Kernel Boot log========================================================
    Kernel image @ 0x82000000 [ 0x000000 - 0xdf2998 ]
    ## Flattened Device Tree blob at 87000000
    Booting using the fdt blob at 0x87000000
    Loading Device Tree to 86730000, end 8673aa0b ... OK

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 3.14.26-g245f240-dirty (preetam@preetam-core) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #25 Tue Jun 16 10:38:28 PDT 2015
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine model: TI AM335x EVM
    [ 0.000000] bootconsole [earlycon0] enabled
    [ 0.000000] cma: CMA: reserved 24 MiB at 84800000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES1.0 (neon )
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 earlyprintk=serial mem=128m
    [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
    [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc082101c (8293 kB)
    [ 0.000000] .init : 0xc0822000 - 0xc12350ec (10317 kB)
    [ 0.000000] .data : 0xc1236000 - 0xc1290df8 ( 364 kB)
    [ 0.000000] .bss : 0xc1290df8 - 0xc12caca8 ( 232 kB)
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] Total of 128 interrupts on 1 active controller
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
    [ 0.008252] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.013653] Console: colour dummy device 80x30
    [ 0.018341] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [ 0.076579] pid_max: default: 32768 minimum: 301
    [ 0.081496] Security Framework initialized
    [ 0.085891] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.092783] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.107001] CPU: Testing write buffer coherency: ok
    [ 0.112456] Setting up static identity map for 0x805e0f40 - 0x805e0f98
    [ 0.124488] devtmpfs: initialized
    [ 0.129837] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.140409] ------------[ cut here ]------------
    [ 0.145299] WARNING: CPU: 0 PID: 1 at /home/preetam/Workspace/neato/ti-processor-sdk-linux-am335x-evm-01.00.00.00/board-support/linux-3.14.26-g2489c02/arch/arm/mach-omap2/omap_hwmod.c:2568 _init+0x500/)
    [ 0.164837] ---[ end trace b41b793a62d06332 ]---
    [ 0.175041] omap_hwmod: tptc0 using broken dt data from edma
    [ 0.181025] omap_hwmod: tptc1 using broken dt data from edma
    [ 0.187021] omap_hwmod: tptc2 using broken dt data from edma
    [ 0.193337] ------------[ cut here ]------------
    [ 0.198192] WARNING: CPU: 0 PID: 1 at /home/preetam/Workspace/neato/ti-processor-sdk-linux-am335x-evm-01.00.00.00/board-support/linux-3.14.26-g2489c02/arch/arm/mach-omap2/omap_hwmod.c:2568 _init+0x500/)
    [ 0.217647] ---[ end trace b41b793a62d06333 ]---
    [ 0.226395] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.261473] pinctrl core: initialized pinctrl subsystem
    [ 0.268040] regulator-dummy: no parameters
    [ 0.274616] NET: Registered protocol family 16
    [ 0.281328] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.291160] cpuidle: using governor ladder
    [ 0.295534] cpuidle: using governor menu
    [ 0.306829] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x44e107fb] registered
    [ 0.316960] platform 49000000.edma: alias fck already exists
    [ 0.322882] platform 49000000.edma: alias fck already exists
    [ 0.328873] platform 49000000.edma: alias fck already exists
    [ 0.335988] OMAP GPIO hardware version 0.1
    [ 0.354844] No ATAGs?
    [ 0.357012] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.390945] bio: create slab <bio-0> at 0
    [ 0.411526] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [ 0.419585] vbat: 5000 mV
    [ 0.422848] lis3_reg: no parameters
    [ 0.427076] wlan-en-regulator: 1800 mV
    [ 0.432641] vgaarb: loaded
    [ 0.436529] SCSI subsystem initialized
    [ 0.442011] usbcore: registered new interface driver usbfs
    [ 0.447985] usbcore: registered new interface driver hub
    [ 0.453758] usbcore: registered new device driver usb
    [ 0.460061] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [ 0.471150] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [ 0.478343] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
    [ 0.489358] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
    [ 0.496875] pps_core: LinuxPPS API ver. 1 registered
    [ 0.502069] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.511708] PTP clock support registered
    [ 0.517908] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.525174] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.533122] Switched to clocksource timer1
    [ 0.558240] NET: Registered protocol family 2
    [ 0.563822] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.571086] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.577747] TCP: Hash tables configured (established 1024 bind 1024)
    [ 0.584438] TCP: reno registered
    [ 0.587847] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.593957] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.600688] NET: Registered protocol family 1
    [ 0.605588] RPC: Registered named UNIX socket transport module.
    [ 0.611765] RPC: Registered udp transport module.
    [ 0.616711] RPC: Registered tcp transport module.
    [ 0.621632] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 1.632544] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
    [ 1.644461] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 1.837867] VFS: Disk quotas dquot_6.5.2
    [ 1.842588] NFS: Registering the id_resolver key type
    [ 1.848024] Key type id_resolver registered
    [ 1.852412] Key type id_legacy registered
    [ 1.856671] jffs2: version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.
    [ 1.864194] msgmni has been set to 211
    [ 1.869659] NET: Registered protocol family 38
    [ 1.874426] io scheduler noop registered
    [ 1.878547] io scheduler deadline registered
    [ 1.883035] io scheduler cfq registered (default)
    [ 1.889684] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 1.900492] backlight.9 supply power not found, using dummy regulator
    [ 1.910597] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 1.920388] omap_uart 44e09000.serial: no wakeirq for uart0
    [ 1.926425] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [ 1.936110] console [ttyO0] enabled
    [ 1.936110] console [ttyO0] enabled
    [ 1.943432] bootconsole [earlycon0] disabled
    [ 1.943432] bootconsole [earlycon0] disabled
    [ 1.953031] omap_uart 48022000.serial: no wakeirq for uart0
    [ 1.959097] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [ 1.970145] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 1.977534] [drm] Initialized drm 1.1.0 20060810
    [ 1.994041] brd: module loaded
    [ 2.003071] loop: module loaded
    [ 2.006808] (stk) :sysfs entries created
    [ 2.010935] (stk) : debugfs entries created
    [ 2.015459] (hci_tty): inside hci_tty_init
    [ 2.020431] (hci_tty): allocated 249, 0
    [ 2.027708] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 2.038672] usbcore: registered new interface driver asix
    [ 2.044597] usbcore: registered new interface driver ax88179_178a
    [ 2.051154] usbcore: registered new interface driver cdc_ether
    [ 2.057446] usbcore: registered new interface driver smsc95xx
    [ 2.063649] usbcore: registered new interface driver net1080
    [ 2.069754] usbcore: registered new interface driver cdc_subset
    [ 2.076095] usbcore: registered new interface driver zaurus
    [ 2.082180] usbcore: registered new interface driver cdc_ncm
    [ 2.088602] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 2.095501] ehci-pci: EHCI PCI platform driver
    [ 2.100316] ehci-omap: OMAP-EHCI Host Controller driver
    [ 2.106312] usbcore: registered new interface driver cdc_wdm
    [ 2.112455] usbcore: registered new interface driver usb-storage
    [ 2.119878] mousedev: PS/2 mouse device common for all mice
    [ 2.126820] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
    [ 2.134176] input: ti-tsc as /devices/ocp.3/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [ 2.143990] i2c /dev entries driver
    [ 2.147844] Driver for 1-wire Dallas network protocol.
    [ 2.155887] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 2.164953] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
    [ 2.171893] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
    [ 2.180030] ledtrig-cpu: registered to indicate activity on CPUs
    [ 2.186671] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 2.193987] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 2.201599] usbcore: registered new interface driver usbhid
    [ 2.207465] usbhid: USB HID core driver
    [ 2.211726] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral
    [ 2.222215] oprofile: using arm/armv7
    [ 2.226434] TCP: cubic registered
    [ 2.229912] Initializing XFRM netlink socket
    [ 2.234407] NET: Registered protocol family 17
    [ 2.239094] NET: Registered protocol family 15
    [ 2.243866] Key type dns_resolver registered
    [ 2.248975] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [ 2.258122] cpu cpu0: cpu0 clock notifier not ready, retry
    [ 2.263960] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [ 2.272337] PM: no-rtc available, rtc-only mode disabled.
    [ 2.278040] ThumbEE CPU extension supported.
    [ 2.282601] Registering SWP/SWPB emulation handler
    [ 2.289167] wlan-en-regulator: disabling
    [ 2.293385] lis3_reg: disabling
    [ 2.296677] vbat: disabling
    [ 2.299598] regulator-dummy: disabling
    [ 2.313178] tps65910 0-002d: No interrupt support, no core IRQ
    [ 2.323802] vrtc: 1800 mV
    [ 2.326916] vrtc: supplied by vbat
    [ 2.332212] vio: at 1500 mV
    [ 2.335338] vio: supplied by vbat
    [ 2.340652] vdd_mpu: 912 <--> 1375 mV at 1137 mV
    [ 2.345672] vdd_mpu: supplied by vbat
    [ 2.351324] vdd_core: 912 <--> 1150 mV at 1137 mV
    [ 2.356429] vdd_core: supplied by vbat
    [ 2.361830] vdd3: 5000 mV
    [ 2.366064] vdig1: at 1800 mV
    [ 2.369343] vdig1: supplied by vbat
    [ 2.374405] vdig2: at 1800 mV
    [ 2.377689] vdig2: supplied by vbat
    [ 2.382741] vpll: at 1800 mV
    [ 2.385942] vpll: supplied by vbat
    [ 2.390900] vdac: at 1800 mV
    [ 2.394101] vdac: supplied by vbat
    [ 2.399069] vaux1: at 1800 mV
    [ 2.402345] vaux1: supplied by vbat
    [ 2.407403] vaux2: at 3300 mV
    [ 2.410678] vaux2: supplied by vbat
    [ 2.415780] vaux33: at 3300 mV
    [ 2.419141] vaux33: supplied by vbat
    [ 2.424284] vmmc: 1800 <--> 3300 mV at 3300 mV
    [ 2.429102] vmmc: supplied by vbat
    [ 2.434207] tps65910-rtc tps65910-rtc: IRQ is not free.
    [ 2.439692] tps65910-rtc: probe of tps65910-rtc failed with error -22
    [ 2.446814] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 2.453960] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [ 2.493749] remoteproc0: wkup_m3 is available
    [ 2.498446] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 2.507828] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 2.521205] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[1100000<->1260000]:-22
    [ 2.531700] remoteproc0: powering up wkup_m3
    [ 2.536891] remoteproc0: Booting fw image am335x-pm-firmware.elf, size 154412
    [ 2.546604] PM: CM3 Firmware Version = 0x190
    [ 2.552590] input: volume_keys.8 as /devices/volume_keys.8/input/input1
    [ 2.561698] remoteproc0: remote processor wkup_m3 is now up
    [ 2.568664] /home/preetam/Workspace/neato/ti-processor-sdk-linux-am335x-evm-01.00.00.00/board-support/linux-3.14.26-g2489c02/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    [ 2.588743] ALSA device list:
    [ 2.591933] No soundcards found.
    [ 2.595708] Warning: unable to open an initial console.
    [ 2.615108] Freeing unused kernel memory: 10316K (c0822000 - c1235000)
    [ 2.657608] mmc0: BKOPS_EN bit is not set
    [ 2.666587] mmc0: new high speed MMC card at address 0001
    [ 2.673037] mmcblk0: mmc0:0001 MMC02G 1.78 GiB
    [ 2.679100] mmcblk0boot0: mmc0:0001 MMC02G partition 1 1.00 MiB
    [ 2.685499] mmcblk0boot1: mmc0:0001 MMC02G partition 2 1.00 MiB
    [ 3.652840] udevd[803]: starting version 182
    [ 6.320291] random: dd urandom read with 90 bits of entropy available
    rpcbind: cannot create socket for udp6
    rpcbind: cannot create socket for tcp6
    [ 8.479844] random: nonblocking pool is initialized

    _____ _____ _ _
    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project http://arago-project.org am335x-evm /dev/ttyO0

    Arago 2015.03 am335x-evm /dev/ttyO0

    am335x-evm login: root

    ======================================================================================================================
    =========================================================Console actions==============================================
    root@am335x-evm:~# ls /dev
    block ram1 tty21 tty53
    char ram10 tty22 tty54
    console ram11 tty23 tty55
    cpu_dma_latency ram12 tty24 tty56
    fd ram13 tty25 tty57
    full ram14 tty26 tty58
    hci_tty ram15 tty27 tty59
    hwrng ram2 tty28 tty6
    i2c-0 ram3 tty29 tty60
    i2c-1 ram4 tty3 tty61
    initctl ram5 tty30 tty62
    input ram6 tty31 tty63
    kmem ram7 tty32 tty7
    kmsg ram8 tty33 tty8
    log ram9 tty34 tty9
    loop-control random tty35 ttyO0
    loop0 rfkill tty36 ttyO1
    loop1 shm tty37 ttyS0
    loop2 snd tty38 ttyS1
    loop3 stdin tty39 ttyS2
    loop4 tty tty4 ttyS3
    loop5 tty0 tty40 ubi_ctrl
    loop6 tty1 tty41 udev_network_queue
    loop7 tty10 tty42 urandom
    mem tty11 tty43 usbmon0
    mmcblk0 tty12 tty44 vcs
    mtab tty13 tty45 vcs1
    network_latency tty14 tty46 vcsa
    network_throughput tty15 tty47 vcsa1
    null tty16 tty48 vga_arbiter
    port tty17 tty49 watchdog
    psaux tty18 tty5 watchdog0
    ptmx tty19 tty50 zero
    pts tty2 tty51
    ram0 tty20 tty52

    root@am335x-evm:/sys/class/mmc_host# ls
    mmc0

    root@am335x-evm:/sys/class/mmc_host/mmc0# cat device/driver/48060000.mmc/modalias
    of:NmmcT<NULL>Cti,omap4-hsmmcroot@am335x-evm:/sys/class/mmc_host/mmc0# ls
    device mmc0:0001 power subsystem uevent

    root@am335x-evm:/sys/class/mmc_host/mmc0/mmc0:0001# ls
    block fwrev raw_rpmb_size_mult
    cid hwrev rel_sectors
    csd manfid serial
    date name subsystem
    driver oemid type
    enhanced_area_offset power uevent
    enhanced_area_size preferred_erase_size
    erase_size prv

    root@am335x-evm:~# sfdisk -s /dev/mmcblk0
    ^C^C^C^C^X^Z^X^X^Z^Z
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;;
    ;
    ;
    ;
    ;
    ;
    ;
    \

    =====================================================================================================================
    After this I just reset the board.

    -Preetam-