diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-11-05 16:31:14 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-11-05 16:31:14 +0000 |
commit | 08e061327571c8431afe1edd5ad418ef4c677315 (patch) | |
tree | 1d96fb1ee70a5cc758291acd41f2e8853cb66b87 /target/linux/ar71xx/image/ubinize-wndr4300.ini | |
parent | 2d31dc039ac69bca62edd9f915834f5e7ebe4d25 (diff) | |
download | mtk-20170518-08e061327571c8431afe1edd5ad418ef4c677315.zip mtk-20170518-08e061327571c8431afe1edd5ad418ef4c677315.tar.gz mtk-20170518-08e061327571c8431afe1edd5ad418ef4c677315.tar.bz2 |
ar71xx: generate recovery image for WNDR4300
Extended the Makefile to generate a working factory reset image
for Netgear WNDR4300. The image uses UBI with two volumes squashfs
(rootfs) and JFFS2 (rootfs_data). In order to make stock U-Boot
happy, a fake rootfs image is placed into the last erase block
of the kernel partition.
Signed-off-by: Stefan Agner <stefan@agner.ch>
[juhosg:
- restore the NetgearNAND/initramfs macro,
- remove unused {Squash,Ubi}fsTemplate macros,
- remove board specific mtd options from CONFIG_CMDLINE, append the
board specific ubi.mtd parameter to the kernel command line instead,
- increase kernel partition size to 2MiB,
- use board specific ini file for ubinize,
- put jffs2 eof mark into the rootfs_data ubi volume,
- use KDIR_TMP for temporary images,
- use the squashfs-raw image,
- increase kernel partition size to 2MiB,
- use a local ubinize macro,
- fix macro parameter comments,
- put the fake rootfs into the last erase block of the kernel
partition,
- move Image/Build/NetgearNAND/buildkernel macro before
define Image/Build/NetgearNAND,
- don't use the wndr3700 utility, use '-M' parameter of mkimage to set
the uImage magic,
- use '-recovery' suffix for the generated image, it is only usable via
the fw_recovery function of the bootloader,
- update commit log]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38655
Diffstat (limited to 'target/linux/ar71xx/image/ubinize-wndr4300.ini')
-rw-r--r-- | target/linux/ar71xx/image/ubinize-wndr4300.ini | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/ubinize-wndr4300.ini b/target/linux/ar71xx/image/ubinize-wndr4300.ini new file mode 100644 index 0000000..c95c5e4 --- /dev/null +++ b/target/linux/ar71xx/image/ubinize-wndr4300.ini @@ -0,0 +1,27 @@ +[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 +# Autoresize volume at first mount +# vol_flags=autoresize + +[rootfs_data] +# Volume mode (other option is static) +mode=ubi +# Source image +image=jffs2.eof +# 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 |