Openwrt添加内核patch
环境说明:
ubuntu16.04
openwrt 18.06(Linux-4.9.120)
在openwrt根目录执行以下指令
make target/linux/{clean,prepare} QUILT=1 V=s
切换到内核路径下
cd build_dir/target-mips_24kc_musl/linux-ar71xx_nand/linux-4.9.120/
增加新的patch
quilt new platform/493-usb-net-cdc-ether-add-is-novatel-rndis.patch
编辑要修改的文件
quilt edit drivers/net/usb/cdc_ether.c
quilt edit drivers/net/usb/rndis_host.c
查看修改内容
quilt diff
生成新的patch
quilt refresh
更新patch(切换到openwrt根目录)
make target/linux/update V