Another USB2 hub problem -- sort of solved

This forum is for all AmigaOne 500, Sam440 and Sam460 specific issues.

Another USB2 hub problem -- sort of solved

Postby kilaueabart » Tue Mar 06, 2012 12:35 am

This won't be a real-life problem, although it remains as something that doesn't work quite right.

I had the idea that if I booted without keyboard and trackball plugged in, it would spend time looking for them and finally give me a "can't find" message. It turns out that I can leave both plugged into the hub, disconnect the hub, boot up fairly quickly, and then plug the hub back in after Workbench comes up. No need to go off and do something else while waiting.

This was the pre-edited post:

Since I added a (powered) USB2 hub to my SAM460 the boot process now begins
with this uboot screen output:

Config: PCIe 4x + SATA-2
USB: scanning bus for devices ... 7 USB Devices found
scanning bus for storage devices ...

(After a considerable delay [about 90 seconds], "error in inquiry" is added
to the above line, then:)

1 Storage Device(s) found
SATA Device 0: OK SATA Device 1: OK SATA Device 2: ............

(Another long delay),

Model: Hitachi HD [etc.]
Type: Hard Disk
[etc.]
Model: ATAPI Firm: AL15 [etc.]
Type: Removable CD ROM
[etc.]

(Then another pause, followed by)

not available

(Again, long pause and)

not available
Hard Disk not found

Press SPACE for prefs, [etc.]

Booting...


After that everything then proceeds properly.

I originally assumed I have mis-set some Uboot variables, like maybe I should
have GG00 and 1200 for the sii3114 values, instead of what I have below.

pcie_mode=RP:RP
pciconfighost=1
usb_enable_4x0=1
usb_retry=1
usb_ohci_power_down_before_reset=1
scan_usb_storage=1
serdes=sata2
sii3114ide_xfer=G0G0
sii3114ide_maxbus=1
sii3114ide_conf=1020
ver=U-Boot 2010.06.03 (Jan 24 2011 - 12:07:20)
video_activate=pci
hush=0
os4_commandline=debuglevel=0
bootargs=root=/dev/sda3 console=tty0
boot1=s4sii

I have no idea what some of these variables are for. Someone suggested
changing scan_usb_storage to "0," but that didn't work.

I can plug my keyboard (ps/2 with USB converter) and USB trackball into the
front ports of the tower instead of the hub and disconnect the hub. Then
things progress much more quickly, with no "error in inquiry" message. I still
get the "not available"s.

After seeing the problems in this group that others have had with keyboards
and mice I sort of think I should just be happy with what I've got, but maybe
there is an easy fix?
Aloha,
Bart
User avatar
kilaueabart
 
Posts: 638
Joined: Mon Mar 05, 2012 3:36 am

Re: Another USB2 hub problem -- sort of solved

Postby mechanic » Wed Mar 07, 2012 8:26 pm

Did the sii3114ide_conf=1020 line come preset that way, or is it
something you added?

What happens if you remove that line?

The 'Not Available' means it is looking for something thats not there.

Also, could you post your usb.log file, just after a cold boot.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
mechanic
 
Posts: 506
Joined: Sat Jun 25, 2011 10:22 pm

Re: Another USB2 hub problem -- sort of solved

Postby Spectre660 » Wed Mar 07, 2012 8:38 pm

Have a look at the documentation for the sii3114ide.device settings

System:Documentation/IDE/sii3114ide_dev.doc
Spectre660
 
Posts: 1489
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Another USB2 hub problem -- sort of solved

Postby kilaueabart » Thu Mar 08, 2012 10:21 am

Did the sii3114ide_conf=1020 line come preset that way, or is it
something you added?

I added it, and it's one thing I have been suspicious of. I wanted to change it to "1200" this afternoon (and the corresponding sii3114ide_xfer setting to "GG00," thinking that I must have my DVD plugged in as Unit 1 instead of 2, but I was unable to access Uboot commands; it ignored my keystrokes and continued through the boot process both times I tried!
Aloha,
Bart
User avatar
kilaueabart
 
Posts: 638
Joined: Mon Mar 05, 2012 3:36 am

Re: Another USB2 hub problem -- sort of solved

Postby kilaueabart » Thu Mar 08, 2012 10:27 am

