Building linux kernel LSDK21.08

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

Building linux kernel LSDK21.08

Jump to solution
6,655 Views
Alexandre-SCHMITT
Contributor II

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.

0 Kudos
Reply
1 Solution
6,097 Views
Alexandre-SCHMITT
Contributor II

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.

View solution in original post

0 Kudos
Reply
15 Replies
6,098 Views
Alexandre-SCHMITT
Contributor II

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.

0 Kudos
Reply
6,521 Views
janmodaal
Contributor II

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

0 Kudos
Reply
6,496 Views
fredericlefranc
Contributor II

@janmodaal: Also using buildroot here Same reasons

0 Kudos
Reply
6,542 Views
fredericlefranc
Contributor II

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.

6,642 Views
Pavel
NXP Employee
NXP Employee

NXP offers LSDK 2108. See the following page:

https://www.nxp.com/design/software/embedded-software/linux-software-and-development-tools/layerscap...

 

Use this page for LSDK 2108 downloading and building.

This LSDK uses "flex-builder" script for building.

 

See the LSDK 2108 User Guide:

https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf

0 Kudos
Reply
6,631 Views
Alexandre-SCHMITT
Contributor II

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?

0 Kudos
Reply
6,627 Views
Pavel
NXP Employee
NXP Employee

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.

0 Kudos
Reply
6,615 Views
bladerunner1010
Contributor III

Thanks

0 Kudos
Reply
6,609 Views
Alexandre-SCHMITT
Contributor II

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.

0 Kudos
Reply
6,606 Views
bladerunner1010
Contributor III

Yea thats what I thought as well.

What is cilbe ?

0 Kudos
Reply
6,604 Views
Alexandre-SCHMITT
Contributor II

Sorry, target

(I'm french, target = cible)

0 Kudos
Reply
6,601 Views
bladerunner1010
Contributor III

Merci beaucoup!

6,621 Views
Alexandre-SCHMITT
Contributor II

Yes I saw that, but why is the standard compilation process not working properly?

0 Kudos
Reply
6,590 Views
Pavel
NXP Employee
NXP Employee

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

0 Kudos
Reply
6,591 Views
Pavel
NXP Employee
NXP Employee

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.