mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
Merge branch 'thingos' into better-firmware-update
This commit is contained in:
commit
e86301349e
8
board/bananapi/boot-fwupdater.cmd
Normal file
8
board/bananapi/boot-fwupdater.cmd
Normal file
@ -0,0 +1,8 @@
|
||||
setenv bootargs console=tty1 root=/dev/mmcblk0p2 rootwait panic=10 earlyprintk quiet loglevel=1 ipv6.disable=1 ${extra}
|
||||
setenv fdt_high ffffffff
|
||||
setenv video-mode sunxi:1024x768-24@60,monitor=hdmi,hpd=1,edid=1
|
||||
fatload mmc 0 0x41000000 uImage
|
||||
fatload mmc 0 0x43000000 sun7i-a20-bananapi.dtb
|
||||
fatload mmc 0 0x45000000 uInitrd
|
||||
bootm 0x41000000 0x45000000 0x43000000
|
||||
|
@ -1,7 +1,7 @@
|
||||
setenv bootargs console=tty1 root=/dev/mmcblk0p2 rootwait panic=10 earlyprintk quiet loglevel=1 ipv6.disable=1 ${extra}
|
||||
fatload mmc 0 0x49000000 sun7i-a20-bananapi.dtb
|
||||
fatload mmc 0 0x46000000 uImage
|
||||
setenv fdt_high ffffffff
|
||||
setenv video-mode sunxi:1024x768-24@60,monitor=hdmi,hpd=1,edid=1
|
||||
bootm 0x46000000 - 0x49000000
|
||||
fatload mmc 0 0x41000000 uImage
|
||||
fatload mmc 0 0x43000000 sun7i-a20-bananapi.dtb
|
||||
bootm 0x41000000 - 0x43000000
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
BIN
board/bananapi/linux-usb-host.patch.gz
Normal file
BIN
board/bananapi/linux-usb-host.patch.gz
Normal file
Binary file not shown.
7
board/bananapi/overlay-initramfs/remove_initramfs
Executable file
7
board/bananapi/overlay-initramfs/remove_initramfs
Executable file
@ -0,0 +1,7 @@
|
||||
#!/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,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
sn=$(cat /sys/class/net/eth0/address 2>/dev/null| tr -d ':')
|
||||
sn=$(cat /proc/cpuinfo | grep Serial | tr -d ' ' | cut -d ':' -f 2)
|
||||
echo ${sn: -8}
|
||||
|
||||
|
7
board/bananapi/overlay/usr/libexec/fw-prepare-boot
Executable file
7
board/bananapi/overlay/usr/libexec/fw-prepare-boot
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f /boot/boot-fwupdater.scr ]; then
|
||||
mv /boot/boot.scr /boot/boot-normal.scr
|
||||
mv /boot/boot-fwupdater.scr /boot/boot.scr
|
||||
fi
|
||||
|
@ -6,4 +6,7 @@ cp $IMG_DIR/uImage $BOOT_DIR
|
||||
cp $IMG_DIR/sun7i-a20-bananapi.dtb $BOOT_DIR
|
||||
|
||||
$UBOOT_HOST_DIR/tools/mkimage -C none -A arm -T script -d $BOARD_DIR/boot.cmd $BOOT_DIR/boot.scr
|
||||
$UBOOT_HOST_DIR/tools/mkimage -C none -A arm -T script -d $BOARD_DIR/boot-fwupdater.cmd $BOOT_DIR/boot-fwupdater.scr
|
||||
|
||||
cp $BOARD_DIR/uInitrd $BOOT_DIR
|
||||
|
||||
|
BIN
board/bananapi/uInitrd
Normal file
BIN
board/bananapi/uInitrd
Normal file
Binary file not shown.
@ -14,10 +14,12 @@ BR2_ROOTFS_OVERLAY="board/common/overlay board/bananapi/overlay"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="board/common/postscript.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.27"
|
||||
BR2_LINUX_KERNEL_PATCH="board/bananapi/linux-rtl8192cu.patch.gz board/bananapi/linux-clk-dmesg-flood.patch.gz"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.13"
|
||||
BR2_LINUX_KERNEL_PATCH="board/bananapi/linux-usb-host.patch.gz"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/bananapi/kernel.config"
|
||||
BR2_LINUX_KERNEL_UIMAGE=y
|
||||
BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x40008000"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun7i-a20-bananapi"
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox.config"
|
||||
|
16
configs/bananapi_initramfs_defconfig
Normal file
16
configs/bananapi_initramfs_defconfig
Normal file
@ -0,0 +1,16 @@
|
||||
BR2_arm=y
|
||||
BR2_cortex_a7=y
|
||||
BR2_ARM_FPU_NEON_VFPV4=y
|
||||
BR2_DL_DIR="$(TOPDIR)/.download"
|
||||
BR2_CCACHE=y
|
||||
BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-bananapi-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/bananapi/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