Difference between revisions of "DESK-XZ7-L/Peripherals/SD"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "<section begin=History/> {| style="border-collapse:collapse; " !colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History |- !style="border-le...")
 
Line 6: Line 6:
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
|-
 
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|2023/01/23
+
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|2023/01/23
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|DESK-XZ7-L-1.0.1 release
+
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|DESK-XZ7-L-1.0.1 release
 
|-
 
|-
 
|}
 
|}
 
<section end=History/>
 
<section end=History/>
 +
__FORCETOC__
 
<section begin=Body/>
 
<section begin=Body/>
  
==microSD card==
+
==Peripheral SD ==
  
microSD card on connector <code>J21</code>, if present, will be associated by the Linux kernel to the <code>mmcblk0</code> device:  
+
The SD device, if present, will be associated by the Linux kernel to the <code>mmcblk0</code> device:  
 +
 
 +
===Accessing the peripheral ===
 +
 
 +
====Linux messages at boot time====
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
Line 25: Line 30:
 
</pre>
 
</pre>
  
 +
=== Additional information ===
 
Once detected, it can be mounted and accessed via usual Linux commands:  
 
Once detected, it can be mounted and accessed via usual Linux commands:  
  
Line 49: Line 55:
  
 
<section end=Body/>
 
<section end=Body/>
 
----
 
  
 
[[Category:BORA]]
 
[[Category:BORA]]

Revision as of 08:11, 26 January 2024

History
Issue Date Notes
2023/01/23 DESK-XZ7-L-1.0.1 release



Peripheral SD[edit | edit source]

The SD device, if present, will be associated by the Linux kernel to the mmcblk0 device:

Accessing the peripheral[edit | edit source]

Linux messages at boot time[edit | edit source]

[    0.740571] mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
...
[    0.824174] mmc0: new high speed SDHC card at address aaaa
[    0.830415] mmcblk0: mmc0:aaaa SA16G 14.8 GiB
[    0.837970]  mmcblk0: p1 p2

Additional information[edit | edit source]

Once detected, it can be mounted and accessed via usual Linux commands:

root@bora:~# mkdir -p /mnt/mmcblk0p1
root@bora:~# mkdir -p /mnt/mmcblk0p2
root@bora:~# mount /dev/mmcblk0p1 /mnt/mmcblk0p1
root@bora:~# mount /dev/mmcblk0p2 /mnt/mmcblk0p2
root@bora:~# ls /mnt/mmcblk0p1
BOOT.BIN  System Volume Information  boot.scr  image.ub
root@bora:~# ls /mnt/mmcblk0p2
bin  boot  dev  etc  home  lib  lost+found  media  mnt  proc  run  sbin  sys  tmp  usr  var
root@bora:~# dd if=/dev/zero of=test_file_100MB bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 1.50526 s, 69.7 MB/s
root@bora:~# time cp test_file_100MB /mnt/mmcblk0p1

real    0m3.006s
user    0m0.011s
sys     0m1.853s
root@bora:~#