* [Buildroot] Requirements for QML in RPi4
@ 2020-01-27 15:01 Andrea Simeoni
2020-01-27 15:41 ` Peter Seiderer
0 siblings, 1 reply; 6+ messages in thread
From: Andrea Simeoni @ 2020-01-27 15:01 UTC (permalink / raw)
To: buildroot
After several years I'm going to give another try to Buildroot :-)
This time I built an environment for RPi4+Qt5.
Surely I missed some packages because if I try to run a QML application I
got the following error:
> Could not find DRM device!
> Aborted
Instead a Qt5 console application seems to run fine.
I attach my .config file. Hope you can give me some hints!
Best regards
Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200127/b6a67040/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config
Type: application/octet-stream
Size: 109442 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200127/b6a67040/attachment.obj>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Requirements for QML in RPi4
2020-01-27 15:01 [Buildroot] Requirements for QML in RPi4 Andrea Simeoni
@ 2020-01-27 15:41 ` Peter Seiderer
[not found] ` <CAPmASevGW-0BY78ETy=p+c3p_cOnWG0DO3d8FV=+U6ij9DynpQ@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Peter Seiderer @ 2020-01-27 15:41 UTC (permalink / raw)
To: buildroot
Hello Andrea,
On Mon, 27 Jan 2020 16:01:17 +0100, Andrea Simeoni <andreasimeoni73@gmail.com> wrote:
> After several years I'm going to give another try to Buildroot :-)
> This time I built an environment for RPi4+Qt5.
> Surely I missed some packages because if I try to run a QML application I
> got the following error:
>
> > Could not find DRM device!
> > Aborted
>
> Instead a Qt5 console application seems to run fine.
>
> I attach my .config file. Hope you can give me some hints!
You seem to have a RPi4-64bit config, trying to run
mesa vc4?
Sorry, not owning an RPi4 for testing, but for the RPi3 you
need to enable the right Device-Tree-Overlay in your config.txt,
e.g. (see the following two links for earlier discussion [1], [2]):
dtoverlay=vc4-fkms-v3d
This may or may not work as RPi3 is VC4 and RPi4 is VC6 ([3]),
but Gentoo claims to have RPi4 running with mesa ([4], [5])...
Alternatively your can try RPi4-32bit and enable rpi-userland/BR2_PACKAGE_RPI_USERLAND
instead of mesa...
Regards,
Peter
[1] http://lists.busybox.net/pipermail/buildroot/2019-October/264561.html
[2] http://lists.busybox.net/pipermail/buildroot/2019-November/265133.html
[3] http://lists.busybox.net/pipermail/buildroot/2019-November/265139.html
[4] http://lists.busybox.net/pipermail/buildroot/2019-November/265153.html
[5] https://github.com/sakaki-/gentoo-on-rpi-64bit
> Best regards
> Andrea
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Requirements for QML in RPi4
[not found] ` <CAPmASevGW-0BY78ETy=p+c3p_cOnWG0DO3d8FV=+U6ij9DynpQ@mail.gmail.com>
@ 2020-01-28 7:29 ` Peter Seiderer
[not found] ` <CAPmASetzc-+RCHJT5sqM4QjO-bDfbTuAsJizB26f-5=skjJFbA@mail.gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Peter Seiderer @ 2020-01-28 7:29 UTC (permalink / raw)
To: buildroot
Re-add CC: buildroot at busybox.net
On Mon, 27 Jan 2020 17:38:25 +0100, Andrea Simeoni <andreasimeoni73@gmail.com> wrote:
> > You seem to have a RPi4-64bit config, trying to run
> > mesa vc4?
> >
>
> IIRC it was needed to get accelerated GPU.
>
>
>
> > dtoverlay=vc4-fkms-v3d
> >
>
> Unfortunately it doesn't work. I read the links, and the situation seems a
> bit confusing.
>
>
> Alternatively your can try RPi4-32bit and enable
> > rpi-userland/BR2_PACKAGE_RPI_USERLAND
> > instead of mesa...
> >
>
> I don't need 64-bit but I need QML+GPU. I'm going to try RPi4+32bit w/
> userland.
> I hope it will works! I will report the results.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Requirements for QML in RPi4
[not found] ` <CAPmASetzc-+RCHJT5sqM4QjO-bDfbTuAsJizB26f-5=skjJFbA@mail.gmail.com>
@ 2020-01-28 7:38 ` Peter Seiderer
2020-02-04 14:57 ` Peter Seiderer
0 siblings, 1 reply; 6+ messages in thread
From: Peter Seiderer @ 2020-01-28 7:38 UTC (permalink / raw)
To: buildroot
Hello Andrea,
please keep buildroot at busybox.net on CC
On Mon, 27 Jan 2020 21:11:21 +0100, Andrea Simeoni <andreasimeoni73@gmail.com> wrote:
> I rebuilt the image with the attached config file.
> Now I don't get the error about DRM but... nothing happens. I run a QML
> application (the default example) but on the screen I can still read the
> console output.
Thats bad....and sorry no more help from my side as I have not (yet) an
RPi4 hardware to test myself ;-)
Regards,
Peter
>
> Here the modules loaded:
>
> # lsmod
> Module Size Used by
> evdev 24576 1
> joydev 20480 0
> brcmfmac 315392 0
> brcmutil 16384 1 brcmfmac
> sha256_generic 20480 0
> bcm2835_codec 36864 0
> bcm2835_v4l2 45056 0
> v4l2_mem2mem 24576 1 bcm2835_codec
> cfg80211 610304 1 brcmfmac
> bcm2835_mmal_vchiq 32768 2 bcm2835_codec,bcm2835_v4l2
> raspberrypi_hwmon 16384 0
> hwmon 16384 1 raspberrypi_hwmon
> videobuf2_dma_contig 20480 1 bcm2835_codec
> rfkill 28672 1 cfg80211
> v4l2_common 16384 1 bcm2835_v4l2
> videobuf2_vmalloc 16384 1 bcm2835_v4l2
> videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc
> videobuf2_v4l2 24576 3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
> videobuf2_common 45056 4
> bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
> videodev 200704 6
> bcm2835_codec,v4l2_common,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
> media 36864 3 bcm2835_codec,videodev,v4l2_mem2mem
> vc_sm_cma 36864 1 bcm2835_mmal_vchiq
> rpivid_mem 16384 0
> fixed 16384 0
> rpi_ft5406 16384 0
> rpi_backlight 16384 0
> uio_pdrv_genirq 16384 0
> uio 20480 1 uio_pdrv_genirq
> sch_fq_codel 20480 6
> ipv6 458752 24
>
>
> Il giorno lun 27 gen 2020 alle ore 17:38 Andrea Simeoni <
> andreasimeoni73 at gmail.com> ha scritto:
>
> >
> > You seem to have a RPi4-64bit config, trying to run
> >> mesa vc4?
> >>
> >
> > IIRC it was needed to get accelerated GPU.
> >
> >
> >
> >> dtoverlay=vc4-fkms-v3d
> >>
> >
> > Unfortunately it doesn't work. I read the links, and the situation seems a
> > bit confusing.
> >
> >
> > Alternatively your can try RPi4-32bit and enable
> >> rpi-userland/BR2_PACKAGE_RPI_USERLAND
> >> instead of mesa...
> >>
> >
> > I don't need 64-bit but I need QML+GPU. I'm going to try RPi4+32bit w/
> > userland.
> > I hope it will works! I will report the results.
> >
> >
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Requirements for QML in RPi4
2020-01-28 7:38 ` Peter Seiderer
@ 2020-02-04 14:57 ` Peter Seiderer
2020-02-06 16:54 ` Andrea Simeoni
0 siblings, 1 reply; 6+ messages in thread
From: Peter Seiderer @ 2020-02-04 14:57 UTC (permalink / raw)
To: buildroot
Hello Andrea,
On Tue, 28 Jan 2020 08:38:24 +0100, Peter Seiderer <ps.report@gmx.net> wrote:
> Hello Andrea,
>
> please keep buildroot at busybox.net on CC
>
> On Mon, 27 Jan 2020 21:11:21 +0100, Andrea Simeoni <andreasimeoni73@gmail.com> wrote:
>
> > I rebuilt the image with the attached config file.
> > Now I don't get the error about DRM but... nothing happens. I run a QML
> > application (the default example) but on the screen I can still read the
> > console output.
>
> Thats bad....and sorry no more help from my side as I have not (yet) an
> RPi4 hardware to test myself ;-)
Update on this one, successful RPi4 64bit with Qt/Qml application run
using the following patches and 'dtoverlay=vc4-fkms-v3d',
see [1], [2], [3]...
Regards,
Peter
[1] http://lists.busybox.net/pipermail/buildroot/2020-February/273163.html
[2] https://patchwork.ozlabs.org/patch/1233373
[3] https://patchwork.ozlabs.org/patch/1233372
>
> Regards,
> Peter
>
> >
> > Here the modules loaded:
> >
> > # lsmod
> > Module Size Used by
> > evdev 24576 1
> > joydev 20480 0
> > brcmfmac 315392 0
> > brcmutil 16384 1 brcmfmac
> > sha256_generic 20480 0
> > bcm2835_codec 36864 0
> > bcm2835_v4l2 45056 0
> > v4l2_mem2mem 24576 1 bcm2835_codec
> > cfg80211 610304 1 brcmfmac
> > bcm2835_mmal_vchiq 32768 2 bcm2835_codec,bcm2835_v4l2
> > raspberrypi_hwmon 16384 0
> > hwmon 16384 1 raspberrypi_hwmon
> > videobuf2_dma_contig 20480 1 bcm2835_codec
> > rfkill 28672 1 cfg80211
> > v4l2_common 16384 1 bcm2835_v4l2
> > videobuf2_vmalloc 16384 1 bcm2835_v4l2
> > videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc
> > videobuf2_v4l2 24576 3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
> > videobuf2_common 45056 4
> > bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
> > videodev 200704 6
> > bcm2835_codec,v4l2_common,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
> > media 36864 3 bcm2835_codec,videodev,v4l2_mem2mem
> > vc_sm_cma 36864 1 bcm2835_mmal_vchiq
> > rpivid_mem 16384 0
> > fixed 16384 0
> > rpi_ft5406 16384 0
> > rpi_backlight 16384 0
> > uio_pdrv_genirq 16384 0
> > uio 20480 1 uio_pdrv_genirq
> > sch_fq_codel 20480 6
> > ipv6 458752 24
> >
> >
> > Il giorno lun 27 gen 2020 alle ore 17:38 Andrea Simeoni <
> > andreasimeoni73 at gmail.com> ha scritto:
> >
> > >
> > > You seem to have a RPi4-64bit config, trying to run
> > >> mesa vc4?
> > >>
> > >
> > > IIRC it was needed to get accelerated GPU.
> > >
> > >
> > >
> > >> dtoverlay=vc4-fkms-v3d
> > >>
> > >
> > > Unfortunately it doesn't work. I read the links, and the situation seems a
> > > bit confusing.
> > >
> > >
> > > Alternatively your can try RPi4-32bit and enable
> > >> rpi-userland/BR2_PACKAGE_RPI_USERLAND
> > >> instead of mesa...
> > >>
> > >
> > > I don't need 64-bit but I need QML+GPU. I'm going to try RPi4+32bit w/
> > > userland.
> > > I hope it will works! I will report the results.
> > >
> > >
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Requirements for QML in RPi4
2020-02-04 14:57 ` Peter Seiderer
@ 2020-02-06 16:54 ` Andrea Simeoni
0 siblings, 0 replies; 6+ messages in thread
From: Andrea Simeoni @ 2020-02-06 16:54 UTC (permalink / raw)
To: buildroot
Hi Peter,
Il giorno mar 4 feb 2020 alle ore 15:57 Peter Seiderer <ps.report@gmx.net>
ha scritto:
>
> Update on this one, successful RPi4 64bit with Qt/Qml application run
> using the following patches and 'dtoverlay=vc4-fkms-v3d',
> see [1], [2], [3]...
>
That's great!!! Tonight I will try to build it again.
Thanks!
Best regards
Andrea S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200206/5c14f56f/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-02-06 16:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-27 15:01 [Buildroot] Requirements for QML in RPi4 Andrea Simeoni
2020-01-27 15:41 ` Peter Seiderer
[not found] ` <CAPmASevGW-0BY78ETy=p+c3p_cOnWG0DO3d8FV=+U6ij9DynpQ@mail.gmail.com>
2020-01-28 7:29 ` Peter Seiderer
[not found] ` <CAPmASetzc-+RCHJT5sqM4QjO-bDfbTuAsJizB26f-5=skjJFbA@mail.gmail.com>
2020-01-28 7:38 ` Peter Seiderer
2020-02-04 14:57 ` Peter Seiderer
2020-02-06 16:54 ` Andrea Simeoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox