diff --git a/board/orangepione/overlay-initramfs/remove_initramfs b/board/orangepione/overlay-initramfs/remove_initramfs new file mode 100755 index 0000000000..646372bb44 --- /dev/null +++ b/board/orangepione/overlay-initramfs/remove_initramfs @@ -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 diff --git a/board/orangepione/postscript.sh b/board/orangepione/postscript.sh index 4fd06ad875..b419b2e394 100755 --- a/board/orangepione/postscript.sh +++ b/board/orangepione/postscript.sh @@ -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 diff --git a/board/orangepione/rootfs.cpio.uboot b/board/orangepione/rootfs.cpio.uboot new file mode 100644 index 0000000000..c981d248cf Binary files /dev/null and b/board/orangepione/rootfs.cpio.uboot differ diff --git a/configs/orangepione_initramfs_defconfig b/configs/orangepione_initramfs_defconfig new file mode 100644 index 0000000000..38aebf3f6e --- /dev/null +++ b/configs/orangepione_initramfs_defconfig @@ -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