Introduction

I've been using OpenWRT recently (opposed to Tomato/DD-WRT) because I needed a more powerful environment for some of my projects. I also like the more linux/unix feel and more useful command-line interface opposed to relying on the web gui (as with DD-WRT/Tomato) for most tasks. Recently I've wanted to get a few packages working on my OpenWRT routers that didn't already exist! So I'm trying now to learn to build custom openwrt firmwares/packages.

Requirements

I donno yet!

My Environment

I'm building these packages on a Gentoo system for a Buffalo WZR-HP-G300NH (ar7xx) router

Getting OpenWRT Buildroot

cd ~
svn co svn://svn.openwrt.org/openwrt/branches/backfire openwrt

Or, you can pull from the latest development branch.

svn co svn://svn.openwrt.org/openwrt/trunk/ openwrt

Feeds

Feeds are all the other packages available for OpenWRT. There are various feed sources from different people. (Think Gentoo Overlay's) OpenWRT is preconfigured to access a couple of feeds. It's possible to add more if you wish. Anyhow.. Found this info here - https://forum.openwrt.org/viewtopic.php?id=16040

Checkout all package feeds configured in feeds.conf ('$ ./scripts/feeds list -s' list feeds) with:

$ ./scripts/feeds update -a

Checkout a single feed with:

$ ./scripts/feeds update packages

Search for packages

$ ./scripts/feeds search <name>

Install (symlink) the package and it's dependencies

$ ./scripts/feeds install <name>

Select the package in menuconfig (in menuconfig you can use /<name/feature> to search for packages/features)

$ make menuconfig

Rebuild a single package and update the package index

$ make package/<name>/{clean,compile} package/index

NOTE: For the toolchain for your target platform must be already compiled.

Rebuild multiple packages at once

$ make package/{<name_1>,<name_2>,...,<name_N>}/{clean,compile} package/index

Compile It.

Next! Lets compile it :)

cd openwrt
make menuconfig

Next, I change Target System to Atheros AR71xx/AR7240/AR913x then..

To compile everything.

make

Or to compile a specific package only

make package/folder

Links

 
howto/openwrt_buildroot_gentoo_buffalo_wzr-hp-g300nh.txt · Last modified: 2010/09/17 12:48 by bruce
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki