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 BOARD:=ramips
BOARDNAME:=MediaTek Ralink MIPS BOARDNAME:=MediaTek Ralink MIPS
SUBTARGETS:=mt7620 mt7621 mt76x8 rt288x rt305x rt3883 SUBTARGETS:=mt7620 mt7621 mt76x8 rt288x rt305x rt3883
FEATURES:=squashfs gpio FEATURES:=squashfs gpio boot-part rootfs-part
KERNEL_PATCHVER:=5.4 KERNEL_PATCHVER:=5.4
KERNEL_TESTING_PATCHVER:=5.10 KERNEL_TESTING_PATCHVER:=5.10

View File

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