If you see this error, the migration has not been applied but the script exited right at the start, isn’t it? Strange that it did boot on an RPi 5, as the old kernel does not contain any device tree for it .
Just to be sure, there was not lengthy package install process and a dialogue which allowed to to choose optional kernel packages etc, was it?
In the meantime, DietPi v9.0 has been released, so you can migrate back to stable branch:
There was no installation process or anything. The only thing I did was install beta 9.0 on the raspberry pi4 and change the SD to the raspberry pi5. It worked perfect.
Do you recommend that you do the migration and how can I do it?
thanks
I have made a backup of the Rasberry Pi4 installation on an HDD, do you know if it will work for me on the Raspberry Pi5 in a clean installation? when there is a final version
Well I don’t understand, because I used a raspberry pi4 with the stable version v8.25 with jellyfin. I tried to run the script and it gave me an error. Then the only thing I did was install the v9.0 beta and put the SD in the raspberry pi5 to test if that was how it worked and it started perfectly.
root@DietPi:~# uname -a
dpkg -l raspi-firmware
ls -l /boot/firmware
Linux DietPi 6.1.61-v8_16k+ #1696 SMP PREEMPT Thu Nov 2 16:49:24 GMT 2023 aarch 64 GNU/Linux
dpkg-query: no packages found matching raspi-firmware
ls: cannot access '/boot/firmware': No such file or directory
I also tried a clean installation on raspberry pi4 and loaded backup then tried to put the migration script and it kept giving me FAILED and that’s when I put the beta v9.00 and then changed the SD to the pi5 and it started perfectly with my jellyfin and everything as it was had
You ran rpi-update. That explains it, since it ships the new kernel but without the new firmware packages (and hence partitioning change). I strongly suggest to re-run the script. However, the error means that you are using a Bullseye system, so you need to upgrade to Bookworm first: Debian Bookworm has been released – DietPi Blog
EDIT: Um, the upgrade to Bookworm might break the kernel you are currently using. So you might to finish this on the RPi 4. But try on the RPi 5 first. If it does not come up after reboot after the upgrade to Bookworm finished, plug it into the RPi 4 to rerun the migration script.
Keep in mind that rpi-update is a development and testing tool, NOT intended to be used on production systems, unless you have an explicit reason to require/test an edge kernel version or specific commit.
root@DietPi:~# apt install patch
cd /boot
curl -sSf 'https://github.com/MichaIng/DietPi/commit/09ebeda.patch' | patch -p1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
ed diffutils-doc
The following NEW packages will be installed:
patch
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 121 kB of archives.
After this operation, 250 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bullseye/main arm64 patch arm64 2.7.6-7 [121 kB]
Fetched 121 kB in 0s (279 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package patch.
(Reading database ... 25789 files and directories currently installed.)
Preparing to unpack .../patch_2.7.6-7_arm64.deb ...
Unpacking patch (2.7.6-7) ...
Setting up patch (2.7.6-7) ...
patching file dietpi/func/dietpi-set_software
root@DietPi:/boot#
This is causing some challenges actually. You should not use rpi-update as long as you don’t know what you are doing. You moved to a development kernel version now.
Furthermore you are running Debian Bullseye, which is not really supported and intended for RPi5. That’s why you got the error message on the migration.
Might be, but your system is in an inconsistent status due to usage of rpi-update
The patch was applied already, as you can see from your output:
Please read my post(s) carefully:
Do NOT run rpi-update ever, as long as you are not absolutely sure what you are doing and that you definitely require it. The tool itself should actually warn you about exactly that. At best remove the package:
okay, well what I did was the following
I installed the latest raspberry pi4 image then reloaded the backup (all this on the pi4) updated to v9.0.2 then with everything correct I went to bookworm and finally I put the migration script and it came out correctly.
Then I put the SD in the pi5 and everything works perfectly and running jellyfin.