Have a look at the documentation for the sii3114ide.device settings
Thanks. That is in fact what I based my settings on, but I'll study it again; I may have missed something. (It's not certain that I will be able to change anything, though, if I can't interrupt the boot process.)
Aloha,
Bart
User avatar
kilaueabart
 
Posts: 638
Joined: Mon Mar 05, 2012 3:36 am

Re: Another USB2 hub problem -- sort of solved

Postby mechanic » Thu Mar 08, 2012 1:40 pm

kilaueabart wrote:
(It's not certain that I will be able to change anything, though, if I can't interrupt the boot process.)


Your keyboard should work in UBoot when plugged directly into at least
one of the ports, no hub in between.

You can also view and set uboot variables from OS4 using the nvgetvar
and nvsetvar commands in the C: directory in a shell.

nvgetvar (view all uboot)
nvgetvar sii3114ide_xfer (view only one setting)

nvsetvar kbddev_norwin 1 (set keyboard for missing windows key)
nvsetvar sii3114ide_xfer (delete setting)
nvsetvar sii3114ide_xfer G0G0 (set transfer speeds) (Those are Zeros.)
and no = sign for setting things.

I do not have sii3114ide_conf set in my 440ep so uboot does the job of
determining what is where. It works for me.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
mechanic
 
Posts: 506
Joined: Sat Jun 25, 2011 10:22 pm

Re: Another USB2 hub problem -- sort of solved

Postby kilaueabart » Thu Mar 08, 2012 10:29 pm

Thinking the same thing, I tried keyboard in front port first boot this am. No go. Later tried a rear port and it worked.

In the meantime I had read mechanic's suggestion and used nvsetvar to undo sii3114ide_conf and experiment with setting sii3114ide_xfer to GG00. These had no effect when I reset the SAM. I see there is no real reason to set the _xfer to anything, so I have just nulled it out, but haven't checked to see if it makes any difference.

It was suggested that I send usb.log. I assume I should do it as an attachment, to avoid messing up the lines? Well, maybe not! I get a message: "The extension log is not allowed." So I'll just paste the file here. Actually, this is the fourth one this morning; the first two were dated "02-Jan-12 11:38:12." The next two had the correct date and time.

