<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=4204&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4204</link>
		<description><![CDATA[The most recent posts in [SOLVED] USB 3.0 card, external drive and unknown algorithms.]]></description>
		<lastBuildDate>Tue, 23 Mar 2021 21:19:18 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28447#p28447</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... try using the USB &quot;address&quot; ...</p></div></blockquote></div><p>Well ...<br />I&#039;ll be quick so my mood does not get worse yet.</p><p>---</p><p>I really deserve to be mocked to extintion.</p><p>I got these USB drives long ago to do some installations that were eventually cancelled.<br />Got to keep them but have since had very little use.<br />They are in pristine condition.</p><p>Each drive came with it&#039;s own OEM cable in the box.</p><p>These cables are, as far as I can see, identical and have the same markings: AWM 2725&#160; &#160;80°C&#160; &#160;30V&#160; VM-1 <br />One says &quot;USB 3.0 HighSpeed Cable Broad&quot; and the other says &quot;Universal Serial Bus 3.0&quot;, only difference.</p><p>But the drives are both USB3.0 ...</p><p>Having no reason to think otherwise, I assumed that they were also electrically identical.<br />More so coming from the same OEM that sells these drives.</p><p>So ...<br />USB cable A bundled with USB3.0 drive A is the same as USB cable B bundled with USB3.0 drive B, in every sense.<br />Same OEM, same USB standard, same capacity drive, same markings ...<br />And as such, obviously interchangeable.<br />Right?</p><p>---<br />BTW: I <strong>was</strong> asked about the cable at GitHub.<br />But as they <em>both</em> worked, there wasn&#039;t anything wrong with them.<br />---</p><p>Well ...<br />Tl,dr: I switched the cables and now both drives are recognised.</p><div class="codebox"><pre><code>groucho@devuan:~ $ sudo uhubctl
