summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-26 10:44:23 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-26 10:44:23 +0000
commit57ffcdaccdfae691a6f214e9668209c6db67d0d6 (patch)
treef2e05dc4e9272fc319f2f1d1c220ff4001970e87 /target/linux/ramips/base-files
parent252a2d10f39ce6461708a223dd44cb07f4e17390 (diff)
ramips: add support for Sitecom WL-341v3 and other Sercomm IP1006RRv2 boards
This patch adds support for the Sitecom WL-341 v3 and other Sercomm IP1006RRv2 based boards for sysupgrade support and for the initial flash through pushbutton initiated recovery mode with the special partition table and fixes for the quirks and things required by the modified bootloader. There is a known bug, Wi-Fi is not working on my board probably because of the lack of RAM (the board only has 16MiB ram -- half of the normal amount for non rebadged versions, but there is an empty slot for another ram chip,) but I don't know for sure. The driver loads but hostapd fails to load so I think it's not related to the specific device except for the lack of RAM. Moreover, only 7 of the 11 onboard leds are confirmed working, it seems that one of the others is always on and the remaining ones are connected to the wireless card leds already recognized by OpenWrt [juhosg: reordered some parts in order to keep things sorted alphabetically] Signed-off-by: Marco Antonio Mauro <marcus90@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29910 3c298f89-4303-0410-b956-a3cf2f4a3e73
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/etc/uci-defaults/network5
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 17 insertions, 0 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 9a714ddc6..ac97d037c 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
@@ -68,6 +68,10 @@ case "$FIRMWARE" in
rt2x00_eeprom_extract "factory" 0 272
;;
+ wl341v3)
+ rt2x00_eeprom_extract "board-nvram" 64880 272
+ ;;
+
*)
rt2x00_eeprom_die "board $board is not supported yet"
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
index cc5600bcf..bce24e843 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -111,6 +111,11 @@ ramips_setup_macs()
wan_mac=$(ramips_get_mac_binary factory 40)
;;
+ wl341v3)
+ lan_mac=$(ramips_get_mac_binary board-nvram 65440)
+ wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
+ ;;
+
wli-tx4-ag300n)
lan_mac=$(ramips_get_mac_binary factory 4)
;;
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
index 9a4d515b1..f6884c847 100644
--- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
+++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
@@ -29,6 +29,10 @@ preinit_set_mac_address() {
mac=$(ramips_get_mac_binary factory 40)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
+ wl341v3)
+ mac=$(ramips_get_mac_binary board-nvram 65440)
+ ifconfig eth0 hw ether $mac 2>/dev/null
+ ;;
esac
}
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index ca9b3c9cf..b3c54e82d 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -113,6 +113,9 @@ ramips_board_name() {
*"WHR-G300N")
name="whr-g300n"
;;
+ *"Sitecom WL-341 v3")
+ name="wl341v3"
+ ;;
*"Sitecom WL-351 v1 002")
name="wl-351"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 30754b5c2..494e774ef 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -30,6 +30,7 @@ platform_check_image() {
rt-n15 | \
w502u |\
v22rw-2x2 | \
+ wl341v3 | \
wli-tx4-ag300n | \
whr-g300n |\
wr512-3gn)