ar71xx: fix typo in image build code
The kernel size isn't passed to the append-kernel build step and the resulting image bricks the device. Fixes FS#168. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
parent
c1578d4fc9
commit
ec37a56587
2 changed files with 3 additions and 3 deletions
|
@ -410,7 +410,7 @@ define Device/NBG6616
|
||||||
CMDLINE += mem=128M
|
CMDLINE += mem=128M
|
||||||
IMAGES := sysupgrade.bin
|
IMAGES := sysupgrade.bin
|
||||||
KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 boot/vmlinux.lzma.uImage
|
KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 boot/vmlinux.lzma.uImage
|
||||||
IMAGE/sysupgrade.bin = append-kernel $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
|
IMAGE/sysupgrade.bin = append-kernel $$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
|
||||||
# We cannot currently build a factory image. It is the sysupgrade image
|
# We cannot currently build a factory image. It is the sysupgrade image
|
||||||
# prefixed with a header (which is actually written into the MTD device).
|
# prefixed with a header (which is actually written into the MTD device).
|
||||||
# The header is 2kiB and is filled with 0xff. The format seems to be:
|
# The header is 2kiB and is filled with 0xff. The format seems to be:
|
||||||
|
@ -443,7 +443,7 @@ define Device/c-55
|
||||||
KERNEL_SIZE = 2048k
|
KERNEL_SIZE = 2048k
|
||||||
IMAGE_SIZE = 15872k
|
IMAGE_SIZE = 15872k
|
||||||
MTDPARTS = spi0.0:256k(u-boot)ro,128k(u-boot-env)ro,2048k(kernel),13824k(rootfs),13824k(opt)ro,2624k(failsafe)ro,64k(art)ro,15872k@0x60000(firmware)
|
MTDPARTS = spi0.0:256k(u-boot)ro,128k(u-boot-env)ro,2048k(kernel),13824k(rootfs),13824k(opt)ro,2624k(failsafe)ro,64k(art)ro,15872k@0x60000(firmware)
|
||||||
IMAGE/sysupgrade.bin = append-kernel $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
|
IMAGE/sysupgrade.bin = append-kernel $$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_DEVICES += c-55
|
TARGET_DEVICES += c-55
|
||||||
|
|
|
@ -261,7 +261,7 @@ define Device/ubnt-uap-pro
|
||||||
DEVICE_PROFILE := UBNT UAPPRO
|
DEVICE_PROFILE := UBNT UAPPRO
|
||||||
KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0
|
KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0
|
||||||
IMAGES := sysupgrade.bin factory.bin
|
IMAGES := sysupgrade.bin factory.bin
|
||||||
IMAGE/sysupgrade.bin = append-kernel $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
|
IMAGE/sysupgrade.bin = append-kernel $$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
|
||||||
IMAGE/factory.bin = $$(IMAGE/sysupgrade.bin) | mkubntimage2
|
IMAGE/factory.bin = $$(IMAGE/sysupgrade.bin) | mkubntimage2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue