From 835bb2433592f75d94b853d46fe2e5ab1dd87d6e Mon Sep 17 00:00:00 2001 From: Dmitry Ilyin <6576495+widgetii@users.noreply.github.com> Date: Thu, 22 Oct 2026 13:59:04 +0300 Subject: [PATCH] gk7205v500: the split NOR image, as on the gk7205v200 family The gk7205v500 lite rootfs is 5044K of its 5120K slot. Lite and ultimate use general/scripts/post-image-split.sh with BR2_OPENIPC_NOR_FIXED_PACKAGE=y: the fixed-slot package as before, plus -split. gk7205v500.generic.config turns on MTD_SPLIT_FIRMWARE (named "firmware"), MTD_SPLIT_UIMAGE_FW, MTD_SPLIT_SQUASHFS_ROOT and MTD_ROOTFS_ROOT_DEV (OpenIPC/linux#137); its U-Boot has the split mode since OpenIPC/u-boot#52. Only these two defconfigs use this kernel config, and both ship -split, so no fixed-only build gets a split-capable kernel. gk7201v200 has its own config and is unchanged. Built locally with the kernel branch: - gk7205v500_lite: uImage 1935K of 1983K, squashfs 5044K of 5120K, firmware.bin 7040K of 7616K; -lite.tgz and -lite-split.tgz. - gk7205v500_ultimate: uImage 1935K, squashfs 6528K, firmware.bin 8512K of 15808K; nor-ultimate, nor-ultimate-split and nand-ultimate (the same six files as on latest). Tested in qemu-hisilicon (gk7205v500 8 and 16 MB, gk7205v510/v530 16 MB): the split firmware.bin under the new U-Boot and under the published u-boot-gk7205v500-nor.bin ("root=/dev/mtdblock3 ignored"), root on 31:4, login, the overlay kept across a reset; the fixed-slot package under both: root on 31:3. Not run on hardware. --- br-ext-chip-goke/board/gk7205v500/gk7205v500.generic.config | 5 +++++ br-ext-chip-goke/configs/gk7205v500_lite_defconfig | 2 ++ br-ext-chip-goke/configs/gk7205v500_ultimate_defconfig | 2 ++ 3 files changed, 9 insertions(+) diff --git a/br-ext-chip-goke/board/gk7205v500/gk7205v500.generic.config b/br-ext-chip-goke/board/gk7205v500/gk7205v500.generic.config index 1d0a09a5c..7236e2612 100644 --- a/br-ext-chip-goke/board/gk7205v500/gk7205v500.generic.config +++ b/br-ext-chip-goke/board/gk7205v500/gk7205v500.generic.config @@ -2870,3 +2870,8 @@ CONFIG_CMA_SIZE_SEL_MBYTES=y CONFIG_CMA_ALIGNMENT=8 CONFIG_CMA_MEM_SHARED=y # CONFIG_CMA_ADVANCE_SHARE is not set +CONFIG_MTD_ROOTFS_ROOT_DEV=y +CONFIG_MTD_SPLIT_FIRMWARE=y +CONFIG_MTD_SPLIT_FIRMWARE_NAME="firmware" +CONFIG_MTD_SPLIT_SQUASHFS_ROOT=y +CONFIG_MTD_SPLIT_UIMAGE_FW=y diff --git a/br-ext-chip-goke/configs/gk7205v500_lite_defconfig b/br-ext-chip-goke/configs/gk7205v500_lite_defconfig index 111d7ce68..06fe33968 100644 --- a/br-ext-chip-goke/configs/gk7205v500_lite_defconfig +++ b/br-ext-chip-goke/configs/gk7205v500_lite_defconfig @@ -72,3 +72,5 @@ BR2_PACKAGE_OPUS_OPENIPC=y BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y BR2_PACKAGE_VTUND_OPENIPC=y BR2_PACKAGE_YAML_CLI=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_GENERAL_PATH)/scripts/post-image-split.sh" +BR2_OPENIPC_NOR_FIXED_PACKAGE=y diff --git a/br-ext-chip-goke/configs/gk7205v500_ultimate_defconfig b/br-ext-chip-goke/configs/gk7205v500_ultimate_defconfig index 4faed7d47..1322a6f17 100644 --- a/br-ext-chip-goke/configs/gk7205v500_ultimate_defconfig +++ b/br-ext-chip-goke/configs/gk7205v500_ultimate_defconfig @@ -81,3 +81,5 @@ BR2_PACKAGE_UACME_OPENIPC=y BR2_PACKAGE_VTUND_OPENIPC=y BR2_PACKAGE_YAML_CLI=y BR2_PACKAGE_ZEROTIER_ONE=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_GENERAL_PATH)/scripts/post-image-split.sh" +BR2_OPENIPC_NOR_FIXED_PACKAGE=y