-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU support on arm / RaspBerry Pi #105
Comments
What about this errors:
Error shows with red text when I run |
Those messages are harmless. You can avoid them if you insert a line Possible attempts for investigation:
|
I try tu use 64bit sistem to see if any difference. I flashed this image: pi64-lite.zip After sistem stareted I updatete and upgrade sistem:
then I installed docker:
then I creted dockerfile
build and run kodi:
or error kodi won't start:
fbset and tvservice are know errors, but arithmetic expression is new. What arithmetic expression error means? |
It looks like a bug in kodi itself. However, it is surprising that it didn't occur before. Your new host system would not explain that, because the bug occcurs within the container. |
I try with Same error. |
It might be worth trying with some |
I try with
|
I am not sure, but it might be related to #76.
|
Ater I run: Error:
|
It makes sense to divide this ticket. This one should contain only issues concerning GPU on Raspberry Pi / arm, maybe also general issues that are special to Raspberry/arm hardware. The issues you describe look rather kodi specific. |
But If I run container on 32bit host sistem kodi start ok, but I get choppy video? |
I try on diet-pi image. Error:
|
I try under alpine linux. Is working like on raspbian host(choppy vdeo). Only difference is that keyboard is working. |
Which packages did you install in the alpine linux image? Did it require anything similar to |
I just enabled openGL on alpine linux host, informaton is on this page: |
That sounds good so far. To see if bugs are related to kodi only or to Raspberry hardware instead, please always install Is your host alpine system 32bit or 64bit? For now please always run with |
Show me how to install vlc and I will try.
Dockerfile:
|
Add a line in Dockerfile and rebuild:
Run image with:
|
The error might be related to the fact that he was running a 32-bit container on a 64-bit system.
In order to reproduce and hopefully fix the issues, we need you to be more specific when posting the results of the tests you run. I just enabled openGL is not very helpful. In the link you provide, we see in section Enable OpenGL (RPi 3) that some drivers are installed ( Certainly, this would explain why the keyboard is working. Note that packages Furthermore, after installing the packages The bottom line is that we can try installing the same packages in a
As commented above, I suggest trying alpine-rpi-3.8.2-aarch64.tar.gz instead of alpine-rpi-3.8.2-armhf.tar.gz. So, it seems that you are running docker on a 32bit Alpine Linux host, and the container you are executing is the same that worked with raspbian as a host. I think that the issue here is not related to the host system, as long as the app works as expected natively. Since the app is choppy inside the container and not outside, we should focus on the content of the docker image. I assume that you have tried executing kodi natively on Alpine Linux. If that worked, and the container based on raspbian is still choppy, we might be lucky. We have not guessed the differences between the Raspbian in the SD and the raspbian container, but we might achieve it with Alpine. As suggested above, I'd try installing in a alpine docker image the same packages you installed on the host. |
Unfortunately alpine does not provide a kodi package for arm architecture but x86/x86_64 only. Edit: In a previous test with raspian on host kodi had no issues on host. We might focus on missing packages in the image as you said. |
Yes I installed those packages. |
Hi, I enabled ssh with:
I update host system:
run raspi-config: go to -> "Interfacing Options" -> "Camera" -> Enable, I installed docker:
I Installed x11docker
I create folders:
create and edit Dockerfile:
build docker container: from ssh I run this:
When kodi starts: Now moves are playing ok. :) todo: keyboard not working (only remote over cec) |
I try to change potions under: under |
Which X11 packages must be installed? Which packages must be installed for keyboard? |
I found some info about kodi on raspbian: |
I finally made kodi that works under docker with working video :). Look four posts up. Now I have further questions. It is possible to start multi docker kodi containers (container with kodi 17.6 and container kodi 18) and then just switch between them like channels on tv? |
Great! What have been the missing key to fix the choppy videos?
You can run a slim desktop on the host, e.g. lxde (or openbox only). There you can run multiple instances of x11docker+kodi and switch between them with Alt+Tab. |
I think problem is memory split setthings and check "Allow hardware acceleration - OMXPlayer"
Can this been done through script? Now I already trying to make it work on hassos 64bit image. |
Hey, |
I hope @lpt2007 will give you an answer. |
Hi @lpt2007 |
Sorry for so late answer:( Here is working version: LINK |
Coming from #100:
Basically x11docker runs on a RaspBerry Pi.
For advanced support of RaspBerry hardware the image needs package
libraspberrypi0
.Some issues remain, e.g. how to allow GPU access without
--privileged
, and choppy videos with kodi in container.Citing a summary from @1138-4eb:
resin/armv7hf-debian
It is based on Jessie, so kodi is not available.
balenalib/armv7hf-debian
kodi
is available, but it does not work.libraspberrypi0
is not available.raspbian/stretch
Both
kodi
andlibraspberrypi0
are available.It complains about
fbset
andtvservice
, but it works.schachr/raspbian-stretch
/usr/lib/arm-linux-gnueabihf/kodi/kodi-xrandr: Failed to get size of gamma for output default libEGL warning: DRI2: failed to authenticate
kodi
is available, and it does work.libraspberrypi0
is not available.armv7/debian
kodi
is available, and it does work.libraspberrypi0
is not available.Little update. I could install
libraspberrypi0
onarmv7/debian
:Add these to
/etc/apt/sources.list
:Then:
However, kodi is still using the CPU. I tried adding the packages mentioned in hypriot/x11-on-HypriotOS#2 too. Still the same. I think I am missing some command to reload something after the packages are installed.
The text was updated successfully, but these errors were encountered: