(X)(L)ubuntu (MATE) 16.04 LTS

AmigaOne X1000 platform specific issues related to Linux only.

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby Amigo1 » Mon May 02, 2016 12:40 pm

xeno74 wrote:
Amigo1 wrote:...
Do you have hardware 3D acceleration? Please post the output of the following commands:

Code: Select all
glxinfo | grep -i opengl


Code: Select all
vblank_mode=0 glxgears


Which graphics card is installed in your AmigaONE X1000?

Cheers,

Christian


Hi!

Code: Select all
amigo1@Amigaone:~$ glxinfo | grep -i opengl
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD CEDAR (DRM 2.43.0)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 1.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
amigo1@Amigaone:~$


and

Code: Select all
amigo1@Amigaone:~$ vlblank_mode=0 glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
298 frames in 5.0 seconds = 59.452 FPS
300 frames in 5.0 seconds = 59.806 FPS
298 frames in 5.0 seconds = 59.586 FPS
292 frames in 5.0 seconds = 58.218 FPS
294 frames in 5.0 seconds = 58.792 FPS
291 frames in 5.0 seconds = 58.008 FPS
300 frames in 5.0 seconds = 59.820 FPS
291 frames in 5.0 seconds = 58.008 FPS
299 frames in 5.0 seconds = 59.603 FPS
300 frames in 5.0 seconds = 59.793 FPS
301 frames in 5.0 seconds = 60.012 FPS
300 frames in 5.0 seconds = 59.804 FPS
300 frames in 5.0 seconds = 59.802 FPS
300 frames in 5.0 seconds = 59.990 FPS
301 frames in 5.0 seconds = 60.012 FPS
301 frames in 5.0 seconds = 60.005 FPS
^C
amigo1@Amigaone:~$

the frame rate is indeed close to the 60Hz reported by the LED screen.

The graphics card is a RadeonHD 5450 (the only silent one which was available when I bought the A1XK)

On a side note, I noticed this morning that I had two mounted root "/" partitions. Both had the same UUID (the "basic" and the "NI2", which I copied using "dd") so I changed the UUID for one partition with the commands "uuidgen" and "tune2fs", now the system boots much faster and is snappier. I also suspect it will not give me any "Ubuntu experienced an internal error" notifications.

Do you think a re-installation is necessary? How can I be sure the updates are installed correctly on the Ubuntu and not the Lubuntu partition? (apt-get update and Software Updater tell everything is up-to-date).

The issue with the blue window content when playing videos remains however.
User avatar
Amigo1
 
Posts: 158
Joined: Sun Jan 01, 2012 4:32 pm

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby xeno74 » Mon May 02, 2016 6:42 pm

Hi Amigo1,

Amigo1 wrote:
Code: Select all
amigo1@Amigaone:~$ vlblank_mode=0 glxgears



You have typed vlblank instead of vblank. Could you please post your output of vblank_mode=0 glxgears again?

Amigo1 wrote:On a side note, I noticed this morning that I had two mounted root "/" partitions. Both had the same UUID (the "basic" and the "NI2", which I copied using "dd") so I changed the UUID for one partition with the commands "uuidgen" and "tune2fs", now the system boots much faster and is snappier. I also suspect it will not give me any "Ubuntu experienced an internal error" notifications.


Well done! It's good to know the thing with the same UUID.

Just for info: With sudo blkid you can very fast figure out the UUID of the drive.

Amigo1 wrote:Do you think a re-installation is necessary? How can I be sure the updates are installed correctly on the Ubuntu and not the Lubuntu partition? (apt-get update and Software Updater tell everything is up-to-date).


You can check it with the following command:

Code: Select all
cat /etc/lsb-release


You can see there if you have the final version of ubuntu MATE 16.04 LTS. If you have

Code: Select all
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"


then the updates are installed correctly.

Amigo1 wrote:The issue with the blue window content when playing videos remains however.


You can try the unofficial Mesa if you like.

Download: MesaLib-10.0.4-powerpc-unofficial.tar.bz2

Extract it in your home folder and rename the original r600_dri.so to r600_dri.so.bak:

Code: Select all
sudo mv /usr/lib/powerpc-linux-gnu/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/r600_dri.so.bak


Copy the patched r600_dri.so to /usr/lib/powerpc-linux-gnu/dri:

Code: Select all
sudo cp mesa-10.0.4/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri


Afterwards, please logout and then login.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3159
Joined: Fri Mar 23, 2012 8:58 am

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby papaoskar » Tue May 03, 2016 6:04 pm

xeno74 wrote:
papaoskar wrote:BTW, there are a lot of errors reading 'proc/sys/net.... either input/output errors' or ' for reading Permission denied '.