Hidden Text - Click to Show :
I: [00:00:04] USB stack | | ==========
I: [00:00:04] USB stack | | USB System Software Task started
I: [00:00:04] USB stack | | Starting HCDs...
E: [00:00:04] USB stack | New Fkt | fkt: 0x5FE0A1F0 = Level -1
E: [00:00:04] USB stack | New Fkt | fkt: 0x5FE0A290 = Level 0
I: [00:00:04] EHCI Controller Task Unit 0 | EHCI | Another driver seems to use the PPC460ex USB hardware. Sending shut down notification.
W: [00:00:04] OHCI Controller Task Unit 0 | OHCI | Received request to shutdown unit 0.
W: [00:00:04] OHCI Controller Task Unit 0 | OHCI | Releasing lock for unit 0.
I: [00:00:04] EHCI Controller Task Unit 0 | EHCI | Successfully locked PPC460ex USB hardware.
E: [00:00:04] USB stack | New Fkt | fkt: 0x5FE0A330 = Level -1
E: [00:00:04] USB stack | New Fkt | fkt: 0x5FE0A3D0 = Level 0
I: [00:00:04] USB stack | | ...HCDs started.
I: [00:00:04] USB Fkt Init | Init Fkt | Fkt 0x5FE0A290 is {Vendor: 0x0000, Product: 0x0000, Class: 09.00}
I: [00:00:04] USB Fkt Init | Init Fkt | Fkt 0x5FE0A3D0 is {Vendor: 0x0000, Product: 0x0000, Class: 09.00}
I: [00:00:04] USB Fkt Init | Init Fkt | Fkt 0x5FE0A290 initialized
I: [00:00:04] USB Fkt Init | Init Fkt | Fkt 0x5FE0A3D0 initialized
I: [00:00:04] hub.usbfd | HUB | Hub "Rear Roothub (ohci.usbhcd/0)" has TT thinktime of 8 full speed bittimes and protocol 0
I: [00:00:04] hub.usbfd | HUB | Hub "Rear Roothub (ehci.usbhcd/0)" has TT thinktime of 8 full speed bittimes and protocol 0
I: [00:00:04] hub.usbfd | HUB | All ports are empty
I: [00:00:04] hub.usbfd | HUB | Device found on port 1 of hub "Rear Roothub (ehci.usbhcd/0)".
I: [00:00:05] hub.usbfd | Hub port | Device at port 1 of hub "Rear Roothub (ehci.usbhcd/0)" is high-speed.
E: [00:00:05] USB stack | New Fkt | fkt: 0x5FE0A5B0 = Level 1
I: [00:00:05] hub.usbfd | HUB | Device on hub port 1 successfully added.
I: [00:00:05] EHCI Controller Task Unit 0 | EHCI | Port 0 is not in reset state.
I: [00:00:05] hub.usbfd | HUB | Driver Running
I: [00:00:05] USB Fkt Init | Init Fkt | Fkt 0x5FE0A5B0 is {Vendor: 0x0424, Product: 0x2517, Class: 09.00}
I: [00:00:05] USB Fkt Init | Init Fkt | Fkt 0x5FE0A5B0 initialized
I: [00:00:05] hub.usbfd | HUB | Now configured to use multiple TTs
I: [00:00:05] hub.usbfd | HUB | Hub "" has TT thinktime of 8 full speed bittimes and protocol 2
I: [00:00:05] hub.usbfd | HUB | Device found on port 7 of hub "".
I: [00:00:06] hub.usbfd | Hub port | Device at port 7 of hub "" is high-speed.
E: [00:00:06] USB stack | New Fkt | fkt: 0x5FE0A6F0 = Level 2
I: [00:00:06] hub.usbfd | HUB | Device on hub port 7 successfully added.
I: [00:00:06] hub.usbfd | HUB | Driver Running
I: [00:00:06] USB Fkt Init | Init Fkt | Fkt 0x5FE0A6F0 is {Vendor: 0x0424, Product: 0x2240, Class: 00.00}
I: [00:00:06] USB Fkt Init | Init Fkt | Fkt 0x5FE0A6F0 initialized
I: [00:00:06] MassStorage Device Task | Massstorage | Lun 0 has device type 0x00 (Direct access) and is removable
I: [00:00:07] MassStorage Device Task | Sys_EndInitialAttachmentPhase | Initial USB Attachment Phase terminated
I: [11:38:12] USB stack Process | | USB System Software Process started.
I: [11:38:12] USB stack Process | | Reading FD descriptors...
I: [11:38:12] USB stack Process | | ...FD infos read
I: [11:38:12] USB stack Process | | Starting HCDs...
I: [11:38:12] USB stack Process | | ...HCDs started.
I: [11:38:12] USB stack Process | Sys_EndInitialAttachmentPhase | Initial USB Attachment Phase terminated
I: [11:38:12] USB stack Process | | USB stack fullbooted
I: [10:09:56] hub.usbfd | HUB | Device found on port 2 of hub "".
I: [10:09:56] hub.usbfd | Hub port | Device at port 2 of hub "" is high-speed.
E: [10:09:56] USB stack | New Fkt | fkt: 0x512de470 = Level 2
I: [10:09:56] hub.usbfd | HUB | Device on hub port 2 successfully added.
I: [10:09:56] USB Fkt Init | Init Fkt | Fkt 0x512DE470 is {Vendor: 0x1A40, Product: 0x0201, Class: 09.00}
I: [10:09:56] USB Fkt Init | Init Fkt | Fkt 0x512DE470 initialized
I: [10:09:56] hub.usbfd | HUB | Now configured to use multiple TTs
I: [10:09:56] hub.usbfd | HUB | Hub "USB 2.0 Hub [MTT]" has TT thinktime of 8 full speed bittimes and protocol 2
I: [10:09:57] hub.usbfd | HUB | Device found on port 1 of hub "USB 2.0 Hub [MTT]".
I: [10:09:57] hub.usbfd | Hub port | Device at port 1 of hub "USB 2.0 Hub [MTT]" is low-speed.
E: [10:09:57] USB stack | New Fkt | fkt: 0x512de5b0 = Level 3
I: [10:09:57] hub.usbfd | HUB | Device on hub port 1 successfully added.
I: [10:09:57] hub.usbfd | HUB | Device found on port 4 of hub "USB 2.0 Hub [MTT]".
I: [10:09:57] USB Fkt Init | Init Fkt | Fkt 0x512DE5B0 is {Vendor: 0x046D, Product: 0xC404, Class: 00.00}
I: [10:09:57] USB Fkt Init | Init Fkt | Fkt 0x512DE5B0 initialized
I: [10:09:57] hub.usbfd | Hub port | Device at port 4 of hub "USB 2.0 Hub [MTT]" is high-speed.
E: [10:09:57] USB stack | New Fkt | fkt: 0x512de6f0 = Level 3
I: [10:09:57] hub.usbfd | HUB | Device on hub port 4 successfully added.
I: [10:09:57] hub.usbfd | HUB | Device found on port 5 of hub "USB 2.0 Hub [MTT]".
I: [10:09:57] USB Fkt Init | Init Fkt | Fkt 0x512DE6F0 is {Vendor: 0x05E3, Product: 0x0716, Class: 00.00}
I: [10:09:57] USB Fkt Init | Init Fkt | Fkt 0x512DE6F0 initialized
I: [10:09:58] MassStorage Device Task | Massstorage | Lun 0 has device type 0x00 (Direct access) and is removable
I: [10:09:58] MassStorage Device Task | Massstorage | Lun 1 has device type 0x00 (Direct access) and is removable
I: [10:09:58] MassStorage Device Task | Massstorage | Lun 2 has device type 0x00 (Direct access) and is removable
I: [10:09:58] hub.usbfd | Hub port | Device at port 5 of hub "USB 2.0 Hub [MTT]" is low-speed.
I: [10:09:58] MassStorage Device Task | Massstorage | Lun 3 has device type 0x00 (Direct access) and is removable
E: [10:09:58] USB stack | New Fkt | fkt: 0x512deab0 = Level 3
I: [10:09:58] hub.usbfd | HUB | Device on hub port 5 successfully added.
I: [10:09:58] hub.usbfd | HUB | Driver Running
I: [10:09:58] USB Fkt Init | Init Fkt | Fkt 0x512DEAB0 is {Vendor: 0x0B39, Product: 0x0001, Class: 00.00}
I: [10:09:58] USB Fkt Init | Init Fkt | Fkt 0x512DEAB0 initialized
Aloha,
Bart
User avatar
kilaueabart
 
