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?