Did you copy the content with root permissions (sudo su)? Please mount /dev/sdb8 and tell me the file owner and group and the file permissions of /sbin/init with ls -l. Additionally please look if the directory /etc/init exists.


Hi christian,
I got a bit further. Booting Mate1604 leaves me with a console and no graphics. Also "startx" leads to nothing. it tells me that there are about 380 updates available. But for doing an update it needs root privileges normally got by "su" or "sudo". "sudo" tells me /usr/bin/sudo must be owned by uid 0 and have the setuid bit set . "su" gives me "Authentication failure" with password amigaone.
papaoskar
 
Posts: 80
Joined: Tue Jul 01, 2014 2:48 pm

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby xeno74 » Tue May 03, 2016 7:01 pm

papaoskar wrote:
xeno74 wrote:
papaoskar wrote:BTW, there are a lot of errors reading 'proc/sys/net.... either input/output errors' or ' for reading Permission denied '.


Did you copy the content with root permissions (sudo su)? Please mount /dev/sdb8 and tell me the file owner and group and the file permissions of /sbin/init with ls -l. Additionally please look if the directory /etc/init exists.


Hi christian,
I got a bit further. Booting Mate1604 leaves me with a console and no graphics. Also "startx" leads to nothing. it tells me that there are about 380 updates available. But for doing an update it needs root privileges normally got by "su" or "sudo". "sudo" tells me /usr/bin/sudo must be owned by uid 0 and have the setuid bit set . "su" gives me "Authentication failure" with password amigaone.


Could you please answer my questions above?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3159
Joined: Fri Mar 23, 2012 8:58 am

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby papaoskar » Wed May 04, 2016 6:03 pm

Did you copy the content with root permissions (sudo su)? Please mount /dev/sdb8 and tell me the file owner and group and the file permissions of /sbin/init with ls -l. Additionally please look if the directory /etc/init exists.[/quote]

Hi christian,
I got a bit further. Booting Mate1604 leaves me with a console and no graphics. Also "startx" leads to nothing. it tells me that there are about 380 updates available. But for doing an update it needs root privileges normally got by "su" or "sudo". "sudo" tells me /usr/bin/sudo must be owned by uid 0 and have the setuid bit set . "su" gives me "Authentication failure" with password amigaone.[/quote]

Could you please answer my questions above?[/quote]

Yes I copied as per instruction. /dev/sdb8 owner and group are root. with permission for root "Create and delete files". The directory /etc/init exists. /sbin/init same as above.
quoting the output of "ls -l /dev/sdb8" brw-rw---- 1 root disk 8 , 24 Mai 4 17:25 /dev/sdb8"
"ls -l /sbin/init lrwxrwxrwx 1 root root 20 Apr 12 12:32 /sbin/init -> /lib/systemd/systemd "
ls -l /etc/init gives a lot of files with -rw-r--r-- 1 root root file length date name.conf
I hope that helps. Again thanks for dealing with my troubles! Have a nice day tomorrow.
papaoskar
 
Posts: 80
Joined: Tue Jul 01, 2014 2:48 pm

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby xeno74 » Wed May 04, 2016 7:31 pm

papaoskar wrote:But for doing an update it needs root privileges normally got by "su" or "sudo". "sudo" tells me /usr/bin/sudo must be owned by uid 0 and have the setuid bit set . "su" gives me "Authentication failure" with password amigaone.


Hi Papaoskar,

Thank you for your reply.

Please tell me the file owner and group and the file permissions of /usr/bin/sudo and of /bin/su.

For example the file owner and group and the file permissions from my Lubuntu:

linux@lubuntu64:~$ ls -l /usr/bin/sudo
Code: Select all
-rwsr-xr-x 2 root root 71280 Mär 12  2015 /usr/bin/sudo

linux@lubuntu64:~$ ls -l /bin/su
Code: Select all
-rwsr-xr-x 1 root root 36832 Sep 13  2012 /bin/su


If you don't have these outputs please modify the file attributes.

Code: Select all
$ sudo su

Code: Select all
# chown root:root /bin/su

Code: Select all
# chown root:root /usr/bin/sudo

Code: Select all
# chmod 4755 /bin/su

Code: Select all
# chmod 4755 /usr/bin/sudo


4 = SetUID bit: Allow users to run an executable with the permissions of the executable's owner.
Owner: 7 = read (4), write (2), and execute (1) 4 + 2 + 1 = 7
Group: 5 = read (4) and execute (1) 4 + 1 = 5
Other: 5 = read (4) and execute (1) 4 + 1 = 5

Result: chmod 4755

I hope it helps. ;-)

Cheers,

Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3159
Joined: Fri Mar 23, 2012 8:58 am

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby papaoskar » Wed May 04, 2016 8:50 pm

xeno74 wrote:
papaoskar wrote:But for doing an update it needs root privileges normally got by "su" or "sudo". "sudo" tells me /usr/bin/sudo must be owned by uid 0 and have the setuid bit set . "su" gives me "Authentication failure" with password amigaone.


Hi Papaoskar,
Thank you for your reply.
Please tell me the file owner and group and the file permissions of /usr/bin/sudo and of /bin/su.
For example the file owner and group and the file permissions from my Lubuntu:

linux@lubuntu64:~$ ls -l /usr/bin/sudo
Code: Select all
-rwsr-xr-x 2 root root 71280 Mär 12  2015 /usr/bin/sudo

linux@lubuntu64:~$ ls -l /bin/su
Code: Select all
-rwsr-xr-x 1 root root 36832 Sep 13  2012 /bin/su


If you don't have these outputs please modify the file attributes.

Code: Select all
$ sudo su

Code: Select all
# chown root:root /bin/su

Code: Select all
# chown root:root /usr/bin/sudo

Code: Select all
# chmod 4755 /bin/su

Code: Select all
# chmod 4755 /usr/bin/sudo


4 = SetUID bit: Allow users to run an executable with the permissions of the executable's owner.
Owner: 7 = read (4), write (2), and execute (1) 4 + 2 + 1 = 7
Group: 5 = read (4) and execute (1) 4 + 1 = 5
Other: 5 = read (4) and execute (1) 4 + 1 = 5

Result: chmod 4755

I hope it helps. ;-)

Cheers,

Christian


Thank you for your instant reply.
The output of ls -l is different in so far that it says: "-rwxr-xr-x" compared to yours: "-rwsr-xr-x" . The difference being the letter s on the fourth position.
papaoskar
 
Posts: 80
Joined: Tue Jul 01, 2014 2:48 pm

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby xeno74 » Wed May 04, 2016 9:29 pm

papaoskar wrote:Thank you for your instant reply.
The output of ls -l is different in so far that it says: "-rwxr-xr-x" compared to yours: "-rwsr-xr-x" . The difference being the letter s on the fourth position.


Please modify the file attributes. (see above)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3159
Joined: Fri Mar 23, 2012 8:58 am

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby xeno74 » Wed May 04, 2016 10:50 pm

It's also possible to add only the SetUID bit to the file attributes.

Code: Select all
# chmod u+s /bin/su


Code: Select all
# chmod u+s /usr/bin/sudo
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3159
Joined: Fri Mar 23, 2012 8:58 am

Re: (X)(L)ubuntu (MATE) 16.04 LTS

Postby Amigo1 » Thu May 05, 2016 8:49 am

xeno74 wrote:Hi Amigo1,

Amigo1 wrote:
Code: Select all
amigo1@Amigaone:~$ vlblank_mode=0 glxgears



You have typed vlblank instead of vblank. Could you please post your output of vblank_mode=0 glxgears again?



Hi!

here the results

Code: Select all
amigo1@Amigaone:~$ vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
3586 frames in 5.0 seconds = 717.128 FPS
4079 frames in 5.0 seconds = 815.740 FPS
4624 frames in 5.0 seconds = 924.751 FPS
4209 frames in 5.0 seconds = 841.725 FPS
3636 frames in 5.0 seconds = 727.135 FPS
3716 frames in 5.0 seconds = 743.136 FPS
4777 frames in 5.0 seconds = 955.354 FPS
^C
amigo1@Amigaone:~$


I'll try the unofficial Mesa and report back.
Thanks so far :-)


edit:

oh.. I think it was rendering a web page in the background, this looks better:

Code: Select all
amigo1@Amigaone:~$ vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
5177 frames in 5.0 seconds = 1035.321 FPS
5249 frames in 5.0 seconds = 1049.660 FPS
4534 frames in 5.0 seconds = 906.673 FPS
5099 frames in 5.0 seconds = 1019.683 FPS
5362 frames in 5.0 seconds = 1072.320 FPS
4459 frames in 5.0 seconds = 891.770 FPS
5334 frames in 5.0 seconds = 1066.768 FPS
5370 frames in 5.0 seconds = 1073.874 FPS
5360 frames in 5.0 seconds = 1071.894 FPS
^C
amigo1@Amigaone:~$
User avatar
Amigo1
 
Posts: 158
Joined: Sun Jan 01, 2012 4:32 pm

PreviousNext

Return to Platform: AmigaOne X1000 - Linux Only

Who is online

Users browsing this forum: No registered users and 6 guests