openwrt/target/linux/gemini/image
Linus Walleij 0b0cd4efe2
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
gemini: support upgrade on reference designs
The Gemini reference design-derived devices uses a partition
format which is predictable and we can exploit this to offer
some proper upgrade path.

The kernel for these contains a hack to use this partition
format unaltered by combining the partitions "Kern" and "Ramdisk"
to one image with all of the kernel+ramdisk in memory.

Then the "Application" which is used for the rootfs go into its
own partition.

Standard flash layout:
Kern         2048k |
Ramdisk      6144k | = 9216k
Application  6144k | = 15360k

Following the pattern of the factory image we create three
images named zImage, rd.gz and hddapp.tgz (these filenames
are misleading! They are just required by the old firmware.)
and flash each individually with "mtd" during upgrades.

Since the IB-4220-V has a different layout with a bigger kernel
space we parameterize this so we can handle this too. (More
fixes are needed for that device though.)

A way to upgrade older OpenWrt on these platforms to the latest
and greatest will be to copy the file
target/linux/gemini/base-files/lib/upgrade/platform.sh
to /lib/upgrade/platform.sh
on your running system and then run sysupgrade from the image
produced after this patch.

The script is picky to sanity check the partitions before
commencing upgrade.

This was tested with a full sysupgrade on the iTian SQ201.

Link: https://github.com/openwrt/openwrt/pull/21680
Signed-off-by: Linus Walleij <linusw@kernel.org>
2026-01-24 17:29:17 +01:00
..
copy-kernel gemini: image: fix race condition when building copy-kernel.bin 2019-09-11 01:31:53 +00:00
dns313_gen_hdd_img.sh gemini: Add swap partition to DNS-313 2020-07-31 18:34:40 +02:00
ImageInfo-itian_sq201 gemini: use dts compatible based image filenames 2019-01-26 15:23:37 +01:00
ImageInfo-raidsonic_ib-4220-b gemini: use dts compatible based image filenames 2019-01-26 15:23:37 +01:00
ImageInfo-storlink_sl93512r gemini: Add SL93512r missing ImageInfo file 2019-07-07 13:02:06 +02:00
Makefile gemini: support upgrade on reference designs 2026-01-24 17:29:17 +01:00