[LEDE-DEV] [PATCH v4 0/6] sunxi: rework image build and sysupgrade support

Yousong Zhou yszhou4tech at gmail.com
Wed Jan 4 06:19:26 PST 2017


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.

Run-tested with cubietech,cubieboard2, compile-tested others

v4 <- v3

 - Makefile of uboot-sunxi was rewritten and meta package uboot-sunxi-all was
   added for selecting all other variants
 - Default profile now selects uboot-sunxi-all

v3 <- v2

 - added a Default profile and while doing this removed uboot-sunxi package

v2 <- v1:

 - rebased on staging/nbd
 - use $@.boot instead of relying on IMAGE_PREFIX when making the vfat boot
   partition
 - Set PROFILES:=Default in Device/Default

Yousong Zhou (6):
  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
  uboot-sunxi: add uboot-sunxi-all for selecting all other variants
  sunxi: define a Default profile

 package/boot/uboot-sunxi/Makefile                  | 192 +++++------------
 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/00-default.mk          |  28 +++
 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 --
 27 files changed, 332 insertions(+), 658 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
 create mode 100644 target/linux/sunxi/profiles/00-default.mk
 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