mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ramips: HATLab GateBoard-One using gen_image_generic.sh to gen image
This commit is contained in:
parent
a5c98133c2
commit
0e72b739ca
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user