RPI4 8GB 64bit boot fails when USB hard drive inserted

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

RPI4 8GB 64bit boot fails when USB hard drive inserted

Postby umbrellarunaround » Wed Jul 28, 2021 2:12 pm

Hello gang :)

# Summary
Can you help me successfully boot my raspberry pi 4 (rpi) with an extra USB HDD connected?

# Details
My rpi fails to boot from my USB SSD if my extra USB HDD is connected.

My rpi successfully boots if my USB HDD is not connected. After booting, I can plug in and use my USB HDD without any problem.

Failing journalctl output (with USB HDD attached)
https://privatepastebin.com/?0b2a2d4df9328e5b#7e7Qzz8DuMZCqVpFVK7FNYmgbxcdCJFovu4ppxvBFWC3

Successful journalctl output (without USB HDD attached)
https://privatepastebin.com/?a0defa5755baf104#82bpuhiaeA6uqwcg6zmr3J8G3ds3xaMocPzWn1i3fYgX

In the failing boot logs, I can see there's loads of the following message - repeated around 20 times.

$this->bbcode_second_pass_code('', '
Jul 17 22:48:46 alarm kernel: mmc1: Timeout waiting for hardware cmd interrupt.
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00001002
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Present: 0x1fff0001 | Host ctl: 0x00000001
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Power: 0x0000000f | Blk gap: 0x00000080
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x0000f447
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Int enab: 0x00ff1003 | Sig enab: 0x00ff1003
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Caps: 0x45ee6432 | Caps_1: 0x0000a525
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Cmd: 0x0000371a | Max curr: 0x00080008
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: Host ctl2: 0x00000000
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
Jul 17 22:48:46 alarm kernel: mmc1: sdhci: ============================================
Jul 17 22:49:03 alarm kernel: vcc-sd: disabling')

I have updated today with pacman -Syyu.

Thanks for the help with booting from a USB SSD previously https://archlinuxarm.org/forum/viewtopic.php?f=65&t=14672&start=30#p66123. I've been having fun trying out virtual machines on the raspberry pi 4 8GB with libvirt. I'm trying expose my USB HDD to a virtual machine, which I can do virsh attach. Its when I came to rebooting the host system that I noticed a problem.

I have setup my rpi according with these commandshttps://archlinuxarm.org/forum/viewtopic.php?f=65&t=15331#p66573, which is basically default install of http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz
modify mkinitcpio.conf so MODULES=(pcie_brcmstb)
mkinitcpio -P

Thanks :D
umbrellarunaround
 
Posts: 14
Joined: Fri Mar 12, 2021 12:31 pm

Re: RPI4 8GB 64bit boot fails when USB hard drive inserted

Postby pogojotz » Tue Aug 24, 2021 10:04 pm

I had a similar issue with my Odroid C2 booting the mainline kernel. I solved it by using another USB port. It weirdly only boots with the right combination of plugged USB ports. Did you try different ports? (Stupid question, I know, but that took me long to figure out :lol:)
pogojotz
 
Posts: 9
Joined: Thu Nov 02, 2017 9:36 am

Re: RPI4 8GB 64bit boot fails when USB hard drive inserted

Postby umbrellarunaround » Thu Aug 26, 2021 7:55 am

:!: :!: :!: :?: :?: :?:
This works thanks!


I swapped the my USB HDD to the bottom USB 3 port and the system boots. If it plug the USB HDD into the top USB 3 port the system doesn't boot.

How strange, thanks pogojotz :D
umbrellarunaround
 
Posts: 14
Joined: Fri Mar 12, 2021 12:31 pm

Re: RPI4 8GB 64bit boot fails when USB hard drive inserted

Postby slimb » Sun Aug 29, 2021 5:23 pm

The mmc timeout is unrelated and happens on non-raspberry pi team kernels with no SD card, see https://github.com/raspberrypi/firmware/issues/1556 for some info

Can you post your boot.txt here?
slimb
 
Posts: 5
Joined: Sun Mar 07, 2021 11:51 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 4 guests