<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
	<id>https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=USB_Host_2_%28i.MX31%29</id>
	<title>USB Host 2 (i.MX31) - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=USB_Host_2_%28i.MX31%29"/>
	<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=USB_Host_2_(i.MX31)&amp;action=history"/>
	<updated>2026-05-13T12:46:52Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in BECOM Systems Support</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=USB_Host_2_(i.MX31)&amp;diff=190&amp;oldid=prev</id>
		<title>Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=USB_Host_2_(i.MX31)&amp;diff=190&amp;oldid=prev"/>
		<updated>2023-10-31T08:03:07Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 31. Oktober 2023, 10:03 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de-AT&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=USB_Host_2_(i.MX31)&amp;diff=189&amp;oldid=prev</id>
		<title>en&gt;Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=USB_Host_2_(i.MX31)&amp;diff=189&amp;oldid=prev"/>
		<updated>2023-08-22T19:35:49Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  Using USB Host 2 ==&lt;br /&gt;
&lt;br /&gt;
If USB Host 2 is used, make sure that only Host Port 2 is selected in the kernel configuration. I you also use the OTG port, select that as well. Anyway, you need to make sure that Host 1 and Host 2 are NOT selected simultaneously as this will cause problems when loading the EHCI module. &lt;br /&gt;
To use a usb mass storage device, make sure that you also select the Mass storage module.&lt;br /&gt;
&lt;br /&gt;
Simply load the ehci module to use the usb device:&lt;br /&gt;
   * modprobe ehci-hcd&lt;br /&gt;
&lt;br /&gt;
Plug in the usb stick and it should be detected as a SCSI removeable disk. Check the UsbOtgDriver article or the commands below on how to use the device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mx31# modprobe ehci-hcd&lt;br /&gt;
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller&lt;br /&gt;
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1&lt;br /&gt;
fsl-ehci fsl-ehci.0: irq 36, io mem 0x43f88400&lt;br /&gt;
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004&lt;br /&gt;
usb usb1: configuration #1 chosen from 1 choice&lt;br /&gt;
hub 1-0:1.0: USB hub found&lt;br /&gt;
hub 1-0:1.0: 1 port detected&lt;br /&gt;
fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller&lt;br /&gt;
fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2&lt;br /&gt;
fsl-ehci fsl-ehci.1: irq 37, io mem 0x43f88000&lt;br /&gt;
fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004&lt;br /&gt;
usb usb2: configuration #1 chosen from 1 choice&lt;br /&gt;
hub 2-0:1.0: USB hub found&lt;br /&gt;
hub 2-0:1.0: 1 port detected&lt;br /&gt;
&lt;br /&gt;
&amp;lt;-- Plug in USB stick&lt;br /&gt;
&lt;br /&gt;
mx31# usb 1-1: new full speed USB device using fsl-ehci and address 2&lt;br /&gt;
usb 1-1: configuration #1 chosen from 1 choice&lt;br /&gt;
Initializing USB Mass Storage driver...&lt;br /&gt;
scsi0 : SCSI emulation for USB Mass Storage devices&lt;br /&gt;
usbcore: registered new interface driver usb-storage&lt;br /&gt;
USB Mass Storage support registered.&lt;br /&gt;
scsi 0:0:0:0: Direct-Access     UrDisk   USB FLASH DISK   1.00 PQ: 0 ANSI: 2&lt;br /&gt;
sd 0:0:0:0: [sda] 256000 512-byte hardware sectors (131 MB)&lt;br /&gt;
sd 0:0:0:0: [sda] Write Protect is off&lt;br /&gt;
sd 0:0:0:0: [sda] Assuming drive cache: write through&lt;br /&gt;
sd 0:0:0:0: [sda] 256000 512-byte hardware sectors (131 MB)&lt;br /&gt;
sd 0:0:0:0: [sda] Write Protect is off&lt;br /&gt;
sd 0:0:0:0: [sda] Assuming drive cache: write through&lt;br /&gt;
 sda: sda1&lt;br /&gt;
