Message ID | 54EFA16B-27F2-40F4-8FF0-F59BC65BF8AB@inskydata.com |
---|---|
State | Under Review |
Headers | show |
Series | [bug#40835] Update to use panfrost for graphics hardware acceleration | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
On 2020-04-24, Brian Woodcox wrote: > These patches add the panfrost graphics acceleration for the Pinebook > Pro laptop. Thanks! Been working with the pinebook pro for some months now running guix, and it's great to see others making progress on it. :) > You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. > > I changed mine from > > FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs > > to > > FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip The u-boot-pinebook-pro-rk3399 on guix master works correctly as well as the one from wip-pinebook-pro (should be the same). This seems like your u-boot does not contain the correct value for "fdtfile". It should be rockchip/rk3399-pinebook-pro.dtb. Are you actually running an older u-boot? Did you at any point run saveenv from u-boot, which saves the old u-boot configuration with an inappropriate fdtfile variable? It would be better to split up your patches into a separate patch series, it is hard to review as one single large patch changing many things. A few targeted comments below... > diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm > index 01241cd88e..65fe389927 100644 > --- a/gnu/packages/gl.scm > +++ b/gnu/packages/gl.scm > @@ -293,7 +294,7 @@ also known as DXTn or DXTC) for Mesa.") > '(,@(match (%current-system) > ((or "armhf-linux" "aarch64-linux") > ;; TODO: Fix svga driver for aarch64 and armhf. > - '("-Dgallium-drivers=etnaviv,freedreno,nouveau,r300,r600,swrast,tegra,v3d,vc4,virgl")) > + '("-Dgallium-drivers=etnaviv,freedreno,kmsro,lima,nouveau,panfrost,r300,r600,swrast,tegra,v3d,vc4,virgl")) > (_ > '("-Dgallium-drivers=iris,nouveau,r300,r600,radeonsi,svga,swrast,virgl"))) > ;; Enable various optional features. TODO: opencl requires libclc, This last part of your mesa patch is already on core-updates. Looking forward to when the rest is properly supported upstream! > diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm > index dd088ea24f..d4a36533ab 100644 > --- a/gnu/packages/linux.scm > +++ b/gnu/packages/linux.scm > @@ -326,7 +327,7 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS." > (with-directory-excursion dir > (setenv "PYTHON" (which "python")) > (format #t "Running deblob script...~%") > - (force-output) > + (force-output)) > (invoke "/tmp/bin/deblob")) > > (format #t "~%Packing new Linux-libre tarball...~%") This looks like leftovers from your hack breaking linux-libre :P > @@ -604,6 +605,7 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration." > ("CONFIG_SECURITY_DMESG_RESTRICT" . #t) > ;; All kernels should have NAMESPACES options enabled > ("CONFIG_NAMESPACES" . #t) > + ("CONFIG_DRM_PANFROST" . #t) > ("CONFIG_UTS_NS" . #t) > ("CONFIG_IPC_NS" . #t) > ("CONFIG_USER_NS" . #t) This obviously can't be enabled on all architectures. In the linux-libre-arm64-generic and linux-libre-pinebook-pro kernels it's already enabled as a module. It obviously makes debugging easier to be available earlier, but it also bloats platforms that do not use this driver. > diff --git a/gnu/packages/patches/mesa-skip-disk-cache-test.patch b/gnu/packages/patches/mesa-skip-disk-cache-test.patch > index 190f6b6ee1..585bf4f648 100644 > --- a/gnu/packages/patches/mesa-skip-disk-cache-test.patch > +++ b/gnu/packages/patches/mesa-skip-disk-cache-test.patch > @@ -1,11 +1,6 @@ > -disk_cache_create() here looks up the users home directory from <pwd.h> > -which resolves to "/" in the build environment. I could not find an easy > -way to set the home directory to something else, so we disable this test > -for now. > - > --- a/src/compiler/glsl/tests/cache_test.c > +++ b/src/compiler/glsl/tests/cache_test.c > -@@ -170,11 +170,6 @@ > +@@ -219,11 +219,6 @@ > unsetenv("MESA_GLSL_CACHE_DIR"); > unsetenv("XDG_CACHE_HOME"); This removes a comment from the refreshed patch; I presume the comment is still appropriate, though? > diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm > index 8696dc4bb6..a1e7684964 100644 > --- a/gnu/packages/qt.scm > +++ b/gnu/packages/qt.scm > @@ -15,6 +15,7 @@ > ;;; Copyright © 2018 John Soo <jsoo1@asu.edu> > ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com> > ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> > +;;; Copyright © 2020 Brian C. Woodcox <bw@InSkyData.com> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -485,6 +486,7 @@ developers using C++ or QML, a CSS & JavaScript like language.") > "-no-compile-examples" > ;; Most "-system-..." are automatic, but some use > ;; the bundled copy by default. > + "-opengl" "es2" > "-system-sqlite" > "-system-harfbuzz" > "-system-pcre" This might break some things where a different opengl is the default, some architectures or platforms may require a different opengl implementation. I seem to recall some conversations in Debian about the complexities around which opengl to enable per-architecture or per-platform or ... a complicated matrix of concerns. live well, vagrant
Hi Vagrant, Sorry, this should have been applied to commit d4c6e06f369024efc63e11de1a5bacd3fe9f7e8d on the tip-pinebook-pro branch. The rest of my answers below. > On Apr 27, 2020, at 12:15 PM, Vagrant Cascadian <vagrant@debian.org> wrote: > > On 2020-04-24, Brian Woodcox wrote: >> These patches add the panfrost graphics acceleration for the Pinebook >> Pro laptop. > > Thanks! Been working with the pinebook pro for some months now running > guix, and it's great to see others making progress on it. :) > > >> You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. >> >> I changed mine from >> >> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs >> >> to >> >> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip > > The u-boot-pinebook-pro-rk3399 on guix master works correctly as well as > the one from wip-pinebook-pro (should be the same). > > This seems like your u-boot does not contain the correct value for > "fdtfile". It should be rockchip/rk3399-pinebook-pro.dtb. Are you > actually running an older u-boot? Did you at any point run saveenv from > u-boot, which saves the old u-boot configuration with an inappropriate > fdtfile variable? > > > It would be better to split up your patches into a separate patch > series, it is hard to review as one single large patch changing many > things. > I’m not sure what this problem is exactly. For some reason the rockchip folder is not being added to the end of the patch for the FDTFILE, also, you do not need to actually specify the file as u-boot will find it as long as it’s on the directory. > A few targeted comments below... > >> diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm >> index 01241cd88e..65fe389927 100644 >> --- a/gnu/packages/gl.scm >> +++ b/gnu/packages/gl.scm >> @@ -293,7 +294,7 @@ also known as DXTn or DXTC) for Mesa.") >> '(,@(match (%current-system) >> ((or "armhf-linux" "aarch64-linux") >> ;; TODO: Fix svga driver for aarch64 and armhf. >> - '("-Dgallium-drivers=etnaviv,freedreno,nouveau,r300,r600,swrast,tegra,v3d,vc4,virgl")) >> + '("-Dgallium-drivers=etnaviv,freedreno,kmsro,lima,nouveau,panfrost,r300,r600,swrast,tegra,v3d,vc4,virgl")) >> (_ >> '("-Dgallium-drivers=iris,nouveau,r300,r600,radeonsi,svga,swrast,virgl"))) >> ;; Enable various optional features. TODO: opencl requires libclc, > > This last part of your mesa patch is already on core-updates. Looking > forward to when the rest is properly supported upstream! Okay, thanks. > > >> diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm >> index dd088ea24f..d4a36533ab 100644 >> --- a/gnu/packages/linux.scm >> +++ b/gnu/packages/linux.scm >> @@ -326,7 +327,7 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS." >> (with-directory-excursion dir >> (setenv "PYTHON" (which "python")) >> (format #t "Running deblob script...~%") >> - (force-output) >> + (force-output)) >> (invoke "/tmp/bin/deblob")) >> >> (format #t "~%Packing new Linux-libre tarball...~%") > > This looks like leftovers from your hack breaking linux-libre :P Doh, you are correct, my mistake. This should of course be left as the original code. > > >> @@ -604,6 +605,7 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration." >> ("CONFIG_SECURITY_DMESG_RESTRICT" . #t) >> ;; All kernels should have NAMESPACES options enabled >> ("CONFIG_NAMESPACES" . #t) >> + ("CONFIG_DRM_PANFROST" . #t) >> ("CONFIG_UTS_NS" . #t) >> ("CONFIG_IPC_NS" . #t) >> ("CONFIG_USER_NS" . #t) > > This obviously can't be enabled on all architectures. In the > linux-libre-arm64-generic and linux-libre-pinebook-pro kernels it's > already enabled as a module. > > It obviously makes debugging easier to be available earlier, but it also > bloats platforms that do not use this driver. Okay. > > >> diff --git a/gnu/packages/patches/mesa-skip-disk-cache-test.patch b/gnu/packages/patches/mesa-skip-disk-cache-test.patch >> index 190f6b6ee1..585bf4f648 100644 >> --- a/gnu/packages/patches/mesa-skip-disk-cache-test.patch >> +++ b/gnu/packages/patches/mesa-skip-disk-cache-test.patch >> @@ -1,11 +1,6 @@ >> -disk_cache_create() here looks up the users home directory from <pwd.h> >> -which resolves to "/" in the build environment. I could not find an easy >> -way to set the home directory to something else, so we disable this test >> -for now. >> - >> --- a/src/compiler/glsl/tests/cache_test.c >> +++ b/src/compiler/glsl/tests/cache_test.c >> -@@ -170,11 +170,6 @@ >> +@@ -219,11 +219,6 @@ >> unsetenv("MESA_GLSL_CACHE_DIR"); >> unsetenv("XDG_CACHE_HOME"); > > This removes a comment from the refreshed patch; I presume the comment > is still appropriate, though? Yes, Patch should have been applied to d4c6e06f369024efc63e11de1a5bacd3fe9f7e8d as stated above. > > >> diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm >> index 8696dc4bb6..a1e7684964 100644 >> --- a/gnu/packages/qt.scm >> +++ b/gnu/packages/qt.scm >> @@ -15,6 +15,7 @@ >> ;;; Copyright © 2018 John Soo <jsoo1@asu.edu> >> ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com> >> ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> >> +;;; Copyright © 2020 Brian C. Woodcox <bw@InSkyData.com> >> ;;; >> ;;; This file is part of GNU Guix. >> ;;; >> @@ -485,6 +486,7 @@ developers using C++ or QML, a CSS & JavaScript like language.") >> "-no-compile-examples" >> ;; Most "-system-..." are automatic, but some use >> ;; the bundled copy by default. >> + "-opengl" "es2" >> "-system-sqlite" >> "-system-harfbuzz" >> "-system-pcre" > > This might break some things where a different opengl is the default, > some architectures or platforms may require a different opengl > implementation. > > I seem to recall some conversations in Debian about the complexities > around which opengl to enable per-architecture or per-platform or ... a > complicated matrix of concerns. Open to suggestions. > > > live well, > vagrant Thanks for the feedback. Brian.
On 2020-04-27, Brian Woodcox wrote: > Sorry, this should have been applied to commit > d4c6e06f369024efc63e11de1a5bacd3fe9f7e8d on the tip-pinebook-pro > branch. Yeah, I got that! >> On Apr 27, 2020, at 12:15 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >> On 2020-04-24, Brian Woodcox wrote: >>> You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. >>> >>> I changed mine from >>> >>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs >>> >>> to >>> >>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip >> >> The u-boot-pinebook-pro-rk3399 on guix master works correctly as well as >> the one from wip-pinebook-pro (should be the same). Oops, my bad. I've been merging master and core-updates locally and forgot the status of wip-pinebook-pro... I think I was waiting for the core-updates merge, but it's probably worth merging master just to get the updated u-boot-pinebook-pro-rk3399 based more closely on upstream u-boot! > I’m not sure what this problem is exactly. For some reason the > rockchip folder is not being added to the end of the patch for the > FDTFILE, also, you do not need to actually specify the file as u-boot > will find it as long as it’s on the directory. It's probably a bug in the u-boot fork that's still in wip-pinebook-pro. >>> diff --git a/gnu/packages/patches/mesa-skip-disk-cache-test.patch b/gnu/packages/patches/mesa-skip-disk-cache-test.patch >>> index 190f6b6ee1..585bf4f648 100644 >>> --- a/gnu/packages/patches/mesa-skip-disk-cache-test.patch >>> +++ b/gnu/packages/patches/mesa-skip-disk-cache-test.patch >>> @@ -1,11 +1,6 @@ >>> -disk_cache_create() here looks up the users home directory from <pwd.h> >>> -which resolves to "/" in the build environment. I could not find an easy >>> -way to set the home directory to something else, so we disable this test >>> -for now. >>> - >>> --- a/src/compiler/glsl/tests/cache_test.c >>> +++ b/src/compiler/glsl/tests/cache_test.c >>> -@@ -170,11 +170,6 @@ >>> +@@ -219,11 +219,6 @@ >>> unsetenv("MESA_GLSL_CACHE_DIR"); >>> unsetenv("XDG_CACHE_HOME"); >> >> This removes a comment from the refreshed patch; I presume the comment >> is still appropriate, though? > > Yes, Patch should have been applied to d4c6e06f369024efc63e11de1a5bacd3fe9f7e8d as stated above. Regardless of which branch it applies to, the comment in this patch should probably be kept, unless it's no longer relevent. >>> diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm >>> index 8696dc4bb6..a1e7684964 100644 >>> --- a/gnu/packages/qt.scm >>> +++ b/gnu/packages/qt.scm >>> @@ -15,6 +15,7 @@ >>> ;;; Copyright © 2018 John Soo <jsoo1@asu.edu> >>> ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com> >>> ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> >>> +;;; Copyright © 2020 Brian C. Woodcox <bw@InSkyData.com> >>> ;;; >>> ;;; This file is part of GNU Guix. >>> ;;; >>> @@ -485,6 +486,7 @@ developers using C++ or QML, a CSS & JavaScript like language.") >>> "-no-compile-examples" >>> ;; Most "-system-..." are automatic, but some use >>> ;; the bundled copy by default. >>> + "-opengl" "es2" >>> "-system-sqlite" >>> "-system-harfbuzz" >>> "-system-pcre" >> >> This might break some things where a different opengl is the default, >> some architectures or platforms may require a different opengl >> implementation. >> >> I seem to recall some conversations in Debian about the complexities >> around which opengl to enable per-architecture or per-platform or ... a >> complicated matrix of concerns. > > Open to suggestions. From what I remember there were no *good* options; to fix things for one platforms, you break things for another. In guix it might be slightly better off in that you can have variant pacakges more easily, though for libraries this would mean variants for everything that uses it, too... :/ Thanks for joining the guix on pinebook pro adventures! live well, vagrant
> On Apr 27, 2020, at 3:54 PM, Vagrant Cascadian <vagrant@debian.org> wrote: > > >>> On Apr 27, 2020, at 12:15 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>> On 2020-04-24, Brian Woodcox wrote: >>>> You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. >>>> >>>> I changed mine from >>>> >>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs >>>> >>>> to >>>> >>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip >>> >>> The u-boot-pinebook-pro-rk3399 on guix master works correctly as well as >>> the one from wip-pinebook-pro (should be the same). > > Oops, my bad. I've been merging master and core-updates locally and > forgot the status of wip-pinebook-pro... I think I was waiting for the > core-updates merge, but it's probably worth merging master just to get > the updated u-boot-pinebook-pro-rk3399 based more closely on upstream > u-boot! I would be happy to test that out when done! > > >> I’m not sure what this problem is exactly. For some reason the >> rockchip folder is not being added to the end of the patch for the >> FDTFILE, also, you do not need to actually specify the file as u-boot >> will find it as long as it’s on the directory. > > It's probably a bug in the u-boot fork that's still in wip-pinebook-pro. > > >>>> diff --git a/gnu/packages/patches/mesa-skip-disk-cache-test.patch b/gnu/packages/patches/mesa-skip-disk-cache-test.patch >>>> index 190f6b6ee1..585bf4f648 100644 >>>> --- a/gnu/packages/patches/mesa-skip-disk-cache-test.patch >>>> +++ b/gnu/packages/patches/mesa-skip-disk-cache-test.patch >>>> @@ -1,11 +1,6 @@ >>>> -disk_cache_create() here looks up the users home directory from <pwd.h> >>>> -which resolves to "/" in the build environment. I could not find an easy >>>> -way to set the home directory to something else, so we disable this test >>>> -for now. >>>> - >>>> --- a/src/compiler/glsl/tests/cache_test.c >>>> +++ b/src/compiler/glsl/tests/cache_test.c >>>> -@@ -170,11 +170,6 @@ >>>> +@@ -219,11 +219,6 @@ >>>> unsetenv("MESA_GLSL_CACHE_DIR"); >>>> unsetenv("XDG_CACHE_HOME"); >>> >>> This removes a comment from the refreshed patch; I presume the comment >>> is still appropriate, though? >> >> Yes, Patch should have been applied to d4c6e06f369024efc63e11de1a5bacd3fe9f7e8d as stated above. > > Regardless of which branch it applies to, the comment in this patch > should probably be kept, unless it's no longer relevent. Okay, I have to admit I was confused by this. Turns out when I was debugging, I accidentally removed the comment (or at least my fingers did). I didn’t realize that and now I know why it appeared in the patch set. Thus my comment about being applied to the correct commit. That’s what happens when you don’t think things through enough. > > >>>> diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm >>>> index 8696dc4bb6..a1e7684964 100644 >>>> --- a/gnu/packages/qt.scm >>>> +++ b/gnu/packages/qt.scm >>>> @@ -15,6 +15,7 @@ >>>> ;;; Copyright © 2018 John Soo <jsoo1@asu.edu> >>>> ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com> >>>> ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> >>>> +;;; Copyright © 2020 Brian C. Woodcox <bw@InSkyData.com> >>>> ;;; >>>> ;;; This file is part of GNU Guix. >>>> ;;; >>>> @@ -485,6 +486,7 @@ developers using C++ or QML, a CSS & JavaScript like language.") >>>> "-no-compile-examples" >>>> ;; Most "-system-..." are automatic, but some use >>>> ;; the bundled copy by default. >>>> + "-opengl" "es2" >>>> "-system-sqlite" >>>> "-system-harfbuzz" >>>> "-system-pcre" >>> >>> This might break some things where a different opengl is the default, >>> some architectures or platforms may require a different opengl >>> implementation. >>> >>> I seem to recall some conversations in Debian about the complexities >>> around which opengl to enable per-architecture or per-platform or ... a >>> complicated matrix of concerns. >> >> Open to suggestions. > > From what I remember there were no *good* options; to fix things for one > platforms, you break things for another. In guix it might be slightly > better off in that you can have variant pacakges more easily, though for > libraries this would mean variants for everything that uses it, > too... :/ From the different configuration files I’ve look at from other people, it appears the patch could be done when the system is configured. Does that sound like a better place to put it? I don’t know how else to keep things from getting messy. > > > Thanks for joining the guix on pinebook pro adventures! > > > live well, > vagrant
On 2020-04-27, Brian Woodcox wrote: >> On Apr 27, 2020, at 3:54 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>> On Apr 27, 2020, at 12:15 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>> On 2020-04-24, Brian Woodcox wrote: >>>>> You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. >>>>> >>>>> I changed mine from >>>>> >>>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs >>>>> >>>>> to >>>>> >>>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip >>>> >>>> The u-boot-pinebook-pro-rk3399 on guix master works correctly as well as >>>> the one from wip-pinebook-pro (should be the same). >> >> Oops, my bad. I've been merging master and core-updates locally and >> forgot the status of wip-pinebook-pro... I think I was waiting for the >> core-updates merge, but it's probably worth merging master just to get >> the updated u-boot-pinebook-pro-rk3399 based more closely on upstream >> u-boot! > > I would be happy to test that out when done! Will keep you posted. Once I've merged that, maybe you can rebase your patch into a patch series? >>>>> diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm >>>>> index 8696dc4bb6..a1e7684964 100644 >>>>> --- a/gnu/packages/qt.scm >>>>> +++ b/gnu/packages/qt.scm >>>>> @@ -15,6 +15,7 @@ >>>>> ;;; Copyright © 2018 John Soo <jsoo1@asu.edu> >>>>> ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com> >>>>> ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> >>>>> +;;; Copyright © 2020 Brian C. Woodcox <bw@InSkyData.com> >>>>> ;;; >>>>> ;;; This file is part of GNU Guix. >>>>> ;;; >>>>> @@ -485,6 +486,7 @@ developers using C++ or QML, a CSS & JavaScript like language.") >>>>> "-no-compile-examples" >>>>> ;; Most "-system-..." are automatic, but some use >>>>> ;; the bundled copy by default. >>>>> + "-opengl" "es2" >>>>> "-system-sqlite" >>>>> "-system-harfbuzz" >>>>> "-system-pcre" >>>> >>>> This might break some things where a different opengl is the default, >>>> some architectures or platforms may require a different opengl >>>> implementation. >>>> >>>> I seem to recall some conversations in Debian about the complexities >>>> around which opengl to enable per-architecture or per-platform or ... a >>>> complicated matrix of concerns. >>> >>> Open to suggestions. >> >> From what I remember there were no *good* options; to fix things for one >> platforms, you break things for another. In guix it might be slightly >> better off in that you can have variant pacakges more easily, though for >> libraries this would mean variants for everything that uses it, >> too... :/ > > From the different configuration files I’ve look at from other people, > it appears the patch could be done when the system is configured. > Does that sound like a better place to put it? > > I don’t know how else to keep things from getting messy. Yeah, runtime detection is definitely the best option, if it's possible!
> On Apr 27, 2020, at 4:48 PM, Vagrant Cascadian <vagrant@debian.org> wrote: > > On 2020-04-27, Brian Woodcox wrote: >>> On Apr 27, 2020, at 3:54 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>>> On Apr 27, 2020, at 12:15 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>>> On 2020-04-24, Brian Woodcox wrote: >>>>>> You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. >>>>>> >>>>>> I changed mine from >>>>>> >>>>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs >>>>>> >>>>>> to >>>>>> >>>>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip >>>>> >>>>> The u-boot-pinebook-pro-rk3399 on guix master works correctly as well as >>>>> the one from wip-pinebook-pro (should be the same). >>> >>> Oops, my bad. I've been merging master and core-updates locally and >>> forgot the status of wip-pinebook-pro... I think I was waiting for the >>> core-updates merge, but it's probably worth merging master just to get >>> the updated u-boot-pinebook-pro-rk3399 based more closely on upstream >>> u-boot! >> >> I would be happy to test that out when done! > > Will keep you posted. Once I've merged that, maybe you can rebase your > patch into a patch series? > Sounds good. I will do that.
On 2020-04-27, Brian Woodcox wrote: >> On Apr 27, 2020, at 4:48 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >> >> On 2020-04-27, Brian Woodcox wrote: >>>> On Apr 27, 2020, at 3:54 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>>>> On Apr 27, 2020, at 12:15 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>>>> On 2020-04-24, Brian Woodcox wrote: >>>>>>> You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. >>>>>>> >>>>>>> I changed mine from >>>>>>> >>>>>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs >>>>>>> >>>>>>> to >>>>>>> >>>>>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip >>>>>> >>>>>> The u-boot-pinebook-pro-rk3399 on guix master works correctly as well as >>>>>> the one from wip-pinebook-pro (should be the same). >>>> >>>> Oops, my bad. I've been merging master and core-updates locally and >>>> forgot the status of wip-pinebook-pro... I think I was waiting for the >>>> core-updates merge, but it's probably worth merging master just to get >>>> the updated u-boot-pinebook-pro-rk3399 based more closely on upstream >>>> u-boot! >>> >>> I would be happy to test that out when done! >> >> Will keep you posted. Once I've merged that, maybe you can rebase your >> patch into a patch series? >> > > Sounds good. I will do that. Pushed! live well, vagrant
Success!! I applied my newly revised patches to 76ac1d3918f91b9234cfb26c6519da0cf5f86302 on the wip-pinebook-pro branch. u-boot correctly finds the rk3399-pinebook-pro.dtb file. The extlinux.conf file no longer needs to be altered. It is as follows: # This file was generated from your Guix configuration. Any changes # will be lost upon reconfiguration. UI menu.c32 MENU TITLE GNU Guix Boot Options PROMPT 1 TIMEOUT 50 LABEL GNU with Linux-Libre-Pinebook-Pro 5.6.0 MENU LABEL GNU with Linux-Libre-Pinebook-Pro 5.6.0 KERNEL /gnu/store/qs1292ckhvkprsgdyxq665qj167l5c07-linux-libre-pinebook-pro-5.6.0/Image FDTDIR /gnu/store/qs1292ckhvkprsgdyxq665qj167l5c07-linux-libre-pinebook-pro-5.6.0/lib/dtbs INITRD /gnu/store/2d01lxl21i74jflji5smi9fhwsgyqanf-raw-initrd/initrd.cpio.gz APPEND --root=/dev/mmcblk1p1 --system=/gnu/store/453h9sqcqvnpj72k0gwia3zsfavhar4p-system --load=/gnu/store/453h9sqcqvnpj72k0gwia3zsfavhar4p-system/boot ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} video=HDMI-A-1:1920x1080@60 video=eDP-1:1920x1080@60 vga=current The FDTDIR /gnu/store/qs1292ckhvkprsgdyxq665qj167l5c07-linux-libre-pinebook-pro-5.6.0/lib/dtbs still has a rockchip sub-folder that contains the rk3399-pinebook-pro.dtb file. I decided to go back to my older SD card and remove the rockchip from the FDTDIR path, and it also booted. I know previously that janneke and I had problems with this, but obviously along the way something was fixed. At any rate, it’s nice to see the image boot and no longer having to edit the extlinux.conf file. I will have to put together a patch set in the near future. Cheers! Brian C. Woodcox > On Apr 28, 2020, at 12:54 AM, Vagrant Cascadian <vagrant@debian.org> wrote: > > On 2020-04-27, Brian Woodcox wrote: >>> On Apr 27, 2020, at 4:48 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>> >>> On 2020-04-27, Brian Woodcox wrote: >>>>> On Apr 27, 2020, at 3:54 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>>>>> On Apr 27, 2020, at 12:15 PM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>>>>> On 2020-04-24, Brian Woodcox wrote: >>>>>>>> You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. >>>>>>>> >>>>>>>> I changed mine from >>>>>>>> >>>>>>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs >>>>>>>> >>>>>>>> to >>>>>>>> >>>>>>>> FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip >>>>>>> >>>>>>> The u-boot-pinebook-pro-rk3399 on guix master works correctly as well as >>>>>>> the one from wip-pinebook-pro (should be the same). >>>>> >>>>> Oops, my bad. I've been merging master and core-updates locally and >>>>> forgot the status of wip-pinebook-pro... I think I was waiting for the >>>>> core-updates merge, but it's probably worth merging master just to get >>>>> the updated u-boot-pinebook-pro-rk3399 based more closely on upstream >>>>> u-boot! >>>> >>>> I would be happy to test that out when done! >>> >>> Will keep you posted. Once I've merged that, maybe you can rebase your >>> patch into a patch series? >>> >> >> Sounds good. I will do that. > > Pushed! > > live well, > vagrant
--- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -326,8 +326,8 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS." (with-directory-excursion dir (setenv "PYTHON" (which "python")) (format #t "Running deblob script...~%") - (force-output) - (invoke "/tmp/bin/deblob")) + (force-output)) +;; (invoke "/tmp/bin/deblob")) (format #t "~%Packing new Linux-libre tarball...~%") (force-output)