diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2016-12-29 15:26:59 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-01-20 00:44:46 +0100 |
commit | 78c2ec0f477bab5b5c2622b5a18c14e51dea7249 (patch) | |
tree | f77d18e8800d8fcc1fc9d7e9f6904bc1657a99b8 /target/linux/ar71xx/image/generic.mk | |
parent | 5f9b20bc7d0bde6c100a3dec5f02b56f7ef7a61d (diff) | |
download | upstream-78c2ec0f477bab5b5c2622b5a18c14e51dea7249.tar.gz upstream-78c2ec0f477bab5b5c2622b5a18c14e51dea7249.tar.bz2 upstream-78c2ec0f477bab5b5c2622b5a18c14e51dea7249.zip |
ar71xx: wrt400n: lift size limit on kernel and rootfs part
While at it, convert to new build method
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/image/generic.mk')
-rw-r--r-- | target/linux/ar71xx/image/generic.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk index 0214c530ee..1f96a5b960 100644 --- a/target/linux/ar71xx/image/generic.mk +++ b/target/linux/ar71xx/image/generic.mk @@ -755,3 +755,25 @@ define Device/bhr-4grv2 IMAGE/factory.bin = append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | mkbuffaloimg endef TARGET_DEVICES += bhr-4grv2 + + +# factory image starts with a header of size 60 (0x3c) bytes. The header is +# only used for checking integrity of the firmware image without being written +# to flash chip. That means it's okay we include jffs2 pads when computing +# checksums +define Build/wrt400n-factory + cp $(IMAGE_ROOTFS) $(IMAGE_ROOTFS).tmp + $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS).tmp $(BLOCKSIZE:%k=%) + $(STAGING_DIR_HOST)/bin/wrt400n $(IMAGE_KERNEL) $(IMAGE_ROOTFS).tmp $@ + rm -f $(IMAGE_ROOTFS).tmp +endef + +define Device/wrt400n + DEVICE_TITLE := Linksys WRT400N + BOARDNAME := WRT400N + CONSOLE := ttyS0,115200 + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size 0x770000 + IMAGE/factory.bin = wrt400n-factory | check-size 0x77003c +endef +TARGET_DEVICES += wrt400n |