YOCTO更改内核版本并选择驱动程序 [英] YOCTO Change kernel version and select drivers

查看:840
本文介绍了YOCTO更改内核版本并选择驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译从 https://github获得的新Linux内核.使用YoctoT1042D4RDB-64B嵌入式板的com/qoriq-open-source/linux (版本4.9).当前正在使用4.1.35-rt41.

I am trying to compile a new Linux kernel obtained from https://github.com/qoriq-open-source/linux (version 4.9) for T1042D4RDB-64B embedded board using Yocto. It's currently using 4.1.35-rt41.

我遵循了以下步骤:

  1. bitbake虚拟/内核-c cleansstate

  1. bitbake virtual/kernel -c cleansstate

bitbake虚拟/内核-c补丁

bitbake virtual/kernel -c patch

用我的新内核源代码替换git文件夹( https://github. com/qoriq-open-source/linux )

replacing git folder with my new kernels source code (https://github.com/qoriq-open-source/linux)

使ARCH = powerpc menuconfig

make ARCH=powerpc menuconfig

bitbake虚拟/内核

bitbake virtual/kernel

结果是

新内核已成功编译,但uImage不包含我需要的驱动程序.新内核(deploy/images/t1042d4rdb-64b/rootfs.tar.gz)中只有4个驱动程序,它们是"hid","input","misc"和"staging".

The new kernel has compiled successfully but uImage does not contain the drivers I need. There are only 4 drivers in the new kernel (deploy/images/t1042d4rdb-64b/rootfs.tar.gz) which is "hid", "input", "misc" and "staging" like this.

Linux kernel 4.9中有很多驱动程序文件夹,例如gpio,gpu,蓝牙,连接器等.

There are lots of driver folders in Linux kernel 4.9 such as gpio,gpu,bluetooth, connector and so on..

问题是

如何将需要的驱动程序导入新的uImage并将其放入板中?或者如何编译该内核并选择所需的模块/驱动程序?我想要像我的Ubuntu内核那样的丰富内核.

How can I import the drivers I need to new uImage and put them into the board ? Or how can I compile this kernel and select the desired modules/drivers? I want a rich kernel like my Ubuntu kernel.

推荐答案

我通过将Yocto版本从2.0升级到2.7找到了解决方案.我使用的版本是为我的主板(t1042d4rdb-64b)新设计的,包括Linux内核4.19.xxx.安装说明可以在这里找到 https://源. codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/tree/readme?h=yocto_2.7

I found the solution by upgrading Yocto version from 2.0 to 2.7. The version I used was newly designed for my board(t1042d4rdb-64b) including linux kernel 4.19.xxx. Installation instructions can be found here https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/tree/readme?h=yocto_2.7

这篇关于YOCTO更改内核版本并选择驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