Raspberry Pi 3B+ doesnt boot from USB on 23.10 Mantic

Bug #2039786 reported by Aurélien Leblond
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi (Ubuntu)
Status tracked in Noble
Noble
Confirmed
Undecided
Unassigned

Bug Description

[Impact]

Boot from USB on Pi 3B+ doesn't work. When the onboard-usb-hub module is loaded, all attached devices are reconnected which is fatal if one of them is the boot device.

[Fix]

Revert the commit that added support for the hub on the Pi 3B+. This driver is no really needed for the Pi.

[Test Case]

See below.

[Regression Potential]

Other attached devices that contain the same hub and require the driver will no longer function properly. IMO that's a very unlikely scenario.

[Original Description]

Hello all,

I upgraded my Raspberry Pi 3B+ from 22.04 to 23.10.
The storage device where the OS resides is a USB hdd.
It is connected to the Pi via a ASMedia Technology Inc. X820.

After the upgrade to 23.10, Ubuntu crashes during boot.

To eliminate the X820 as a variable:
- I created a Ubuntu server 23.10 directly on a USB stick -> The pi doesn't boot
- I created a Ubuntu server 23.04 the same way -> the pi boots

After investigation, I found that if I copy the /boot/firmware folder from an old 22.04 image and replace the content of the Fat32 boot partition of the HDD with its content, Ubuntu boots again.

From the error I get during boot time, it looks like after booting, the USB HDD is not found or the root partition is not mounted properly.
Booting with an SD card and mounting the HDD, I see that no logs in /var/log folder are being updated

What should be my next step to get proper error messages and investigate further?

Thanks in advance,
Aurélien

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2039786/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → linux-raspi (Ubuntu)
Revision history for this message
Aurélien Leblond (blablack) wrote :

The issue is with the onboard_usb_hub module.

During boot, when the onboard_usb_hub it causes all USB devices to restart, including the disk Ubuntu is booting from.

rpi kernel: usbcore: registered new device driver onboard-usb-hub
rpi kernel: usb 1-1.1: USB disconnect, device number 3
rpi kernel: lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): Failed to write register index 0x00000010. ret = -19
rpi kernel: lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): Registers INIT FAILED....
rpi kernel: lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): Bind routine FAILED
rpi kernel: usb 1-1.1.1: USB disconnect, device number 5
rpi kernel: usbcore: registered new interface driver lan78xx
rpi kernel: usb 1-1.1.3: USB disconnect, device number 6
rpi kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
rpi kernel: sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=DRIVER_OK
rpi kernel: sd 0:0:0:0: [sda] Stopping disk
rpi kernel: sd 0:0:0:0: [sda] Start/Stop Unit failed: Result: hostbyte=0x01 driverbyte=DRIVER_OK

I blacklisted 'onboard_usb_hub' to workaround the issue.
echo "blacklist onboard_usb_hub" > /etc/modprobe.d/blacklist-usb_hub.conf

Juerg Haefliger (juergh)
tags: added: kern-8468
Revision history for this message
Juerg Haefliger (juergh) wrote :

Yes, this is bad
https://<email address hidden>/

Changed in linux-raspi (Ubuntu):
status: New → Confirmed
Juerg Haefliger (juergh)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.