Skip to contentSkip to conversation

configs/avnet_rzboard_v2l: new defconfig

Buildroot Thomas Petazzoni via buildroot 1 participant 1 message Feb 7, 2024

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=f003675119c9ca503afa19c04074e81c49538baf
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

This patch adds support for the AVNET RZBoard V2L.

The board support creates a bootable sd card image. The board is shipped with a u-boot inside its eMMC. The board support uses this u-boot and does not build and deploy a u-boot onto the sd card.

Instead the sd card only contains a uEnv.txt, a kernel image and the rootfs.

---
 DEVELOPERS                            |  2 +
 board/avnet/rzboard_v2l/genimage.cfg  | 29 ++++++++++++++
 board/avnet/rzboard_v2l/post-image.sh |  5 +++
 board/avnet/rzboard_v2l/readme.txt    | 71 +++++++++++++++++++++++++++++++++++
 board/avnet/rzboard_v2l/uEnv.txt      |  3 ++
 configs/avnet_rzboard_v2l_defconfig   | 20 ++++++++++
 6 files changed, 130 insertions(+)
DEVELOPERS +2 -0
index 8e65a93122..1c6c84b05b 100644
@@ -1889,8 +1889,10 @@ N:	Kieran Bingham <[email protected]>
 F:	package/libcamera/
 
 N:	Kilian Zinnecker <[email protected]>
+F:	board/avnet/rzboard_v2l/
 F:	board/radxa/rock5b/
 F:	configs/rock5b_defconfig
+F:	configs/avnet_rzboard_v2l_defconfig
 F:	package/rockchip-rkbin/
 
 N:	Klaus Heinrich Kiwi <[email protected]>
board/avnet/rzboard_v2l/genimage.cfg new file +29 -0
new file mode 100644
index 0000000000..94f35cb360
@@ -0,0 +1,29 @@
+# SD card image for RZBoard V2L
+
+image boot.vfat {
+	vfat {
+		files = {
+			"Image",
+			"rzboard.dtb",
+			"uEnv.txt"
+		}
+	}
+	size = 24M
+}
+
+image sdcard.img {
+	hdimage {
+		partition-table-type = "hybrid"
+	}
+
+	partition boot {
+		partition-type = "0xC"
+		bootable = "true"
+		image = "boot.vfat"
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext2"
+	}
+}
board/avnet/rzboard_v2l/post-image.sh new file +5 -0
new file mode 100755
index 0000000000..25bef8f793
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+set -e
+
+cp board/avnet/rzboard_v2l/uEnv.txt "${BINARIES_DIR}"
+support/scripts/genimage.sh -c board/avnet/rzboard_v2l/genimage.cfg
board/avnet/rzboard_v2l/readme.txt new file +71 -0

71 lines not on this page · raw message

board/avnet/rzboard_v2l/uEnv.txt new file +3 -0
new file mode 100644
index 0000000000..28b8acb8c6
@@ -0,0 +1,3 @@
+bootcmd=booti ${kernel_addr_r} - ${fdt_addr_r}
+uenvcmd=fatload mmc 0:1 ${kernel_addr_r} Image; fatload mmc 0:1 ${fdt_addr_r} rzboard.dtb
+bootargs=root=/dev/mmcblk0p2 rw rootfstype=ext4 earlyprintk console=ttyS0,115200 rootwait earlycon clk_ignore_unused debug
configs/avnet_rzboard_v2l_defconfig new file +20 -0
new file mode 100644
index 0000000000..285aef39bc
@@ -0,0 +1,20 @@
+BR2_aarch64=y
+BR2_cortex_a55=y
+BR2_KERNEL_HEADERS_5_10=y
+BR2_TARGET_GENERIC_HOSTNAME="rzboard_v2l"
+BR2_TARGET_GENERIC_ISSUE="Welcome to the AVNET RZBoard V2L"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/avnet/rzboard_v2l/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/Avnet/renesas-linux-cip.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="c197622df526c82ae9e3674e06b4092dac33eafa"
+BR2_LINUX_KERNEL_DEFCONFIG="rzboard"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="renesas/rzboard"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="64M"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot