Guido Giuntoli Posted 10 hours ago Posted 10 hours ago Hello, I am new using the "build" tool. I am trying to compile Armbian using this config: Β # Board and kernel selection BOARD="rock-4se" # e.g., "odroidc4", "orangepi5", etc. BRANCH="current" RELEASE="jammy" # or "bookworm" for Debian # Build options BUILD_MINIMAL="yes" BUILD_DESKTOP="no" KERNEL_CONFIGURE="no" KERNEL_BTF=no # Use custom kernel KERNELSOURCE="https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git" KERNELBRANCH="tag:v5.15.92-rt57" # Enable RT patch KERNEL_USE_GCC="yes" KERNEL_COMPILER="aarch64-linux-gnu-" # or aarch64-linux-gnu- for ARM64 # Disable non-needed drivers SKIP_EXTERNAL="yes" SKIP_BOOTSPLASH="yes" BUILD_KSRC="no" ENABLE_WIRELESS="no" BLUETOOTH_SUPPORT="no" WIREGUARD="no" DRIVER_UWE5622="no" DRIVER_RTL8723DU="no" DRIVER_RTL8723DS="no" I stored it in userpatches/config-rock-4se.h and I compile using ./compile.sh rock-4se. I get this error with wireless patches, it seems that they are not compatible with this kernel (?) Β [π³|π±] * applying patch/misc/wireless-uwe5622/uwe5622-warnings.patch [π³|π¨] The text leading up to this was: [π³|π¨] -------------------------- [π³|π¨] |diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c [π³|π¨] |--- a/net/bluetooth/hci_sync.c (revision 58aa050aa57333b34b358234002121c59fb3af26) [π³|π¨] |+++ b/net/bluetooth/hci_sync.c (revision bf8ab2f58b21494ffde96979431a3da931deb48b) [π³|π¨] -------------------------- [π³|π¨] No file to patch. Skipping patch. [π³|π¨] 1 out of 1 hunk ignored [π³|π₯] * applying patch/misc/wireless-uwe5622/uwe5622-park-link-v6.1-post.patch [ failed ] [π³|π₯] error! [ Patching error, exiting. ] [π³|π₯] Exiting with error 43 [ at /armbian/lib/functions/logging/traps.sh:1 exit_with_error() --> lib/functions/logging/traps.sh:1 process_patch_file() --> lib/functions/compilation/patch/patching.sh:103 driver_uwe5622() --> lib/functions/compilation/patch/drivers_network.sh:506 kernel_drivers_prepare_harness() --> lib/functions/compilation/patch/drivers-harness.sh:160 kernel_drivers_create_patches() --> lib/functions/compilation/patch/drivers-harness.sh:94 do_with_hooks() --> lib/functions/general/extensions.sh:603 do_with_logging() --> lib/functions/logging/section-logging.sh:81 kernel_main_patching() --> lib/functions/compilation/kernel-patching.sh:76 compile_kernel() --> lib/functions/compilation/kernel.sh:54 artifact_kernel_build_from_sources() --> lib/functions/artifacts/artifact-kernel.sh:240 artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.sh:34 obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:280 build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:392 main_default_build_packages() --> lib/functions/main/build-packages.sh:102 full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:31 do_with_default_build() --> lib/functions/main/default-build.sh:42 cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25 armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176 main() --> compile.sh:50 ] [π³|π₯] Cleaning up [ please wait for cleanups to finish ] You can see that in the conf file I tried to disable this drivers but the patches are still being applied. I also try to remove all those patches but I got errors like this: Β $ rm patch/misc/wireless-* -rf $./compile.sh rock-4se ... [π³|π¨] HEAD is now at 81306b3f6006 'Linux 5.15.92-rt57' [π³|π±] Preparing driver [ driver_generic_bring_back_ipx ] [π³|π±] Reverting upstream-removed [ IPX stuff needed for Wireless Drivers ] /armbian/patch/misc/wireless-bring-back-headers.patch: No such file or directory patch: **** Can't open patch file /armbian/patch/misc/wireless-bring-back-headers.patch : No such file or directory [π³|π₯] * applying patch/misc/wireless-bring-back-headers.patch [ failed ] [π³|π₯] error! [ Patching error, exiting. ] [π³|π₯] Exiting with error 43 [ at /armbian/lib/functions/logging/traps.sh:1 exit_with_error() --> lib/functions/logging/traps.sh:1 process_patch_file() --> lib/functions/compilation/patch/patching.sh:103 driver_generic_bring_back_ipx() --> lib/functions/compilation/patch/drivers_network.sh:33 kernel_drivers_prepare_harness() --> lib/functions/compilation/patch/drivers-harness.sh:160 kernel_drivers_create_patches() --> lib/functions/compilation/patch/drivers-harness.sh:94 do_with_hooks() --> lib/functions/general/extensions.sh:603 do_with_logging() --> lib/functions/logging/section-logging.sh:81 kernel_main_patching() --> lib/functions/compilation/kernel-patching.sh:76 compile_kernel() --> lib/functions/compilation/kernel.sh:54 artifact_kernel_build_from_sources() --> lib/functions/artifacts/artifact-kernel.sh:240 artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.sh:34 obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:280 build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:392 main_default_build_packages() --> lib/functions/main/build-packages.sh:102 full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:31 do_with_default_build() --> lib/functions/main/default-build.sh:42 cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25 armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176 main() --> compile.sh:50 ] [π³|π₯] Cleaning up [ please wait for cleanups to finish ] ... how can I fix this issue and compile that kernel branch? 0 Quote
laibsch Posted 8 hours ago Posted 8 hours ago that may be a hard task, so let's get into the obvious question first: Why do you need such an old kernel?Β I understand it's LTS, but the question is still why it has to be this kernel and not another. 0 Quote
Guido Giuntoli Posted 7 hours ago Author Posted 7 hours ago The code I am trying to run modifies the framebuffer /dev/fb0, I seen that the code works properly on Linux 5.15 on a Raspberry Pi, but not on 6.x. I tried on Armbian with Linux 6.x but I got also a bad behavior that is why I wanted to test the old kernel. About real-time, it is because I need that the process executions are not interrupted by the kernel. Probably, it may be better for me to understand why the code doesn't work on 6.x.Β Β 0 Quote
laibsch Posted 7 hours ago Posted 7 hours ago 27 minutes ago, Guido Giuntoli said: Probably, it may be better for me to understand why the code doesn't work on 6.x.Β Β Β Certainly better moving forward and possibly less work, too.Β Good luck. 0 Quote
Guido Giuntoli Posted 5 hours ago Author Posted 5 hours ago By the way, for the rock-4SE I don't see any available target in the list when I execute "./compile.sh" I don't see any with "rock-4x", is any of those targets compatible with rock-4se?Β 0 Quote
laibsch Posted 1 hour ago Posted 1 hour ago it should be "rock-4se".Β did you enable the display of the community supported boards.Β the compile tool will only display those with standard support by default.Β to speed things up, you can simply add 'BOARD="rock-4se"' to ./compile.sh 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.