RPi 5 Ubuntu Server 6.5.0-1005-raspi USB boot works, 6.5.0-1008 doesn't?

Bug #2047771 reported by Jef ZIegler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

RPi 5, RPi Imager Ubuntu Server images has 6.5.0-1005-raspi & USB boot works. "apt update && apt upgrade" try to install 6.5.0-1008 that will not USB boot? If I use "apt-get update && apt-get upgrade" that doesn't update that package, all is fine. Is there a none fix?

Tags: kern-8740
Revision history for this message
jhonmike8272 (jhonmi) wrote :

Experiencing similar USB boot issues with the RPi 5 and kernel version 6.5.0-1008. Oddly, 'apt-get update && apt-get upgrade' seems to bypass the problem for now https://betflix.club/. Anyone else finding a permanent fix for this.

Revision history for this message
Jef ZIegler (jziegler) wrote :

Thanks for confirming what I found. I did find this link: https://launchpad.net/ubuntu/+source/linux-raspi/6.5.0-1008.11

Did the "Raspberry Pi 3B+ doesnt boot from USB on 23.10 Mantic (LP: #2039786)" fix brake RPi 5??

Manuel Diewald (diewald)
tags: added: kern-8740
Revision history for this message
Juerg Haefliger (juergh) wrote :

I cannot reproduce this. I can boot a Pi 5 just fine from USB with 6.5.0-1008-raspi:

ubuntu@rpi-5b-rev1d0-f88b:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 68.5M 1 loop /snap/core22/867
loop1 7:1 0 169M 1 loop /snap/lxd/25953
loop2 7:2 0 35.5M 1 loop /snap/snapd/20298
sda 8:0 0 119.2G 0 disk
├─sda1 8:1 0 512M 0 part /boot/firmware
└─sda2 8:2 0 118.7G 0 part /
ubuntu@rpi-5b-rev1d0-f88b:~$ uname -a
Linux rpi-5b-rev1d0-f88b 6.5.0-1008-raspi #11-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 22 19:08:26 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Do you get any console message? Can you hook up the serial console and check what is happening? Do you have the official Pi5 power supply?

Changed in linux-raspi (Ubuntu):
status: New → Incomplete
Revision history for this message
Jef ZIegler (jziegler) wrote :

After I break the system by updating, how do I get the output from "uname -a"? Will booting to a good image & using chroot work?

Revision history for this message
Jef ZIegler (jziegler) wrote :

Are you going from the Raspberry Pi Imager 23.10 server image, boot, change password, update & reboot? Or something different?

Revision history for this message
Jef ZIegler (jziegler) wrote :

Also, if I USB boot an SD card (vs SSD) the 1008 works.

Revision history for this message
Juerg Haefliger (juergh) wrote :

1) Download server image from https://ubuntu.com/download/raspberry-pi
2) Unxz image and dd to sdd
3) Plug sdd into Pi, boot, change pw, upgrade, reboot

Boot from USB is only supported with the official Pi5 PS. If you're using a different one you could get lucky, or not. What's your PS?

What bootloader version do you have installed?

$ rpi-eeprom-update
BOOTLOADER: up to date
   CURRENT: Mon Sep 25 10:44:03 UTC 2023 (1695638643)
    LATEST: Mon Sep 25 10:44:03 UTC 2023 (1695638643)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader-2712/default)
            Use raspi-config to change the release.

Revision history for this message
Jef ZIegler (jziegler) wrote :

So, the Ubuntu download is different than the official Raspberry PI download?

Revision history for this message
Jef ZIegler (jziegler) wrote :

My PS is the OFFICAL but that doesn't matter if you are using a power dock???

Revision history for this message
Juerg Haefliger (juergh) wrote :

What's a power dock? And I don't know what image pi-imager is downloading. Might very well be the same, or do you have evidence that it's not?

Revision history for this message
Juerg Haefliger (juergh) wrote :

The point about the PS is that the Pi firmware enables max USB power if it detects a compliant PS and not otherwise. Which basically limits the amount of current provided to USB attached devices, which could break boot from USB.

Revision history for this message
Juerg Haefliger (juergh) wrote :

Oh did you mean a powered USB hub? If that then yes, the PS shouldn't matter. Can you send the output of lsusb when booting the old kernel? Could be another UAS problematic disk enclosure.

Revision history for this message
Jef ZIegler (jziegler) wrote :

Looks like my newer RPi 5 shipped with a newer version.

Current: Wed Dec 6 18:29:25 UTC 2023 (17018897365)

Revision history for this message
Jef ZIegler (jziegler) wrote :

lsusb:

Bus 004 Device 002: ID 174c:5106 ASMedia Technology Inc. ASM1051 SATA 3Gb/s bridge
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 413c:301a Dell Computer Corp. Dell MS116 Optical Mouse
Bus 003 Device 003: ID 413c:2006 Dell Computer Corp. Dell USB Keyboard Hub
Bus 003 Device 002: ID 413c:1004 Dell Computer Corp. Dell USB Keyboard Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Revision history for this message
Jef ZIegler (jziegler) wrote :

I also have another powered dock & will try that.

Bus 002 Device 002: ID 1f75:0621 Innostor Technology Corporation IS621 SATA Storage Controller

Revision history for this message
Juerg Haefliger (juergh) wrote :

Serial console output would really help, otherwise we're just shooting in the dark.

Revision history for this message
Juerg Haefliger (juergh) wrote :

You can try to append the following to /boot/firmware/cmdline.txt (note that all must be on one line):

usb-storage.quirks=174c:5106:u

This will disable UAS for your USB-SATA bridge.

Revision history for this message
Juerg Haefliger (juergh) wrote :

Probably unrelated but add the following to the end of /boot/firmware/config.txt:

[all]
usb_max_current_enable=1

Revision history for this message
Jef ZIegler (jziegler) wrote :

Switching to a generic SATA->USB adapter vs the Rosewill RX-DU300 dock allowed me to update the kernel. Thanks for that suggestion.

Also, using "agnostics" I went from 1,995/4,662 IOPS to 2,881/6,998 IOPS, nice performance increase. My ROCKETEK adapter didn't work at all. I am still using the 12v adapter, seems to boot faster vs USB power.

Revision history for this message
Juerg Haefliger (juergh) wrote :

We need kernel/firmware messages from the serial console if you want us to debug this further.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux-raspi (Ubuntu) because there has been no activity for 60 days.]

Changed in linux-raspi (Ubuntu):
status: Incomplete → Expired
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.