Opened 3 years ago

Last modified 2 years ago

#17110 new bug

Haiku fails to boot with XHCI

Reported by: nephele Owned by: waddlesplash
Priority: normal Milestone: Unscheduled
Component: Drivers/USB/XHCI Version: R1/beta3
Keywords: boot-failure Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by nephele)

After trying to install Haiku for hours to a usb drive and failing I switched the usb slot, after which it worked. Thus is suspect this is related to usb3, the thumb drive and port are usb3.

The KDL displays "did not to find any boot partitions"

Attachments (3)

2003D9A0-B95F-4AFB-A595-85798BFFC9AD.jpeg (369.1 KB ) - added by nephele 3 years ago.
photo of kdl
syslog.txt (149.1 KB ) - added by nephele 3 years ago.
Syslog of sucessfull usb2 boot
syslog (132.3 KB ) - added by nephele 2 years ago.
log of usb2 boot with usb3 then attached

Download all attachments as: .zip

Change History (16)

by nephele, 3 years ago

photo of kdl

by nephele, 3 years ago

Attachment: syslog.txt added

Syslog of sucessfull usb2 boot

comment:1 by nephele, 3 years ago

I don't have a syslog of the failed boot since it did not find the partition to write it, so let me know what more information I can extract from the KDL, the thumb drive isn't going anywhere. :)

comment:2 by nephele, 3 years ago

Description: modified (diff)

comment:3 by waddlesplash, 3 years ago

There is actually an EHCI (USB2) error in the log snippet displayed in the picture, followed by a usb_disk failure. Are you really sure it is a USB3 port?

comment:4 by waddlesplash, 3 years ago

It appears you have two EHCI controllers and one XHCI controller. Unfortunately from your syslog I cannot tell who owns what ports. It may be that the boot failure occurs on one EHCI controller but not the other.

comment:5 by nephele, 3 years ago

From physical hardware that I can see:

  • One SD Card Reader
  • One Fingerprint Reader
  • One black usb2 port
  • Two Blue usb3 ports

The Touchpad seems connected via PS/2, don't know about the keyboard

application/Devices indeed shows two EHCI and one XHCI Controller

Booting fails as seen in the picture with a (blue) usb3 thumb drive connected to either (blue) usb3 port, and suceeds for the usb2 one

comment:6 by waddlesplash, 3 years ago

Interestingly, you have a Texas Instruments XHCI controller, but Intel EHCI controllers. Intel XHCI controllers have a routing system where the USB3 ports go to the EHCI controllers by default on most hardware, and are routed to the XHCI controller once the XHCI driver performs a handoff. I wonder if there is something similar going on here, that is, your device really is connected to the EHCI controller, it seems more than plausible given the error message.

comment:7 by waddlesplash, 3 years ago

Keywords: boot-failure added

comment:8 by waddlesplash, 3 years ago

Please retest under a recent nightly.

If it still fails, please boot under a USB2 port, then connect a drive to a USB3 port, and post a syslog.

by nephele, 2 years ago

Attachment: syslog added

log of usb2 boot with usb3 then attached

comment:9 by nephele, 2 years ago

Still occurs, the log is from a self compiled image. The images from download.haiku-os.org seem completely broken to me, shows up without any formatted partitons to me. (the image i downloaded was hrev56511)

comment:11 by nephele, 2 years ago

Ubuntu 22 fails to boot similarily (kernel gets loaded and i itramfs but then fails to mount/find rootfs). So this may be related but might also not be :)

comment:12 by nephele, 2 years ago

in reply to:  12 comment:13 by korli, 2 years ago

Replying to nephele:

the quirk you mention seems to be for replugging https://github.com/torvalds/linux/commit/69307ccb9ad7ccb653e332de68effdeaaab6907d

indeed, probably unrelated then.

Note: See TracTickets for help on using tickets.