diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2014-10-16 20:48:56 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2014-10-16 20:48:56 +0000 |
commit | aa5b5153f93920a5fc0bab94cc9f12ef910d8b30 (patch) | |
tree | 89290007ebbcad6335245af826c448b28ac62bbd /target/linux/bcm53xx | |
parent | 241c098fa15c1d956ed70340cb1ebc33c2b9a828 (diff) | |
download | mtk-20170518-aa5b5153f93920a5fc0bab94cc9f12ef910d8b30.zip mtk-20170518-aa5b5153f93920a5fc0bab94cc9f12ef910d8b30.tar.gz mtk-20170518-aa5b5153f93920a5fc0bab94cc9f12ef910d8b30.tar.bz2 |
bcm53xx: image: build UBI partition image
This could be used on NAND devices once we get UBI working.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 42938
Diffstat (limited to 'target/linux/bcm53xx')
-rw-r--r-- | target/linux/bcm53xx/image/Makefile | 4 | ||||
-rw-r--r-- | target/linux/bcm53xx/image/ubinize.cfg | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile index 576de80..9dd2a9c 100644 --- a/target/linux/bcm53xx/image/Makefile +++ b/target/linux/bcm53xx/image/Makefile @@ -11,6 +11,8 @@ define Image/Prepare rm -f $(KDIR)/fs_mark echo -ne '\xde\xad\xc0\xde' > $(KDIR)/fs_mark $(call prepare_generic_squashfs,$(KDIR)/fs_mark) + + $(CP) ./ubinize.cfg $(KDIR) endef define trx2ndpart/serial @@ -73,6 +75,8 @@ endef # $(1): filesystem type (e.g. squashfs, initramfs). define Image/Build + ( cd $(KDIR); $(STAGING_DIR_HOST)/bin/ubinize -p 128KiB -m 2048 -o $(KDIR)/root-block-0x20000-min-0x800.ubi ubinize.cfg ) + $(call Image/Build/AsusTrx,$(1),bcm47081-asus-rt-n18u,serial,RT-N18U) $(call Image/Build/Chk,$(1),bcm4708-netgear-r6250,serial,U12H245T00_NETGEAR,1) diff --git a/target/linux/bcm53xx/image/ubinize.cfg b/target/linux/bcm53xx/image/ubinize.cfg new file mode 100644 index 0000000..a4f2f09 --- /dev/null +++ b/target/linux/bcm53xx/image/ubinize.cfg @@ -0,0 +1,24 @@ +[rootfs] +# Volume mode (other option is static) +mode=ubi +# Source image +image=root.squashfs +# Volume ID in UBI image +vol_id=0 +# Allow for dynamic resize +vol_type=dynamic +# Volume name +vol_name=rootfs + +[rootfs_data] +# Volume mode (other option is static) +mode=ubi +# Volume ID in UBI image +vol_id=1 +# Allow for dynamic resize +vol_type=dynamic +# Volume name +vol_name=rootfs_data +# Autoresize volume at first mount +vol_flags=autoresize +vol_size=1MiB |