Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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.Β Β 

Posted
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.

Posted

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?Β 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Γ—
Γ—
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines