如何重新编译内核

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

如何重新编译内核

ソリューションへジャンプ
2,963件の閲覧回数
jingyangxie
Contributor V

最近我在使用yocto工程,下载了内核镜像,但是我需要修改内核的部分内容,请问如何修改并重新编译内核?

ラベル(3)
0 件の賞賛
返信
1 解決策
2,580件の閲覧回数
jian_jiang
NXP Employee
NXP Employee

Hi jingyang xie,

After modifying the code, you need to locate the linux kernel directory(.../linux-imx/.../git/) in the terminal, and use the command "make".

All the best

Jian Jiang

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
2,580件の閲覧回数
jingyangxie
Contributor V

Thanks for all,I have got it!

0 件の賞賛
返信
2,580件の閲覧回数
jian_jiang
NXP Employee
NXP Employee

Hi jingyang xie,

You may need the command below to set the cross compile and architecture before execute the command "make"

export CROSS_COMPILE=~/<your path>/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-

export ARCH=arm

All the best

Jian Jiang

0 件の賞賛
返信
2,581件の閲覧回数
jian_jiang
NXP Employee
NXP Employee

Hi jingyang xie,

After modifying the code, you need to locate the linux kernel directory(.../linux-imx/.../git/) in the terminal, and use the command "make".

All the best

Jian Jiang

0 件の賞賛
返信
2,580件の閲覧回数
qinghuazhu
Contributor III

Hi jingyang xie,

Chek this :Custom driver not building with the package

Best regards.

0 件の賞賛
返信
2,580件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi jingyang xie,

You need to download the source code first, and then  modify the kernel code. Then build the source code. Here could you tell me which board and which version BSP are you using?
Have a great day,
Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
2,580件の閲覧回数
jingyangxie
Contributor V

Hi DanWang,

    the BSP is 4.15.1.2.0,the custom board is based on i.mx 6 solo x sabresd

0 件の賞賛
返信