SD卡挂载

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SD卡挂载

1,747 Views
1182614726
Contributor III

大家好,

            我使用的是yocto BSP版本为L4.1.15-2.1.0,启动方式为eMMC。开机前插入普通SD卡,fat格式,开机启动后,发现sd卡自动挂载到/run/media/mmcblk1p1,请问这是怎么回事呢?正常情况sd卡是没有自动挂载的,非常感谢。

Labels (1)
0 Kudos
4 Replies

1,034 Views
joanxie
NXP TechSupport
NXP TechSupport

do you use imx6S board?

0 Kudos

1,034 Views
1182614726
Contributor III

用的imx6solo芯片,自己做的开发板

0 Kudos

1,034 Views
joanxie
NXP TechSupport
NXP TechSupport

could you share the log file for booting up? let me check it

0 Kudos

1,034 Views
1182614726
Contributor III

你好

Joan,log如下:

U-Boot 2016.03-svn1850 (Apr 12 2019 - 09:33:20 +0800)


CPU:   Freescale i.MX6SOLO rev1.2 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 56C
Reset cause: POR
Board: MX6SOLO RIoTboard
I2C:   ready
DRAM:  512 MiB

MMC:   FSL_SDHC: 0, FSL_SDHC: 1
In:    serial
Out:   serial
Err:   serial
mmc_dev = 1
config_ipu_lvds_clk: freq = 277200000.
config_ipu_lvds_clk: set pll2_pfd0 clock to 270MHz, divider = 34.
switch to partitions #0, OK
mmc1(part 0) is current device
Net:   Board Net Initialization Failed
No ethernet found.
Normal Boot
switch to partitions #0, OK
mmc1(part 0) is current device
reading zImage
6099464 bytes read in 220 ms (26.4 MiB/s)
Booting from mmc ...
reading imx6solo_mehowboard.dtb
35126 bytes read in 17 ms (2 MiB/s)
Kernel image @ 0x12000000 [ 0x000000 - 0x5d1208 ]
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
   Using Device Tree in place at 18000000, end 1800b935

Starting kernel ...

