Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig
@ 2023-11-30 22:31 kilian.zinnecker--- via buildroot
  2024-02-05 14:41 ` Giulio Benetti
  2024-02-07 19:43 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 6+ messages in thread
From: kilian.zinnecker--- via buildroot @ 2023-11-30 22:31 UTC (permalink / raw)
  To: buildroot; +Cc: Kilian Zinnecker

From: Kilian Zinnecker <kilian.zinnecker@mail.de>

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.

Signed-off-by: Kilian Zinnecker <kilian.zinnecker@mail.de>
---
 DEVELOPERS                            |  2 +
 board/avnet/rzboard_v2l/genimage.cfg  | 30 ++++++++++++
 board/avnet/rzboard_v2l/post-image.sh |  5 ++
 board/avnet/rzboard_v2l/readme.txt    | 69 +++++++++++++++++++++++++++
 board/avnet/rzboard_v2l/uEnv.txt      |  3 ++
 configs/rzboard_v2l_defconfig         | 19 ++++++++
 6 files changed, 128 insertions(+)
 create mode 100644 board/avnet/rzboard_v2l/genimage.cfg
 create mode 100755 board/avnet/rzboard_v2l/post-image.sh
 create mode 100644 board/avnet/rzboard_v2l/readme.txt
 create mode 100644 board/avnet/rzboard_v2l/uEnv.txt
 create mode 100644 configs/rzboard_v2l_defconfig

diff --git a/DEVELOPERS b/DEVELOPERS
index 1f26e9bc81..794e0a5d91 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1842,7 +1842,9 @@ F:	package/libcamera/
 N:	Kilian Zinnecker <kilian.zinnecker@mail.de>
 F:	package/rockchip-rkbin/
 F:	configs/rock5b_defconfig
+F:	configs/rzboard_v2l_defconfig
 F:	board/radxa/rock5b/
+F:	board/avnet/rzboard_v2l/
 
 N:	Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
 F:	package/wqy-zenhei/
diff --git a/board/avnet/rzboard_v2l/genimage.cfg b/board/avnet/rzboard_v2l/genimage.cfg
new file mode 100644
index 0000000000..af4ee7cd86
--- /dev/null
+++ b/board/avnet/rzboard_v2l/genimage.cfg
@@ -0,0 +1,30 @@
+# 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"
+		size = 64M
+	}
+}
diff --git a/board/avnet/rzboard_v2l/post-image.sh b/board/avnet/rzboard_v2l/post-image.sh
new file mode 100755
index 0000000000..25bef8f793
--- /dev/null
+++ b/board/avnet/rzboard_v2l/post-image.sh
@@ -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
diff --git a/board/avnet/rzboard_v2l/readme.txt b/board/avnet/rzboard_v2l/readme.txt
new file mode 100644
index 0000000000..0f1efd2812
--- /dev/null
+++ b/board/avnet/rzboard_v2l/readme.txt
@@ -0,0 +1,69 @@
+RZBoard V2L
+===========
+https://www.avnet.com/wps/portal/us/products/avnet-boards/avnet-board-families/rzboard-v2l/
+
+This board support creates a bootable sd card image for the AVNET RZBoard V2L.
+This board is shipped with a u-boot inside its eMMC. This board support uses
+that u-boot and only puts uEnv.txt, kernel image and rootfs onto the sd card.
+
+Build:
+======
+  $ make rzboard_v2l_defconfig
+  $ make
+
+Files created in output directory
+=================================
+
+output/images
+.
+├── Image
+├── boot.vfat
+├── rootfs.ext2
+├── rootfs.ext4
+├── rootfs.tar
+├── rzboard.dtb
+├── sdcard.img
+└── uEnv.txt
+
+Creating bootable SD card:
+==========================
+
+Simply invoke (as root)
+
+sudo dd if=output/images/sdcard.img of=/dev/sdX && sync
+
+Where X is your SD card device.
+
+Booting:
+========
+
+Configure board for sd card boot:
+---------------------------------
+Set the 'BOOT1' switch (next to the audio jack) to '1' (away from 'ON') in
+order to let the board boot kernel and rootfs from SD card.
+
+Serial console:
+---------------
+The RZBoard V2L has a 4-pin header "J19" right next to the micro USB. Its
+layout can be seen in the Quick-Start Guide, or the Hardware User Guide,
+obtainable from:
+https://www.avnet.com/wps/portal/us/products/avnet-boards/avnet-board-families/rzboard-v2l/
+
+The uart pins are as follows (from left to right - orientation according to the
+board's labeling):
+
+pin 1: n/a  (most away from the board's corner)
+pin 2: tx
+pin 3: rx
+pin 4: gnd  (nearest to the board's corner)
+
+Baudrate for this board is 115200.
+
+Power-Up:
+---------
+Plug in a suitable USB-C power supply and press the button 'S1' (next to the
+USB-C port) for 2 seconds until the LED goes on.
+
+Login:
+------
+Enter 'root' as login user, and the prompt is ready.
diff --git a/board/avnet/rzboard_v2l/uEnv.txt b/board/avnet/rzboard_v2l/uEnv.txt
new file mode 100644
index 0000000000..28b8acb8c6
--- /dev/null
+++ b/board/avnet/rzboard_v2l/uEnv.txt
@@ -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
diff --git a/configs/rzboard_v2l_defconfig b/configs/rzboard_v2l_defconfig
new file mode 100644
index 0000000000..29f38cb2aa
--- /dev/null
+++ b/configs/rzboard_v2l_defconfig
@@ -0,0 +1,19 @@
+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_DTB_OVERLAY_SUPPORT=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="64M"
+BR2_PACKAGE_HOST_MTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig
  2023-11-30 22:31 [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig kilian.zinnecker--- via buildroot
@ 2024-02-05 14:41 ` Giulio Benetti
  2024-02-05 14:45   ` Giulio Benetti
  2024-02-07 19:43 ` Thomas Petazzoni via buildroot
  1 sibling, 1 reply; 6+ messages in thread
