Skip to contentSkip to conversation

configs/beagleboneai: new defconfig

PATCH New Peter Korsgaard 2 participants 2 messages Sep 23, 2019 – Sep 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 DEVELOPERS                                    |    2 +
 board/beagleboneai/genimage.cfg               |   29 +
 .../uboot/0001-BeagleBone-AI-support.patch    | 1782 +++++++++++++++++
 board/beagleboneai/post-build.sh              |    4 +
 board/beagleboneai/readme.txt                 |   28 +
 board/beagleboneai/uEnv.txt                   |    6 +
 configs/beagleboneai_defconfig                |   29 +
 7 files changed, 1880 insertions(+)
 create mode 100644 board/beagleboneai/genimage.cfg
 create mode 100644 board/beagleboneai/patches/uboot/0001-BeagleBone-AI-support.patch
 create mode 100755 board/beagleboneai/post-build.sh
 create mode 100644 board/beagleboneai/readme.txt
 create mode 100644 board/beagleboneai/uEnv.txt
 create mode 100644 configs/beagleboneai_defconfig
DEVELOPERS +2 -0
index b427fd92ae..b40d4f4dd9 100644
@@ -1779,6 +1779,7 @@ N:	Pedro Aguilar <[email protected]>
 F:	package/libunistring/
 
 N:	Peter Korsgaard <[email protected]>
+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
board/beagleboneai/genimage.cfg new file +29 -0
new file mode 100644
index 0000000000..0bdfa64d38
@@ -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
+	}
+}
board/beagleboneai/patches/uboot/0001-BeagleBone-AI-support.patch new file +1782 -0

1,782 lines not on this page · raw message

board/beagleboneai/post-build.sh new file +4 -0
new file mode 100755
index 0000000000..34a86cc746
@@ -0,0 +1,4 @@
+#!/bin/sh
+BOARD_DIR="$(dirname $0)"
+
+cp board/beagleboneai/uEnv.txt $BINARIES_DIR/uEnv.txt
board/beagleboneai/readme.txt new file +28 -0
new file mode 100644
index 0000000000..f4c798f559
@@ -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
board/beagleboneai/uEnv.txt new file +6 -0
new file mode 100644
index 0000000000..d38df7727f
@@ -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}
configs/beagleboneai_defconfig new file +29 -0
new file mode 100644
index 0000000000..eb23cdf69a
@@ -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
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 configs/beagleboneai: new defconfig

Quoted 8 lines · On Mon, 23 Sep 2019 16:46:29 +0200 Peter Korsgaard <[email protected]> wrote:

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

Quoted 15 lines
---
 DEVELOPERS                                    |    2 +
 board/beagleboneai/genimage.cfg               |   29 +
 .../uboot/0001-BeagleBone-AI-support.patch    | 1782 +++++++++++++++++
 board/beagleboneai/post-build.sh              |    4 +
 board/beagleboneai/readme.txt                 |   28 +
 board/beagleboneai/uEnv.txt                   |    6 +
 configs/beagleboneai_defconfig                |   29 +
 7 files changed, 1880 insertions(+)
 create mode 100644 board/beagleboneai/genimage.cfg
 create mode 100644 board/beagleboneai/patches/uboot/0001-BeagleBone-AI-support.patch
 create mode 100755 board/beagleboneai/post-build.sh
 create mode 100644 board/beagleboneai/readme.txt
 create mode 100644 board/beagleboneai/uEnv.txt
 create mode 100644 configs/beagleboneai_defconfig

Applied to master, thanks. Hopefully the lengthy U-Boot patch can be removed in the near future, once the support is upstreamed.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com