Update kernel from 32bit to 64bit Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
vrho94
Posts: 2
Joined: Sun Aug 02, 2020 12:04 pm

Update kernel from 32bit to 64bit

Post by vrho94 »

Hi guys,
i would like to know if it is possible to update a kernel from 32bit to 64bit? I know it would be easier if i do this from begining going to install fresh DietPi 64bit beta version... but i already have my data and configuration... :P and i would also like to learn new stuff about linux :)
User avatar
Joulinar
Posts: 2037
Joined: Sat Nov 16, 2019 12:49 am

Re: Update kernel from 32bit to 64bit

Post by Joulinar »

hi,

you can't update from a 32bit OS to a 64bit OS. If you like to use a 64Bit system, you would need to start with the new image. But pls keep in mind, the underlying Raspberry OS 64bit is in Beta status as well. Might be not all features as available as of now due to missing implementation by Raspberry Pi Foundation.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
vrho94
Posts: 2
Joined: Sun Aug 02, 2020 12:04 pm

Re: Update kernel from 32bit to 64bit

Post by vrho94 »

hmmm i like diet pi so much because its light weight but i guess ill have to use Ubuntu...
User avatar
Joulinar
Posts: 2037
Joined: Sat Nov 16, 2019 12:49 am

Re: Update kernel from 32bit to 64bit

Post by Joulinar »

Because of what? What's the reason for using Ubuntu? I don't understand this.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2281
Joined: Sat Nov 18, 2017 6:21 pm

Re: Update kernel from 32bit to 64bit

Post by MichaIng »

Probably because of "all features"? This means that e.g. you're currently not able to install and run WireGuard (without notable manual effort) since the RPi foundation does not ship a kernel headers package yet. This and a few other things, but it does not effect the lightness of the initial image, besides that 64-bit files are always larger compared to 32-bit ones.

You can quite easily switch the RPi kernel to be run in 64-bit mode by adding arm_64bit=1 to /boot/config.txt, the 64-bit kernel is already installed besides the other ones. But that nearly only gives you downsides since all binaries and libraries are Raspbian 32-bit ones. The 64-bit kernel is backwards-compatible but that doesn't make it better and installers might detect your system version wrong. So to have any advantage, as Joulinar said, you need to switch to the 64-bit Debian repo and upgrade all packages from it. If even possible, its a huge overhead over flashing the 64-bit image directly ;).
Post Reply