From: Giulio Benetti @ 2024-02-05 14:41 UTC (permalink / raw)
  To: kilian.zinnecker, buildroot

Hi Kilian,

On 30/11/23 23:31, Frager, Neal via buildroot wrote:
> From: Kilian Zinnecker <kilian.zinnecker@mail.de>
> 
> 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.

Can you please add the board's URL like:
https://embedded.avnet.com/product/rzboard-v2l/
?

> 
> Signed-off-by: Kilian Zinnecker <kilian.zinnecker@mail.de>
> ---
>   DEVELOPERS                            |  2 +
>   board/avnet/rzboard_v2l/genimage.cfg  | 30 ++++++++++++
>   board/avnet/rzboard_v2l/post-image.sh |  5 ++
>   board/avnet/rzboard_v2l/readme.txt    | 69 +++++++++++++++++++++++++++
>   board/avnet/rzboard_v2l/uEnv.txt      |  3 ++
>   configs/rzboard_v2l_defconfig         | 19 ++++++++
>   6 files changed, 128 insertions(+)
>   create mode 100644 board/avnet/rzboard_v2l/genimage.cfg
>   create mode 100755 board/avnet/rzboard_v2l/post-image.sh
>   create mode 100644 board/avnet/rzboard_v2l/readme.txt
>   create mode 100644 board/avnet/rzboard_v2l/uEnv.txt
>   create mode 100644 configs/rzboard_v2l_defconfig
> 
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 1f26e9bc81..794e0a5d91 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1842,7 +1842,9 @@ F:	package/libcamera/
>   N:	Kilian Zinnecker <kilian.zinnecker@mail.de>
>   F:	package/rockchip-rkbin/
>   F:	configs/rock5b_defconfig
> +F:	configs/rzboard_v2l_defconfig
>   F:	board/radxa/rock5b/
> +F:	board/avnet/rzboard_v2l/

Here ^^^ please swap the 2 lines above for alphabetic order,

>   
>   N:	Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
>   F:	package/wqy-zenhei/
> diff --git a/board/avnet/rzboard_v2l/genimage.cfg b/board/avnet/rzboard_v2l/genimage.cfg
> new file mode 100644
> index 0000000000..af4ee7cd86
> --- /dev/null
> +++ b/board/avnet/rzboard_v2l/genimage.cfg
> @@ -0,0 +1,30 @@
> +# 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"
> +		size = 64M

