The OpenWrt version I used was barrier breaker 14.07, and the hardware was Netgear WNDR4300.
The purpose of my custom firmware is to expand the root partition of the firmware to the maximum (100MB, total Flash is 128MB), tried to compile the source code, but also succeeded, but can not install the official source of the kernel module, must install their own compiled, for online installation software inconvenient. Later know can use the official Image Builder to build their own firmware, software version and the official same, the official tutorial in: http://wiki.openwrt.org/doc/howto/obtain.firmware.generate
To enlarge the root partition space:
Edit the Target/linux/ar71xx/image/makefile and put
wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k (U-boot) ro,256k (u-boot-env) ro,256k (caldata), 512k (pot), 2048k ( Language), 512k (config), 3072k (Traffic_meter), 2048k (kernel),23552k(ubi),25600k@0x6c0000 ( Firmware), 256k (Caldata_backup),-(reserved)
Switch
wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k (U-boot) ro,256k (u-boot-env) ro,256k (caldata), 512k (pot), 2048k ( Language), 512k (config), 3072k (Traffic_meter), 2048k (kernel),121856k(ubi),123904k@0x6c0000 ( Firmware), 256k (Caldata_backup),-(reserved)
To build WNDR4300 and official firmware, the following make commands are required:
Make image profile=wndr4300 packages= "uhttpd uhttpd-mod-ubus Luci Luci-proto-ipv6 Iwinfo"
Of course, maybe we need the Web interface to be Chinese, so we can:
Make image profile=wndr4300 packages= "uhttpd uhttpd-mod-ubus Luci Luci-proto-ipv6 iwinfo Luci-i18n-chinese"
OpenWrt Custom and Official firmware