DESK-XZU-L/Peripherals/SD

From DAVE Developer's Wiki
Jump to: navigation, search
History
Issue Date Notes
2026/06/26 DESK-XZU-L-2.x.x 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]

root@onda:~# dmesg | grep mmc0
[    2.642264] mmc0: SDHCI controller on ff170000.mmc [ff170000.mmc] using ADMA 64-bit
[    2.727822] mmc0: new high speed SDHC card at address aaaa
[    2.737966] mmcblk0: mmc0:aaaa SA16G 14.8 GiB

Additional information[edit | edit source]

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

root@onda:~# mkdir -p /mnt/mmcblk0p1
root@onda:~# mkdir -p /mnt/mmcblk0p2
root@onda:~# mount /dev/mmcblk0p1 /mnt/mmcblk0p1
root@onda:~# mount /dev/mmcblk0p2 /mnt/mmcblk0p2
root@onda:~# ls /mnt/mmcblk0p1
BOOT.BIN  boot.scr  image.ub  uboot-redund.env  uboot.env
root@onda:~# ls /mnt/mmcblk0p2
bin  boot  dev  etc  home  lib  lost+found  media  mnt  proc  root  run  sbin  srv  sys  tmp  usr  var
root@onda:~# 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, 0.560226 s, 187 MB/s
root@onda:~# time cp test_file_100MB /mnt/mmcblk0p1

real    0m1.362s
user    0m0.005s
sys     0m1.235s
root@onda:~#