summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-16 18:00:34 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-16 18:00:34 +0000
commitbe8e44bc682b5dbf29121d3e0425a746a6a01977 (patch)
tree6cf73d5d448ab7d11f4e6397d0fb566a5c282faf /target/linux/ar71xx/base-files
parentaaa7c394a37b47a768ecb1f74c000d186268bb81 (diff)
ar71xx: add support for the jjPlus JA76PF2 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30957 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/network3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh8
4 files changed, 12 insertions, 5 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 9552b8aa3..cbe15c68c 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -67,7 +67,8 @@ get_status_led() {
hornet-ub)
status_led="alfa:blue:wps"
;;
- ja76pf)
+ ja76pf | \
+ ja76pf2)
status_led="jjplus:green:led1"
;;
ls-sr71)
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network
index 4dfb43c67..ce5bc5a64 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network
@@ -15,7 +15,8 @@ ucidef_set_interface_loopback
board=$(ar71xx_board_name)
case "$board" in
-all0258n)
+all0258n |\
+ja76pf2)
ucidef_set_interface_lan "eth0 eth1"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index b9d797cac..b51f3a7c6 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -181,6 +181,9 @@ ar71xx_board_detect() {
*JA76PF)
name="ja76pf"
;;
+ *JA76PF2)
+ name="ja76pf2"
+ ;;
*"Bullet M")
name="bullet-m"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 91b04c5de..a53c73dca 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -15,7 +15,7 @@ platform_find_partitions() {
while read dev size erasesize name; do
name=${name#'"'}; name=${name%'"'}
case "$name" in
- vmlinux.bin.l7|vmlinux|kernel|linux|rootfs)
+ vmlinux.bin.l7|vmlinux|kernel|linux|rootfs|filesystem)
if [ -z "$first" ]; then
first="$name"
else
@@ -179,7 +179,8 @@ platform_check_image() {
pb42 | \
pb44 | \
eap7660d | \
- ja76pf )
+ ja76pf | \
+ ja76pf2)
[ "$magic" != "4349" ] && {
echo "Invalid image. Use *-sysupgrade.bin files on this board"
return 1
@@ -212,7 +213,8 @@ platform_do_upgrade() {
eap7660d | \
pb42 | \
pb44 | \
- ja76pf)
+ ja76pf | \
+ ja76pf2)
platform_do_upgrade_combined "$ARGV"
;;
all0258n )