Hello,
I try to build Linux kernel from LSDK21.08 on ls1043ardb board.
I cloned sources from https://source.codeaurora.org/external/qoriq/qoriq-components/linux and I checkouted on linu-5.10-rt branch
I'm using personnal toolchain built with buildroot 2021.11. My toolchain worked fine with u-boot lsdk21.08 compilation.
Like the documentation for LSDK21.08 (Configuring and building (nxp.com)), I made :
$ export CROSS_COMPILE=/link/to/my/toolchain/aarch64-linux- $ export ARCH=arm64
$ make defconfig lsdk.config
$ make
But, I have a lot of compiling error like that :
In file included from arch/arm64/boot/dts/actions/s700-cubieboard7.dts:8:0:
arch/arm64/boot/dts/actions/s700.dtsi:6:48: erreur fatale: dt-bindings/clock/actions,s700-cmu.h : No such file or directory
#include <dt-bindings/clock/actions,s700-cmu.h>
I tried with linux-5.10 branch and I have same problem.
Just in case, of course, I'm on Linux.
Solved! Go to Solution.
I finally found my problem.
For operational reasons I had to clone the linux repository from a Windows post.(security obligation in my company)
Don't do that !
All symbolic links are deleted by the system without being noticed.
So, you have to clone on linux to keep symbolic links and to avoid problems with files named aux.c/aux.h that Windows deletes automatically.
Thanks to all for trying to help me.
I finally found my problem.
For operational reasons I had to clone the linux repository from a Windows post.(security obligation in my company)
Don't do that !
All symbolic links are deleted by the system without being noticed.
So, you have to clone on linux to keep symbolic links and to avoid problems with files named aux.c/aux.h that Windows deletes automatically.
Thanks to all for trying to help me.
Alexandre,
do not checkout any random branch ( linux-5.10-rt in your case), but LSDK-21.08, as Frederic already proposed.
If nothing helps, read the instruction
https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf
p.p. I use buildroot for LS1012, LX2160 ... far easier than flexbuild or yocto
@janmodaal: Also using buildroot here
Hi,
I'm doing the same kind of stuff without any issues. I just cloned the same git repo as you and did everythink like you.
The only difference is that I used the LSDK-21.08 tag as a base. Not sure that the branches you've chosen are correct (I would say those are from mainline).
Regards,
Frederic.
NXP offers LSDK 2108. See the following page:
Use this page for LSDK 2108 downloading and building.
This LSDK uses "flex-builder" script for building.
See the LSDK 2108 User Guide:
Hi Pavel,
Thank you for your answer.
Unfortunately, I don't want to use flexbuilder. My development environment does not allow me to do so (offline system).
Any idea how to compile without flexbuilder?
NXP offers also yocto-SDK for the LS1043a board:
https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/about/
Perhaps gatesgarth can be used for your task.
Thanks
If I understand correctly, Flexbuilder clones all the elements it considers necessary the first time you build. After that if you just change the configuration clones are not necessary anymore, unless you change the target.
Yea thats what I thought as well.
What is cilbe ?
Sorry, target
(I'm french, target = cible)
Merci beaucoup!
Yes I saw that, but why is the standard compilation process not working properly?
See FAQ in SDK 2.0 documentation about standalone kernel building:
https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf
LSDK uses connection to internet for loading from github.
If all is loaded from github, connection to internet is not needed.
The simplest way, create virtual machine on other PC.
Install and test compilation on this PC.
Copy this virtual machine on your development PC.