Posts: 638
Joined: Mon Mar 05, 2012 3:36 am

Re: Another USB2 hub problem -- sort of solved

Postby mechanic » Thu Mar 08, 2012 11:31 pm

Going to spend some time on your usb log.
What was plugged into the USB ports for this log?

P.S.
If you edit your post and Highlight just the log you pasted, then click the 'hidden' button it will help keep the pages from getting to long.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
mechanic
 
Posts: 506
Joined: Sat Jun 25, 2011 10:22 pm

Re: Another USB2 hub problem -- sort of solved

Postby kilaueabart » Fri Mar 09, 2012 9:42 pm

I'm pretty sure that log was made with my 6-port powered hub plugged into a back port on the SAM460, and plugged into that, one PS/2-to-USB converter with a PS/2 keyboard plugged into it, one Logiteck USB trackball, and one HP ScanJet 4300C, unpowered.

I'm not 100% positive. I had made three other copies that morning, with slightly different configurations. But assuming I was able to boot with the configuration just described that is the one I would have sent.

It looks like someone hid my log text for me, but thanks for telling me the technique.
Aloha,
Bart
User avatar
kilaueabart
 
Posts: 638
Joined: Mon Mar 05, 2012 3:36 am

Re: Another USB2 hub problem -- sort of solved

Postby mechanic » Fri Mar 09, 2012 10:44 pm

kilaueabart wrote:I'm pretty sure that log was made with my 6-port powered hub plugged into a back port on the SAM460, and plugged into that, one PS/2-to-USB converter with a PS/2 keyboard plugged into it, one Logiteck USB trackball, and one HP ScanJet 4300C, unpowered.


Ah, that would explain much of your log.

Perhaps you should have a discussion with Metelheart as he also has a 460. Much easier when both people are reading the same book.

Let me just say that at least the keyboard should be on a motherboard port by itself as the USB2 functions don't kick in until USBCtrl start
in the Startup-Sequence is hit. Which port I don't know, but Metelheart has that worked out. Perhaps he mentioned it in the other USB thread
in this section.

A log file of booting with nothing plugged in, and then add devices one at a time would be appreciated.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
mechanic
 
Posts: 506
Joined: Sat Jun 25, 2011 10:22 pm

Next

Return to Platform: AmigaOne 500 and Sam series

Who is online

Users browsing this forum: Bing [Bot] and 2 guests