Raspberry Pi 4 USB boot: blk_update_request: I/O error
-
I've just received the new Retroflag NESPi 4 Case and I'm currently trying to get the USB boot without an sd card to work with a Raspberry Pi 4.
I followed the official guide to update the bootloader and the files on the boot partition. After that I simply cloned the sd card to an Samsung 860 Evo ssd and plugged it into the new case. At first I was not able to boot from the ssd. Then I found a thread and added usb-storage.quirks=152d:0562:u to the cmdline.txt and now booting from the ssd works.
But now I'm getting some very weird glitches when the system is booted up. I found the following errors in dmesg:
[ 237.895570] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd [ 237.929316] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00 [ 237.929339] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 03 0a af 10 00 01 00 00 [ 237.929361] blk_update_request: I/O error, dev sda, sector 51031824 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0
This is the output of lsusb:
Bus 002 Device 002: ID 152d:0562 JMicron Technology Corp. / JMicron USA Technology Corp. Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Any ideas why this is not working or is it simply to early to expect that the usb boot works?
-
@TheNetStriker said in Raspberry Pi 4 USB boot: blk_update_request: I/O error:
Any ideas why this is not working or is it simply to early to expect that the usb boot works?
USB boot should work - isn't your system starting up when booted from USB ? The messages you posted show up only on boot, or are they printed regularly in the system log ? Do you have the Pi4 already in the case ?
You should post a complete
dmesg
output on pastebin.com, not just the error messages. Looking at the SSD detection messages should indicate whether the USB quirks have been applied or not. -
I did some more tests and I guess I found out what was causing this problem. After cloning the sd card everything works fine until I copy my rom's to the ssd. I just attached the ssd with the usb adapter to my Ubuntu machine and copied everything there to get faster speeds. But it seems that this method changes something in the filesystem that then causes all sorts of problems when booting from the ssd.
I now simply copied the sd card to the ssd again to get a fresh start and then copied everything with SFTP and now everything seems to be running fine.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.