Buildroot on ARM with external toolchain linux kernel version

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Buildroot on ARM with external toolchain linux kernel version

546 Views
rustyx
Contributor II

I'm trying to build a Linux image for an iMX6 board using an external (official ARM toolchain) and I'm running into issues with sshd.

After some investigation it seems the official ARM toolchain comes with Linux kernel headers 4.20 whereas my actual kernel is 6.12. Due to this, sshd doesn't work because some missing syscalls are blocked by seccomp (e.g. __NR_clock_gettime64 causing a SIGSYS)

The question is, is it possible to use the actual kernel headers in combination with an external toolchain?

Here's what I have so far

BR2_arm=y
BR2_cortex_a9=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.47"
I tried adding BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y but that gets ignored.
0 Kudos
Reply
1 Reply

512 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @rustyx 

I hope you are doing very well.

Unfortunately, Buildroot is not supported by NXP, I can not give you a lot of helpful information for your environment.

 

You can try generating the Toolchain by yourself in a yocto environment.

Please refer to the chapter 4.5.12 How to build U-Boot and Kernel in standalone environment of the i.MX Linux User's Guide.

 

Best regards,

Salas.

0 Kudos
Reply