Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Peripherals/USB1 OTG

2,798 bytes added, 14:16, 16 February 2023
no edit summary
</pre>
===Accessing the peripheral MITO 8M MiniSBC ORCA===
====Linux messages at boot time====
 
When we attach a USB2.0 we have the following message
<pre class="workstation-terminal">
root@desk-mx8mp:~# [ 124.730657] usb 1-1.3: new high-speed USB device number 3 using xhci-hcd[ 124.858934] usb-storage 1-1.3:1.0: USB Mass Storage device detected[ 124.866497] scsi host0: usb-storage 1-1.3:1.0[ 4 125.954820881336] usb_otg_vbusscsi 0:0:0:0: Direct-Access SanDisk Cruzer Force 1.00 PQ: 0 ANSI: disabling6[ 125.890902] sd 0:0:0:0: [sda] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB)[ 125.899491] sd 0:0:0:0: [sda] Write Protect is off[ 125.904560] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA[ 125.957498] sda: sda1[ 125.967343] sd 0:0:0:0: [sda] Attached SCSI removable disk
</pre>
 
When we attach a USB3.0 we have the following message
 
<pre class="workstation-terminal">
root@desk-mx8mp:~# [ 214.438903] usb 2-1.1: new SuperSpeed Gen 1 USB device number 5 using xhci-hcd
[ 214.464780] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 214.471655] scsi host1: usb-storage 2-1.1:1.0
[ 215.503580] scsi 1:0:0:0: Direct-Access HYPER FLASHDISK 1507 PQ: 0 ANSI: 0
[ 215.513253] sd 1:0:0:0: [sdb] 129630208 512-byte logical blocks: (66.4 GB/61.8 GiB)
[ 215.521249] sd 1:0:0:0: [sdb] Write Protect is off
[ 215.526371] sd 1:0:0:0: [sdb] No Caching mode page found
[ 215.531737] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 215.561450] sdb: sdb1
[ 215.566167] sd 1:0:0:0: [sdb] Attached SCSI removable disk
</pre>
 
=== Additional information ===
If the root file system configuration does not automatically mount the partition, it is possible to mount the device using the following command:
 
<pre class="workstation-terminal">
root@desk-mx8mp:~# mkdir -p /mnt/usb
root@desk-mx8mp:~# mount /dev/sda1 /mnt/usb
[ 1245.415662] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
root@desk-mx8mp:~# ls -la /mnt/usb
total 128
drwxr-xr-x 10 root root 4096 Jan 1 1970 .
drwxr-xr-x 3 root root 4096 Dec 30 11:24 ..
drwxr-xr-x 2 root root 4096 May 13 2021 System Volume Information
drwxr-xr-x 2 root root 4096 Nov 17 15:27 boot
-rwxr-xr-x 1 root root 8016 Nov 17 15:27 boot.scr
-rwxr-xr-x 1 root root 1712 Dec 10 16:16 config.txt
drwxr-xr-x 2 root root 4096 Nov 17 15:27 rfs
-rwxr-xr-x 1 root root 57458 Nov 17 15:27 run-system-update.sh
-rwxr-xr-x 1 root root 531 Nov 17 15:27 settings.txt
</pre>
 
 
==== MITO 8M Mini ====
 
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini:
 
From <code>imx8mm-mito8mmini.dts</code>:
 
<pre>
&usbotg1 {
dr_mode = "otg";
picophy,pre-emp-curr-control = <3>;
picophy,dc-vol-level-adjust = <7>;
disable-over-current;
srp-disable;
hnp-disable;
adp-disable;
status = "okay";
};
 
 
</pre>
===Accessing the peripheral MITO 8M Mini===
 
====Linux messages at boot time====
 
 
 
 
==== Usage with [https://www.kernel.org/doc/Documentation/usb/mass-storage.txt mass-storage] ====
dave_user
424
edits