Author: luka
Date: 2016-03-14 18:06:09 +0100 (Mon, 14 Mar 2016)
New Revision: 49010
Modified:
trunk/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
trunk/target/linux/kirkwood/image/Makefile
Log:
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 <[email protected]>
Modified: trunk/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
===================================================================
--- trunk/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
2016-03-14 17:06:08 UTC (rev 49009)
+++ trunk/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
2016-03-14 17:06:09 UTC (rev 49010)
@@ -14,6 +14,10 @@
}
return 0
;;
+ "dockstar")
+ nand_do_platform_check $board $1
+ return $?
+ ;;
esac
echo "Sysupgrade is not yet supported on $board."
@@ -30,3 +34,13 @@
;;
esac
}
+
+platform_pre_upgrade() {
+ local board=$(kirkwood_board_name)
+
+ case "$board" in
+ "dockstar")
+ nand_do_upgrade $1
+ ;;
+ esac
+}
Modified: trunk/target/linux/kirkwood/image/Makefile
===================================================================
--- trunk/target/linux/kirkwood/image/Makefile 2016-03-14 17:06:08 UTC (rev
49009)
+++ trunk/target/linux/kirkwood/image/Makefile 2016-03-14 17:06:09 UTC (rev
49010)
@@ -12,7 +12,7 @@
DEVICE_VARS += DEVICE_DTS KERNEL_SIZE PAGESIZE BLOCKSIZE SUBPAGESIZE
KERNEL_IN_UBI
KERNEL_LOADADDR:=0x8000
-TARGET_DEVICES = linksys-audi linksys-viper
+TARGET_DEVICES = linksys-audi linksys-viper dockstar
define Device/Default
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
@@ -161,9 +161,6 @@
Image/BuildKernel/Template/Generic=$(call Image/BuildKernel/Template)
Image/InstallKernel/Template/Generic=$(call Image/InstallKernel/Template)
-Image/BuildKernel/Template/DOCKSTAR=$(call Image/BuildKernel/Template,dockstar)
-Image/InstallKernel/Template/DOCKSTAR=$(call
Image/InstallKernel/Template,dockstar)
-
Image/BuildKernel/Template/GOFLEXHOME=$(call
Image/BuildKernel/Template,goflexhome)
Image/InstallKernel/Template/GOFLEXHOME=$(call
Image/InstallKernel/Template,goflexhome)
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits