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

Yousong Zhou yszhou4tech at gmail.com
Tue Jan 3 03:03:49 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.  Names for uboot-sunxi is not touched though.

Package uboot-sunxi was dropped and built as COMPILE/$(1)-u-boot-with-spl.bin
of each device profile.  This was done so that we do not have to enumerate
every uboot variant in the Default profile

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

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 (5):
  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
  sunxi: define a Default profile

 package/boot/uboot-sunxi/Makefile                  |  188 -
 .../patches/001-use-dtc-in-kernel.patch            |   11 -
 .../patches/002-add-olimex-a13-som.patch           |   21 -
 .../patches/003-add-theobroma-a31-pangolin.patch   |  385 --
 .../patches/010-dt-sync-files-with-kernel.patch    | 1403 ----
 .../011-dt-sync-dts-files-with-kernel.patch        | 7211 --------------------
 .../patches/012-sun6i-fix-clock_twi_onoff.patch    |   38 -
 .../patches/013-enable-realtek-phy.patch           |   24 -
 .../uboot-sunxi/patches/014-fix-gmac-init.patch    |  127 -
 .../patches/015-fix-2nd-usb-ctrler-on-sun47i.patch |   78 -
 .../patches/016-spl-print-mmc-slot.patch           |   31 -
 .../017-usb-add-support-for-usb3-vbus-pin.patch    |   39 -
 .../018-usb-specify-vbus-pins-on-orangepis.patch   |   31 -
 .../019-sid-add-efuse-support-for-h3-a83t.patch    |   33 -
 .../020-boot-display-board-model-on-startup.patch  |   23 -
 .../091-sun6i-sync-PLL1-multdiv-with-Boot1.patch   |   32 -
 .../patches/093-sun6i-fix-PLL-LDO-voltselect.patch |   70 -
 .../patches/100-sun6i-alternate-on-UART2.patch     |   16 -
 .../101-sun6i-support-console-on-UART2.patch       |   30 -
 .../102-sunxi-make_CONS_INDEX-configurable.patch   |   23 -
 package/boot/uboot-sunxi/uEnv-default.txt          |    6 -
 package/boot/uboot-sunxi/uEnv-pangolin.txt         |    6 -
 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                  |  237 +-
 target/linux/sunxi/image/gen_sunxi_sdcard_img.sh   |    3 +-
 target/linux/sunxi/image/uboot/Makefile            |   65 +
 .../uboot/patches/001-use-dtc-in-kernel.patch      |   11 +
 .../uboot/patches/002-add-olimex-a13-som.patch     |   21 +
 .../patches/003-add-theobroma-a31-pangolin.patch   |  385 ++
 .../patches/010-dt-sync-files-with-kernel.patch    | 1403 ++++
 .../011-dt-sync-dts-files-with-kernel.patch        | 7211 ++++++++++++++++++++
 .../patches/012-sun6i-fix-clock_twi_onoff.patch    |   38 +
 .../uboot/patches/013-enable-realtek-phy.patch     |   24 +
 .../image/uboot/patches/014-fix-gmac-init.patch    |  127 +
 .../patches/015-fix-2nd-usb-ctrler-on-sun47i.patch |   78 +
 .../uboot/patches/016-spl-print-mmc-slot.patch     |   31 +
 .../017-usb-add-support-for-usb3-vbus-pin.patch    |   39 +
 .../018-usb-specify-vbus-pins-on-orangepis.patch   |   31 +
 .../019-sid-add-efuse-support-for-h3-a83t.patch    |   33 +
 .../020-boot-display-board-model-on-startup.patch  |   23 +
 .../091-sun6i-sync-PLL1-multdiv-with-Boot1.patch   |   32 +
 .../patches/093-sun6i-fix-PLL-LDO-voltselect.patch |   70 +
 .../patches/100-sun6i-alternate-on-UART2.patch     |   16 +
 .../101-sun6i-support-console-on-UART2.patch       |   30 +
 .../102-sunxi-make_CONS_INDEX-configurable.patch   |   23 +
 target/linux/sunxi/image/uboot/uEnv-default.txt    |    6 +
 target/linux/sunxi/image/uboot/uEnv-pangolin.txt   |    6 +
 target/linux/sunxi/profiles/00-default.mk          |   27 +
 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 -
 70 files changed, 9995 insertions(+), 10341 deletions(-)
 delete mode 100644 package/boot/uboot-sunxi/Makefile
 delete mode 100644 package/boot/uboot-sunxi/patches/001-use-dtc-in-kernel.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/002-add-olimex-a13-som.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/003-add-theobroma-a31-pangolin.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/010-dt-sync-files-with-kernel.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/011-dt-sync-dts-files-with-kernel.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/012-sun6i-fix-clock_twi_onoff.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/013-enable-realtek-phy.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/014-fix-gmac-init.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/015-fix-2nd-usb-ctrler-on-sun47i.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/016-spl-print-mmc-slot.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/017-usb-add-support-for-usb3-vbus-pin.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/018-usb-specify-vbus-pins-on-orangepis.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/019-sid-add-efuse-support-for-h3-a83t.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/020-boot-display-board-model-on-startup.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/091-sun6i-sync-PLL1-multdiv-with-Boot1.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/093-sun6i-fix-PLL-LDO-voltselect.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/100-sun6i-alternate-on-UART2.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/101-sun6i-support-console-on-UART2.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/102-sunxi-make_CONS_INDEX-configurable.patch
 delete mode 100644 package/boot/uboot-sunxi/uEnv-default.txt
 delete mode 100644 package/boot/uboot-sunxi/uEnv-pangolin.txt
 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/image/uboot/Makefile
 create mode 100644 target/linux/sunxi/image/uboot/patches/001-use-dtc-in-kernel.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/002-add-olimex-a13-som.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/003-add-theobroma-a31-pangolin.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/010-dt-sync-files-with-kernel.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/011-dt-sync-dts-files-with-kernel.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/012-sun6i-fix-clock_twi_onoff.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/013-enable-realtek-phy.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/014-fix-gmac-init.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/015-fix-2nd-usb-ctrler-on-sun47i.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/016-spl-print-mmc-slot.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/017-usb-add-support-for-usb3-vbus-pin.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/018-usb-specify-vbus-pins-on-orangepis.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/019-sid-add-efuse-support-for-h3-a83t.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/020-boot-display-board-model-on-startup.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/091-sun6i-sync-PLL1-multdiv-with-Boot1.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/093-sun6i-fix-PLL-LDO-voltselect.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/100-sun6i-alternate-on-UART2.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/101-sun6i-support-console-on-UART2.patch
 create mode 100644 target/linux/sunxi/image/uboot/patches/102-sunxi-make_CONS_INDEX-configurable.patch
 create mode 100644 target/linux/sunxi/image/uboot/uEnv-default.txt
 create mode 100644 target/linux/sunxi/image/uboot/uEnv-pangolin.txt
 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