You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kernel build error in rockchip_wlan, wireless, and net #8
I just got this response below from them, but I haven't tried it yet.
the kernel file has to be in the same directory with prebuilts. if your files are located in different directories then you may have problems because of the wrong gcc.
Thanks for the response. With these instructions I have been able to build the kernel by using the GCC from prebuild folder copied from Tinker Board 2 android build system:
sudo apt remove gcc-aarch64-linux-gnu
export PATH=$PATH:~/repos/tb2_linux/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- clean tinker2_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rk3399-tinker_board_2.img
I build it natively in the TinkerBoard2S. It seems that I need to cross compile it as you successfully did so.
I noticed that the cross compiler gcc version you used is the same as the one for u-boot.
Activity
amiotk commentedon Oct 14, 2021
Hi @SereneGuy
I'm facing the same problem. Did you find any solution?
Thanks
SereneGuy commentedon Oct 14, 2021
Hi @amiotk
I just got this response below from them, but I haven't tried it yet.
the kernel file has to be in the same directory with prebuilts. if your files are located in different directories then you may have problems because of the wrong gcc./TinkerBoard2$ lskernel prebuilts rkbin u-bootthose four are in the same directoryUpdate: I tried it, still doesn't work.
amiotk commentedon Oct 15, 2021
Thanks for the response. With these instructions I have been able to build the kernel by using the GCC from prebuild folder copied from Tinker Board 2 android build system:
SereneGuy commentedon Oct 15, 2021
Thanks @amiotk
I build it natively in the TinkerBoard2S. It seems that I need to cross compile it as you successfully did so.
I noticed that the cross compiler gcc version you used is the same as the one for u-boot.
SereneGuy commentedon Oct 16, 2021
Thanks a lot @amiotk
I successfully compiled it in Ubuntu. The only difference was that I didn't remove gcc-aarch64-linux-gnu.
Prior to this I tried to build it natively in the TinkerBoard 2S, thinking that it's built that way in the previous generation.
[WS-2021-0462] isdn: cpai: check ctr->cnr to avoid array index out of…
[CVE-2019-15922] paride/pf: Fix potential NULL pointer dereference