configs/beagleboneai: new defconfig
Add basic support for the Beagleboard.org Beaglebone AI board: https://beagleboard.org/ai U-Boot patch taken from https://github.com/beagleboard/beaglebone-ai/blob/master/SW/buildroot/local/patches/uboot/0001-BeagleBone-AI-support.patch Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
3abc962ac9
commit
7b1b5c3160
@ -160,6 +160,7 @@ bananapro_defconfig: { extends: .defconfig }
|
||||
beagleboardx15_defconfig: { extends: .defconfig }
|
||||
beaglebone_defconfig: { extends: .defconfig }
|
||||
beaglebone_qt5_defconfig: { extends: .defconfig }
|
||||
beagleboneai_defconfig: { extends: .defconfig }
|
||||
chromebook_snow_defconfig: { extends: .defconfig }
|
||||
ci20_defconfig: { extends: .defconfig }
|
||||
csky_gx6605s_defconfig: { extends: .defconfig }
|
||||
|
@ -1779,6 +1779,7 @@ N: Pedro Aguilar <paguilar@paguilar.org>
|
||||
F: package/libunistring/
|
||||
|
||||
N: Peter Korsgaard <peter@korsgaard.com>
|
||||
F: board/beagleboneai/
|
||||
F: board/minnowboard/
|
||||
F: board/librecomputer/lafrite/
|
||||
F: board/nexbox/a95x/
|
||||
@ -1787,6 +1788,7 @@ F: board/orangepi/
|
||||
F: board/pandaboard/
|
||||
F: board/roseapplepi/
|
||||
F: boot/shim/
|
||||
F: configs/beagleboneai_defconfig
|
||||
F: configs/lafrite_defconfig
|
||||
F: configs/minnowboard_max-graphical_defconfig
|
||||
F: configs/minnowboard_max_defconfig
|
||||
|
29
board/beagleboneai/genimage.cfg
Normal file
29
board/beagleboneai/genimage.cfg
Normal file
@ -0,0 +1,29 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"MLO",
|
||||
"u-boot.img",
|
||||
"zImage",
|
||||
"am5729-beagleboneai.dtb",
|
||||
"uEnv.txt"
|
||||
}
|
||||
}
|
||||
size = 16M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
size = 512M
|
||||
}
|
||||
}
|
1783
board/beagleboneai/patches/uboot/0001-BeagleBone-AI-support.patch
Normal file
1783
board/beagleboneai/patches/uboot/0001-BeagleBone-AI-support.patch
Normal file
File diff suppressed because it is too large
Load Diff
4
board/beagleboneai/post-build.sh
Executable file
4
board/beagleboneai/post-build.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
|
||||
cp board/beagleboneai/uEnv.txt $BINARIES_DIR/uEnv.txt
|
28
board/beagleboneai/readme.txt
Normal file
28
board/beagleboneai/readme.txt
Normal file
@ -0,0 +1,28 @@
|
||||
Intro
|
||||
=====
|
||||
|
||||
This configuration will build a basic image for the BeagleBoard.org
|
||||
BeagleBone AI. For more details about the board, visit:
|
||||
|
||||
https://beagleboard.org/ai
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make beagleboneai_defconfig
|
||||
|
||||
Compile everything and build the USB flash drive image:
|
||||
|
||||
$ make
|
||||
|
||||
How to write the SD card
|
||||
========================
|
||||
|
||||
Once the build process is finished you will have an image called "sdcard.img"
|
||||
in the output/images/ directory.
|
||||
|
||||
Copy the bootable "sdcard.img" onto an SD card with "dd":
|
||||
|
||||
$ sudo dd if=output/images/sdcard.img of=/dev/sdX
|
6
board/beagleboneai/uEnv.txt
Normal file
6
board/beagleboneai/uEnv.txt
Normal file
@ -0,0 +1,6 @@
|
||||
bootpart=0:1
|
||||
bootdir=/
|
||||
bootargs=console=ttyS0,115200n8 root=/dev/mmcblk0p2 ro rootwait
|
||||
devtype=mmc
|
||||
fdtfile=am5729-beagleboneai.dtb
|
||||
uenvcmd=run loadimage; run loadfdt; printenv bootargs; bootz ${loadaddr} - ${fdtaddr}
|
29
configs/beagleboneai_defconfig
Normal file
29
configs/beagleboneai_defconfig
Normal file
@ -0,0 +1,29 @@
|
||||
BR2_arm=y
|
||||
BR2_cortex_a15=y
|
||||
BR2_GLOBAL_PATCH_DIR="board/beagleboneai/patches"
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
|
||||
BR2_SYSTEM_DHCP="eth0"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="board/beagleboneai/post-build.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beagleboneai/genimage.cfg"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,beagleboard,linux,4.14.108-ti-r117)/linux-4.14.108-ti-r117.tar.gz"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="bb.org"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="am5729-beagleboneai"
|
||||
BR2_TARGET_ROOTFS_EXT2=y
|
||||
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.04"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am57xx_evm"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
# BR2_TARGET_UBOOT_FORMAT_BIN is not set
|
||||
BR2_TARGET_UBOOT_FORMAT_IMG=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="MLO"
|
||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_MTOOLS=y
|
Loading…
Reference in New Issue
Block a user