ardera / flutter-pi

A light-weight Flutter Engine Embedder for Linux Embedded that runs without X11 or Wayland.
MIT License
1.58k stars 159 forks source link

Orange Pi Zero 3 configuration #421

Open jupiter9595 opened 3 months ago

jupiter9595 commented 3 months ago

As my predecessors said, great work! Thank you for your effort!

I've successfully configured flutter-pi on Rasperry Pi Zero 2W

Now I would like to run it on Orange Pi Zero 3

I'm running Ubuntu 22.04 compiled by OrangePi

Successfully ran GUI test:

======================================================= glmark2 2021.02

OpenGL Information
GL_VENDOR:     Mesa
GL_RENDERER:   Mali-G31 (Panfrost)
GL_VERSION:    3.1 Mesa 23.2.1-1ubuntu3.1~22.04.2

But encountered the following errors when running flutter-pi (code recompiled for aarch64 with > flutterpi_tool build --arch=arm64)

flutter-pi timer_linux2a modesetting.c: Could not set DRM client universal planes capable. drmSetClientCap: Operation not supported flutter-pi.c: Could not create drmdev from device at "/dev/dri/card1". Continuing. egl_gbm_render_surface.c: Couldn't create GBM surface for rendering. gbm_surface_create_with_modifiers: Invalid argument egl_gbm_render_surface.c: Will retry without modifiers flutter: The Dart VM service is listening on http://127.0.0.1:41759/hq1w0dqu8fk=/ modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now. window.c: Could not commit frame request. modesetting.c: Commit requested, but drmdev is paused right now.

Has anyone successfully configured Orange Pi Zero 3 (or other OrangePi) board?

ardera commented 3 months ago

Is there another app running that is using display output? Can you try running with sudo?

jupiter9595 commented 2 weeks ago

Temporary I don't have Orange Pi Zero 3 board. But what I recall is that I was using sudo and no other app was running. Should this run ok on this board? If yes I will get this board again. It is much more powerful then Raspberry Pi Zero W (including Zero 2W). I got rid of it because other compatibility issues but it will be worth to get it back if flutter-pi works on it.

ardera commented 2 weeks ago

@jupiter9595 It is possible you run into errors. If I had an Orange Pi to test, I could guarantee you that it works, but I don't have one unfortunately. But even if you run into errors, you can report them and I'll fix them. That has happened multiple times in the past and we managed to fix it in all cases.