1 (edited by RoundSparrow 2009-02-09 19:11:09)

Topic: Using make to build OpenWRT from source, AR71xx target

Ok, moved over to the HOWTO forum now that the instructions are pretty much worked out.  See: http://forum.openwrt.org/viewtopic.php?pid=81494

Re: Using make to build OpenWRT from source, AR71xx target

On a fresh checkout today, the default seems to have changed to 2.6.27 kernel, so that change is no longer required!

Bad news is that a fresh build generates this error today:

 from /home/OpenWRT/trunk/build_dir/linux-ar71xx/compat-wireless-2008-12-29/drivers/net/wireless/ipw2x00/ipw2100.c:168:

/ipw2100.c:168:
include/net/ieee80211.h:251: error: nested redefinition of 'enum ieee80211_statuscode'
include/net/ieee80211.h:251: error: redeclaration of 'enum ieee80211_statuscode'
include/net/ieee80211.h:252: error: redeclaration of enumerator 'WLAN_STATUS_SUCCESS'

Re: Using make to build OpenWRT from source, AR71xx target

RoundSparrow wrote:

On a fresh checkout today, the default seems to have changed to 2.6.27 kernel, so that change is no longer required!

Bad news is that a fresh build generates this error today:

 from /home/OpenWRT/trunk/build_dir/linux-ar71xx/compat-wireless-2008-12-29/drivers/net/wireless/ipw2x00/ipw2100.c:168:

/ipw2100.c:168:
include/net/ieee80211.h:251: error: nested redefinition of 'enum ieee80211_statuscode'
include/net/ieee80211.h:251: error: redeclaration of 'enum ieee80211_statuscode'
include/net/ieee80211.h:252: error: redeclaration of enumerator 'WLAN_STATUS_SUCCESS'

Fixed with 13841.

-Gabor

Re: Using make to build OpenWRT from source, AR71xx target

I've reworked this to reflect recent improvements and changes.  I also wanted to point people to this old thread: http://forum.openwrt.org/viewtopic.php?id=9180  <--- Information on using various make options.  But rather old.

Re: Using make to build OpenWRT from source, AR71xx target

Updated first post in the thread to reflect latest ap81/ap83 steps for 802.11n support.

Re: Using make to build OpenWRT from source, AR71xx target

FYI I used this patch to update iw to 0.9.7, otherwise I encountered build problems re CTRL_ATTR_MCAST_GROUPS undefined.
https://dev.openwrt.org/ticket/4373

Question for step 5.1: Which files do I edit in package/hostapd/files ?

7 (edited by RoundSparrow 2009-01-14 00:54:32)

Re: Using make to build OpenWRT from source, AR71xx target

alexh wrote:

Question for step 5.1: Which files do I edit in package/hostapd/files ?

we have been changing all of them.  See this message:
http://forum.openwrt.org/viewtopic.php?pid=79183#p79183

I updated the instructions in the first post to be more specific.

8 (edited by RoundSparrow 2009-01-22 16:36:26)

Re: Using make to build OpenWRT from source, AR71xx target

I guess another idea is to revise the ar71xx/Makefile instead of navigating the menus.

DEFAULT_PACKAGES += hostapd-mini kmod-ath9k kmod-mac80211

Still working on the list to have.  Any reason to only use hostapd-mini?   Trying:

DEFAULT_PACKAGES += hostapd kmod-ath9k kmod-mac80211 iw

Re: Using make to build OpenWRT from source, AR71xx target

So if I try to build OpenWRT with "make CONFIG_ATH9K_DEBUG=y V=99" I get build errors.  Can someone confirm this for me - any ideas what's wrong?

Re: Using make to build OpenWRT from source, AR71xx target

updated instructions, much simpler.  There is a pending patch going in after svn 14250 that should fix ath9k fault.