[sudo] password for groucho:
Current status for hub 5 [1d6b:0003 Linux 4.19.0-14-amd64 xhci-hcd xHCI Host Controller 0000:04:00.0, USB 3.00, 4 ports, ppps]
Port 1: 0203 power 5gbps U0 enable connect [043e:70f5 LG Electronics Inc. LG External HDD A3110300000A]      &lt;--- | x |
Port 2: 0203 power 5gbps U0 enable connect [043e:70f5 LG Electronics Inc. LG External HDD A1204000000004C7]  &lt;--- | x |
Port 3: 02a0 power 5gbps Rx.Detect
Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 3-3 [0424:2514, USB 2.00, 4 ports, ppps]
Port 1: 0100 power
Port 2: 0100 power
Port 3: 0100 power
Port 4: 0100 power
Current status for hub 3 [1d6b:0002 Linux 4.19.0-14-amd64 xhci-hcd xHCI Host Controller 0000:04:00.0, USB 2.00, 4 ports, ppps]
Port 1: 0100 power
Port 2: 0100 power
Port 3: 0507 power highspeed suspend enable connect [0424:2514, USB 2.00, 4 ports, ppps]
Port 4: 0100 power
groucho@devuan:~ $</code></pre></div><p>For whatever reason, drive A will <span class="bbc">only</span> work properly with cable A but drive B will work properly with cable A <span class="bbc">or</span> cable B.<br />Seems that &quot;USB 3.0 HighSpeed&quot; is not the same as &quot;Universal Serial Bus 3.0&quot;</p><p>[rant]<br />Is it possible that Toshiba skimped $0.05 on a 30cm USB3.0 cable for their #$%&amp; external USB3.0 drives?<br />Unbelievable ...<br />[/rant]</p><p>So that&#039;s it.<br />Tomorrow I&#039;ll feel better.</p><p>Thanks for your input.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 23 Mar 2021 21:19:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28447#p28447</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28446#p28446</link>
			<description><![CDATA[<p>Did you try using the USB &quot;address&quot;? The above example shows bus 2 device 7 funciton 0 (well, the last is not shown but my guess).</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 23 Mar 2021 20:52:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28446#p28446</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28442#p28442</link>
			<description><![CDATA[<p>Hello:</p><p>I (think) I have been able to solve the riddle but <em>not</em> the problem.<br />Of great help was rtreffer @Github. </p><p>On a whim, I connected another 500Gb USB3.0 drive I have, unused in a box.</p><p>It worked: same cable, same USB3.0 card, same port.<br />Both USB3.0 drives are Toshiba but they are different models.</p><p>The one that works is model HXD7 USB 3.0.<br />The one that does <em>not</em> work is model HXE4 USB 3.0.</p><p>dmesg</p><div class="codebox"><pre><code>[ 2420.760462] usb 2-1: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
[ 2420.787113] usb 2-1: New USB device found, idVendor=043e, idProduct=70f5, bcdDevice= 1.00
[ 2420.787117] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2420.787120] usb 2-1: Product: LG External HDD
[ 2420.787123] usb 2-1: Manufacturer: LG Electronics Inc.
[ 2420.787125] usb 2-1: SerialNumber: A3110300000A
[ 2420.791771] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 2420.791953] scsi host9: usb-storage 2-1:1.0
[ 2424.446142] scsi 9:0:0:0: Direct-Access LG External HDD AX00 PQ: 0 ANSI: 5
[ 2424.446523] sd 9:0:0:0: Attached scsi generic sg7 type 0
[ 2424.446645] sd 9:0:0:0: [sdg] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 2424.447552] sd 9:0:0:0: [sdg] Write Protect is off
[ 2424.447555] sd 9:0:0:0: [sdg] Mode Sense: 23 00 00 00</code></pre></div><p>So the USB3.0 card and both USB3.0 drives work properly.<br />It&#039;s just that one of them does not do it at USB3.0 speeds.</p><p>Since both drives work with the same cable and the same USB3.0 card, I thought the problem had to be with whatever gets done between the card and the SATA/USB bridge.<br />Nothing else came to mind.</p><p>So I opened up the cases (a real PITA) and saw the difference between them:</p><p>Model HXD7 has a ASM1053 SATA/USB controller chip.<br />[<a href="http://j5d2v7d7.stackpathcdn.com/wp-content/uploads/2015/10/ASM1051.gif" rel="nofollow">http://j5d2v7d7.stackpathcdn.com/wp-con … SM1051.gif</a>] (url) photo from the web</p><p>Model HXD7 has a VIA Labs VL 701-04<br />[<a href="https://www.via-labs.com/archive/images/editor/product/VL701_.jpg" rel="nofollow">https://www.via-labs.com/archive/images … VL701_.jpg</a>] (url) photo from tthe web</p><p>Plugged in the way I knew worked, printout from <span class="bbc">uhubctl</span>* was clear: both drives are detected<br />---<br />*An interesting utility to control USB ports in compatible cards.&#160; -&gt;&#160; <a href="https://github.com/mvp/uhubctl" rel="nofollow">https://github.com/mvp/uhubctl</a><br />---</p><div class="codebox"><pre><code>groucho@devuan:~ $ sudo uhubctl
Current status for hub 2 [1d6b:0003 Linux 4.19.0-14-amd64 xhci-hcd xHCI Host Controller 0000:04:00.0, USB 3.00, 4 ports, ppps]
Port 1: 0203 power 5gbps U0 enable connect [043e:70f5 LG Electronics Inc. LG External HDD A3110300000A]      &lt;----- | x |
Port 2: 02a0 power 5gbps Rx.Detect
Port 3: 02a0 power 5gbps Rx.Detect
Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 1-3 [0424:2514, USB 2.00, 4 ports, ppps]
Port 1: 0503 power highspeed enable connect [043e:70f5 LG Electronics Inc. LG External HDD A1204000000004C7] &lt;----- | x |
Port 2: 0100 power
Port 3: 0100 power
Port 4: 0100 power
Current status for hub 1 [1d6b:0002 Linux 4.19.0-14-amd64 xhci-hcd xHCI Host Controller 0000:04:00.0, USB 2.00, 4 ports, ppps]
Port 1: 0100 power
Port 2: 0100 power
Port 3: 0503 power highspeed enable connect [0424:2514, USB 2.00, 4 ports, ppps]
Port 4: 0100 power
groucho@devuan:~ $</code></pre></div><p>But when I switch them around, the one with the VIA SATA/USB bridge is no longer detected:</p><div class="codebox"><pre><code>groucho@devuan:~ $ sudo uhubctl
Current status for hub 2 [1d6b:0003 Linux 4.19.0-14-amd64 xhci-hcd xHCI Host Controller 0000:04:00.0, USB 3.00, 4 ports, ppps]
Port 1: 02a0 power 5gbps Rx.Detect                                                                        &lt;----- | o |   
Port 2: 02a0 power 5gbps Rx.Detect
Port 3: 02a0 power 5gbps Rx.Detect
Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 1-3 [0424:2514, USB 2.00, 4 ports, ppps]
Port 1: 0503 power highspeed enable connect [043e:70f5 LG Electronics Inc. LG External HDD A3110300000A]  &lt;----- | x |
Port 2: 0100 power
Port 3: 0100 power
Port 4: 0100 power
Current status for hub 1 [1d6b:0002 Linux 4.19.0-14-amd64 xhci-hcd xHCI Host Controller 0000:04:00.0, USB 2.00, 4 ports, ppps]
Port 1: 0100 power
Port 2: 0100 power
Port 3: 0503 power highspeed enable connect [0424:2514, USB 2.00, 4 ports, ppps]
Port 4: 0100 power
groucho@devuan:~ $</code></pre></div><p>That seems to be what it is all about.</p><p><span class="bbc">lsusb -vv</span> can reveal interesting things:</p><div class="codebox"><pre class="vscroll"><code>groucho@devuan:~$ sudo lsusb -vv 
--- snip ---
Bus 002 Device 007: ID 043e:70f5 LG Electronics USA, Inc. External HDD
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x043e LG Electronics USA, Inc.
  idProduct          0x70f5 External HDD
  bcdDevice            1.00
  iManufacturer           2 LG Electronics Inc.
  iProduct                3 LG External HDD
  iSerial                 1 A3110300000A
--- snip ---
 wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)    &lt;---
      Device can operate at High Speed (480Mbps)   &lt;---
      Device can operate at SuperSpeed (5Gbps)     &lt;---
