nanopineo2: add firmware update support

This commit is contained in:
Calin Crisan 2017-12-31 20:15:54 +02:00
parent 28389db3ce
commit 7007822f75
6 changed files with 29 additions and 3 deletions

Binary file not shown.

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

@ -1,4 +1,7 @@
#!/bin/bash
sed -r -i 's/#initrd_filename=.*/initrd_filename=fwupdater.img/' /boot/uEnv.txt
if [ -f /boot/boot-fwupdater.scr ]; then
mv /boot/boot.scr /boot/boot-normal.scr
mv /boot/boot-fwupdater.scr /boot/boot.scr
fi

View File

@ -1,7 +1,8 @@
#!/bin/sh
cp $IMG_DIR/Image $BOOT_DIR
cp $IMG_DIR/boot.scr $BOOT_DIR
cp $BOARD_DIR/boot.scr $BOOT_DIR
cp $BOARD_DIR/boot-fwupdater.scr $BOOT_DIR
cp $BOARD_DIR/sun50i-h5-nanopi-neo2.dtb $BOOT_DIR
#cp $BOARD_DIR/fwupdater.img $BOOT_DIR
cp $BOARD_DIR/rootfs.cpio.uboot $BOOT_DIR

Binary file not shown.

View File

@ -0,0 +1,16 @@
BR2_aarch64=y
BR2_ARM_FPU_VFPV4=y
BR2_ARM_FPU_NEON_VFPV4=y
BR2_DL_DIR="$(TOPDIR)/dl"
BR2_CCACHE=y
BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-nanopineo2-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/nanopineo2/overlay-initramfs"
BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config"
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
# BR2_TARGET_ROOTFS_TAR is not set