-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Image | Raspberry Pi 5: Testing and firmware migration script #6676
Comments
Okay this requires more work, sadly. With Bookworm and hence for RPi 5, the packages as well as the filesystem layout have changed dramatically:
|
uhh does not sounds like a quick win. 🙄 |
Any updates? |
Same Question. :-) I buy a RPI-5 and want to install DietPi for LoxBerry. |
any updates on this? |
We will post any updates here when we have some. I was looking further into it. The migration of the partition and installation of the new kernel packages is not too hard. But there is another big problem: Our scripts, and probably RPi's own scripts/programs expect Another problem or better question is what we do with Btw, does someone of you guys have an RPi 5 already and can tell me the revision code? That way we can add support to our hardware detection script already and provide RPi 5 compatible images between releases, if I am not able to finish this until this Saturday (v8.24 release): mawk '/^Revision/{print $3;exit}' /proc/cpuinfo The 3rd and 2nd last characters define the model. "14" was CM4, so it is probably "15" or "16". |
C04170 |
Hi, i will receive the Raspberry next week. It is already shipped. I will update you when i receive it.
Very thanks for your amazing work!
…________________________________
Da: jboots07 ***@***.***>
Inviato: Thursday, November 16, 2023 1:38:24 AM
A: MichaIng/DietPi ***@***.***>
Cc: adrianog91 ***@***.***>; Manual ***@***.***>
Oggetto: Re: [MichaIng/DietPi] Image | Raspberry Pi 5 (Issue #6676)
C04170
—
Reply to this email directly, view it on GitHub<#6676 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADGPFYUSGCNXV4TTNFY4UYDYEVOABAVCNFSM6AAAAAA5ZNEQLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJTGUZDANBWHE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thanks. Found it now here as well: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#new-style-revision-codes So "15" is the CM4S, which is a special industry customer variant, not publicly sold, and "16" for "internal use". Let's see whether "16" is a surprise, not announced yet 🙂. |
First step: 6e848a1 |
Thanks for your hard work and update! Let me know if I can help in any way, I have a pi 5. |
I just received my PI5 and can't wait to install on it Dietpi to replace my PI4 :-) |
I just received mine too and am excited to put dietpi on it :-) |
@MichaIng when you are ready for testing in the wild on RaspberryPi 5, I am happy to test. |
Available for testing on Pi 5 as well! Thanks for your efforts! |
Where can I get it? |
I don't think so there has been any image supporting Pi 5, You'll have to wait |
Oh... This one won´t work? https://dietpi.com/downloads/images/testing/DietPi_Star64-RISC-V-Sid.img.xz |
I think that one is for Risc-V #6212 |
Is it possible to add the dietpi later on a running raspbian? If so, I'd just give my raspbian a diet later, when its compatible with raspi 5. |
You mean on a Raspberry Pi OS? Currently does not work as |
Have a Pi5, happy to test :) |
Also have a RPI5, happy to help testing. |
Here, I have another one ready to test. |
Done: RPi-Distro/repo#376 |
The migration script should now work again. |
Hey y'all, I hope this isn't an off topic question: Is the img (available on the download page) ready for use in prod? Thanks |
Is it not possible to have a single image for both raspi4 and raspi5, which will be containing both sbcs' dtbs (or whatever else detail) and their kernels together? So that at boot the user can select/set_default which path to boot, the 4 path or the 5 path. I might be asking something impossible because I don't know their boot chain at all but if it is possible, then ynot? Because I am considering mixed environments with 4s or 5s and because this 'migration script' appears a one way solution, correct? Once one 'migrates' to 5, (s)he boot this installation in 4. Since both 4 and 5 are well alive, flexibility could be appreciated here. |
We have introduced an option especially for the RPi5 that allows you to select different kernel modules to ensure compatibility of the running system between RPi5 and other RPi SBCs. This should make it possible to use the SD card from an RPi5 in a RPi4 as well. |
Additionally, the "RPi234" image from here boots on RPi 5 as well. It contains the needed device tree, the kernel is just 4k page size instead of 16k, which is maybe a little performance penalty, but on the other hand is able to run 32-bit binaries (which the 16k page size kernel cannot). |
I've just got a Pi 5, the image works fine, I setup a new card although somewhere I have my old Pi 4 I ran the migration script on months ago before I sold it. Anyway, it all seems to work fine but the power button doesn't shutdown, is it disabled to stop accidental shutdowns or am I missing something, holding down for 5 seconds does a force powerdown but I'd like it to do a clean shutdown too if possible. Thanks |
@mdr92 systemctl unmask systemd-logind
apt install dbus
systemctl start systemd-logind Among others, |
I see the tag "testers required" so I thought I'd just leave a quick feedback. I got here looking to find out why I have a much newer kernel on my PiOS systems than on the DietPi ones (the DietPi kernel wasn't recent enough to use NUMA). I ran the script, which worked absolutely flawlessly, rebooted the system and it came right back with the newer kernel. The process couldn't be more smooth, if you ask me. 👌 I'm running DietPi 9.9 on a CM4 with eMMC, but I'm using an NVMe disk as boot drive. |
That worked great thanks, shutsdown gracefully on button press. |
USB boot is not working for me when using testing version from web, when using Trixie version its working, idk why, where is the changelog or commits made? |
@MiguVT One thing we recognised on RPi 5, likely also older models with the new bootloader (upgrading |
To disable this check set |
But keep in mind that the check has a reason: the PSU might be insufficient in peak situations, possible leading to crashes and data loss. So better to solve it with a proper PSU, unless it is for testing only. |
After checking it more deep it was mb, srry, it was because my sandisk extreme ssd dont works with linux or idk, i tried with an usb stick and works, weird, first time i see an issue like that (magically it booted with Trixie but i tried again and i cant repeat it) |
Portable SSDs definitely require more power than memory sticks so I don't think it's weird at all. You can try to connect the SSD to the USB2 port and probably achieve the same effect (but of course you'll lose any SSD speed advantages, USB2 is also only half duplex. |
its weird because i have a good power supply, and it starts with other os but not with dietpi, usually power supply alert should appear if im not wrong |
Is that SSD separately powered, or only via USB? Do never run a 2.5" drive without dedicated PSU. It may work until it does not work anymore, and then can result in crashes and data loss. And if it really is this warning/halt of the bootloader, it will be the very same with RPi OS. But as said, it is somehow random, my RPi 5 sometimes boots with a weak PSU without the bootloader interrupting, sometimes not. This may falsify your "starts with other os" test. But to know for sure, you need to attach a screen or better a USB-UART adapter, to check bootloader output. |
@MichaIng Sandisk Extreme SSDs are portable external SSDs (not any standardised form factor). I think that power consumption is probably similar though. Even x86 machines sometimes struggle to power SSDs, I would definitely not trust development boards with them |
ADMIN EDIT
First Raspberry Pi 5 testing images are available now on our download page: https://dietpi.com/#download
You can also find images with the new kernel/firmware package set for other RPi models here: https://dietpi.com/downloads/images/testing/
The ones with the new firmware have "RPi1", "RPi2" and "RPi234" (64-bit) in their names. To migrate an existing system, use the migration script:
bash <(curl -sSf 'https://raw.githubusercontent.com/MichaIng/DietPi/dev/.meta/dietpi-rpi-firmware-migration')
WARNING: This is currently a one-way ticket.
dietpi-backup
cannot be used to restore the old system, since the boot partition mount point has changed. If you want to be able to revert, create an image of the whole SD card/drive. dietpi-imager can be used from another DietPi (or Debian/Ubuntu) system, to minimise partition and filesystem automatically, to have a small compressed backup image.Is the SBC officially supported by the Debian installer?
Notes
The text was updated successfully, but these errors were encountered: