SD卡挂载于mmc0上:
am335x-bone-common.dtsi 上配置:
mmc1_pins: pinmux_mmc1_pins {
pinctrl-single,pins = <
0x0F0 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
0x0F4 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
0x0F8 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
0x0FC (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
0x100 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
0x104 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
/* 0x1A0 (PIN_INPUT_PULLUP | MUX_MODE7) mcasp0_aclkr.gpio3_18 */
/* 0x160 (PIN_INPUT | MUX_MODE7) spi0_cs1.gpio0_6 */
/*0x160 (PIN_INPUT | MUX_MODE7) GPIO0_6 */
>;
};
emmc_pins: pinmux_emmc_pins {
pinctrl-single,pins = <
0x0F0 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
0x0F4 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
0x0F8 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
0x0FC (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
0x100 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
0x104 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
/*0x80 (PIN_INPUT_PULLUP | MUX_MODE2) gpmc_csn1.mmc1_clk */
/* 0x84 (PIN_INPUT_PULLUP | MUX_MODE2) gpmc_csn2.mmc1_cmd */
/* 0x00 (PIN_INPUT_PULLUP | MUX_MODE1) gpmc_ad0.mmc1_dat0 */
/*0x04 (PIN_INPUT_PULLUP | MUX_MODE1) gpmc_ad1.mmc1_dat1 */
/*0x08 (PIN_INPUT_PULLUP | MUX_MODE1) gpmc_ad2.mmc1_dat2 */
/*0x0c (PIN_INPUT_PULLUP | MUX_MODE1) gpmc_ad3.mmc1_dat3 */
/*0x10 (PIN_INPUT_PULLUP | MUX_MODE1) gpmc_ad4.mmc1_dat4 */
/*0x14 (PIN_INPUT_PULLUP | MUX_MODE1) gpmc_ad5.mmc1_dat5 */
/*0x18 (PIN_INPUT_PULLUP | MUX_MODE1) gpmc_ad6.mmc1_dat6 */
/*0x1c (PIN_INPUT_PULLUP | MUX_MODE1) gpmc_ad7.mmc1_dat7 */
>;
};
&mmc1 {
status = "okay";
bus-width = <0x4>;
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins>;
cd-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
/*cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;*/
};
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.19-gdb0b54cdad (root@localhost.localdomain) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 PREEMPT Tue Nov 29 14:25:17 CST 2016
[ 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 BeagleBone
[ 0.000000] cma: Reserved 24 MiB at 0x9e800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 484696K/524288K available (6551K kernel code, 314K rwdata, 2328K rodata, 268K init, 265K bss, 15016K reserved, 24576K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08b4004 (8881 kB)
[ 0.000000] .init : 0xc08b5000 - 0xc08f8000 ( 268 kB)
[ 0.000000] .data : 0xc08f8000 - 0xc0946b10 ( 315 kB)
[ 0.000000] .bss : 0xc0946b10 - 0xc0989258 ( 266 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000033] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000086] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000114] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000502] clocksource_probe: no matching clocksources found
[ 0.000898] Console: colour dummy device 80x30
[ 0.000954] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000971] This ensures that you still see kernel messages. Please
[ 0.000985] update your kernel commandline.
[ 0.001025] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[ 0.067659] pid_max: default: 32768 minimum: 301
[ 0.067981] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.068012] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.069622] Initializing cgroup subsys io
[ 0.069689] Initializing cgroup subsys memory
[ 0.069774] Initializing cgroup subsys devices
[ 0.069810] Initializing cgroup subsys freezer
[ 0.069846] Initializing cgroup subsys perf_event
[ 0.069877] Initializing cgroup subsys pids
[ 0.069941] CPU: Testing write buffer coherency: ok
[ 0.070772] Setting up static identity map for 0x80008200 - 0x80008258
[ 0.076149] devtmpfs: initialized
[ 0.105019] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.138745] omap_hwmod: debugss: _wait_target_disable failed
[ 0.209582] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.214305] pinctrl core: initialized pinctrl subsystem
[ 0.217290] NET: Registered protocol family 16
[ 0.222790] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.247746] cpuidle: using governor ladder
[ 0.277730] cpuidle: using governor menu
[ 0.289079] OMAP GPIO hardware version 0.1
[ 0.311427] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.378961] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.386515] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.386650] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 0.386914] media: Linux media interface: v0.10
[ 0.387064] Linux video capture interface: v2.00
[ 0.387186] pps_core: LinuxPPS API ver. 1 registered
[ 0.387208] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.387278] PTP clock support registered
[ 0.387414] EDAC MC: Ver: 3.0.0
[ 0.390252] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.390987] Advanced Linux Sound Architecture Driver Initialized.
[ 0.393757] clocksource: Switched to clocksource timer1
[ 0.421665] NET: Registered protocol family 2
[ 0.423472] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.423617] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.423883] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.424062] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.424112] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.424499] NET: Registered protocol family 1
[ 0.425363] RPC: Registered named UNIX socket transport module.
[ 0.425400] RPC: Registered udp transport module.
[ 0.425418] RPC: Registered tcp transport module.
[ 0.425436] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.427441] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.431947] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.453260] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.456018] NFS: Registering the id_resolver key type
[ 0.456178] Key type id_resolver registered
[ 0.456202] Key type id_legacy registered
[ 0.456398] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.465292] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.465366] io scheduler noop registered
[ 0.465405] io scheduler deadline registered
[ 0.465853] io scheduler cfq registered (default)
[ 0.468743] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.632701] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.642687] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 1.252442] console [ttyS0] enabled
[ 1.258267] [drm] Initialized drm 1.1.0 20060810
[ 1.281967] loop: module loaded
[ 1.290931] libphy: Fixed MDIO Bus: probed
[ 1.363916] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.370099] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.378250] libphy: 4a101000.mdio: probed
[ 1.382316] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[ 1.393445] cpsw 4a100000.ethernet: Detected MACID = 68:c9:0b:f7:c1:eb
[ 1.404881] mousedev: PS/2 mouse device common for all mice
[ 1.411964] i2c /dev entries driver
[ 1.418184] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.426993] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.469059] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.480205] omap_hsmmc 48060000.mmc: no support for card's volts
[ 1.490219] NET: Registered protocol family 10
[ 1.494937] mmc0: error -22 whilst initialising SD card
[ 1.504715] sit: IPv6 over IPv4 tunneling driver
[ 1.511236] NET: Registered protocol family 17
[ 1.516575] Key type dns_resolver registered
[ 1.521318] omap_voltage_late_init: Voltage driver support not added
[ 1.567382] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 1.573409] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.580508] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.589056] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.596800] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.604293] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.611677] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.618736] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 1.630565] hctosys: unable to open rtc device (rtc0)
[ 1.640395] ALSA device list:
[ 1.643417] No soundcards found.
[ 1.648693] Waiting for root device /dev/mmcblk0p2...