linux-orangepi
linux-orangepi copied to clipboard
Can't build deb-pkgs
I'm trying to cross_compile the kernel for the Opi zero 3. I'm able to compile the kernel now that switched to using the config from the stock image and the linaro compiler(plain gcc may work to). I get an error when building the package for kernel headers, which is why I'm building the kernel in the first place is to have a headers deb pkg. The builddeb script is trying to run a patch called "headers-debian-byteshift.patch" and is supposed to be in the tmp directory. I'm guessing the patch is built durring the kernel build, but I don't know. I can't find the patch anywhere in the kernel build folder, or in tmp. It seems that this patch doesn't run if your compiling/packaging on the arm device, but who has time for that. I commented out the patch and was able to build the kernel-headers packge but when I installed it on the OPi z3 it failes to compile. I'm not really sure why the headers need to compile a second time. The headers compiling on the OPi failes looking for be_byteshift.h, so I guess the patch is important. I can't seem to find out anything else about the patch other than I need it. I could always build the kernel, move the build folder, and use make install_modules, but I like the convenince of a deb-pkg.
You can mark this solved. I found the patch file in orangepi-build and dropped a copy in tmp. Everything built just fine and the kernel works with headers! I still wonder if somone could still expain why the patch is needed if your cross compiling on a amd64. Also have questions about why when you install the linux kernel and headers it compiles again. It's doesn't take that long but I would like to know what is compiling.