mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
configs/friendlyarm_nanopi_neo_plus2: use an extlinux instead of boot.cmd
This remove the file boot.cmd to use an extlinux.conf instead. Signed-off-by: Louis Aussedat <aussedat.louis@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
af42fc988e
commit
d867e80773
@ -1,6 +0,0 @@
|
|||||||
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
|
|
||||||
|
|
||||||
fatload mmc 0 $kernel_addr_r Image
|
|
||||||
fatload mmc 0 $fdt_addr_r sun50i-h5-nanopi-neo-plus2.dtb
|
|
||||||
|
|
||||||
booti $kernel_addr_r - $fdt_addr_r
|
|
4
board/friendlyarm/nanopi-neo-plus2/extlinux.conf
Normal file
4
board/friendlyarm/nanopi-neo-plus2/extlinux.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
label linux
|
||||||
|
kernel /Image
|
||||||
|
devicetree /sun50i-h5-nanopi-neo-plus2.dtb
|
||||||
|
append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
|
@ -3,7 +3,7 @@ image boot.vfat {
|
|||||||
files = {
|
files = {
|
||||||
"Image",
|
"Image",
|
||||||
"sun50i-h5-nanopi-neo-plus2.dtb",
|
"sun50i-h5-nanopi-neo-plus2.dtb",
|
||||||
"boot.scr"
|
"extlinux"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
size = 64M
|
size = 64M
|
||||||
|
4
board/friendlyarm/nanopi-neo-plus2/post-build.sh
Executable file
4
board/friendlyarm/nanopi-neo-plus2/post-build.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
BOARD_DIR="$(dirname $0)"
|
||||||
|
|
||||||
|
install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
|
@ -27,8 +27,6 @@ BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
|||||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
|
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
|
||||||
BR2_TARGET_UBOOT_SPL=y
|
BR2_TARGET_UBOOT_SPL=y
|
||||||
BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin"
|
BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/friendlyarm/nanopi-neo-plus2/boot.cmd"
|
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
@ -49,6 +47,7 @@ BR2_PACKAGE_HOST_GENIMAGE=y
|
|||||||
BR2_PACKAGE_HOST_MTOOLS=y
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
|
||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/friendlyarm/nanopi-neo-plus2/genimage.cfg"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/friendlyarm/nanopi-neo-plus2/genimage.cfg"
|
||||||
|
BR2_ROOTFS_POST_BUILD_SCRIPT="board/friendlyarm/nanopi-neo-plus2/post-build.sh"
|
||||||
|
|
||||||
# wireless firmware
|
# wireless firmware
|
||||||
BR2_PACKAGE_LINUX_FIRMWARE=y
|
BR2_PACKAGE_LINUX_FIRMWARE=y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user