orangepione: add firmware update support

This commit is contained in:
Calin Crisan 2017-12-31 23:23:25 +02:00
parent e29097f1b9
commit 8d3fc2ad82
4 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,6 @@
#!/bin/sh
if [ -f /boot/boot-normal.scr ]; then
mv /boot/boot.scr /boot/boot-fwupdater.scr
mv /boot/boot-normal.scr /boot/boot.scr
fi

View File

@ -4,4 +4,4 @@ cp $IMG_DIR/zImage $BOOT_DIR
cp $IMG_DIR/sun8i-h3-orangepi-one.dtb $BOOT_DIR
cp $BOARD_DIR/boot.scr $BOOT_DIR
cp $BOARD_DIR/boot-fwupdater.scr $BOOT_DIR
cp $BOARD_DIR/rootfs.cpio.uboot $BOOT_DIR

Binary file not shown.

View File

@ -0,0 +1,16 @@
BR2_arm=y
BR2_cortex_a7=y
BR2_ARM_FPU_VFPV4=y
BR2_CCACHE=y
BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-orangepione-initramfs"
BR2_OPTIMIZE_2=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_OPTIMIZATION="-pipe"
BR2_ROOTFS_SKELETON_CUSTOM=y
BR2_ROOTFS_SKELETON_CUSTOM_PATH="board/common/skeleton-initramfs"
BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/orangepione/overlay-initramfs"
BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config"
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_ROOTFS_CPIO_GZIP=y
BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
# BR2_TARGET_ROOTFS_TAR is not set