* [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support
@ 2023-03-15 9:17 Javad Rahimi
2023-03-15 9:17 ` [Buildroot] [PATCH 2/3] board/orangepi/orangepi-pc2: add readme.txt Javad Rahimi
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Javad Rahimi @ 2023-03-15 9:17 UTC (permalink / raw)
To: buildroot; +Cc: Javad Rahimi
This patch adds requried configuration for OrangePI PC2 board.
It was supproted before, however due to problems in
building Arm Trusted PLatform, it was removed in
commit "eeede611f81d8f83b72e4a6671cd7d1e46b266b0"
Signed-off-by: Javad Rahimi <javad321javad@gmail.com>
---
configs/orangepi_pc2_defconfig | 36 ++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 configs/orangepi_pc2_defconfig
diff --git a/configs/orangepi_pc2_defconfig b/configs/orangepi_pc2_defconfig
new file mode 100644
index 0000000000..3de067ae54
--- /dev/null
+++ b/configs/orangepi_pc2_defconfig
@@ -0,0 +1,36 @@
+BR2_aarch64=y
+BR2_ARM_FPU_VFPV4=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_16=y
+BR2_TARGET_GENERIC_ISSUE="Welcome to Orangepi PC2"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/orangepi/common/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BINARIES_DIR)/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16.1"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-h5-orangepi-pc2"
+BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME=y
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="128M"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_a64"
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.01"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="orangepi_pc2"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
+BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null"
+BR2_PACKAGE_HOST_GENIMAGE=y
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/3] board/orangepi/orangepi-pc2: add readme.txt
2023-03-15 9:17 [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support Javad Rahimi
@ 2023-03-15 9:17 ` Javad Rahimi
2023-03-15 9:17 ` [Buildroot] [PATCH 3/3] Developers: add new maintainer for OrangePi PC2 Javad Rahimi
2023-08-09 21:38 ` [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support Thomas Petazzoni via buildroot
2 siblings, 0 replies; 7+ messages in thread
From: Javad Rahimi @ 2023-03-15 9:17 UTC (permalink / raw)
To: buildroot; +Cc: Javad Rahimi
Add readme.txt for the OrangePi PC2 board.
Signed-off-by: Javad Rahimi <javad321javad@gmail.com>
---
board/orangepi/orangepi-pc2/readme.txt | 37 ++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 board/orangepi/orangepi-pc2/readme.txt
diff --git a/board/orangepi/orangepi-pc2/readme.txt b/board/orangepi/orangepi-pc2/readme.txt
new file mode 100644
index 0000000000..6c699244ce
--- /dev/null
+++ b/board/orangepi/orangepi-pc2/readme.txt
@@ -0,0 +1,37 @@
+Intro
+=====
+
+This default configuration will allow you to start experimenting with the
+buildroot environment for the Orangepi PC2. With the current configuration
+it will bring-up the board, and allow access through the serial console.
+
+Orangepi PC2 link:
+http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-PC-2.html
+
+Sunxi Wiki link:
+https://linux-sunxi.org/Xunlong_Orange_Pi_PC_2
+
+This configuration uses U-Boot mainline and kernel mainline.
+
+How to build
+============
+
+ $ make orangepi_pc2_defconfig
+ $ make
+
+Note: you will need access to the internet to download the required
+sources.
+
+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
+ $ sudo sync
+
+Insert the micro SDcard in your Orangepi PC2 and power it up. The console
+is on the serial line, 115200 8N1.
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 3/3] Developers: add new maintainer for OrangePi PC2
2023-03-15 9:17 [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support Javad Rahimi
2023-03-15 9:17 ` [Buildroot] [PATCH 2/3] board/orangepi/orangepi-pc2: add readme.txt Javad Rahimi
@ 2023-03-15 9:17 ` Javad Rahimi
2023-08-09 21:38 ` [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support Thomas Petazzoni via buildroot
2 siblings, 0 replies; 7+ messages in thread
From: Javad Rahimi @ 2023-03-15 9:17 UTC (permalink / raw)
To: buildroot; +Cc: Javad Rahimi
Signed-off-by: Javad Rahimi <javad321javad@gmail.com>
---
DEVELOPERS | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index b6d288c54f..42001cf4d7 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1478,6 +1478,10 @@ F: package/quota/
N: Jason Pruitt <jrspruitt@gmail.com>
F: package/librtlsdr/
+N: Javad Rahimi <javad321javad@gmail.com>
+F: board/orangepi/orangepi-pc2
+F: configs/orangepi_pc2_defconfig
+
N: Jean Burgat <jeanburgat33@gmail.com>
F: package/openfpgaloader/
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support
2023-03-15 9:17 [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support Javad Rahimi
2023-03-15 9:17 ` [Buildroot] [PATCH 2/3] board/orangepi/orangepi-pc2: add readme.txt Javad Rahimi
2023-03-15 9:17 ` [Buildroot] [PATCH 3/3] Developers: add new maintainer for OrangePi PC2 Javad Rahimi
@ 2023-08-09 21:38 ` Thomas Petazzoni via buildroot
2023-08-14 6:07 ` Javad Rahimipetroudi
[not found] ` <CAL245auhJf41LJk6b38DSqWVOSVM5qi+aLdOwNDmCuwab7fEXQ@mail.gmail.com>
2 siblings, 2 replies; 7+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-09 21:38 UTC (permalink / raw)
To: Javad Rahimi; +Cc: buildroot
Hello Javad,
On Wed, 15 Mar 2023 12:47:27 +0330
Javad Rahimi <javad321javad@gmail.com> wrote:
> This patch adds requried configuration for OrangePI PC2 board.
> It was supproted before, however due to problems in
> building Arm Trusted PLatform, it was removed in
> commit "eeede611f81d8f83b72e4a6671cd7d1e46b266b0"
>
> Signed-off-by: Javad Rahimi <javad321javad@gmail.com>
> ---
> configs/orangepi_pc2_defconfig | 36 ++++++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 configs/orangepi_pc2_defconfig
Sorry for the long delay in getting back to you. I have applied your
patch series, but after squashing the 3 patches together in one commit.
Splitting it into 3 didn't make sense in this case.
However, could you work on updating the version of the components in
the defconfig? Building Linux 5.16, TF-A 2.5 and U-Boot 2022.01 is
quite old. Could you submit a followed-up that updates this defconfig
to newer Linux, newer TF-A and newer U-Boot? Please make sure to base
your patch on our "next" branch, as I merged your contribution into
this "next" branch.
https://gitlab.com/buildroot.org/buildroot/-/commit/930a6d9470efc5c46bcff358947c050540555a6c
Thanks a lot!
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] 7+ messages in thread
* Re: [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support
2023-08-09 21:38 ` [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support Thomas Petazzoni via buildroot
@ 2023-08-14 6:07 ` Javad Rahimipetroudi
[not found] ` <CAL245auhJf41LJk6b38DSqWVOSVM5qi+aLdOwNDmCuwab7fEXQ@mail.gmail.com>
1 sibling, 0 replies; 7+ messages in thread
From: Javad Rahimipetroudi @ 2023-08-14 6:07 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
Hi Thomas,
On Thu, Aug 10, 2023 at 1:08 AM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello Javad,
>
> On Wed, 15 Mar 2023 12:47:27 +0330
> Javad Rahimi <javad321javad@gmail.com> wrote:
>
> > This patch adds requried configuration for OrangePI PC2 board.
> > It was supproted before, however due to problems in
> > building Arm Trusted PLatform, it was removed in
> > commit "eeede611f81d8f83b72e4a6671cd7d1e46b266b0"
> >
> > Signed-off-by: Javad Rahimi <javad321javad@gmail.com>
> > ---
> > configs/orangepi_pc2_defconfig | 36 ++++++++++++++++++++++++++++++++++
> > 1 file changed, 36 insertions(+)
> > create mode 100644 configs/orangepi_pc2_defconfig
>
> Sorry for the long delay in getting back to you. I have applied your
> patch series, but after squashing the 3 patches together in one commit.
> Splitting it into 3 didn't make sense in this case.
>
> However, could you work on updating the version of the components in
> the defconfig? Building Linux 5.16, TF-A 2.5 and U-Boot 2022.01 is
> quite old. Could you submit a followed-up that updates this defconfig
> to newer Linux, newer TF-A and newer U-Boot? Please make sure to base
> your patch on our "next" branch, as I merged your contribution into
> this "next" branch.
>
> https://gitlab.com/buildroot.org/buildroot/-/commit/930a6d9470efc5c46bcff358947c050540555a6c
>
Sure, I have updated the kernel, TF-A and Uboot.
However, I have faced a problem with "/dev" management after upgrading
the packages. When it is in "Dynamic using devtmpfs only" mode, no
kernel module is loaded after boot. But in "Dynamic using devtmpfs +
mdev" everything works fine. Can I put it in this mode?
> Thanks a lot!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Thanks,
Javad
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support
[not found] ` <CAL245auhJf41LJk6b38DSqWVOSVM5qi+aLdOwNDmCuwab7fEXQ@mail.gmail.com>
@ 2023-08-17 10:25 ` Thomas Petazzoni via buildroot
2023-08-17 13:19 ` Javad Rahimipetroudi
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-17 10:25 UTC (permalink / raw)
To: Javad Rahimipetroudi; +Cc: buildroot
On Mon, 14 Aug 2023 09:33:59 +0330
Javad Rahimipetroudi <javad321javad@gmail.com> wrote:
> Sure, I have updated the kernel, TF-A and Uboot.
> However, I have faced a problem with "/dev" management after upgrading
> the packages. When it is in "Dynamic using devtmpfs only" mode, no
> kernel module is loaded after boot. But in "Dynamic using devtmpfs +
> mdev" everything works fine. Can I put it in this mode?
Well, this is normal, devtmpfs is only a virtual filesystem that
creates entries in /dev. It is not involved in automatic module
loading. If you want automatic module loading, you need either mdev or
udev/eudev. And it's indeed fine to enable mdev in defconfigs that need
it.
Best regards,
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] 7+ messages in thread
* Re: [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support
2023-08-17 10:25 ` Thomas Petazzoni via buildroot
@ 2023-08-17 13:19 ` Javad Rahimipetroudi
0 siblings, 0 replies; 7+ messages in thread
From: Javad Rahimipetroudi @ 2023-08-17 13:19 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
On Thu, Aug 17, 2023 at 1:55 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Mon, 14 Aug 2023 09:33:59 +0330
> Javad Rahimipetroudi <javad321javad@gmail.com> wrote:
>
> > Sure, I have updated the kernel, TF-A and Uboot.
> > However, I have faced a problem with "/dev" management after upgrading
> > the packages. When it is in "Dynamic using devtmpfs only" mode, no
> > kernel module is loaded after boot. But in "Dynamic using devtmpfs +
> > mdev" everything works fine. Can I put it in this mode?
>
> Well, this is normal, devtmpfs is only a virtual filesystem that
> creates entries in /dev. It is not involved in automatic module
> loading. If you want automatic module loading, you need either mdev or
> udev/eudev. And it's indeed fine to enable mdev in defconfigs that need
> it.
Thanks a lot,
I have added it to the defconfig and committed the patches.
Best regards,
Javad
>
> Best regards,
>
> 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] 7+ messages in thread
end of thread, other threads:[~2023-08-17 13:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-15 9:17 [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support Javad Rahimi
2023-03-15 9:17 ` [Buildroot] [PATCH 2/3] board/orangepi/orangepi-pc2: add readme.txt Javad Rahimi
2023-03-15 9:17 ` [Buildroot] [PATCH 3/3] Developers: add new maintainer for OrangePi PC2 Javad Rahimi
2023-08-09 21:38 ` [Buildroot] [PATCH 1/3] configs/orangepi_pc2: add board support Thomas Petazzoni via buildroot
2023-08-14 6:07 ` Javad Rahimipetroudi
[not found] ` <CAL245auhJf41LJk6b38DSqWVOSVM5qi+aLdOwNDmCuwab7fEXQ@mail.gmail.com>
2023-08-17 10:25 ` Thomas Petazzoni via buildroot
2023-08-17 13:19 ` Javad Rahimipetroudi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox