[LEDE-DEV] [PATCH v2 0/4] sunxi: rework image build and sysupgrade support
Yousong Zhou
yszhou4tech at gmail.com
Sat Dec 31 10:03:40 PST 2016
This series mainly tries achieve the following goals
- use new image generation method
- squashfs sdcard image support
- mkfs.f2fs or mkfs.ext4 remaining space within squashfs rootfs partition and
mount it as rw overlay
- sysupgrade with fwtool check support
Device profiles are automatically generated with a helper makefile. Names for
image files, board_names, etc. are changed to try to use basename of kernel dts
file for the specific device. Names for uboot-sunxi is not touched though.
Run-tested with cubitech,cubiboard2, compile-tested others
v2 <- v1:
- rebased on staging/nbd
- use $@.bootpart instead of relying on IMAGE_PREFIX when making the vfat boot
partition
- Setting PROFILES:=Default in Device/Default
Yousong Zhou (4):
sunxi: convert to new image generation method
sunxi: make sdcard image with squashfs as rootfs
sunxi: add sysupgrade support
sunxi: use fwtool for checking sdcard images
target/linux/sunxi/Makefile | 3 +-
.../linux/sunxi/base-files/etc/board.d/02_network | 4 +-
.../base-files/lib/preinit/01_preinit_sunxi.sh | 9 -
.../sunxi/base-files/lib/preinit/02_b53_hack.sh | 2 +-
.../sunxi/base-files/lib/preinit/79_move_config | 20 ++
target/linux/sunxi/base-files/lib/sunxi.sh | 140 -------------
.../linux/sunxi/base-files/lib/upgrade/platform.sh | 67 ++++++
target/linux/sunxi/config-4.4 | 4 +
target/linux/sunxi/image/Makefile | 227 ++++++++++++++-------
target/linux/sunxi/image/gen_sunxi_sdcard_img.sh | 3 +-
target/linux/sunxi/profiles/01-default.mk | 17 --
target/linux/sunxi/profiles/a10-olinuxino.mk | 19 --
target/linux/sunxi/profiles/a13-olimex-som.mk | 18 --
target/linux/sunxi/profiles/a13-olinuxino.mk | 18 --
target/linux/sunxi/profiles/a20-olinuxino.mk | 33 ---
target/linux/sunxi/profiles/bananapi.mk | 18 --
target/linux/sunxi/profiles/bananapro.mk | 19 --
target/linux/sunxi/profiles/cubieboard.mk | 19 --
target/linux/sunxi/profiles/cubieboard2.mk | 19 --
target/linux/sunxi/profiles/cubietruck.mk | 19 --
target/linux/sunxi/profiles/lamobo-r1.mk | 19 --
target/linux/sunxi/profiles/mele_m9.mk | 18 --
target/linux/sunxi/profiles/orangepi_plus.mk | 18 --
target/linux/sunxi/profiles/pcduino.mk | 18 --
target/linux/sunxi/profiles/pcduino3.mk | 19 --
25 files changed, 254 insertions(+), 516 deletions(-)
delete mode 100644 target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh
create mode 100644 target/linux/sunxi/base-files/lib/preinit/79_move_config
create mode 100644 target/linux/sunxi/base-files/lib/upgrade/platform.sh
delete mode 100644 target/linux/sunxi/profiles/01-default.mk
delete mode 100644 target/linux/sunxi/profiles/a10-olinuxino.mk
delete mode 100644 target/linux/sunxi/profiles/a13-olimex-som.mk
delete mode 100644 target/linux/sunxi/profiles/a13-olinuxino.mk
delete mode 100644 target/linux/sunxi/profiles/a20-olinuxino.mk
delete mode 100644 target/linux/sunxi/profiles/bananapi.mk
delete mode 100644 target/linux/sunxi/profiles/bananapro.mk
delete mode 100644 target/linux/sunxi/profiles/cubieboard.mk
delete mode 100644 target/linux/sunxi/profiles/cubieboard2.mk
delete mode 100644 target/linux/sunxi/profiles/cubietruck.mk
delete mode 100644 target/linux/sunxi/profiles/lamobo-r1.mk
delete mode 100644 target/linux/sunxi/profiles/mele_m9.mk
delete mode 100644 target/linux/sunxi/profiles/orangepi_plus.mk
delete mode 100644 target/linux/sunxi/profiles/pcduino.mk
delete mode 100644 target/linux/sunxi/profiles/pcduino3.mk
--
2.6.4
More information about the Lede-dev
mailing list