DeadMeat
(Alex R.)
August 29, 2020, 6:11am
41
Just in case - configuring latest git mesa in debian:
meson ./build --buildtype plain --libdir lib/arm-linux-gnueabihf --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload -Dplatforms=surfaceless,x11,drm -Dllvm=true -Dlmsensors=false -Dlibunwind=false -Dgallium-nine=false -Dgallium-va=false -Dgallium-vdpau=false -Dgallium-xa=false -Dgallium-xvmc=false -Dgallium-opencl=disabled -Dosmesa=none -Dbuild-tests=false -Dglx=dri -Dshared-glapi=enabled -Ddri3=true -Degl=true -Dgbm=true -Dgles1=disabled -Dgles2=enabled -Dglvnd=false -Dselinux=false -Dvalgrind=false -Ddri-drivers= -Dgallium-drivers=kmsro,lima,swrast
P.S. meson-0.55 has to be installed from debian sid. Patch is the same.
P.P.S. building in progress, so not yet tested.
frank-w
(Frank W.)
August 29, 2020, 6:53am
42
It would be nice if we got crosscompile working so i can build on travis and pack deb-package
Btw. Hdmi-patches are on the way to get merged to mainline (5.10).
https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next
I hope Matthias picks dts changes too
DeadMeat
(Alex R.)
August 29, 2020, 7:24am
43
I’m not so familiar with travis, is it some debian related stuff?
I have some gentoo-related progress on cross-compiling, but it’s still far from finishing. Now when i have 2nd R2 which is debian powered i’m open to new debian things
Great news, but we also need lima patches (dts-related are more likely to be accepted than drm-related)
Btw: some new lima “fun” ;):
Not very playable performance, but at least it runs, opposite to earlier versions.
frank-w
(Frank W.)
August 29, 2020, 8:16am
44
travis is a CI/CD (continous integration/delivery/deployment) which builds my kernel on github automaticly on push (only main-branch selected in .travis.yml). it builds kernel with my build.sh…
so if we find a way to build mesa with crosscompile and pack into deb (maybe include into build.sh) i can integrate it to travis so it will be automaticly build
btw. i cannot see your video (wrong mime) in firefox
DeadMeat
(Alex R.)
August 29, 2020, 8:24am
45
Same for me in firefox, works in chromium based browser.
h_t_t_p_s://photos.app.goo.gl/nx8cSm4UH9SdEvT99
frank-w
(Frank W.)
August 29, 2020, 8:26am
46
gaming on router my intention was more to have a more responsive x-server
DeadMeat
(Alex R.)
August 29, 2020, 9:20am
47
frank-w:
gaming on router
Gaming on a router with a GPU and HDMI
P.S. Probably it’s possible to use dts overlay for lima init? It will let to leave the kernel’s lima driver as is?
frank-w
(Frank W.)
August 29, 2020, 9:32am
48
How do you want to trigger lima power on/off by dts? Currently we have only a code-approach. And this i can add to code in my repo and it is triggered by module load
DeadMeat
(Alex R.)
August 29, 2020, 9:37am
49
In my 5.5-lima i used the same approach as in 4.4-mali module - dts regulators. Literally ported part of dts from 4.4 to 5.5. So now i want to try use it as an overlay.
frank-w
(Frank W.)
August 29, 2020, 9:44am
50
We can define it in bananapi.dts disabled so you to enable it only in your overlay
I see you have also code changes in the mentioned commit…
You can rebase needed changes on my 5.9-hdmi, then i can include it in my repo in future
DeadMeat
(Alex R.)
August 29, 2020, 6:18pm
51
All code changes are for debug only.
Ok, i can try.
DeadMeat
(Alex R.)
August 30, 2020, 6:12am
52
frank-w
(Frank W.)
August 30, 2020, 1:47pm
53
Seems like crosscompiling mesa is possible without additional vm
https://sunxi.org/Mali_Open_Source_Driver#Cross_Compiling
DeadMeat
(Alex R.)
September 1, 2020, 7:22am
54
Looks like it’s for debian, so i’ll need an additional VM
frank-w
(Frank W.)
September 1, 2020, 7:55am
55
But the binaries created will only work on debian because they are linked to debian libs
frank-w
(Frank W.)
September 1, 2020, 12:00pm
56
Maybe chroot variant is best way…maybe that can be used also for other versions
Create a chroot and run build-process inside
As it is your top-most commit amend is enough (if not rebase is needed for edit-mode)
First add your signed off and add commit-message (describing what you do with commit) below the subject,above signed-off (leave one blank line between message and signed off).
git commit --amend -s
Copy name+email from signed off and use it to set author as it is same format
git commit --amend --author="name <email>"
You need force push again because commit-hash has changed
this is how it should look (exa…
Mali-450 support by lima => 20.0.x to have no unstable depency (meson 0.49.2 from debian 10)
frank-w
(Frank W.)
September 2, 2020, 7:49pm
57
successfully build mesa inside chroot
buildchroot.sh (1,2 KB)
build_mesa.sh (1,3 KB) mesa.patch (1017 Bytes)
sudo cp build_mesa.sh mesa.patch debian_buster_armhf/root/
sudo chroot debian_buster_armhf /root/build_mesa.sh
built files here: https://drive.google.com/file/d/1cNdpbW7cOSbvQPLc72KsdwwFxJMuY8az/view?usp=sharing
DeadMeat
(Alex R.)
September 3, 2020, 1:39am
58
Great! Did you tested it? (I mean stability, blinking menus/buttons etc.)
frank-w
(Frank W.)
September 3, 2020, 5:32am
59
Not yet due to missing time
DeadMeat
(Alex R.)
October 1, 2020, 8:01am
60
Recently mediatek entry point patch was accepted to mesa mainline.
So now it’s not nessesery to patch mesa for git master.
UPD: Just finished testing - everything compiles and works just great with latest sources from git.
2 Likes