-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 5 OS - Impossible to boot #44
Comments
I've solved my issue by utilizing the built-in SD copier. Still no clue what went wrong with rpi-clone. |
same issue here. rpi-clone works on bookworm an all my raspberries (running the prescribed Debian), but boot fails on the one Raspberry Pi 5. |
Do you also have a RPi4 and tried to clone a SD card to nmve? I unfortunately don't own a RPi5 and cannot try to reproduce your issue. But it sounds to me it's not related to RPi4 but to clone an SD card to a nvme drive. If I'm right the same scenario will fail if you use a RPi4. Would be great if you can double check with a RPi4. |
All works fine on RPi 4. I do not have NVMEs but my targets are the new Samsung USB 3.2 sticks from the PiHutGroet,Wilm(Verstuurd vanaf mijn telefoon, dus wat korter dan gewoonlijk.)(Sent from my phone, so a bit more compact than usual)Op 27 nov 2024 om 18:28 heeft framp ***@***.***> het volgende geschreven:
all my raspberries
Do you also have a RPi4 and tried to clone a SD card on nmve?
I unfortunately don't own a RPi5 and cannot try to reproduce your issue. But it sounds to me it's not related to RPi4 but to clone an SD card on a nvme drive. If I'm right the same scenario should will fail if you use a RPi4. Would be great if you can double check with a RPi4.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
RPi 4 works fine with the new Sandisk (not Samsung, sorry) USB 3.2 SDCZ430 drives |
Did you test the ssd to nvme move with RPi4? If it fails I'm able to try to reproduce the issue because I have a RPi4 with nvme storage. |
As I said, I have no NVME. I have a Kingston SSD on a USB 3 adapter as source (the Debian system I'm running rpi-clone on, and a Sandisk USB 3.2 USB stick as target. This setup runs fine on RPi4 bookworm (i.e., rpi-clone runs error free and new target will boot the copy) On Rpi 5, rpi-clone runs error free as well, but the target disk is stuck early in the boot cycle (in a state where I cannot find a log from), but the on screen messages suggest that (the copy of) partition 1 is not bootable for some reason |
rpi-clone unfortunately misses logging which makes it - at least for me who has no RPi5 - impossible to recreate and debug your issue :-( Crossing fingers somebody else owns a RPi5 and can recreate and debug your issue. If you're willing to donate to get me to buy a RPi5 - please see this page |
I will think about it. I really appreciate the work you are doing. |
I got a donation from @geerlingguy (Thank you very much!!!) and just ordered a RPi5 which will arrive next week. No NVMe hat and SSD but I expect your issue is not nvme related and I can reproduce your issue when I clone the SD card to an USB disk attached via USB. @geerlingguy I tried to contact you on X but you don't accept any PN 😢 |
@framps - Odd! What's your X username? I thought I had DMs open but I guess not! |
I just checked my DM settings and it was disabled. It's obviously the default setting. My username is |
OK this is the issue more documented. Same process works fine on all Rpi execept Rpi5
Now |
Which OS do you use? Please show the output of |
pi@raspi5 ~ $ cat /etc/os-release
pi@raspi5 ~ $ uname -a
|
Ok. Thx. Now I wait for my RPi5 which should arrive mid next week to reproduce and debug this issue 😃 |
since I suspect that it is maybe related to the USB device itself, I include the following info: pi@raspi5 ~ $ lsusb
pi@raspi5 ~ $ sudo lsusb -D /dev/bus/usb/004/002
|
I frankly don't think it's related to the USB device. I got a PN in the German Raspberry forum where somebody told me rpi-clone doesn't work for him on a RPi5. Given I don't own a RPi5 .. will own one next week - I wasn't able to help him. He tried to clone form SD card to SD card on an USB adapter. I think there is some basic issue with RPi5 - but I frankly have no idea what's the root cause. I have to recreate the issue on a RPi5 next week. Did you try another USB device? |
I am sorry :-) to report that the issue has disappeared. Frankly, I have no idea why. The clone will now boot successfully. Even with me, the problem sometimes seems to be located between the chair and the keyboard. I am happy to assist in further troubleshooting |
NP. I recently suggested a user in the German Raspberry forum to use rpi-clone to create a clone of his SD card he runs on a RPi5. He also mentioned the cloned SD card didn't boot. Then he executed rpi-clone a second time without option So there seems to be an issue with RPi5 and I will try to reproduce and then debug the issiue when I have my RPi5. |
Possibly yes. It failed a few days ago, but several times. Then this morning, it suddenly went ok. There may have been a (kernel header?) update in between. |
When I came back home today I detected my RPi5 and the required power supply was delivered today even it was anounced to be delivered next week 😃 So I started immediately to try to reproduce your issue. I was able to reproduce it twice - but now I'm not able to reproduce it any more to debug the issue 😢 Looks like there is some race condition involved. I have no issue on my RPi4 and so I compared the kernel used on RPi4 and RPi5 :
Not sure whether there is something different in the kernel which causes the issue. I noticed the mount update messages - not sure whether they cause the issue. At least I think there is a temporary workaround available: Execute rpi-clone a second time without option |
For now, I can live with it. Thanks for your support! |
I think I'm one step further. I was able to recreate the issue and detected when rpi-clone finished /boot/firmware wasn't mounted any more. I don't know why this happens intermittently but I added some code in my fork to check whether the partitions are mounted and mount them again if they disappeared. Everybody who faces the issue should grab my fix and test again. A quick check whether the clone of the boot partition without any reboot can be done with
If it's empty the clone will not boot. If somebody still faces the issue with my fix please execute following command
This will create a lot of debug output on the screen and in rpi-clone.log. When rpi-clone finished please attach rpi-clone.log in this issue. |
Thank you very much again @geerlingguy for your donation which enables me to make progress on this issue. It's not that I have not enough money to buy a RPi5. But it's my principle to buy any required HW for any OS projects I work on with donations only. |
I just so happen to be wanting to move from my microSD to the external SSD. Was there ever a fix? Does the current repo not work? This thread has a lot of words and confusing. I am on Rasp pi OS lite (64 bit) on RPi 5. |
Everything is fine with an RPi4 or older RPi. There is an intermittent issue with RPi5 and therefore I updated rpi-clone in my fork. Please grab my updated version to clone your microSD. Please let me know whether the SSD boots or fails to boot. If it fails please show the console output. |
@sbhadr Would be great to get an update 😉 |
In verband met de feestdagen ben ik tot en met woensdag 1 januari 2025 afwezig en zal mijn email beperkt kunnen lezen en beantwoorden.
Ik wens u het allerbeste voor 2025 en fijne feestdagen!
Met vriendelijke groet,
FSE Turnstiles b.v.
Jos de Vries
PS: Neem voor urgente storingen contact met ons op door een email te sturen naar ***@***.***
|
I just used Balena Etcher, cloned the drive and it picked up the SSD without the microSD attached. |
Ok. So you didn't use the updated rpi-clone from my fork to test it works for you - unfortunately. Would be great if you could try the clone again with the updated rpi-clone to verify the fix. |
@framps I am going to test your forked version right away. I have RPi5 with HAT pcb and Kingston NVMe SSD installed. |
No. Just use rpi-clone as it's documented. If you check my workaround you'll see I check whether the boot partition is mounted and mount it if it's not mounted. |
I see your point. Both mountpoints are created by rpi-clone and should be deleted at the end. I'll add the required rmdir statements in a PR.
Well, rpi-clone assumes that you open another window when you see the inspecting message. Then you will find both partitions mounted. But when you press enter they are unmounted. Are you sure you use my version? I expect to see the debug output of lsblk which I miss in your screenshot. Please check the md5sum of your version.
|
Sorry for confusion, mountpoints is good. regarding using your version, yes. I have cloned your repo, switched correct branch. |
According your screenshot you don't use my version. Just use I updated my version yesterday and you now will get also a message it's my version 😉 |
What I have achieved so far. Thank you much for help. |
Latest update. What I put in # Enable the PCIe External connector.
dtparam=pciex1
dtparam=pciex1_gen=2 # may be redundant, but let's be explicit
usb_max_current_enable=1 Bootloader [all]
BOOT_UART=1
BOOT_ORDER=0xf416
#NET_INSTALL_AT_POWER_ON=1
#PCIE_PROBE=1 |
Keep in mind this repository is the master repo for rpi-clone. My for is only required to be able to create PRs to fix issues in rpi-clone 😉 . |
I'm trying to ditch my current SD card and switch entirely to a portable SSD connected via USB.
Things I did:
sudo rpi-clone sda
raspi-config
to change boot order to USB.sudo rpi-clone sda
without literally doing anything else.unable to read partition as FAT (partition 0)
error.I'm at a complete loss. Any help would be appreciated. I verified fstab entries - they seem to be correct. PARTUUIDS match with the ones specified there. I'm really not sure what's going on.
Fstab file:
The text was updated successfully, but these errors were encountered: