1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-19 07:39:45 +02:00

support for the asus wl-500g deluxe and the buffalo v2 units. dnsmasq update, control file fixes. add back other boardtypes to make wl.o happy on other routers

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@390 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
kaloz 2005-03-19 17:52:30 +00:00
parent 4033e9dfab
commit 0995de955e
10 changed files with 51 additions and 7 deletions

View File

@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=dnsmasq PKG_NAME:=dnsmasq
PKG_VERSION:=2.15 PKG_VERSION:=2.20
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

View File

@ -1,7 +1,7 @@
Package: dnsmasq Package: dnsmasq
Priority: essential Priority: essential
Section: net Section: net
Version: 2.15-1 Version: 2.20-1
Architecture: mipsel Architecture: mipsel
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx> Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
Source: buildroot internal Source: buildroot internal

View File

@ -2,7 +2,7 @@ Package: dropbear
Priority: optional Priority: optional
Depends: zlib Depends: zlib
Section: net Section: net
Version: 0.44-1 Version: 0.45-1
Architecture: mipsel Architecture: mipsel
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx> Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
Source: buildroot internal Source: buildroot internal

View File

@ -2,7 +2,7 @@ Package: ip6tables
Priority: optional Priority: optional
Depends: kmod-ipv6 Depends: kmod-ipv6
Section: net Section: net
Version: 1.2.11-1 Version: 1.3.0-1
Architecture: mipsel Architecture: mipsel
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx> Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
Source: buildroot internal Source: buildroot internal

View File

@ -1,7 +1,7 @@
Package: iptables-extra Package: iptables-extra
Priority: optional Priority: optional
Section: net Section: net
Version: 1.2.11-1 Version: 1.3.0-1
Architecture: mipsel Architecture: mipsel
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx> Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
Source: buildroot internal Source: buildroot internal

View File

@ -1,7 +1,7 @@
Package: iptables Package: iptables
Priority: optional Priority: optional
Section: net Section: net
Version: 1.2.11-1 Version: 1.3.0-1
Architecture: mipsel Architecture: mipsel
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx> Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
Source: buildroot internal Source: buildroot internal

View File

@ -275,7 +275,7 @@ sbpci_init(void *sbh)
sb_core_reset(sbh, 0); sb_core_reset(sbh, 0);
/* In some board, */ /* In some board, */
if(nvram_match("boardtype", "bcm94710dev")) if(nvram_match("boardtype", "bcm94710dev") || nvram_match("boardtype", "bcm94710ap")|| nvram_match("boardtype", "bcm94710r4")|| nvram_match("boardtype", "bcm94710r4")|| nvram_match("boardtype", "bcm95365r"))
CT4712_WR = 0; CT4712_WR = 0;
else else
CT4712_WR = 1; CT4712_WR = 1;

View File

@ -5,6 +5,7 @@
// initial release 2004/03/28 // initial release 2004/03/28
// //
// 2004/08/26 asus & buffalo support added // 2004/08/26 asus & buffalo support added
// 2005/03/14 asus wl-500g deluxe and buffalo v2 support added
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
@ -187,11 +188,26 @@ static int __init diag_init()
reset_polarity=0; reset_polarity=0;
buf=nvram_get("boardnum")?:""; buf=nvram_get("boardnum")?:"";
if (!strcmp(buf,"44")) { if (!strcmp(buf,"44")) {
//motorola
set_diag=ignore; set_diag=ignore;
set_dmz=ignore; set_dmz=ignore;
reset_gpio=(1<<5); reset_gpio=(1<<5);
reset_polarity=0; reset_polarity=0;
} }
if (!strcmp(buf,"00")) {
//buffalo
set_diag=ignore;
set_dmz=ignore;
reset_gpio=(1<<7);
reset_polarity=1;
}
if (!strcmp(buf,"45")) {
//wl-500g deluxe
set_diag=ignore;
set_dmz=ignore;
reset_gpio=(1<<6);
reset_polarity=1;
}
} }
printk(KERN_INFO "using v%d hardware\n",board_type); printk(KERN_INFO "using v%d hardware\n",board_type);

View File

@ -15,6 +15,16 @@ touch /var/log/lastlog
awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}') awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}')
} }
# set up the vlan*ports variables for the asus wl-500g deluxe, if they aren't exist
[ "$(nvram get boardtype)" = "bcm95365r" ] && \
[ "$(nvram get boardnum)" = "45" ] && {
[ -z "$(nvram get vlan0ports)" ] && \
[ -z "$(nvram get vlan1ports)" ] && {
nvram set vlan0ports="1 2 3 4 5*"
nvram set vlan1ports="0 5"
}
}
sed 's/^[^#]/insmod &/' /etc/modules 2>&-|ash sed 's/^[^#]/insmod &/' /etc/modules 2>&-|ash
ifconfig lo 127.0.0.1 up ifconfig lo 127.0.0.1 up

View File

@ -45,11 +45,29 @@ NVRAM_lan_proto="static"
FAILSAFE_ifnames="eth0 eth1" FAILSAFE_ifnames="eth0 eth1"
} }
# hacks for buffalo wla2-g54l
[ "$(nvram get boardnum)" = "00" ] && \
[ "$(nvram get product_name)" = "Product_name" ] && {
debug "### wla2-g54l hacks ###"
NVRAM_lan_ifnames="vlan0"
NVRAM_wan_ifname="none"
}
# hack for asus wl-500g hardware # hack for asus wl-500g hardware
[ $asus ] && { [ $asus ] && {
FAILSAFE_lan_ifnames="eth0 eth2" FAILSAFE_lan_ifnames="eth0 eth2"
} }
# hacks for asus wl-500g deluxe
[ "$(nvram get boardtype)" = "bcm95365r" ] && \
[ "$(nvram get boardnum)" = "45" ] && {
debug "### wl-500g deluxe hacks ###"
NVRAM_vlan0hwname="et0"
NVRAM_vlan1hwname="et0"
NVRAM_lan_ifnames="vlan0 eth1"
NVRAM_wan_ifname="vlan1"
}
# defaults if lan_ifname is missing # defaults if lan_ifname is missing
[ -z "$(nvram get lan_ifname)" ] && { [ -z "$(nvram get lan_ifname)" ] && {
NVRAM_lan_ifname="br0" NVRAM_lan_ifname="br0"