sd 0:0:0:0: [sda] Attached SCSI removable disk&lt;br /&gt;
&lt;br /&gt;
mx31# mkdir /mnt/usbstick&lt;br /&gt;
mx31# mount /dev/sda1 /mnt/usbstick&lt;br /&gt;
mx31# ls /mnt/usbstick&lt;br /&gt;
chipse~1.exe  graphi~1.exe  kassab~1.mdb  musike~1.lnk&lt;br /&gt;
ethern~1.exe  heimman.csl   macsta~1.txt  musikv~1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==  Using USB Host 2 with devices requiring more than 150mA ==&lt;br /&gt;
&lt;br /&gt;
USB Host 2 is able to deliver more than 150mA to a device. The USB specification describes 500mA as a maximum value. Since the driver for the ISP1504 is used on both, the Host 2 and the OTG port, but only the Host 2 port is able to source 500mA, a workaround was developed which enables 500mA on that port. the value bus_mA of the hub device and mA_per_port are set to 500mA if the port number is 1. Port #1 is the Host 2 Port on the iMX31.&lt;br /&gt;
&lt;br /&gt;
The patch for this is pasted below, it was created using the command diff -urNb hub.c.orig hub.c and affects the file linux/drivers/usb/core/hub.c&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--- hub.c.orig	2008-02-14 15:02:36.000000000 +0100&lt;br /&gt;
+++ hub.c	2008-02-14 15:34:09.000000000 +0100&lt;br /&gt;
@@ -767,6 +767,27 @@&lt;br /&gt;
 			hub-&amp;gt;mA_per_port = hdev-&amp;gt;bus_mA;&lt;br /&gt;
 			hub-&amp;gt;limited_power = 1;&lt;br /&gt;
 		}&lt;br /&gt;
+		&lt;br /&gt;
+	  /* Now this is some workaround for the isp1504 driver on&lt;br /&gt;
+	   * the BT Developer board. This driver is used twice and&lt;br /&gt;
+	   * it&amp;#039;s not possible to determine in the driver, if it&lt;br /&gt;
+	   * has an external current source.&lt;br /&gt;
+	   * Therefore we will decide based on the bus number which&lt;br /&gt;
+	   * IC we are and will set the maximum current manually for&lt;br /&gt;
+	   * bus #1 (Host 2 Port on the i.MX31).&lt;br /&gt;
+	   *&lt;br /&gt;
+	   * You need to be aware that this is ONLY inteded for use&lt;br /&gt;
+	   * with the specified board/IC&lt;br /&gt;
+	   */&lt;br /&gt;
+&lt;br /&gt;
+			if (hdev-&amp;gt;bus-&amp;gt;busnum == 1)&lt;br /&gt;
+			{&lt;br /&gt;
+				dev_dbg(hub_dev, &amp;quot;setting max power for this port to 500mA manually\n&amp;quot;);&lt;br /&gt;
+				hdev-&amp;gt;bus_mA = 500;&lt;br /&gt;
+				hub-&amp;gt;mA_per_port = hdev-&amp;gt;bus_mA;&lt;br /&gt;
+				hub-&amp;gt;limited_power = 1;&lt;br /&gt;
+			}&lt;br /&gt;
+		&lt;br /&gt;
 	} else if ((hubstatus &amp;amp; (1 &amp;lt;&amp;lt; USB_DEVICE_SELF_POWERED)) == 0) {&lt;br /&gt;
 		dev_dbg(hub_dev, &amp;quot;hub controller current requirement: %dmA\n&amp;quot;,&lt;br /&gt;
 			hub-&amp;gt;descriptor-&amp;gt;bHubContrCurrent);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:i.MX31]]&lt;/div&gt;</summary>
		<author><name>en&gt;Peter</name></author>
	</entry>
</feed>