aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-07-28 10:56:30 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-07-28 10:56:30 +0000
commit437e1844849ab385f5ab4cbaa0dc819bc3fba201 (patch)
treefc59c868b1d8fd4233ba6e65839fe8a6cd0693a9 /target/linux/ramips/base-files
parent7193f29d96ab94cf804675b9e1d94e4e841dfddc (diff)
downloadupstream-437e1844849ab385f5ab4cbaa0dc819bc3fba201.tar.gz
upstream-437e1844849ab385f5ab4cbaa0dc819bc3fba201.tar.bz2
upstream-437e1844849ab385f5ab4cbaa0dc819bc3fba201.zip
ramips: rt305x: add support for the Asus RT-G32 B1 board
Based on a patch by: Sergiy <piratfm@gmail.com> SVN-Revision: 27812
Diffstat (limited to 'target/linux/ramips/base-files')
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh2
3 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index 03ff4f81d4..ee20b54ef2 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -37,6 +37,10 @@ case "$FIRMWARE" in
rt2x00_eeprom_extract "devdata" 16384 272
;;
+ rt-g32-b1)
+ rt2x00_eeprom_extract "devconf" 0 272
+ ;;
+
f5d8235v2 | \
fonera20n | \
hw550-3g | \
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index f34454b6d8..d081b8be67 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -34,6 +34,9 @@ ramips_board_name() {
*"PWH2004")
name="pwh2004"
;;
+ *"RT-G32 B1")
+ name="rt-g32-b1"
+ ;;
*"RT-N15")
name="rt-n15"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 0dd3b7bd23..e7511e849b 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -14,7 +14,7 @@ platform_check_image() {
[ "$ARGC" -gt 1 ] && return 1
case "$board" in
- dir-300-b1 | dir-600-b1 | dir-600-b2 | fonera20n | v22rw-2x2 | whr-g300n | hw550-3g | mofi3500-3gn)
+ dir-300-b1 | dir-600-b1 | dir-600-b2 | fonera20n | rt-g32-b1 | v22rw-2x2 | whr-g300n | hw550-3g | mofi3500-3gn)
[ "$magic" != "2705" ] && {
echo "Invalid image type."
return 1