Building linux kernel LSDK21.08

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Building linux kernel LSDK21.08

跳至解决方案
5,152 次查看
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 项奖励
1 解答
4,594 次查看
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 项奖励
15 回复数
4,595 次查看
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 项奖励
5,018 次查看
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 项奖励
4,993 次查看
fredericlefranc
Contributor II

@janmodaal: Also using buildroot here Same reasons

0 项奖励
5,039 次查看
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.

5,139 次查看
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 项奖励
5,128 次查看
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 项奖励
5,124 次查看
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 项奖励
5,112 次查看
bladerunner1010
Contributor III

Thanks

0 项奖励
5,106 次查看
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 项奖励
5,103 次查看
bladerunner1010
Contributor III

Yea thats what I thought as well.

What is cilbe ?

0 项奖励
5,101 次查看
Alexandre-SCHMITT
Contributor II

Sorry, target

(I'm french, target = cible)

0 项奖励
5,098 次查看
bladerunner1010
Contributor III

Merci beaucoup!

5,118 次查看
Alexandre-SCHMITT
Contributor II

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

0 项奖励
5,087 次查看
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 项奖励
5,088 次查看
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.