You can remove the size if it's not strictly necessary, it will be
64M anyway because rootfs.ext2 is defined in board's defconfig,

> +	}
> +}
> diff --git a/board/avnet/rzboard_v2l/post-image.sh b/board/avnet/rzboard_v2l/post-image.sh
> new file mode 100755
> index 0000000000..25bef8f793
> --- /dev/null
> +++ b/board/avnet/rzboard_v2l/post-image.sh
> @@ -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
> diff --git a/board/avnet/rzboard_v2l/readme.txt b/board/avnet/rzboard_v2l/readme.txt
> new file mode 100644
> index 0000000000..0f1efd2812
> --- /dev/null
> +++ b/board/avnet/rzboard_v2l/readme.txt
> @@ -0,0 +1,69 @@
> +RZBoard V2L
> +===========
> +https://www.avnet.com/wps/portal/us/products/avnet-boards/avnet-board-families/rzboard-v2l/

This ^^^ is the URL to be added to commit log

> +
> +This board support creates a bootable sd card image for the AVNET RZBoard V2L.
> +This board is shipped with a u-boot inside its eMMC. This board support uses
> +that u-boot and only puts uEnv.txt, kernel image and rootfs onto the sd card.
> +
> +Build:
> +======
> +  $ make rzboard_v2l_defconfig
> +  $ make
> +
> +Files created in output directory
> +=================================
> +
> +output/images
> +.
> +├── Image
> +├── boot.vfat
> +├── rootfs.ext2
> +├── rootfs.ext4
> +├── rootfs.tar
> +├── rzboard.dtb
> +├── sdcard.img
> +└── uEnv.txt
> +
> +Creating bootable SD card:
> +==========================
> +
> +Simply invoke (as root)
> +
> +sudo dd if=output/images/sdcard.img of=/dev/sdX && sync
> +
> +Where X is your SD card device.
> +
> +Booting:
> +========
> +
> +Configure board for sd card boot:
> +---------------------------------
> +Set the 'BOOT1' switch (next to the audio jack) to '1' (away from 'ON') in
> +order to let the board boot kernel and rootfs from SD card.
> +
> +Serial console:
> +---------------
> +The RZBoard V2L has a 4-pin header "J19" right next to the micro USB. Its
> +layout can be seen in the Quick-Start Guide, or the Hardware User Guide,
> +obtainable from:
> +https://www.avnet.com/wps/portal/us/products/avnet-boards/avnet-board-families/rzboard-v2l/
> +
> +The uart pins are as follows (from left to right - orientation according to the
> +board's labeling):
> +
> +pin 1: n/a  (most away from the board's corner)
> +pin 2: tx
> +pin 3: rx
> +pin 4: gnd  (nearest to the board's corner)
> +
> +Baudrate for this board is 115200.
> +
> +Power-Up:
> +---------
> +Plug in a suitable USB-C power supply and press the button 'S1' (next to the
> +USB-C port) for 2 seconds until the LED goes on.
> +
> +Login:
> +------
> +Enter 'root' as login user, and the prompt is ready.
> diff --git a/board/avnet/rzboard_v2l/uEnv.txt b/board/avnet/rzboard_v2l/uEnv.txt
> new file mode 100644
> index 0000000000..28b8acb8c6
> --- /dev/null
> +++ b/board/avnet/rzboard_v2l/uEnv.txt
> @@ -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
> diff --git a/configs/rzboard_v2l_defconfig b/configs/rzboard_v2l_defconfig
> new file mode 100644
> index 0000000000..29f38cb2aa
> --- /dev/null
> +++ b/configs/rzboard_v2l_defconfig
> @@ -0,0 +1,19 @@
> +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_DTB_OVERLAY_SUPPORT=y

Do we actually need DTB_OVERLAY_SUPPORT in this defconfig? I mean, are 
there any overlay dtbo files that are dynamically applied?
If not please drop the line above

Here you also need:
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_MTOOLS=y
> +BR2_PACKAGE_HOST_GENIMAGE=y

Wait for V2 patch then.

Thank you!
Best regards
-- 
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig
  2024-02-05 14:41 ` Giulio Benetti
@ 2024-02-05 14:45   ` Giulio Benetti
  0 siblings, 0 replies; 6+ messages in thread
From: Giulio Benetti @ 2024-02-05 14:45 UTC (permalink / raw)
  To: kilian.zinnecker, buildroot

Forgotten to mention, see below,

On 05/02/24 15:41, Giulio Benetti wrote:
> Hi Kilian,
> 
> On 30/11/23 23:31, Frager, Neal via buildroot wrote:
>> From: Kilian Zinnecker <kilian.zinnecker@mail.de>
>>
>> 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.
> 
> Can you please add the board's URL like:
> https://embedded.avnet.com/product/rzboard-v2l/
> ?
> 
>>
>> Signed-off-by: Kilian Zinnecker <kilian.zinnecker@mail.de>
>> ---
>>   DEVELOPERS                            |  2 +
>>   board/avnet/rzboard_v2l/genimage.cfg  | 30 ++++++++++++
>>   board/avnet/rzboard_v2l/post-image.sh |  5 ++
>>   board/avnet/rzboard_v2l/readme.txt    | 69 +++++++++++++++++++++++++++
>>   board/avnet/rzboard_v2l/uEnv.txt      |  3 ++
>>   configs/rzboard_v2l_defconfig         | 19 ++++++++
>>   6 files changed, 128 insertions(+)
>>   create mode 100644 board/avnet/rzboard_v2l/genimage.cfg
>>   create mode 100755 board/avnet/rzboard_v2l/post-image.sh
>>   create mode 100644 board/avnet/rzboard_v2l/readme.txt
>>   create mode 100644 board/avnet/rzboard_v2l/uEnv.txt
>>   create mode 100644 configs/rzboard_v2l_defconfig
>>
>> diff --git a/DEVELOPERS b/DEVELOPERS
>> index 1f26e9bc81..794e0a5d91 100644
>> --- a/DEVELOPERS
>> +++ b/DEVELOPERS
>> @@ -1842,7 +1842,9 @@ F:    package/libcamera/
>>   N:    Kilian Zinnecker <kilian.zinnecker@mail.de>
>>   F:    package/rockchip-rkbin/
>>   F:    configs/rock5b_defconfig
>> +F:    configs/rzboard_v2l_defconfig
>>   F:    board/radxa/rock5b/
>> +F:    board/avnet/rzboard_v2l/
> 
> Here ^^^ please swap the 2 lines above for alphabetic order,
> 
>>   N:    Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
>>   F:    package/wqy-zenhei/
>> diff --git a/board/avnet/rzboard_v2l/genimage.cfg 
>> b/board/avnet/rzboard_v2l/genimage.cfg
>> new file mode 100644
>> index 0000000000..af4ee7cd86
>> --- /dev/null
>> +++ b/board/avnet/rzboard_v2l/genimage.cfg
>> @@ -0,0 +1,30 @@
>> +# 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"
>> +        size = 64M
> 
> You can remove the size if it's not strictly necessary, it will be
> 64M anyway because rootfs.ext2 is defined in board's defconfig,
> 
>> +    }
>> +}
>> diff --git a/board/avnet/rzboard_v2l/post-image.sh 
>> b/board/avnet/rzboard_v2l/post-image.sh
>> new file mode 100755
>> index 0000000000..25bef8f793
>> --- /dev/null
>> +++ b/board/avnet/rzboard_v2l/post-image.sh
>> @@ -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
>> diff --git a/board/avnet/rzboard_v2l/readme.txt 
>> b/board/avnet/rzboard_v2l/readme.txt
>> new file mode 100644
>> index 0000000000..0f1efd2812
>> --- /dev/null
>> +++ b/board/avnet/rzboard_v2l/readme.txt
>> @@ -0,0 +1,69 @@
>> +RZBoard V2L
>> +===========
>> +https://www.avnet.com/wps/portal/us/products/avnet-boards/avnet-board-families/rzboard-v2l/
> 
> This ^^^ is the URL to be added to commit log
> 
>> +
>> +This board support creates a bootable sd card image for the AVNET 
>> RZBoard V2L.
>> +This board is shipped with a u-boot inside its eMMC. This board 
>> support uses
>> +that u-boot and only puts uEnv.txt, kernel image and rootfs onto the 
>> sd card.
>> +
>> +Build:
>> +======
>> +  $ make rzboard_v2l_defconfig
>> +  $ make
>> +
>> +Files created in output directory
>> +=================================
>> +
>> +output/images
>> +.
>> +├── Image
>> +├── boot.vfat
>> +├── rootfs.ext2
>> +├── rootfs.ext4
>> +├── rootfs.tar
>> +├── rzboard.dtb
>> +├── sdcard.img
>> +└── uEnv.txt
>> +
>> +Creating bootable SD card:
>> +==========================
>> +
>> +Simply invoke (as root)
>> +
>> +sudo dd if=output/images/sdcard.img of=/dev/sdX && sync
>> +
>> +Where X is your SD card device.
>> +
>> +Booting:
>> +========
>> +
>> +Configure board for sd card boot:
>> +---------------------------------
>> +Set the 'BOOT1' switch (next to the audio jack) to '1' (away from 
>> 'ON') in
>> +order to let the board boot kernel and rootfs from SD card.
>> +
>> +Serial console:
>> +---------------
>> +The RZBoard V2L has a 4-pin header "J19" right next to the micro USB. 
>> Its
>> +layout can be seen in the Quick-Start Guide, or the Hardware User Guide,
>> +obtainable from:
>> +https://www.avnet.com/wps/portal/us/products/avnet-boards/avnet-board-families/rzboard-v2l/
>> +
>> +The uart pins are as follows (from left to right - orientation 
>> according to the
>> +board's labeling):
>> +
>> +pin 1: n/a  (most away from the board's corner)
>> +pin 2: tx
>> +pin 3: rx
>> +pin 4: gnd  (nearest to the board's corner)
>> +
>> +Baudrate for this board is 115200.
>> +
>> +Power-Up:
>> +---------
>> +Plug in a suitable USB-C power supply and press the button 'S1' (next 
>> to the
>> +USB-C port) for 2 seconds until the LED goes on.
>> +
>> +Login:
>> +------
>> +Enter 'root' as login user, and the prompt is ready.
>> diff --git a/board/avnet/rzboard_v2l/uEnv.txt 
>> b/board/avnet/rzboard_v2l/uEnv.txt
>> new file mode 100644
>> index 0000000000..28b8acb8c6
>> --- /dev/null
>> +++ b/board/avnet/rzboard_v2l/uEnv.txt
>> @@ -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
>> diff --git a/configs/rzboard_v2l_defconfig 
>> b/configs/rzboard_v2l_defconfig
>> new file mode 100644
>> index 0000000000..29f38cb2aa
>> --- /dev/null
>> +++ b/configs/rzboard_v2l_defconfig
>> @@ -0,0 +1,19 @@
>> +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_DTB_OVERLAY_SUPPORT=y
> 
> Do we actually need DTB_OVERLAY_SUPPORT in this defconfig? I mean, are 
> there any overlay dtbo files that are dynamically applied?
> If not please drop the line above
> 
> Here you also need:
> 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_MTOOLS=y

BR2_PACKAGE_HOST_DOSFSTOOLS=y

>> +BR2_PACKAGE_HOST_GENIMAGE=y

Please always test build using buildroot/utils/docker-run

Thank you
Best regards
-- 
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig
  2023-11-30 22:31 [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig kilian.zinnecker--- via buildroot
  2024-02-05 14:41 ` Giulio Benetti
@ 2024-02-07 19:43 ` Thomas Petazzoni via buildroot
  2024-02-07 23:22   ` kilian.zinnecker--- via buildroot
  1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-02-07 19:43 UTC (permalink / raw)
  To: kilian.zinnecker--- via buildroot; +Cc: Giulio Benetti, kilian.zinnecker

Hello,

On Thu, 30 Nov 2023 23:31:01 +0100
"kilian.zinnecker--- via buildroot" <buildroot@buildroot.org> wrote:

> From: Kilian Zinnecker <kilian.zinnecker@mail.de>
> 
> 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.
> 
> Signed-off-by: Kilian Zinnecker <kilian.zinnecker@mail.de>

Thanks, I have applied to master, after renaming to
avnet_rzboard_v2l_defconfig, and taking into account the feedback from
Giulio.

However, I find it not so nice that we don't build a fully bootable
image that includes U-Boot. Could you work on this and submit a
follow-up patch?

There is a DIP switch on the board that allows to boot from SD, see
page 15 of the board hardware manual;

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig
  2024-02-07 19:43 ` Thomas Petazzoni via buildroot
@ 2024-02-07 23:22   ` kilian.zinnecker--- via buildroot
  2024-02-08  8:02     ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 6+ messages in thread
From: kilian.zinnecker--- via buildroot @ 2024-02-07 23:22 UTC (permalink / raw)
  To: buildroot, Thomas Petazzoni, Giulio Benetti; +Cc: kilian.zinnecker@mail.de

Hello Thomas, Giulio, all,

Thanks Giulio for reviewing my patch and your feedback!

[--SNIP--]

> Thanks, I have applied to master, after renaming to
> avnet_rzboard_v2l_defconfig, and taking into account the feedback from
> Giulio.

Thanks for fixing the issues and applying the patch!

> However, I find it not so nice that we don't build a fully bootable
> image that includes U-Boot. Could you work on this and submit a
> follow-up patch?
> 
> There is a DIP switch on the board that allows to boot from SD, see
> page 15 of the board hardware manual;

Yes, I agree and would prefer a bootable image, containing a uboot built by 
buildroot as part of the boot chain, too. I therefore tried to run uboot from 
SD card at first (using the information from the hardware manual you refered 
to), but I was not successful. Hence I asked the author of a hackster.io 
article about the RZBoard V2L boot [1], whether he could help me. He told me, 
that he asked the Avnet BSP team, and "they confirmed there is no official 
support for storing bootloader files on micro sd". This matches his article, 
listing only eMMC and QSPI as possible locations for the bootloader.

However, maybe this information is incomplete and there is in fact a way to 
run uboot from SD card, which I just was not able to get working. I can try to 
reach out to the Avnet support myself. And even if there is no way to do that, 
I can try to adjust the board support to build uboot, figure out how to flash 
uboot to the eMMC and document that in the readme. May take me some time 
though at the moment. 

Best regards,
Kilian

[1] https://www.hackster.io/lucas-keller/mastering-rzboardv2l-emmc-micro-sd-and-network-booting-dc87f3



_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig
  2024-02-07 23:22   ` kilian.zinnecker--- via buildroot
@ 2024-02-08  8:02     ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-02-08  8:02 UTC (permalink / raw)
  To: kilian.zinnecker; +Cc: Giulio Benetti, buildroot

Hello Kilian,

On Thu, 08 Feb 2024 00:22:21 +0100
kilian.zinnecker@mail.de wrote:

> Yes, I agree and would prefer a bootable image, containing a uboot built by 
> buildroot as part of the boot chain, too. I therefore tried to run uboot from 
> SD card at first (using the information from the hardware manual you refered 
> to), but I was not successful. Hence I asked the author of a hackster.io 
> article about the RZBoard V2L boot [1], whether he could help me. He told me, 
> that he asked the Avnet BSP team, and "they confirmed there is no official 
> support for storing bootloader files on micro sd". This matches his article, 
> listing only eMMC and QSPI as possible locations for the bootloader.
> 
> However, maybe this information is incomplete and there is in fact a way to 
> run uboot from SD card, which I just was not able to get working. I can try to 
> reach out to the Avnet support myself. And even if there is no way to do that, 
> I can try to adjust the board support to build uboot, figure out how to flash 
> uboot to the eMMC and document that in the readme. May take me some time 
> though at the moment. 

Thanks for the additional details. Indeed in this case, the best option
would be to have our defconfig build a uboot that works on QSPI, or
eMMC, and provide the instructions on how to reflash the QSPI or eMMC.

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-08  8:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-30 22:31 [Buildroot] [PATCH 1/1] configs/rzboard_v2L_defconfig: new defconfig kilian.zinnecker--- via buildroot
2024-02-05 14:41 ` Giulio Benetti
2024-02-05 14:45   ` Giulio Benetti
2024-02-07 19:43 ` Thomas Petazzoni via buildroot
2024-02-07 23:22   ` kilian.zinnecker--- via buildroot
2024-02-08  8:02     ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox