Skip to content
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

Is it possible to add xorg to this? #31

Open
ljones0 opened this issue Nov 14, 2019 · 11 comments
Open

Is it possible to add xorg to this? #31

ljones0 opened this issue Nov 14, 2019 · 11 comments

Comments

@ljones0
Copy link

ljones0 commented Nov 14, 2019

Hello,

Not sure if xorg (2d, not 3d) can be run on this image but however when I tried to run xorg (and from that a desktop) I get the following error (after doing apt install xorg):

/usr/lib/xorg/Xorg: symbol lookup error: /usr/lib/xorg/modules/libglamoregl.so: undefined symbol: gbm_create_devicexinit: giving up

Am I missing an xorg driver at all? I do have xserver-xorg-video-fbdev installed btw. Also is it possible to have x acceleration on this device at all ? (2D).

ljones

@lbernstone
Copy link

Which image? You do not want the one with fbdev in the name if you are running X.

@avafinger
Copy link
Owner

avafinger commented Nov 15, 2019

Make sure you can run kmscube in your Image . Get it from here: https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/edit/v14

libglamoregl is for 3D rendering! Reading: Why Glamor?
https://www.freedesktop.org/wiki/Software/Glamor/

@ljones0
Copy link
Author

ljones0 commented Nov 16, 2019

Sorry I was referring to the "Ubuntu 19.10 (EOAN) - fbdev" image. It is the one with fbdev in it so is that the wrong one? I did see others, e.g. "Ubuntu 19.10 - Eoan Ermine with Kernel 5.3.5" and there's a list beneath it which lists things like hdmi, hdmi sound, mali, bt etc but no mention of xorg. Which is the corret image?

ljones

@avafinger
Copy link
Owner

avafinger commented Nov 16, 2019

I did not know Glamour is set when you install Xorg.

You can try the latest Image with fbdev and install LXDE.
After you boot and login with ubuntu / ubuntu you type in shell:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install lxde

Wait until it install all packages and then you do:

sync
sudo reboot

If you install some other Xorg that Glamour is set by default it will try to use mali OpenGLES2 and for that to work you need mali-gbm. You need Wayland.

https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v2.8

@meisterbasti
Copy link

I have a question about this Linux version.
1st. why does it take so long while powering the banana pi until it is possible to login with ubuntu / ubuntu ?

2nd. After installing lxde like in the comment above noting happens. After rebooting only the black screen with the white underscore ( _ ) appears. Hitting the ENTER key about 100 times doesn't change anything.

I want to build a Linux version with a actual Kernel for a project at university with the Banana Pi M2 Zero

IMG_3823

@avafinger
Copy link
Owner

I think it is taking so long because it keeps waiting for an IP from DHCP either from eth0 (it is enabled) or wlan0 (wifi). The login prompt appears only after it grabs an IP.
You can study /etc/network/interfaces and change eth0 and wlan0 to 'allow-hotplug ' so it does not wait until it gets the IP in any interface. The drawback is it can take a really long time to acquire the IP.

Look into Xorg.0.log for X11 errors for some clues.

@meisterbasti
Copy link

How do I get this log when the system is not responding ?
The underscore is flashing some seconds and than freezes and nothing else happens...
Sorry for silly questions but I do not have much experience in Linux...

@avafinger
Copy link
Owner

https://www.youtube.com/watch?v=uUTwcuq0Ha4

but be careful the one you choose, some cheap on has > 3.4v that don't work.

@meisterbasti
Copy link

I thought this answer might come.

Ordered the one from Adafruit.

@avafinger
Copy link
Owner

@meisterbasti
#33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants