aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2016-03-14 17:06:09 +0000
committerLuka Perkov <luka@openwrt.org>2016-03-14 17:06:09 +0000
commit471e5346825d21b385afc434e3334f4162550324 (patch)
treed368878852199a76231212826e15f035211038a6 /target/linux/kirkwood/base-files
parent56f10e0e408c2836087f7807f4bdb4da397662c2 (diff)
downloadmaster-187ad058-471e5346825d21b385afc434e3334f4162550324.tar.gz
master-187ad058-471e5346825d21b385afc434e3334f4162550324.tar.bz2
master-187ad058-471e5346825d21b385afc434e3334f4162550324.zip
kirkwood/dockstar: use ubi(kernel, squashfs, ubifs) images
The new image requires `bootz` because of devicetree appending. To flash a new image boot initramfs: tftpboot 0x800000 openwrt-kirkwood-dockstar-initramfs-kernel.bin bootz 0x800000 # detach if already attached ubidetach -p /dev/$(grep ubi /proc/mtd|awk -F: '{print $1}') # scp openwrt-kirkwood-dockstar-squashfs-factory.bin /tmp ubiformat -f /tmp/openwrt-kirkwood-dockstar-squashfs-factory.bin # attach is important to resize rootfs_data otherwise it wont boot ubiattach -p /dev/$(grep ubi /proc/mtd|awk -F: '{print $1}') Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49010 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/kirkwood/base-files')
-rw-r--r--target/linux/kirkwood/base-files/lib/upgrade/platform.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
index c33229a41b..be5f101673 100644
--- a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
+++ b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
@@ -14,6 +14,10 @@ platform_check_image() {
}
return 0
;;
+ "dockstar")
+ nand_do_platform_check $board $1
+ return $?
+ ;;
esac
echo "Sysupgrade is not yet supported on $board."
@@ -30,3 +34,13 @@ platform_do_upgrade() {
;;
esac
}
+
+platform_pre_upgrade() {
+ local board=$(kirkwood_board_name)
+
+ case "$board" in
+ "dockstar")
+ nand_do_upgrade $1
+ ;;
+ esac
+}