Building linux kernel LSDK21.08

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Building linux kernel LSDK21.08

ソリューションへジャンプ
11,390件の閲覧回数
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 解決策
10,832件の閲覧回数
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 返答(返信)
10,833件の閲覧回数
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 件の賞賛
返信
11,256件の閲覧回数
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 件の賞賛
返信
11,231件の閲覧回数
fredericlefranc
Contributor II

@janmodaal: Also using buildroot here Same reasons

0 件の賞賛
返信
11,277件の閲覧回数
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.

11,377件の閲覧回数
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 件の賞賛
返信
11,366件の閲覧回数
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 件の賞賛
返信
11,362件の閲覧回数
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 件の賞賛
返信
11,350件の閲覧回数
bladerunner1010
Contributor III

Thanks

0 件の賞賛
返信
11,344件の閲覧回数
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 件の賞賛
返信
11,341件の閲覧回数
bladerunner1010
Contributor III

Yea thats what I thought as well.

What is cilbe ?

0 件の賞賛
返信
11,339件の閲覧回数
Alexandre-SCHMITT
Contributor II

Sorry, target

(I'm french, target = cible)

0 件の賞賛
返信
11,336件の閲覧回数
bladerunner1010
Contributor III

Merci beaucoup!

11,356件の閲覧回数
Alexandre-SCHMITT
Contributor II

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

0 件の賞賛
返信
11,325件の閲覧回数
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 件の賞賛
返信
11,326件の閲覧回数
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.