[    0.349001] console [ttymxc0] enabled
[    0.353394] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 294, base_baud = 5000000) is a IMX
[    0.362681] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 295, base_baud = 5000000) is a IMX
[    0.373769] imx sema4 driver is registered.
[    0.378033] [drm] Initialized drm 1.1.0 20060810
[    0.383131] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[    0.398527] brd: module loaded
[    0.406598] loop: module loaded
[    0.413910] CAN device driver interface
[    0.419247] usbcore: registered new interface driver asix
[    0.424788] usbcore: registered new interface driver ax88179_178a
[    0.430953] usbcore: registered new interface driver cdc_ether
[    0.436908] usbcore: registered new interface driver net1080
[    0.442631] usbcore: registered new interface driver cdc_subset
[    0.448715] usbcore: registered new interface driver zaurus
[    0.454435] usbcore: registered new interface driver cdc_ncm
[    0.460110] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.466695] ehci-mxc: Freescale On-Chip EHCI Host driver
[    0.472193] usbcore: registered new interface driver usblp
[    0.477801] usbcore: registered new interface driver usb-storage
[    0.483898] usbcore: registered new interface driver usb_ehset_test
[    0.491252] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[    0.503767] 2184200.usb supply vbus not found, using dummy regulator
[    0.513438] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    0.518384] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[    0.543463] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    0.549691] hub 1-0:1.0: USB hub found
[    0.553549] hub 1-0:1.0: 1 port detected
[    0.558454] mousedev: PS/2 mouse device common for all mice
[    0.570031] rtc-s35390a 3-0030: rtc core: registered rtc-s35390a as rtc0
[    0.577497] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1
[    0.586394] i2c /dev entries driver
[    0.591350] IR NEC protocol handler initialized
[    0.595962] IR RC5(x/sz) protocol handler initialized
[    0.601030] IR RC6 protocol handler initialized
[    0.605616] IR JVC protocol handler initialized
[    0.610162] IR Sony protocol handler initialized
[    0.614834] IR SANYO protocol handler initialized
[    0.619551] IR Sharp protocol handler initialized
[    0.624304] IR MCE Keyboard/mouse protocol handler initialized
[    0.630149] IR XMP protocol handler initialized
[    0.637336] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    0.643780] sdhci: Secure Digital Host Controller Interface driver
[    0.649973] sdhci: Copyright(c) Pierre Ossman
[    0.654466] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.661044] /soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecified
[    0.668230] sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
[    0.677411] sdhci-esdhc-imx 2194000.usdhc: Got CD GPIO
[    0.682569] sdhci-esdhc-imx 2194000.usdhc: Got WP GPIO
[    0.688984] sdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator found
[    0.734629] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    0.749666] /soc/aips-bus@02100000/usdhc@0219c000: voltage-ranges unspecified
[    0.759995] sdhci-esdhc-imx 219c000.usdhc: could not get ultra high speed state, work on normal mode
[    0.769459] sdhci-esdhc-imx 219c000.usdhc: No vqmmc regulator found
[    0.823461] mmc3: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
[    0.832469] mxc_vpu 2040000.vpu_fsl: VPU initialized
[    0.838074] mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
[    0.846892] galcore: clk_get vg clock failed, disable vg!
[    0.852465] Galcore version 5.0.11.41671
[    0.873523] usb 1-1: new full-speed USB device number 2 using ci_hdrc
[    0.964594] mmc1: new high speed SDHC card at address aaaa
[    0.983468] mmcblk1: mmc1:aaaa SC32G 29.7 GiB
[    0.992365]  mmcblk1: p1
[    1.055608] hub 1-1:1.0: USB hub found
[    1.064479] hub 1-1:1.0: 7 ports detected
[    1.098708] mmc3: MAN_BKOPS_EN bit is not set
[    1.144501] mmc3: new DDR MMC card at address 0001
[    1.153486] mmcblk3: mmc3:0001 Q2J54A 3.64 GiB
[    1.163474] mmcblk3boot0: mmc3:0001 Q2J54A partition 1 2.00 MiB
[    1.174669] mmcblk3boot1: mmc3:0001 Q2J54A partition 2 2.00 MiB
[    1.193490] mmcblk3rpmb: mmc3:0001 Q2J54A partition 3 512 KiB
[    1.208002]  mmcblk3: p1 p2
[    1.257027] usbcore: registered new interface driver usbhid
[    1.262616] usbhid: USB HID core driver
[    1.267081] NET: Registered protocol family 26
[    1.272373] NET: Registered protocol family 10
[    1.277800] sit: IPv6 over IPv4 tunneling driver
[    1.283103] NET: Registered protocol family 17
[    1.287666] can: controller area network core (rev 20120528 abi 9)
[    1.294013] NET: Registered protocol family 29
[    1.298535] can: raw protocol (rev 20120528)
[    1.302862] can: broadcast manager protocol (rev 20120528 t)
[    1.308635] can: netlink gateway (rev 20130117) max_hops=1
[    1.314394] 8021q: 802.1Q VLAN Support v1.8
[    1.318702] Key type dns_resolver registered
[    1.327413] dhd_module_init in
[    1.331952] rtc-s35390a 3-0030: setting system clock to 2018-11-28 07:44:11 UTC (1543391051)
[    1.348942] usb_otg_vbus: disabling
[    1.352496] 2P5V: disabling
[    1.434637] usb 1-1-port7: over-current condition
[    1.598822] kjournald starting.  Commit interval 5 seconds
[    1.604439] EXT3-fs (mmcblk3p2): using internal journal
[    1.610256] EXT3-fs (mmcblk3p2): recovery complete
[    1.615078] EXT3-fs (mmcblk3p2): mounted filesystem with ordered data mode
[    1.621991] VFS: Mounted root (ext3 filesystem) on device 179:10.
[    1.629406] devtmpfs: mounted
[    1.632786] Freeing unused kernel memory: 416K (80a12000 - 80a7a000)
INIT: version 2.88 booting
Boot splashscreen disabled
Starting udev
[    2.216961] udevd[122]: starting version 3.1.5
[    2.225223] random: udevd urandom read with 23 bits of entropy available
depmod: ERROR: could not open directory /lib/modules/4.1.15-svn1840: No such file or directory
depmod: WARNING: -e needs -E or -F
depmod: ERROR: could not open directory /lib/modules/4.1.15-svn1840: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
bootlogd: cannot allocate pseudo tty: No such file or directory
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1735: No soundcards found...
INIT: Entering runlevel: 5
Configuring network interfaces... [    4.644487] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
eth0: ERROR while getting interface flags: No such device
Starting system message bus: dbus.
Starting Connection Manager
Starting Dropbear SSH server: dropbear.
Starting rpcbind daemon...done.
starting statd: done
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting atd: OK
exportfs: can't open /etc/exports for reading
NFS daemon support not enabled in kernel
Starting system log daemon...0
Starting kernel log daemon...0
[ ok ]rting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Starting Telephony daemon
Starting Linux NFC daemon
Starting crond: OK
Running local boot scripts (/etc/rc.local).
umount: /mnt/.psplash: not mounted

Freescale i.MX Release Distro 4.1.15-2.1.0 imx6dlsabresd /dev/ttymxc0

imx6dlsabresd login: root
root@imx6dlsabresd:~# cd /
root@imx6dlsabresd:/# ls
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  run  sbin  sys  tmp  unit_tests  usr  var
root@imx6dlsabresd:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       3.6G  1.2G  2.2G  35% /
devtmpfs         76M     0   76M   0% /dev
tmpfs           236M  128K  236M   1% /run
tmpfs           236M  112K  236M   1% /var/volatile
/dev/mmcblk1p1   30G  128K   30G   1% /run/media/mmcblk1p1
root@imx6dlsabresd:/#

0 Kudos