Compile
1.download && install feeds
cd trunk/base;
./scripts/feeds update -a
./scripts/feeds install -a
2.download default config:
cd trunk/base
cat ../cusconfig/diffconfig > .config
make defconfig
3.make V=99
//make -j8 V=s compile use 20 minutes
The finally image in this path
trunk/base/ramips
4.burn it
PS:make kernel patch
1.install quilt
sudo apt-get install quilt
2.cd the direction where you want to patch the file
quilt new platform/filename.patch
quilt add filename.c
quilt edit filename.c
quilt refresh -
3.cpoy your patch file to the target cp src/patch dst/patch
src:trunk\build_dir\target-mipsel_24kec+dsp_uClibc-0.9.33.2\linux-ramips_mt7620\linux-3.10.14-p112871\patches\platform\filename.patch
dst:trunk\target\linux\ramips\patches
openwrt如何编译
最新推荐文章于 2025-05-13 14:15:48 发布