Changes

Jump to: navigation, search

DESK-MX8M-L/Peripherals/SD

1,742 bytes added, 11:40, 15 February 2023
no edit summary
===Accessing the peripheral in ORCA SOM===
Once initialized, the SD device is mapped to the standard <code>/dev/mmcblk0pXmmcblk1pX</code> block device, depending on how many partition are created on the SD card.
====Linux messages at boot time====
[ 3.245015] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.792069] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
</pre>
 
===Accessing the peripheral in MINI SOM===
 
Once initialized, the SD device is mapped to the standard <code>/dev/mmcblk1pX</code> block device, depending on how many partition are created on the SD card.
 
====Linux messages at boot time====
 
If the microSd card is inserted at boot time, the kernel - once the USDHC interface has been initialized - prints the device information and the partition detected like ''p1'', ''p2'', etc.:
 
<pre class="workstation-terminal">
...
...
[ 2.645186] sdhci: Secure Digital Host Controller Interface driver
[ 2.651380] sdhci: Copyright(c) Pierre Ossman
[ 2.662531] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.704795] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
[ 5.145562] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 5.182388] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
...
[ 2.843189] mmcblk0: mmc0:0001 DG4008 7.28 GiB
[ 2.859563] mmcblk0boot0: mmc0:0001 DG4008 partition 1 4.00 MiB
[ 2.865671] mmcblk0boot1: mmc0:0001 DG4008 partition 2 4.00 MiB
[ 2.875922] mmcblk0rpmb: mmc0:0001 DG4008 partition 3 4.00 MiB, chardev (237:0)
[ 5.295199] mmcblk1: mmc1:e624 SA32G 29.7 GiB
[ 5.309428] mmcblk1: p1 p2
...
[ 5.145562] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 5.182388] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[ 5.257298] mmc1: host does not support reading read-only switch, assuming write-enable
[ 5.280627] mmc1: new high speed SDHC card at address e624
[ 5.295199] mmcblk1: mmc1:e624 SA32G 29.7 GiB
...
...
[ 5.489982] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 11.347308] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
</pre>
root@desk-mx8mp:~# mkdir -p /mnt/boot
root@desk-mx8mp:~# mkdir -p /mnt/rfs
root@desk-mx8mp:~# mount /dev/mmcblk0p1 mmcblk1p1 /mnt/bootroot@desk-mx8mp:~# mount /dev/mmcblk0p2 mmcblk1p2 /mnt/rfs
root@desk-mx8mp:~#
</pre>
dave_user
424
edits

Navigation menu