-
Notifications
You must be signed in to change notification settings - Fork 329
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
Running Redroid on Raspberry Pi #67
Comments
redroid only add intel / amd / virtio gpu support currently.
for other gpus, you can modify BoardConfig.mk, and rebuild redroid images.
Sent from my iPhone
On Dec 10, 2021, at 11:43 AM, Xinyu Chen ***@***.***> wrote:
I'm running Redroid on Raspberry Pi 4B. The OS is Ubuntu 20.04 (arm64).
Starting the container with default param works but the graphics is pretty laggy. It turns out that the rendering is done on CPU, instead of GPU. RPi has a pretty powerful GPU but I'm wondering how I can make use of it in Redroid.
Additional information:
* lspci doesn't show and graphics device, probably because ARM device has a different architecture.
* I have installed mesa driver and vulkan lib. 3D rendering works fine, which means the drivers are installed properly.
If this is not yet supported by Redroid, what is the path towards supporting it? Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#67>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAP5VMRUGJY7TR4ASDAOOHTUQFZPRANCNFSM5JYE2K2Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I'm working on Raspberry 4B too , and I'm also tired of the terrible performance without gpu support.... Looking forward to your support 😄 |
@mythsman no Raspberry devices by hand. I add more GPU / SoC support in |
@zhouziyang Grateful for your work , I don't have much experience working on Android , but I let me try it 👍 |
I saw you just merged that commit into redroid-11.0.0 , so I built that tag. I compiled it with redroid_arm64-userdebug successfully ,but that container cannot run on raspberry pi and just crashed (CrashLoopBackOff) ... I don't know what I can do to fix .... |
The only operation I did which was different from your instruction is that I typed
then upload that and then typed |
After trying compling it with that commit reverted , I also got an image that always crashes .... I thought maybe I have done sth wrong .... |
my fault, please update |
In my raspi ? It doesn't contains that |
try inside container, |
my HOST OS: In my HOST OS , |
try mount |
cirrus dev=0000:00:02.0 unique=0000:00:02.0 |
BTW , I found that in my redroid.tar (from |
I just try running x86_64 in my HOST OS , and got :
which was almost the same with that in my raspi |
this GPU is not supported. |
Well , I don't think it was the point , because in my HOST OS(redhat) , I can run the online version of redroid-11.0.0 at least ... |
Sorry for disturbing again , I thought I just found where the bug was .... In my HOST OS( redhat ) ,the |
I have successfully built the newest redroid-11.0.0 , but it seems still laggy in my raspi ... 😭 |
I means GPU accelerating not work on |
|
make sure gralloc is |
Well , |
@mythsman i followed your steps to create the .tar file and tried to run it on an ubuntu vm. However, the container stops immediately, its not able to find /init. What am i doing wrong? |
Thought you have fixed your problem , while I still could not fix my problem 😭 . |
yes, luckily it worked for me on ubuntu vm, i am going to try with arm64 build now on raspberry pi3. But my OS is Yocto based linux distribution. Lets see how this goes. |
I am not sure this is the case, because Mesa actually supports V3D driver for Videocore IV (RPi 3) and Videocore VI (RPi 4), unless it was explicitly disabled |
@kkkkkk812 CONFIG_PSI is set at kernel config , follow https://www.raspberrypi.com/documentation/computers/linux_kernel.html , remember to edit the .config and set CONFIG_PSI=y before running |
@zhouziyang Sorry that I haven't seen your reply earlier . Thank you for pointing out , but I know nothing about both android and gralloc . |
Seems only
Possible issues in
|
thank you . |
thank you .I try it and run redroid-11 in Raspberry Pi4.It looks good. |
@zhouziyang more details: this isn't the first time this happens , there were once i was running chrome and it crashed just like this. |
not pretty sure. There are many BTW, the |
The patched try:
running |
That's very kind of you ,I'll try it tomorrow.
Message ID: ***@***.***>
|
tried with that , still get corrupted screenshots
and i think that the crash problem might be related to
|
Sad. Need debug and find out the real stride. |
is there any workarounds (like ignoring bad pixels ?) to avoid crashing? |
The OMX driver provided here is just for experimental. It's not complete and possible buggy. |
ok , i understand , thank you |
Is it that if |
I have plan to enhance the OMX driver ( Both gralloc implementation are platform dependent and |
yes ,as i remember , running docker kill gives a similar output.
I can't test it again now because I can't use my computer .
I'll do more tests this weekend
I'm looking forward to the enhanced driver.Thank you for your work.
Message ID: ***@***.***>
|
@zhouziyang sorry for disturbing,may you explain the way to compile the prebuilt libs? |
@zhouziyang I tried to build robherring/gbm_gralloc#26 (he said that it worked on v3d+vc4), but the compilation failed
I ran |
I use NDK to build all these blobs. redroid support several versions of Android (both BTW: you are building |
yes , that issue was about a special version of minigbm (I'd like to see if can make |
The minigbm gralloc seems support
|
scrcpy v4l2loopback + ffmpeg already met my need. |
@mythsman Hi , from your screenrecord I see you are running redroid11 on raspberrypi 4 , did the container ever crash ? (the whole container stops responding and can't be stopped with docker stop) |
Everything is ok on my pi 😄 , good luck! |
Thank you for replying , i'll try redroid11 later UPD: tried , it still crashed
@mythsman may you try the same way? |
Hi, anyone tried Redroid with the new Raspberry Pi 5? |
To those people saying it runs decently fast for them on a Pi 4... what did you do? Also tried with various parameter on scrcpy. However, one thing to note is that I'm running scrcpy on my PC and not the Pi (but that is to be expected...). But both devices are connected via an Ethernet cable to a router just a few meters away... |
I'm running Redroid on Raspberry Pi 4B. The OS is Ubuntu 20.04 (arm64).
Starting the container with default param works but the graphics is pretty laggy. It turns out that the rendering is done on CPU, instead of GPU. RPi has a pretty powerful GPU but I'm wondering how I can make use of it in Redroid.
Additional information:
lspci
doesn't show and graphics device, probably because ARM device has a different architecture.If this is not yet supported by Redroid, what is the path towards supporting it? Thanks.
The text was updated successfully, but these errors were encountered: