* [Buildroot] [PATCH v2 1/1] package/rpi-userland: add support for aarch64 build
@ 2022-03-07 22:42 Christian Stewart via buildroot
2022-03-07 22:54 ` Peter Seiderer
0 siblings, 1 reply; 5+ messages in thread
From: Christian Stewart via buildroot @ 2022-03-07 22:42 UTC (permalink / raw)
To: buildroot; +Cc: Christian Stewart, Yann E . MORIN, Thomas Petazzoni
Tested on Pi4 Model B (aarch64).
Note: rpi-userland and upstream rpi os now support arm64.
Signed-off-by: Christian Stewart <christian@paral.in>
---
package/rpi-userland/Config.in | 4 ++--
package/rpi-userland/rpi-userland.mk | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/rpi-userland/Config.in b/package/rpi-userland/Config.in
index 342faf26e3..81f3588822 100644
--- a/package/rpi-userland/Config.in
+++ b/package/rpi-userland/Config.in
@@ -1,6 +1,6 @@
config BR2_PACKAGE_RPI_USERLAND
bool "rpi-userland"
- depends on BR2_arm
+ depends on BR2_arm || BR2_aarch64
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
@@ -40,6 +40,6 @@ config BR2_PACKAGE_RPI_USERLAND_HELLO
endif
comment "rpi-userland needs a toolchain w/ C++, threads, dynamic library"
- depends on BR2_arm
+ depends on BR2_arm || BR2_aarch64
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_STATIC_LIBS
diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk
index 84050b6df3..8a05bf2b51 100644
--- a/package/rpi-userland/rpi-userland.mk
+++ b/package/rpi-userland/rpi-userland.mk
@@ -13,6 +13,10 @@ RPI_USERLAND_CONF_OPTS = -DVMCS_INSTALL_PREFIX=/usr
RPI_USERLAND_PROVIDES = libegl libgles libopenmax libopenvg
+ifeq ($(BR2_aarch64),y)
+RPI_USERLAND_CONF_OPTS += -DARM64=ON
+endif
+
ifeq ($(BR2_PACKAGE_RPI_USERLAND_HELLO),y)
RPI_USERLAND_CONF_OPTS += -DALL_APPS=ON
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/rpi-userland: add support for aarch64 build
2022-03-07 22:42 [Buildroot] [PATCH v2 1/1] package/rpi-userland: add support for aarch64 build Christian Stewart via buildroot
@ 2022-03-07 22:54 ` Peter Seiderer
2022-03-07 23:03 ` Christian Stewart via buildroot
0 siblings, 1 reply; 5+ messages in thread
From: Peter Seiderer @ 2022-03-07 22:54 UTC (permalink / raw)
To: Christian Stewart via buildroot; +Cc: Yann E . MORIN, Thomas Petazzoni
Hello Christian,
On Mon, 7 Mar 2022 14:42:26 -0800, Christian Stewart via buildroot <buildroot@buildroot.org> wrote:
> Tested on Pi4 Model B (aarch64).
>
> Note: rpi-userland and upstream rpi os now support arm64.
All issues/questions solved since discussion [1], [2] about
missing libraries/features?
As far as I know rpi os graphic support is based on mesa3d v3d/vc4
instead of rpi-userland libraries?
Regards,
Peter
[1] http://lists.busybox.net/pipermail/buildroot/2020-June/587538.html
[2] http://lists.busybox.net/pipermail/buildroot/2021-October/626080.html
>
> Signed-off-by: Christian Stewart <christian@paral.in>
> ---
> package/rpi-userland/Config.in | 4 ++--
> package/rpi-userland/rpi-userland.mk | 4 ++++
> 2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/package/rpi-userland/Config.in b/package/rpi-userland/Config.in
> index 342faf26e3..81f3588822 100644
> --- a/package/rpi-userland/Config.in
> +++ b/package/rpi-userland/Config.in
> @@ -1,6 +1,6 @@
> config BR2_PACKAGE_RPI_USERLAND
> bool "rpi-userland"
> - depends on BR2_arm
> + depends on BR2_arm || BR2_aarch64
> depends on BR2_INSTALL_LIBSTDCPP
> depends on BR2_TOOLCHAIN_HAS_THREADS
> depends on !BR2_STATIC_LIBS
> @@ -40,6 +40,6 @@ config BR2_PACKAGE_RPI_USERLAND_HELLO
> endif
>
> comment "rpi-userland needs a toolchain w/ C++, threads, dynamic library"
> - depends on BR2_arm
> + depends on BR2_arm || BR2_aarch64
> depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
> BR2_STATIC_LIBS
> diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk
> index 84050b6df3..8a05bf2b51 100644
> --- a/package/rpi-userland/rpi-userland.mk
> +++ b/package/rpi-userland/rpi-userland.mk
> @@ -13,6 +13,10 @@ RPI_USERLAND_CONF_OPTS = -DVMCS_INSTALL_PREFIX=/usr
>
> RPI_USERLAND_PROVIDES = libegl libgles libopenmax libopenvg
>
> +ifeq ($(BR2_aarch64),y)
> +RPI_USERLAND_CONF_OPTS += -DARM64=ON
> +endif
> +
> ifeq ($(BR2_PACKAGE_RPI_USERLAND_HELLO),y)
>
> RPI_USERLAND_CONF_OPTS += -DALL_APPS=ON
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/rpi-userland: add support for aarch64 build
2022-03-07 22:54 ` Peter Seiderer
@ 2022-03-07 23:03 ` Christian Stewart via buildroot
2022-03-07 23:52 ` Charles Steinkuehler
2022-03-08 20:59 ` Peter Seiderer
0 siblings, 2 replies; 5+ messages in thread
From: Christian Stewart via buildroot @ 2022-03-07 23:03 UTC (permalink / raw)
To: Peter Seiderer
Cc: Christian Stewart, Yann E . MORIN, Thomas Petazzoni,
Christian Stewart via buildroot
Hi Peter,
You're probably right about that:
On Mon, Mar 7, 2022 at 2:54 PM Peter Seiderer <ps.report@gmx.net> wrote:
> On Mon, 7 Mar 2022 14:42:26 -0800, Christian Stewart via buildroot <buildroot@buildroot.org> wrote:
>
> > Tested on Pi4 Model B (aarch64).
> >
> > Note: rpi-userland and upstream rpi os now support arm64.
>
> All issues/questions solved since discussion [1], [2] about
> missing libraries/features?
>
> As far as I know rpi os graphic support is based on mesa3d v3d/vc4
> instead of rpi-userland libraries?
I use this package on arm64 for vcgencmd (videocore) and other commands,
however I have not verified that graphics work correctly, and you're
most likely correct,
the arm64 stack probably is using mesa3d vc4. I boot the pi4 64 bit with:
arm_64bit=1
dtoverlay=vc4-fkms-v3d
So this is using vc4, as you've mentioned here.
I suppose to fix this patch, it needs something like:
ifeq ($(BR2_aarch64),y)
RPI_USERLAND_CONF_OPTS += -DARM64=ON
else
RPI_USERLAND_PROVIDES = libegl libgles libopenmax libopenvg
endif
Is this correct?
Thanks & best,
Christian Stewart
> Regards,
> Peter
>
> [1] http://lists.busybox.net/pipermail/buildroot/2020-June/587538.html
> [2] http://lists.busybox.net/pipermail/buildroot/2021-October/626080.html
PS: I've noticed that my e-mail / name is wrong again:
Christian Stewart via buildroot <buildroot@buildroot.org>
is this on your end or mine?
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/rpi-userland: add support for aarch64 build
2022-03-07 23:03 ` Christian Stewart via buildroot
@ 2022-03-07 23:52 ` Charles Steinkuehler
2022-03-08 20:59 ` Peter Seiderer
1 sibling, 0 replies; 5+ messages in thread
From: Charles Steinkuehler @ 2022-03-07 23:52 UTC (permalink / raw)
To: buildroot
On 3/7/2022 5:03 PM, Christian Stewart via buildroot wrote:
> Hi Peter,
>
> You're probably right about that:
>
> On Mon, Mar 7, 2022 at 2:54 PM Peter Seiderer <ps.report@gmx.net> wrote:
>> On Mon, 7 Mar 2022 14:42:26 -0800, Christian Stewart via buildroot <buildroot@buildroot.org> wrote:
>>
>>> Tested on Pi4 Model B (aarch64).
>>>
>>> Note: rpi-userland and upstream rpi os now support arm64.
>>
>> All issues/questions solved since discussion [1], [2] about
>> missing libraries/features?
>>
>> As far as I know rpi os graphic support is based on mesa3d v3d/vc4
>> instead of rpi-userland libraries?
>
> I use this package on arm64 for vcgencmd (videocore) and other commands,
>
> however I have not verified that graphics work correctly, and you're
> most likely correct,
>
> the arm64 stack probably is using mesa3d vc4. I boot the pi4 64 bit with:
>
> arm_64bit=1
> dtoverlay=vc4-fkms-v3d
I am using the RPi 4 / CM4 and accelerated graphics are working using
the open source stack (vc4-kms-v3d) as tested with the kmscube app and
Buildroot 2022.02-rc3.
--
Charles Steinkuehler
charles@steinkuehler.net
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/rpi-userland: add support for aarch64 build
2022-03-07 23:03 ` Christian Stewart via buildroot
2022-03-07 23:52 ` Charles Steinkuehler
@ 2022-03-08 20:59 ` Peter Seiderer
1 sibling, 0 replies; 5+ messages in thread
From: Peter Seiderer @ 2022-03-08 20:59 UTC (permalink / raw)
To: buildroot; +Cc: Yann E . MORIN, Thomas Petazzoni
Hello Christian,
On Mon, 7 Mar 2022 15:03:25 -0800, Christian Stewart via buildroot <buildroot@buildroot.org> wrote:
> Hi Peter,
>
> You're probably right about that:
>
> On Mon, Mar 7, 2022 at 2:54 PM Peter Seiderer <ps.report@gmx.net> wrote:
> > On Mon, 7 Mar 2022 14:42:26 -0800, Christian Stewart via buildroot <buildroot@buildroot.org> wrote:
> >
> > > Tested on Pi4 Model B (aarch64).
> > >
> > > Note: rpi-userland and upstream rpi os now support arm64.
> >
> > All issues/questions solved since discussion [1], [2] about
> > missing libraries/features?
> >
> > As far as I know rpi os graphic support is based on mesa3d v3d/vc4
> > instead of rpi-userland libraries?
>
> I use this package on arm64 for vcgencmd (videocore) and other commands,
>
> however I have not verified that graphics work correctly, and you're
> most likely correct,
>
> the arm64 stack probably is using mesa3d vc4. I boot the pi4 64 bit with:
>
> arm_64bit=1
> dtoverlay=vc4-fkms-v3d
>
> So this is using vc4, as you've mentioned here.
>
> I suppose to fix this patch, it needs something like:
>
> ifeq ($(BR2_aarch64),y)
> RPI_USERLAND_CONF_OPTS += -DARM64=ON
> else
> RPI_USERLAND_PROVIDES = libegl libgles libopenmax libopenvg
> endif
>
> Is this correct?
Did not (yet/lately) check if really all the above libs are disabled
with the ARM64 feature, but at least a starting point for the aarch64
use case....
But needs a corresponding aarch64 handling in package/rpi-userland/Config.in
too (select BR2_PACKAGE_HAS_LIBEGL, select BR2_PACKAGE_HAS_LIBGLES
select BR2_PACKAGE_HAS_LIBOPENVG, select BR2_PACKAGE_HAS_LIBOPENMAX, ...)
and maybe the help text needs to be adjusted...
>
> Thanks & best,
> Christian Stewart
>
> > Regards,
> > Peter
> >
> > [1] http://lists.busybox.net/pipermail/buildroot/2020-June/587538.html
> > [2] http://lists.busybox.net/pipermail/buildroot/2021-October/626080.html
>
> PS: I've noticed that my e-mail / name is wrong again:
>
> Christian Stewart via buildroot <buildroot@buildroot.org>
>
> is this on your end or mine?
Maybe both, I got your original email with
From: Christian Stewart via buildroot <buildroot@buildroot.org>
CC: Christian Stewart <christian@paral.in>, ...
Reply-To: Christian Stewart <christian@paral.in>
My email client (Claws Mail) seems to ignore the Reply-To field leading to
To: Christian Stewart via buildroot <buildroot@buildroot.org>
CC: Christian Stewart <christian@paral.in>
CC: ...
But the copy from the mailing list I receive is missing the
CC: Christian Stewart <christian@paral.in>
but keeps the other CC recipients...
Regards,
Peter
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-03-08 20:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-07 22:42 [Buildroot] [PATCH v2 1/1] package/rpi-userland: add support for aarch64 build Christian Stewart via buildroot
2022-03-07 22:54 ` Peter Seiderer
2022-03-07 23:03 ` Christian Stewart via buildroot
2022-03-07 23:52 ` Charles Steinkuehler
2022-03-08 20:59 ` Peter Seiderer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox