aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/image/Makefile
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-10-16 21:33:34 +0000
committerRafał Miłecki <zajec5@gmail.com>2014-10-16 21:33:34 +0000
commit6323cec8d639426479ec1047b9e0dfb36b9432b1 (patch)
tree268a12a07ed52bd823ed5d8962b32854ea1425b9 /target/linux/bcm53xx/image/Makefile
parentbb8bf9f3fa92129a02fe83c95044e08f390eed4d (diff)
downloadupstream-6323cec8d639426479ec1047b9e0dfb36b9432b1.tar.gz
upstream-6323cec8d639426479ec1047b9e0dfb36b9432b1.tar.bz2
upstream-6323cec8d639426479ec1047b9e0dfb36b9432b1.zip
bcm53xx: image: switch Netgear and Buffalo devices to UBI
We still don't have a smart sysupgrade method, but at least we can use UBI which provides some protection for rootfs (SquashFS). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42941 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/bcm53xx/image/Makefile')
-rw-r--r--target/linux/bcm53xx/image/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile
index 9dd2a9c998..09109e2d2c 100644
--- a/target/linux/bcm53xx/image/Makefile
+++ b/target/linux/bcm53xx/image/Makefile
@@ -19,6 +19,10 @@ define trx2ndpart/serial
-a 1024 -f $(KDIR)/root.squashfs -a 0x10000 -A $(KDIR)/fs_mark
endef
+define trx2ndpart/nand-0x20000-0x800
+-a 0x20000 -f $(KDIR)/root-block-0x20000-min-0x800.ubi -a 0x20000 -A $(KDIR)/fs_mark
+endef
+
# $(1): dts filename (also used for the firmware file).
# $(2): flash type (not used).
define Image/Build/initramfs/DTB
@@ -79,11 +83,11 @@ define Image/Build
$(call Image/Build/AsusTrx,$(1),bcm47081-asus-rt-n18u,serial,RT-N18U)
- $(call Image/Build/Chk,$(1),bcm4708-netgear-r6250,serial,U12H245T00_NETGEAR,1)
- $(call Image/Build/Chk,$(1),bcm4708-netgear-r6300-v2,serial,U12H240T00_NETGEAR,1)
+ $(call Image/Build/Chk,$(1),bcm4708-netgear-r6250,nand-0x20000-0x800,U12H245T00_NETGEAR,1)
+ $(call Image/Build/Chk,$(1),bcm4708-netgear-r6300-v2,nand-0x20000-0x800,U12H240T00_NETGEAR,1)
- $(call Image/Build/Trx,$(1),bcm4708-buffalo-wzr-1750dhp,serial)
- $(call Image/Build/Trx,$(1),bcm47081-buffalo-wzr-600dhp2,serial)
+ $(call Image/Build/Trx,$(1),bcm4708-buffalo-wzr-1750dhp,nand-0x20000-0x800)
+ $(call Image/Build/Trx,$(1),bcm47081-buffalo-wzr-600dhp2,nand-0x20000-0x800)
endef
define Image/Build/Initramfs