OK, so I was going to use the step-by-step instructions in the RPi documentation, but those point out that if I want to build a 64-bit kernel on a 32-bit RPi distribution I will need to use their cross-compiler instructions. But their cross-compile instructions state that I need a "suitable Linux cross-compilation host" like Ubuntu or VMWare on Windows. I didn't want to install either of those, so I tried downloading the build-kernel script above and running it, but got the following error:Thank you. I think I'll use the step-by-step process documented in the guide referenced in that post atOn my RPi 4 running 32-bit Buster OS, I can find no command called "build-kernel".
Building the Raspberry Pi OS Kernel : Made Easy
https://www.raspberrypi.com/documentati ... el-locally
"Local builds require similar kernel and userland architectures: use cross-compile mode (-x,--cross-compile) instead"
So before I do anything else, I want to check to see if my goal is clearly understood before I try to kick off a very long compile process that might not produce what I want. I have a RPi 4 with a 32-bit Buster OS and I want to move the SD card to a RPi 5. I want to do this because I have some old 32-bit applications for which no 64-bit versions were released. If I understand the responses so far, it's been suggested that I could run the build-kernel script on the RPi 4 to upgrade the kernel on the RPi 4 to v8 and then I can just move the SD card to the RPi 5 and it should run everything as before. Since the above build-kernel command did not work, did I not explain my goal sufficiently, or was the -x option mistakenly omitted? Can I use the -x option to locally cross-compile the kernel on my RPi 4?
Statistics: Posted by zizumara — Thu Feb 01, 2024 12:22 am