Yocto Dunfell下将IGC网卡驱动设为模块的正确步骤咨询
Yocto Dunfell下将IGC以太网驱动设置为可加载模块的正确步骤
你之前的操作遗漏了配置持久化和模块打包的关键环节,按以下步骤操作即可解决:
进入devtool生成的linux-intel工作目录:
cd $(devtool status | grep linux-intel | awk '{print $2}')同步内核配置变更到recipe:
执行devtool update-recipe linux-intel,这个命令会把你在menuconfig里修改的配置合并到对应的recipe文件中,避免重新构建时配置丢失。确保镜像包含内核模块:
在local.conf文件中添加一行配置,二选一即可:- 若要打包所有内核模块:
IMAGE_INSTALL_append = " kernel-modules" - 若仅需打包IGC模块:
IMAGE_INSTALL_append = " kernel-module-igc"
- 若要打包所有内核模块:
重新构建镜像:
bitbake x86-image-core
构建完成后启动目标设备,可在/lib/modules/$(uname -r)/kernel/drivers/net/ethernet/intel/igc/路径下找到igc.ko文件,之后就能用insmod/rmmod命令测试驱动的加载与卸载。
内容的提问来源于stack exchange,提问作者Yaacov Biblow
相关产品推荐
相关产品推荐

