openwrt只编译kernel
本想只编译ko, ,结果搜索论坛发现要编译 kernel
https://forum.archive.openwrt.org/viewtopic.php?id=23570
用下面这个命令编译内核:
make target/linux/{clean,compile} V=s
修改 linux-4.4.18/drivers/net/ethernet/realtek/r8169soc.c 后
make target/linux/compile V=s
拷贝到自定义路径下
cp linux-4.4.18/drivers/net/ethernet/realtek/r8169soc.ko files/evideo/
根据openwrt自定义文件配置,拷贝到files下的文件就会自动拷贝到对应目录
https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem#custom_files
Custom files
In case you want to include some custom configuration files, the correct place to put them is:
<buildroot>/files/
For example, let's say that you want an image with a custom /etc/config/firewall
or a custom etc/sysctl.conf
, then create this files as:
<buildroot>/files/etc/config/firewall
<buildroot>/files/etc/sysctl.conf
E.g. if your <buildroot>
is ~/source
and you want some files to be copied into firmware image's /etc/config
directory, the correct place to put them is ~/source/files/etc/config
.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
2021-10-10 制作deb安装包
2015-10-10 android adt自带eclipse无法设置ndk路径
2015-10-10 JAVA错误:Cannot refer to a non-final variable * inside an inner class defined in a different method
2011-10-10 技巧:Vimdiff 使用
2011-10-10 linux查看硬件信息及驱动设备相关整理
2011-10-10 Linux下硬件信息查看(一)--dmidecode
2011-10-10 Linux下显示硬件信息(二)--lshw