summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/base-files/lib
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-16 18:00:34 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-16 18:00:34 +0000
commit60361511876af51d571d292f6afd59535693db9f (patch)
tree9ddd0f7c456771c96444f40ab3a05b59d4be821c /target/linux/ar71xx/base-files/lib
parenta68066239124879f0089da56c817254c8a354e24 (diff)
downloadmtk-20170518-60361511876af51d571d292f6afd59535693db9f.zip
mtk-20170518-60361511876af51d571d292f6afd59535693db9f.tar.gz
mtk-20170518-60361511876af51d571d292f6afd59535693db9f.tar.bz2
ar71xx: add support for the jjPlus JA76PF2 board
SVN-Revision: 30957
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh8
2 files changed, 8 insertions, 3 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index b9d797c..b51f3a7 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 91b04c5..a53c73d 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 )