mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-04-19 12:57:16 +00:00
nanopineo: initial work
This commit is contained in:
parent
4dff7c97b6
commit
59ed54ce68
7
board/nanopineo/boot-fwupdater.cmd
Normal file
7
board/nanopineo/boot-fwupdater.cmd
Normal file
@ -0,0 +1,7 @@
|
||||
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait ro no_console_suspend panic=10 quiet loglevel=1 ipv6.disable=1
|
||||
|
||||
fatload mmc 0 0x46000000 Image
|
||||
fatload mmc 0 0x47000000 rootfs.cpio.uboot
|
||||
fatload mmc 0 0x48000000 sun8i-h3-nanopi-neo.dtb
|
||||
|
||||
booti 0x46000000 0x47000000 0x48000000
|
6
board/nanopineo/boot.cmd
Normal file
6
board/nanopineo/boot.cmd
Normal file
@ -0,0 +1,6 @@
|
||||
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait ro no_console_suspend panic=10 quiet loglevel=1 ipv6.disable=1
|
||||
|
||||
fatload mmc 0 0x46000000 Image
|
||||
fatload mmc 0 0x48000000 sun8i-h3-nanopi-neo.dtb
|
||||
|
||||
booti 0x46000000 - 0x48000000
|
13
board/nanopineo/mkimage.sh
Executable file
13
board/nanopineo/mkimage.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
BOARD_DIR=$(dirname $0)
|
||||
COMMON_DIR=$BOARD_DIR/../common
|
||||
|
||||
export BOARD=$(basename $BOARD_DIR)
|
||||
export IMG_DIR=$BOARD_DIR/../../output/$BOARD/images/
|
||||
export UBOOT_BIN=$BOARD_DIR/u-boot-with-spl.bin
|
||||
export UBOOT_SEEK=16
|
||||
export PART_START=40960
|
||||
source $COMMON_DIR/mkimage.sh
|
||||
|
||||
|
2
board/nanopineo/os.conf
Normal file
2
board/nanopineo/os.conf
Normal file
@ -0,0 +1,2 @@
|
||||
os_tty_login="ttyS0"
|
||||
|
6
board/nanopineo/overlay-initramfs/remove_initramfs
Executable file
6
board/nanopineo/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
board/nanopineo/overlay/etc/board
Normal file
1
board/nanopineo/overlay/etc/board
Normal file
@ -0,0 +1 @@
|
||||
nanopineo
|
5
board/nanopineo/overlay/etc/init.d/boardsn
Executable file
5
board/nanopineo/overlay/etc/init.d/boardsn
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
sn=$(cat /sys/class/net/eth0/address 2>/dev/null | tr -d ':')
|
||||
echo ${sn: -8}
|
||||
|
7
board/nanopineo/overlay/usr/libexec/fw-prepare-boot
Executable file
7
board/nanopineo/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
|
||||
|
11
board/nanopineo/postscript.sh
Executable file
11
board/nanopineo/postscript.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
$HOST_DIR/bin/mkimage -C none -A arm -T script -d $BOARD_DIR/boot.cmd $BOOT_DIR/boot.scr
|
||||
$HOST_DIR/bin/mkimage -C none -A arm -T script -d $BOARD_DIR/boot-fwupdater.cmd $BOOT_DIR/boot-fwupdater.scr
|
||||
|
||||
cp $IMG_DIR/Image $BOOT_DIR
|
||||
cp $BOARD_DIR/sun8i-h3-nanopi-neo.dtb $BOOT_DIR
|
||||
cp $BOARD_DIR/rootfs.cpio.uboot $BOOT_DIR
|
||||
|
BIN
board/nanopineo/rootfs.cpio.uboot
Normal file
BIN
board/nanopineo/rootfs.cpio.uboot
Normal file
Binary file not shown.
BIN
board/nanopineo/sun8i-h3-nanopi-neo.dtb
Normal file
BIN
board/nanopineo/sun8i-h3-nanopi-neo.dtb
Normal file
Binary file not shown.
BIN
board/nanopineo/u-boot-with-spl.bin
Normal file
BIN
board/nanopineo/u-boot-with-spl.bin
Normal file
Binary file not shown.
77
configs/nanopineo_defconfig
Normal file
77
configs/nanopineo_defconfig
Normal file
@ -0,0 +1,77 @@
|
||||
BR2_aarch64=y
|
||||
BR2_ARM_FPU_VFPV4=y
|
||||
BR2_CCACHE=y
|
||||
BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-nanopineo"
|
||||
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"
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||
BR2_TARGET_TZ_INFO=y
|
||||
BR2_ROOTFS_OVERLAY="board/common/overlay board/nanopineo/overlay"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="board/common/postscript.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/friendlyarm/linux/archive/3f0ec3a78591ef3f0d06c59ae935de76d2c2de9b.tar.gz"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="sunxu"
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox.config"
|
||||
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
|
||||
BR2_PACKAGE_ALSA_UTILS=y
|
||||
BR2_PACKAGE_ALSA_UTILS_APLAY=y
|
||||
BR2_PACKAGE_GZIP=y
|
||||
BR2_PACKAGE_JQ=y
|
||||
BR2_PACKAGE_E2FSPROGS=y
|
||||
BR2_PACKAGE_NTFS_3G=y
|
||||
BR2_PACKAGE_B43_FIRMWARE=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_7010=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_9170=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_9271=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XX=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XXX=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_USB8797=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_USB8897=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_MEDIATEK_MT7601U=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT61=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT73=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT2XX=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_RTL_81XX=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_RTL_87XX=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_RTL_88XX=y
|
||||
BR2_PACKAGE_USB_MODESWITCH_DATA=y
|
||||
BR2_PACKAGE_CA_CERTIFICATES=y
|
||||
BR2_PACKAGE_LIBSSH2=y
|
||||
BR2_PACKAGE_LIBFUSE=y
|
||||
BR2_PACKAGE_LIBCURL=y
|
||||
BR2_PACKAGE_CURL=y
|
||||
BR2_PACKAGE_LIBCAP=y
|
||||
BR2_PACKAGE_PCRE=y
|
||||
BR2_PACKAGE_PCRE_UCP=y
|
||||
BR2_PACKAGE_AUTOSSH=y
|
||||
BR2_PACKAGE_CRDA=y
|
||||
BR2_PACKAGE_DHCP=y
|
||||
BR2_PACKAGE_DHCP_CLIENT=y
|
||||
BR2_PACKAGE_IPTABLES=y
|
||||
BR2_PACKAGE_IW=y
|
||||
BR2_PACKAGE_NETCAT=y
|
||||
BR2_PACKAGE_NET_TOOLS=y
|
||||
BR2_PACKAGE_NTP=y
|
||||
BR2_PACKAGE_NTP_NTPDATE=y
|
||||
BR2_PACKAGE_OPENSSH=y
|
||||
BR2_PACKAGE_PPPD=y
|
||||
BR2_PACKAGE_WIRELESS_TOOLS=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_EAP=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
|
||||
BR2_PACKAGE_BASH=y
|
||||
BR2_PACKAGE_LOGROTATE=y
|
||||
BR2_PACKAGE_TAR=y
|
||||
BR2_PACKAGE_UTIL_LINUX_BINARIES=y
|
||||
BR2_PACKAGE_UTIL_LINUX_PARTX=y
|
||||
BR2_PACKAGE_NANO=y
|
||||
BR2_PACKAGE_HOST_DTC=y
|
||||
BR2_PACKAGE_HOST_E2FSPROGS=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
|
14
configs/nanopineo_initramfs_defconfig
Normal file
14
configs/nanopineo_initramfs_defconfig
Normal file
@ -0,0 +1,14 @@
|
||||
BR2_arm=y
|
||||
BR2_CCACHE=y
|
||||
BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-nanopineo-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/nanopineo/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
|
Loading…
x
Reference in New Issue
Block a user