mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
nanopineo2: add firmware update support
This commit is contained in:
parent
28389db3ce
commit
7007822f75
Binary file not shown.
6
board/nanopineo2/overlay-initramfs/remove_initramfs
Executable file
6
board/nanopineo2/overlay-initramfs/remove_initramfs
Executable 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
|
@ -1,4 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/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
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cp $IMG_DIR/Image $BOOT_DIR
|
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/sun50i-h5-nanopi-neo2.dtb $BOOT_DIR
|
||||||
#cp $BOARD_DIR/fwupdater.img $BOOT_DIR
|
cp $BOARD_DIR/rootfs.cpio.uboot $BOOT_DIR
|
||||||
|
|
||||||
|
BIN
board/nanopineo2/rootfs.cpio.uboot
Normal file
BIN
board/nanopineo2/rootfs.cpio.uboot
Normal file
Binary file not shown.
16
configs/nanopineo2_initramfs_defconfig
Normal file
16
configs/nanopineo2_initramfs_defconfig
Normal 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
|
Loading…
x
Reference in New Issue
Block a user