Skip to content

Latest commit

 

History

History

openwrt

OpenWrt

We use openwrt to build YodaOS image, which includes linux, drivers, uboot and other softwares.

Compile

Enter the ./openwrt directory:

$ cd openwrt

Copy your defconfig file to .config:

$ cp configs/<boardconfig>_defconfig .config

Then generate the final .config and do make:

$ make defconfig
$ make -j<jobs> V=s

FAQ

Q: Where is the generated files and image?

See the directory openwrt/bin.

Q: How to generate a default config?

There are 2 choices:

  1. use make menuconfig
  2. use scripts/diffconfig.sh as ./scripts/diffconfig.sh > configs/<boardconfig>_defconfig.

Q: How to compile a specific package?

To clean/compile/install, run the following commands:

$ make package/<pkg-name>/{clean,compile,install}

And toolchain related:

$ make toolchain/{clean,compile,install}

Q: How to compile linux?

  • compile the module: make target/linux/compile
  • compile the zImage, dts, then install to openwrt/bin: make target/linux/install

Q: How to modify the kernel config?

Modify all:

$ make kernel_menuconfig

Modify a specific board:

$ make kernel_menuconfig CONFIG_TARGET=<subtarget>