ramips: HATLab GateBoard-One using gen_image_generic.sh to gen image

This commit is contained in:
coolsnowwolf 2022-12-02 22:09:35 +08:00
parent a5c98133c2
commit 0e72b739ca
2 changed files with 8 additions and 9 deletions

View File

@ -8,7 +8,7 @@ ARCH:=mipsel
BOARD:=ramips
BOARDNAME:=MediaTek Ralink MIPS
SUBTARGETS:=mt7620 mt7621 mt76x8 rt288x rt305x rt3883
FEATURES:=squashfs gpio
FEATURES:=squashfs gpio boot-part rootfs-part
KERNEL_PATCHVER:=5.4
KERNEL_TESTING_PATCHVER:=5.10

View File

@ -27,18 +27,17 @@ define Build/gemtek-trailer
endef
define Build/hatlab-gateboard-combined
rm -fR $@.bootfs.img
rm -fR $@.bootfs.img
mkfs.fat $@.bootfs.img -C 16384
mcopy -i $@.bootfs.img $(IMAGE_KERNEL) ::vmlinux.itb
( \
set $$(ptgen -o $@ -h 4 -s 63 -l 1024 -g -p 16M -p "${CONFIG_TARGET_ROOTFS_PARTSIZE}M" -G ${IMG_PART_DISKGUID}); \
BOOTFSOFFSET="$$(($$1 / 512))"; \
ROOTFSOFFSET="$$(($$3 / 512))"; \
dd if="$@.bootfs.img" of="$@" bs=512 seek="$${BOOTFSOFFSET}" conv=notrunc; \
dd if="${IMAGE_ROOTFS}" of="$@" bs=512 seek="$${ROOTFSOFFSET}" conv=notrunc; \
)
PADDING="1" SIGNATURE="$(IMG_PART_SIGNATURE)" \
GUID="$(IMG_PART_DISKGUID)" $(SCRIPT_DIR)/gen_image_generic.sh \
$@ \
$(CONFIG_TARGET_KERNEL_PARTSIZE) $@.bootfs.img \
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS) \
256
endef
define Build/hatlab-gateboard-kernel