--- snip ---  
Bus 001 Device 006: ID 043e:70f5 LG Electronics USA, Inc. External HDD
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x043e LG Electronics USA, Inc.
  idProduct          0x70f5 External HDD
  bcdDevice            6.00
  iManufacturer           1 LG Electronics Inc.
  iProduct                2 LG External HDD
  iSerial                 3 A1204000000004C7
--- snip ---
   wSpeedsSupported   0x000c
      Device can operate at High Speed (480Mbps)    &lt;---
      Device can operate at SuperSpeed (5Gbps)      &lt;---
--- snip ---</code></pre></div><p><span class="bbc">lsusb</span> reveals that <span class="bbu">both</span> external USB3.0 drives support USB3.0 speeds.<br />I&#039;d think that data that comes from somewhere in the drive&#039;s SATA/USB3.0 bridge, not the HDD.</p><p>If I had to make an (un)educated guess, I&#039;d say that one SATA/USB bridge has a problem with the USB3.0 ports&#039; <span class="bbc">Rx.Detect</span>.<br />And if this were true, could it be a xHCI_PCI module problem/setting causing this?</p><p>But it is all over my head.</p><p>Any comments of suggestions will be welcome.</p><p>Thanks in advance,</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 23 Mar 2021 18:04:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28442#p28442</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28430#p28430</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>Also got a PCIe card with a Renesas 720201 installed. Used the same tools and failed:</p><div class="codebox"><pre><code>05:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)</code></pre></div></div></blockquote></div><p>It seems to be a problematic card, to say the least.</p><p>It seems that application has a bug.<br />See here: <a href="https://github.com/markusj/upd72020x-load/issues/16" rel="nofollow">https://github.com/markusj/upd72020x-load/issues/16</a> &lt;- fourth post</p><div class="quotebox"><cite>rtreffer wrote:</cite><blockquote><div><p>So if you compiled the project in the past edit that line to read `is_x1 = true, is_x2 = true;`,<br />then compile as usual (`make` is enough - the task of make is to figure out what changed an needs to be recompiled)<br />Then use the new binary to upload.</p></div></blockquote></div><p>Now the application apparently works.<br />But I am doing something wrong.<br />ie: -w is a <em>no-no</em> and I&#039;m downgrading which apparently won&#039;r work.</p><p>See the rest of the thread there, that chap seems to know about it.</p><p>Could you send me a link to the firmware you have?</p><p>Thanks in advance.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 22 Mar 2021 21:08:52 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28430#p28430</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28429#p28429</link>
			<description><![CDATA[<p>Also got a PCIe card with a Renesas 720201 installed. Used the same tools and failed:</p><div class="codebox"><pre><code>05:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)</code></pre></div><p>Copied the files to /lib/firmware/renesas. I got:</p><div class="codebox"><pre><code>/lib/firmware/renesas# ./upd72020x-load -r -b 05 -d 00 -f 0 -s -o 720201.org
Doing the reading
bus = 5 
dev = 0 
fct = 0 
fname = (null) 
ERROR: wrong vendorid/devid. Expected an UPD720201 or UPD720202 chip and this is not one!
       reported vendorid/devid: 1912:0014 
 ======&gt; FAILED</code></pre></div><p>I would claim the program finds the chip, but maybe still has the old NEC vendor ID coded? I tried to understand the .c file, buit couldn&#039;t find any reference to the expected/accepted vendor IDs. 1912:0014 is the correct ID for a 72020x device according <a href="https://pci-ids.ucw.cz/read/PC/1912/0014" rel="nofollow">https://pci-ids.ucw.cz/read/PC/1912/0014</a>. </p><p>Program too old?</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Mon, 22 Mar 2021 19:38:47 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28429#p28429</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28428#p28428</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>I would place the script under /usr/local/bin/ and place the firmware under /usr/local/lib/firmware/ then change the script like this:</p><div class="codebox"><pre><code># set paths to loader and firmware, if not provided by environment
readonly UPD72020X_CMD=&quot;${UPD72020X_CMD:-/usr/local/bin/upd72020x-load}&quot;
readonly UPD72020X_FW=&quot;${UPD72020X_FW:-/usr/local/lib/firmware/K2026.mem}&quot;</code></pre></div><p>^ That replaces lines 7-13 (inclusive) in the original script. It does the same thing without having to run two if...fi loops.</p></div></blockquote></div><p>Right, will do.<br />But it&#039;s still not working, some problem with the application and the card&#039;s ID and some missing data somewhere.<br />Hopefully I won&#039;t brick the damn thing.</p><p>Not as easy as it seemed at first.<br />But I got to use &quot;make&quot; for the first time.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Just <em>who</em> do you take me for?</p></div></blockquote></div><p>Sorry, that was a comment about ...</p></div></blockquote></div><p>Sorry?<br />Hmm ...<br />Have you had your tea yet?&#160; </p><p>I was just taking the piss ... 8^D!<br />Can&#039;t take me <em>that</em> seriously.</p><p>Right.<br />Once I get this working <em>manually</em>, I&#039;ll fix that.<br />Thanks a lot for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 22 Mar 2021 18:07:43 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28428#p28428</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28426#p28426</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... so I would guess on</p><div class="codebox"><pre><code>-b 0x04 -d 0x00 -f 0x00</code></pre></div></div></blockquote></div><p>Right ...</p><p>But I am getting errors and cannot save the original or upload a new/different firmware.</p><p>According to the application, usage is like this:</p><div class="codebox"><pre><code>[root@devuan work]# ./upd72020x-load
upd72020x-load: version 0.1

usage: upd72020 -r -b bus -d dev -f fct -s -o outfile : read eeprom to file (size default is 0x10000 or 64KB)
usage: upd72020 -w -b bus -d dev -f fct -i infile : write file to eeprom
usage: upd72020 -u -b bus -d dev -f fct -i infile : upload file to firmware memory
[root@devuan work]# </code></pre></div><p>Reading:</p><div class="codebox"><pre><code>[root@devuan work]# ./upd72020x-load -r -b 0x04 -d 0x00 -f 0x00 -s -o original.mem
Doing the reading     &lt;---- must be right because it says it is reading.
bus = 4 
dev = 0 
fct = 0 
fname = (null) 
ERROR: wrong vendorid/devid. Expected an UPD720201 or UPD720202 chip and this is not one!
       reported vendorid/devid: 1912:0014 
 ======&gt; FAILED</code></pre></div><p>Writing:</p><div class="codebox"><pre><code>[root@devuan work]#   ./upd72020x-load -u -b 0x04 -d 0x00 -f 0x00 -i K2013080.mem
Doing the upload      &lt;---- must be right because it says it is uploading.
bus = 4 
dev = 0 
fct = 0 
fname = K2013080.mem 
ERROR: wrong vendorid/devid. Expected an UPD720201 or UPD720202 chip and this is not one!
       reported vendorid/devid: 1912:0014 
 ======&gt; FAILED
[root@devuan work]# </code></pre></div><p>or </p><div class="codebox"><pre><code>[root@devuan work]# ./upd72020x-load -w -b 0x04 -d 0x00 -f 0x00 -i K2013080.mem
Doing the writing
bus = 4 
dev = 0 
fct = 0 
fname = K2013080.mem 
ERROR: wrong vendorid/devid. Expected an UPD720201 or UPD720202 chip and this is not one!
       reported vendorid/devid: 1912:0014 
 ======&gt; FAILED
[root@devuan work]# </code></pre></div><p>I&#039;ve posted at GitHub to see if I can get a solution.</p><p>Thanks for your input.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 22 Mar 2021 17:53:03 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28426#p28426</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28425#p28425</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Change ... <br />... and change</p></div></blockquote></div><p>Like this?</p><p>For the firmware file ---&gt; UPD72020X_FW=[path-to-file] K2026.mem</p><p>For the executable ---&gt; UPD72020X_CMD=[path-to-file]./upd72020x-load</p><p>Q: where in the system should these two (firmware and executable) files be saved?</p></div></blockquote></div><p>I would place the script under /usr/local/bin/ and place the firmware under /usr/local/lib/firmware/ then change the script like this:</p><div class="codebox"><pre><code># set paths to loader and firmware, if not provided by environment
readonly UPD72020X_CMD=&quot;${UPD72020X_CMD:-/usr/local/bin/upd72020x-load}&quot;
readonly UPD72020X_FW=&quot;${UPD72020X_FW:-/usr/local/lib/firmware/K2026.mem}&quot;</code></pre></div><p>^ That replaces lines 7-13 (inclusive) in the original script. It does the same thing without having to run two if...fi loops.</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>[0] Not &quot;SystemD&quot;!</p></div></blockquote></div><p>Quite obvious ...<br />Just <em>who</em> do you take me for?</p></div></blockquote></div><p>Sorry, that was a comment about the README in the linked GitHub repository. No offence intended.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 22 Mar 2021 17:52:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28425#p28425</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28419#p28419</link>
			<description><![CDATA[<p>A PCI &quot;adddress&quot; has format &quot;<span class="bbc">bus</span> <strong>:</strong> <span class="bbc">device</span> <strong>.</strong> <span class="bbc">function</span>&quot; so I would guess on</p><div class="codebox"><pre><code>-b 0x04 -d 0x00 -f 0x00</code></pre></div><p>The USB codes are <span class="bbc">vendor</span> and <span class="bbc">product</span> and those would not be the ones to use here, a neither the bus and device indices for the USB sub system.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 22 Mar 2021 04:37:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28419#p28419</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28416#p28416</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... supplies a systemd[0] unit file to load the firmware at boot but that won&#039;t work for Devuan.</p></div></blockquote></div><p>The readme says:</p><div class="quotebox"><blockquote><div><p>For using SystemD, please adjust the paths/environment variables in the unit file according to your install locations of script, loader and firmware image.<br />If no environment variables are set, the script presumes that loader and firmware image are co-located with itself in the same directory.</p></div></blockquote></div><p>For testing, I have everything in the same directory:</p><div class="codebox"><pre><code>groucho@devuan:~/Downloads/renesas/work$ ls
K2013080.mem
README.md
upd72020x-check-and-init
upd72020x-load
upd72020x-load.c
Makefile
check-and-init
upd72020x-fwload.service
groucho@devuan:~/Downloads/renesas/work$ </code></pre></div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Change ... <br />... and change</p></div></blockquote></div><p>Like this?</p><p>For the firmware file ---&gt; UPD72020X_FW=[path-to-file] K2026.mem</p><p>For the executable ---&gt; UPD72020X_CMD=[path-to-file]./upd72020x-load</p><p>Q: where in the system should these two (firmware and executable) files be saved?</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>You could call the script using <span class="bbc">/etc/rc.local</span> instead.</p></div></blockquote></div><p>Yes.<br />If it works.<br />Then I&#039;ll have to run it at every boot.</p><p>At least until the patch makes it into the kernel but I don&#039;t see that happening too soon.&#160; 8^/<br />This issue with Renesas USB .0 cards comes from <em>way</em> back.</p><p>I did a dry run to see if everything was in place:</p><div class="codebox"><pre><code>[root@devuan work]# 
[root@devuan work]# ./upd72020x-load
upd72020x-load: version 0.1
usage: upd72020 -r -b bus -d dev -f fct -s -o outfile : read eeprom to file (size default is 0x10000 or 64KB)
usage: upd72020 -w -b bus -d dev -f fct -i infile : write file to eeprom
usage: upd72020 -u -b bus -d dev -f fct -i infile : upload file to firmware memory
[root@devuan work]# </code></pre></div><p>Usage is specified at GitHub as being this:</p><div class="codebox"><pre><code>./upd72020x-load -u -b 0x02 -d 0x00 -f 0x0 -i Kxxxxxx.mem</code></pre></div><p>But I still need to find the values for <span class="bbc">-u</span>, <span class="bbc">-b</span> and <span class="bbc">-f</span>.</p><p>lspci says:</p><div class="codebox"><pre><code>groucho@devuan:~/Downloads/renesas/work$ lspci
04:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)
groucho@devuan:~/Downloads/renesas/work$ </code></pre></div><p>So it would be PCI bus 04:00.0&#160; <br />Yes?</p><p>lsusb says:</p><div class="codebox"><pre><code>groucho@devuan:~/Downloads/renesas/work$ lsusb
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
groucho@devuan:~/Downloads/renesas/work$ </code></pre></div><p>So it would be Device 001&#160; <br />Yes?</p><p>Is the function address <span class="bbc">1d6b:0003</span>?</p><p>I&#039;m at a loss as to how to put together the line.<br />I&#039;d appreciate some pointers as to how to do it.</p><p>---</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>[0] Not &quot;SystemD&quot;!</p></div></blockquote></div><p>Quite obvious ...<br />Just <em>who</em> do you take me for?<br />---</p><p>Thanks in advance.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 21 Mar 2021 22:41:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28416#p28416</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28415#p28415</link>
			<description><![CDATA[<p>The GitHub repository supplies a systemd[0] unit file to load the firmware at boot but that won&#039;t work for Devuan.</p><p>You could call the <a href="https://github.com/markusj/upd72020x-load/blob/master/upd72020x-check-and-init" rel="nofollow">upd72020x-check-and-init</a> script using <span class="bbc">/etc/rc.local</span> instead. Change <a href="https://github.com/markusj/upd72020x-load/blob/master/upd72020x-check-and-init#L12" rel="nofollow">this line</a> so that it points to the correct location of the firmware file.</p><p>EDIT: and change <a href="https://github.com/markusj/upd72020x-load/blob/master/upd72020x-check-and-init#L9" rel="nofollow">this line</a> so that it points to the correct location of the <span class="bbc">upd72020x-load</span> executable.</p><p>[0] Not &quot;SystemD&quot;! <img src="http://dev1galaxy.org/img/smilies/mad.png" width="15" height="15" alt="mad" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 21 Mar 2021 19:07:05 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28415#p28415</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28414#p28414</link>
			<description><![CDATA[<p>Hello:</p><p>I think I found the necessary bits/data for a solution to this but to be honest, have no idea as to how to go about it.<br />ie: properly and <em>without</em> bricking something.</p><p>Here&#039;s the link that has what seems to be a solution:<br /><a href="https://github.com/markusj/upd72020x-load" rel="nofollow">https://github.com/markusj/upd72020x-load</a></p><p>Here&#039;s a blog with the hows and whys:<br /><a href="https://mjott.de/blog/881-renesas-usb-3-0-controllers-vs-linux/" rel="nofollow">https://mjott.de/blog/881-renesas-usb-3 … -vs-linux/</a></p><div class="quotebox"><blockquote><div><p>The uPD720202 chipset requires additional firmware to operate.<br />It must be either uploaded by the driver during initialization, or can be stored on an external EEPROM.<br />--- snip ---<br />For the first case, there exists a patch for the Linux kernel driver for this chipset to support uploading the firmware image at boot time.<br />But apparently, this patch never made it into the kernel and I have not found the firmware image in the linux-firmware repository.</p></div></blockquote></div><p>Here&#039;s the link to the firmware file:<br /><a href="https://raw.githubusercontent.com/chunkeey/renesas-fw/master/USB3-201-202-FW-20120615.zip" rel="nofollow">https://raw.githubusercontent.com/chunk … 120615.zip</a></p><p>Firmware file Release Note:</p><div class="quotebox"><blockquote><div><p>****************************************************************************<br />******* D720201 &amp; D720202 Design Resources Release *******<br />****************************************************************************<br /> Release Note&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;June 15.2012</p><p> Renesas Electronics D720201 &amp; uPD720202<br /> USB3.0 Host Controller Firmware</p><p> Version : 2.0.1.3 :June 15th, 2012<br /> Copyright (C) 2011-2012 Renesas Electronics Corporation All Rights Reserved<br />***************************************************************************************************</p><p>Note : This firmware is for the following devices.<br />&#160; &#160; &#160; - uPD720201 ES 2.0 sample whose revision ID (in the PCI Configuration <br />&#160; &#160; &#160; &#160;Register) is 2h.<br />&#160; &#160; &#160; - uPD720201 ES 2.1 sample &amp; CS sample &amp; Mass product whose revision<br />&#160; &#160; &#160; &#160;ID (in the PCI Configuration Register) is 3h.<br />&#160; &#160; &#160; - uPD720202 ES 2.0 sample &amp; CS sample &amp; Mass product whose revision<br />&#160; &#160; &#160; &#160;ID (in the PCI Configuration Register) is 2h.</p></div></blockquote></div><p>This is all I could find.</p><p>Anyone care to have alook/comment?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 21 Mar 2021 17:26:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28414#p28414</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28398#p28398</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Any ideas?</p></div></blockquote></div><p>More additional information.</p><p>Kernel configuration has the card ticked:</p><div class="codebox"><pre><code>groucho@devuan:~$ grep -i renesas /boot/config-4.19.0-14-amd64
CONFIG_NET_VENDOR_RENESAS=y
CONFIG_RENESAS_PHY=m</code></pre></div><p>The card is detected as PCI card ...</p><div class="codebox"><pre><code>groucho@devuan:~$ lspci -nn | grep -i usb    
--- snip ---
04:00.0 USB controller [0c03]: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller [1912:0014] (rev 03)
groucho@devuan:~$ </code></pre></div><p>... and as a USB3.0 hub: </p><div class="codebox"><pre><code>groucho@devuan:~$ lsusb | grep -i hub    
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub &lt;--------- |x|
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
groucho@devuan:~$ </code></pre></div><p>Does it matter that it is not referenced in the same way the Dell monitor&#039;s hub is?<br />eg:</p><div class="codebox"><pre><code>Bus 002 Device 001: ID 1d6b:0003 Renesas Technology Corp.USB 3.0 Hub</code></pre></div><p><span class="bbu">Edit:</span></p><div class="codebox"><pre><code>groucho@devuan:~$ locate renesas
/usr/src/linux-headers-4.19.0-14-amd64/include/config/renesas
/usr/src/linux-headers-4.19.0-14-amd64/include/config/net/vendor/renesas.h
/usr/src/linux-headers-4.19.0-14-amd64/include/config/renesas/phy.h
/usr/src/linux-headers-4.19.0-14-common/arch/arm/include/debug/renesas-scif.S
/usr/src/linux-headers-4.19.0-14-common/include/dt-bindings/clock/renesas-cpg-mssr.h
/usr/src/linux-headers-4.19.0-14-common/include/linux/clk/renesas.h
/usr/src/linux-headers-4.19.0-14-common/include/linux/soc/renesas
/usr/src/linux-headers-4.19.0-14-common/include/linux/soc/renesas/rcar-rst.h
/usr/src/linux-headers-4.19.0-14-common/include/linux/soc/renesas/rcar-sysc.h
/usr/src/linux-headers-4.19.0-14-common/include/linux/usb/renesas_usbhs.h
/usr/src/linux-headers-4.19.0-14-common/include/media/drv-intf/renesas-ceu.h
groucho@devuan:~$ </code></pre></div><p>Thanks in advance.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 20 Mar 2021 20:37:04 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28398#p28398</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28391#p28391</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Any ideas?</p></div></blockquote></div><p>Some additional information.</p><p>I booted the box with an <span class="bbc">ubuntu fwts-live</span> image which uses the 5.4.0 LTS kernel to see what showed up in <span class="bbc">dmesg</span>:</p><div class="codebox"><pre><code>[    0.000000] Linux version 5.4.0-66-generic (buildd@lgw01-amd64-039) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 (Ubuntu 5.4.0-66.74-generic 5.4.86)
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz root=LABEL=writable ro console=tty1 console=ttyS0 quiet
--- snip ---
[    0.628135] xhci_hcd 0000:04:00.0: xHCI Host Controller
[    0.628138] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 10
[    0.628141] xhci_hcd 0000:04:00.0: Host supports USB 3.0 SuperSpeed
[    0.631214] usb usb10: We don&#039;t know the algorithms for LPM for this host, disabling LPM.      &lt;------------ | x |
[    0.631234] usb usb10: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    0.631236] usb usb10: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.631237] usb usb10: Product: xHCI Host Controller
[    0.631238] usb usb10: Manufacturer: Linux 5.4.0-66-generic xhci-hcd
[    0.631239] usb usb10: SerialNumber: 0000:04:00.0</code></pre></div><p>Then in <span class="bbc">lspci</span>:</p><div class="codebox"><pre><code>04:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)</code></pre></div><p>As before, nothing happened when I pugged in the external USB3.0 drive in the USB3.0 card socket.</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 20 Mar 2021 13:57:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28391#p28391</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] USB 3.0 card, external drive and unknown algorithms]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28390#p28390</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Any ideas?</p></div></blockquote></div><p>The plot thickens.<br />I think there may be more to this USB problem than meets the eye.</p><p>This morning, the third or fourth time I rebooted my rig while in the course of running some tests, I was greeted by a non-working Logitech USB Optical mouse.<br />But not entirely as the mouse&#039;s LED was on with the pointer is visible on the desktop, albeit frozen.</p><p>I rebooted the box right there and then but nothing changed.</p><p>I then dropped into a virtual console with and checked <span class="bbc">dmesg</span>.<br />It was not listed in <span class="bbc">dmsg</span>, a is usual.</p><p>Back into X and without rebooting, I unplugged it from a rear socket of the onboard USB2.0 hub and plugged it in again in (same socket), to no avail.<br />I then plugged it into one of the front panel USB2.0 sockets and it came to life, as you can see here:</p><div class="codebox"><pre><code>groucho@devuan:~$ sudo dmesg | tail -8
[   53.916788] fuse init (API version 7.27)
[  111.196029] usb 10-2: new low-speed USB device number 2 using uhci_hcd
[  111.391046] usb 10-2: New USB device found, idVendor=046d, idProduct=c077, bcdDevice=72.00
[  111.391051] usb 10-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  111.391054] usb 10-2: Product: USB Optical Mouse
[  111.391056] usb 10-2: Manufacturer: Logitech
[  111.406441] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1d.2/usb10/10-2/10-2:1.0/0003:046D:C077.0002/input/input15
[  111.406624] hid-generic 0003:046D:C077.0002: input,hidraw1: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.2-2/input0
groucho@devuan:~$ </code></pre></div><p>As you can see here, the mouse was <em>not</em> there when I first booted:</p><div class="codebox"><pre><code>groucho@devuan:~$ sudo dmesg | grep -i &quot;Logitech USB&quot;
[  111.406441] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1d.2/usb10/10-2/10-2:1.0/0003:046D:C077.0002/input/input15
[  111.406624] hid-generic 0003:046D:C077.0002: input,hidraw1: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.2-2/input0
groucho@devuan:~$ </code></pre></div><p>A <span class="bbc">dmesg</span> snip from this morning&#039;s first boot (as seen in /var/log/mesages) shows where, early in the boot sequence, it is found and initialised by the system:</p><div class="codebox"><pre><code>Mar 20 06:58:41 [    4.964090] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1d.1/usb9/9-2/9-2:1.0/0003:046D:C077.0002/input/input5
Mar 20 06:58:41 [    4.985718] hid-generic 0003:046D:C077.0002: input,hidraw1: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.1-2/input0</code></pre></div><p>Now this non-working mouse problem had already happened a couple of times before.</p><p>I had it plugged into the Dell monitor&#039;s hub for less cable clutter at floor level and as I do not use a mouse outside X, it was not a problem if the BIOS did no initilalise it at boot.</p><p>I thought that being plugged into the monitor&#039;s hub could somehow be causing the problem, so I plugged it back into the rear port and it started working immediately.</p><p>Until this morning.</p><p>I have now unplugged it from the front panel after and plugged it in the back socket again: it works without issue.<br />If on reboot it the problem crops up again, I&#039;ll edit this post about it.</p><p><span class="bbu">Edit:</span><br />No problem on reboot, was not reproduced.</p><div class="codebox"><pre><code>groucho@devuan:~$ sudo dmesg | grep -i &quot;Logitech USB&quot;
[    4.477408] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1d.1/usb9/9-1/9-1:1.0/0003:046D:C077.0001/input/input4
[    4.487583] hid-generic 0003:046D:C077.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.1-1/input0
groucho@devuan:~$ </code></pre></div><p>Any ideas?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 20 Mar 2021 12:34:00 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28390#p28390</guid>
		</item>
	</channel>
</rss>
