All times are UTC-06:00




Post new topic  Reply to topic  [ 47 posts ] 
Author Message
PostPosted: Sat Apr 28, 2012 11:14 am 
Offline

Joined: Wed Oct 13, 2004 7:26 am
Posts: 348
Hi everyone,

Again apologies for the delay, but we finally got the repository online!

The line you need to add to your sources.list is:
Code:
deb http://armhf.efikamx.com unstable main
and just run apt-get update. A similar line will be provided for debian wheezy and ubuntu precise armhf systems soon.

UPDATE: As some users noted correctly, you will not be able to install packages before adding the genesi archive keyring first. You can do that with the following commands:
Code:
# wget http://armhf.efikamx.com/pool/main/g/ge ... 03_all.deb
# dpkg -i genesi-archive-keyring_201203_all.deb
After that, you could either install packages manually on a case-by-case basis, or just pull everything via the imx-essential, imx-essential-dev meta-packages:
Code:
# apt-get -u install imx-essential
# apt-get -u install imx-essential-dev
Have in mind that imx-essential-dev pulls imx-essential anyway, but that's only useful for people that need the actual headers.

So, what does imx-essential pull:

* xserver-xorg-video-imx: that's the 2D imx-ng video driver
* imx-libc-neon: NEON optimized common glibc function replacements (memcpy, memset, etc).
* imx-udev-rules: udev rules for i.MX5
* imx-boot-scripts: performance tweaking init scripts for the EfikaMX systems
* imx-powermanagement-config: fix suspend/resume on the EfikaMX systems
* imx-sysctl-rules: sysctl rules for improved performance
* imx-pulseaudio-config: forces alsa to route through pulseaudio
* gstreamer0.10-fsl-mm-plugins: FSL gstreamer plugins
* gir1.2-gst-plugins-base-0.10 (= 0.10.36-1.1genesi1): patched gstreamer package to use the FSL plugins
* gstreamer0.10-plugins-base (= 0.10.36-1.1genesi1): same
* libegl1-imx: EGL 3D driver for i.MX515
* libgles1-imx: GLESv1 3D driver for i.MX515
* libgles2-imx: GLES2 3D driver for i.MX515
* libopenvg1-imx: OpenVG driver for i.MX515

It will also pull the following packages as dependencies:

* libkgsl-imx: interface library for the 2D/3D drivers and the kernel gpu module
* libc2d-z160-imx: C2D interface for the z160 unit
* libc2d-z430-imx: C2D interface for the z430 unit
* libipu: VPU kernel access library for i.MX5 processors
* libvpu: IPU kernel access library for i.MX5 processors
* libsahara: SAHARA2 Hardware Security Engine library for i.MX5 processors

NOTE: After you install the packages, you *have* to give it an xorg.conf so that it can detect the imx driver -it doesn't at the moment, needs a patch in the Debian xserver package, working on that. Please use the following:
Code:
Section "Module"
Load "extmod"
Disable "dbe"
# Disable "glx"
Disable "dri"
Disable "dri2"
EndSection

Section "Device"
Identifier "IMX"
Driver "imx"
Option "AccelMethod" "EXA"
Option "Backend" "Z160" # can be Z160/Z430
Option "Compositing" "off"
Option "XvBilinear" "on"
Option "XvDoubleBuffering" "off"
EndSection
You could play with those values, we're working in an automated way to avoid the use of an xorg.conf, will probably happen in a next version, apologies for the inconvenience.

Also, the video playback uses the hardware decoder *only* via gstreamer so totem will work, but mplayer/vlc will not -yet. And it's likely you will find that some video streams do not work at all or cause instability issues. The majority of the streams I've fed to totem worked though.

Finally, have in mind that most of these packages pull imx-freescale-eula license package, which you have to agree to, in order to properly install the packages. We will not support anyone that wants to try to install the packages without the EULA, people that would like to have the packages ported to another distro should also have that in mind.

That's about it, for any questions, please don't hesitate to ask!!


Last edited by markos on Sun Apr 29, 2012 4:31 pm, edited 1 time in total.

Top
   
PostPosted: Sat Apr 28, 2012 5:32 pm 
Offline

Joined: Thu Aug 11, 2011 4:14 pm
Posts: 36
Location: USA
Hi,

I ran into a few issues with the installation, and unfortunately the 3d drivers (I suspect it's libEGL) have some problems:

1. After adding armhf.efikamx.com, apt-get update did not work because it was not able to find the public signing keys from the server. I got around this by manually installing http://armhf.efikamx.com/pool/main/g/ge ... 03_all.deb

2. Also, the armhf installer did not work. Packages were still missing from the US repository, so I chose the DE repository. Debootstrap also had a problem with installing libept1. In the script I excluded libept1 from debootstrap

After these changes, I was able to install to the SSD drive.

Apart from the Freescale Demos located in /usr/bin (es11ex, torusknot, simple_draw, etc), The 3d Drivers have problems.

I also added the xorg.conf settings that you mentioned, but OpenGL ES programs that normally work on other platforms and with PC emulators, do not work here.

Sometimes there are visual artifacts on the screen especially when the mouse moves. Also, the Freescale demos occasionally hang the system without any errors given.

Also, I tried to use the benchmarking program, GLmark2-es2 (I compiled the source code from the Ubuntu 12.04) but it does not work. It seems to crash whenever a call to eglSwapBuffers is made. The X server reports an error, specifically with X_CopyArea.

The older version of GLmark2-es2, which uses SDL for Window creation, and comes with Ubuntu 10.10, runs for a few seconds, but then hangs the system.

Is there any source code to the Freescale demos? I think part of the problem is the way that windows are being created.


Top
   
 Post subject:
PostPosted: Sun Apr 29, 2012 6:01 am 
Offline

Joined: Tue Apr 17, 2012 3:15 am
Posts: 44
Location: Barcelona, Spain
I've just installed it. I can't give specifics yet but generally speaking, performance for me seems to be much worse. With just a browser and a terminal open, the CPU is idling about 10-15% more than before. What would be the most straightforward way to rollback, in case I want to go that route?

A few questions:
1) a program I was using which required the X Double Buffering Extension no longer works due to double buffering not being enabled for the display. What is the cause of this lack of support? The new driver? I tried changing the Double Buffer line in the xorg.conf but it had no effect.
2) Out of curiosity, which packages specifically are proprietary and covered by the EULA? In other words, is it possible to install some of the packages without worrying about having to agree to the terms?
3) The above post mentions Freescale examples in /usr/bin however I have none of those...perhaps something went wrong? What package provides those examples?
4) Does anything need to be done to enable the various optimizations (ie udev, sysctl, etc)?

_________________
http://www.brandoninvergo.com


Top
   
 Post subject:
PostPosted: Sun Apr 29, 2012 6:20 am 
Offline

Joined: Tue Apr 17, 2012 3:15 am
Posts: 44
Location: Barcelona, Spain
Ok, nevermind about the performance drop. I also made the change from wheezy to unstable in order to install these, and I hadn't noticed that my /etc/rc.local was overwritten, disabling ramzswap in the process. I restored a backup of the file and everything's much snappier now, it seems. Amazing what that one little feature can do. It does seem wicd is now using a bit more CPU than it should, but that's unrelated, I guess.

Regarding Double Buffering, I missed the "disable dbe" line in the xorg.conf. If I comment out this and the other DoubleBuffer line, the program works fine. Why should dbe be disabled, just out of curiosity?

My other questions still hold though.

_________________
http://www.brandoninvergo.com


Top
   
PostPosted: Sun Apr 29, 2012 9:34 am 
Offline

Joined: Thu Aug 11, 2011 4:14 pm
Posts: 36
Location: USA
Quote:
Hi,

I ran into a few issues with the installation, and unfortunately the 3d drivers (I suspect it's libEGL) have some problems:

1. After adding armhf.efikamx.com, apt-get update did not work because it was not able to find the public signing keys from the server. I got around this by manually installing http://armhf.efikamx.com/pool/main/g/ge ... 03_all.deb

2. Also, the armhf installer did not work. Packages were still missing from the US repository, so I chose the DE repository. Debootstrap also had a problem with installing libept1. In the script I excluded libept1 from debootstrap

After these changes, I was able to install to the SSD drive.

Apart from the Freescale Demos located in /usr/bin (es11ex, torusknot, simple_draw, etc), The 3d Drivers have problems.

I also added the xorg.conf settings that you mentioned, but OpenGL ES programs that normally work on other platforms and with PC emulators, do not work here.

Sometimes there are visual artifacts on the screen especially when the mouse moves. Also, the Freescale demos occasionally hang the system without any errors given.

Also, I tried to use the benchmarking program, GLmark2-es2 (I compiled the source code from the Ubuntu 12.04) but it does not work. It seems to crash whenever a call to eglSwapBuffers is made. The X server reports an error, specifically with X_CopyArea.

The older version of GLmark2-es2, which uses SDL for Window creation, and comes with Ubuntu 10.10, runs for a few seconds, but then hangs the system.

Is there any source code to the Freescale demos? I think part of the problem is the way that windows are being created.
I figured out the problem with EGL.

EGL only works with X11 when a X11 window's color depth is 16-bit (Using xwininfo, I found out that the Freescale demos were creating Windows with 16-bit color depth, while most of the programs I was trying to use that worked on other platforms were using the default 32-bit depth).
Code:
XMatchVisualInfo(dpy, XDefaultScreen(dpy), 16, TrueColor, &vinfo)


Returns a structure (vinfo) that I could use to create a 16-bit color window, and most of the demos started working, not sure if the random system hangings will be fixed, the Freescale demos had this problem as well...

Summary: One has to explicitly create 16-bit color windows to use OpenGL ES.

I'll experiment with the xorg.conf settings to fix the visual artifacts that sometimes appear.


Top
   
 Post subject:
PostPosted: Sun Apr 29, 2012 9:42 am 
Offline

Joined: Thu Aug 11, 2011 4:14 pm
Posts: 36
Location: USA
Quote:
3) The above post mentions Freescale examples in /usr/bin however I have none of those...perhaps something went wrong?


I found the Freescale demos (torusknot, es11ex, simple_draw and maybe a couple others) in the /usr/bin folder. I think the EfikaMX/ARMHF distribution includes them by default?


Top
   
PostPosted: Sun Apr 29, 2012 4:38 pm 
Offline

Joined: Wed Oct 13, 2004 7:26 am
Posts: 348
I'll try to answer all questions, here goes:
Quote:
1. After adding armhf.efikamx.com, apt-get update did not work because it was not able to find the public signing keys from the server. I got around this by manually installing http://armhf.efikamx.com/pool/main/g/ge ... 03_all.deb
You are correct and that was an omission on my part, the first post has been edited and fixed.
Quote:
2. Also, the armhf installer did not work. Packages were still missing from the US repository, so I chose the DE repository. Debootstrap also had a problem with installing libept1. In the script I excluded libept1 from debootstrap
Have in mind that not all mirrors are synced, especially if you're trying to install unstable. I've had no problems with the US/DE mirror myself, but I've had other people tell me that the US mirror is out of sync.
Quote:
Apart from the Freescale Demos located in /usr/bin (es11ex, torusknot, simple_draw, etc), The 3d Drivers have problems.

I also added the xorg.conf settings that you mentioned, but OpenGL ES programs that normally work on other platforms and with PC emulators, do not work here.
Could you give a list of those programs? It would help us debug and drivers.
Quote:
Sometimes there are visual artifacts on the screen especially when the mouse moves. Also, the Freescale demos occasionally hang the system without any errors given.
I haven't actually experienced those artifacts at all, at least not in the current setup. Could you give some hints as to how to reproduce those?
Quote:
Also, I tried to use the benchmarking program, GLmark2-es2 (I compiled the source code from the Ubuntu 12.04) but it does not work. It seems to crash whenever a call to eglSwapBuffers is made. The X server reports an error, specifically with X_CopyArea.
Argh, you're right about that, this used to run a few versions ago, need to check if it's the driver or the app problem.
Quote:
The older version of GLmark2-es2, which uses SDL for Window creation, and comes with Ubuntu 10.10, runs for a few seconds, but then hangs the system.
I hope you mean the recompiled version for armhf :)
Quote:
Is there any source code to the Freescale demos? I think part of the problem is the way that windows are being created.
Unfortunately, they are part of the amd-gpu-src source tree, which is closed source. I will ask though if we can actually share the source for the demos.


Top
   
 Post subject:
PostPosted: Sun Apr 29, 2012 4:48 pm 
Offline

Joined: Wed Oct 13, 2004 7:26 am
Posts: 348
Quote:
I've just installed it. I can't give specifics yet but generally speaking, performance for me seems to be much worse. With just a browser and a terminal open, the CPU is idling about 10-15% more than before. What would be the most straightforward way to rollback, in case I want to go that route?
Ok, here is the low down on performance of the imxng driver vs fbdev. In some operations, fbdev is faster as it uses the NEON unit and we've found that it's a bit faster than the internal blitting done by Z160/Z430. However, you miss Xv video playback and well, having everything being done by the CPU is not really optimal. And anyway the difference in performance is really minor, <10%. However if you really want to rollback to the fbdev you can just remove the imxng driver package and the xorg.conf file -it will force to uninstall imx-essential meta-package as well.
Quote:
A few questions:
1) a program I was using which required the X Double Buffering Extension no longer works due to double buffering not being enabled for the display. What is the cause of this lack of support? The new driver? I tried changing the Double Buffer line in the xorg.conf but it had no effect.
You could just enable dbe again in the xorg.conf.
Quote:
2) Out of curiosity, which packages specifically are proprietary and covered by the EULA? In other words, is it possible to install some of the packages without worrying about having to agree to the terms?
Basically libkgsl (and all the 3d debs that depend on it), plus the libvpu/libipu which are needed for ipu/vpu control (video playback in gstreamer) and libsahara packages, for controling the security engine in iMX515.
Quote:
3) The above post mentions Freescale examples in /usr/bin however I have none of those...perhaps something went wrong? What package provides those examples?
The examples are installed when you install the imx-essential-dev meta package.
Quote:
4) Does anything need to be done to enable the various optimizations (ie udev, sysctl, etc)?
Apart from installing the packages? No.


Top
   
 Post subject:
PostPosted: Sun Apr 29, 2012 4:52 pm 
Offline

Joined: Wed Oct 13, 2004 7:26 am
Posts: 348
Quote:
Ok, nevermind about the performance drop. I also made the change from wheezy to unstable in order to install these, and I hadn't noticed that my /etc/rc.local was overwritten, disabling ramzswap in the process. I restored a backup of the file and everything's much snappier now, it seems. Amazing what that one little feature can do. It does seem wicd is now using a bit more CPU than it should, but that's unrelated, I guess.
ramzswap is enabled in the /etc/init.d/efikamx, part of imx-boot-scripts package.
Quote:
Regarding Double Buffering, I missed the "disable dbe" line in the xorg.conf. If I comment out this and the other DoubleBuffer line, the program works fine. Why should dbe be disabled, just out of curiosity?
To be honest this was probably just left in there since testing :)
Quote:
My other questions still hold though.
See my previous reply.


Top
   
 Post subject:
PostPosted: Sun Apr 29, 2012 4:54 pm 
Offline

Joined: Wed Oct 13, 2004 7:26 am
Posts: 348
Quote:
I found the Freescale demos (torusknot, es11ex, simple_draw and maybe a couple others) in the /usr/bin folder. I think the EfikaMX/ARMHF distribution includes them by default?
It's not really a distribution, just Debian with an extra repository of EfikaMX-related packages. Anyway, the demos can be found in libgles1-imx-dev (es11ex), libgles2-imx-dev(simple-draw, torusknot).


Top
   
PostPosted: Sun Apr 29, 2012 5:06 pm 
Offline

Joined: Wed Jul 01, 2009 4:35 pm
Posts: 94
Location: Italy
Thanks Kostantinos!
After add the repository and update and upgrade and reboot, 3 video avi that I try to play with totem,vlc,mplayer doesn't play sound.
The sound itself work because i can listen music on stream radio and via youtube.
Quote:
Hi everyone,

Again apologies for the delay, but we finally got the repository online!

The line you need to add to your sources.list is:
Code:
deb http://armhf.efikamx.com unstable main
...



That's about it, for any questions, please don't hesitate to ask!!

_________________
http://deliriotecnologico.blogspot.com


Last edited by robyinno on Mon Apr 30, 2012 5:35 pm, edited 2 times in total.

Top
   
 Post subject:
PostPosted: Mon Apr 30, 2012 4:37 am 
Offline

Joined: Tue Apr 17, 2012 3:15 am
Posts: 44
Location: Barcelona, Spain
For audio, I had to install pulseaudio.

_________________
http://www.brandoninvergo.com


Top
   
 Post subject:
PostPosted: Mon Apr 30, 2012 3:08 pm 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Thanks Markos;

I still have a problem while trying to generate a full mage with multistrap :
Code:
libegl1-imx : Dépend: libx11-6 (>= 2:1.4.99.1) mais 2:1.4.4-4+b1 devra être installé

_________________
[:-]


Top
   
PostPosted: Mon Apr 30, 2012 6:13 pm 
Offline

Joined: Wed Jul 01, 2009 4:35 pm
Posts: 94
Location: Italy
I have experienced that Freescale demos hang the system, here a piece of the var log messages
Code:
Apr 30 23:43:35 efikamx kernel: [ 35.856850] Division by zero in kernel.
Apr 30 23:43:35 efikamx kernel: [ 35.860716] [<80031a6c>] (unwind_backtrace+0x0/0xec) from [<80315284>] (dump_stack+0x18/0x1c)
Apr 30 23:43:35 efikamx kernel: [ 35.869342] [<80315284>] (dump_stack+0x18/0x1c) from [<80030b0c>] (__div0+0x18/0x20)
Apr 30 23:43:35 efikamx kernel: [ 35.877145] [<80030b0c>] (__div0+0x18/0x20) from [<801a34ac>] (Ldiv0+0x8/0x10)
Apr 30 23:43:35 efikamx kernel: [ 35.884693] [<801a34ac>] (Ldiv0+0x8/0x10) from [<801a347c>] (__aeabi_uidivmod+0x8/0x18)
Apr 30 23:43:35 efikamx kernel: [ 35.892754] [<801a347c>] (__aeabi_uidivmod+0x8/0x18) from [<7f0c3580>] (RtmpUSBMgmtKickOut+0x70/0x120 [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.903423] [<7f0c3580>] (RtmpUSBMgmtKickOut+0x70/0x120 [rt2870sta]) from [<7f0975f0>] (MlmeHardTransmitMgmtRing+0x354/0x368 [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.916013] [<7f0975f0>] (MlmeHardTransmitMgmtRing+0x354/0x368 [rt2870sta]) from [<7f097660>] (MlmeHardTransmit+0x5c/0x6c [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.928303] [<7f097660>] (MlmeHardTransmit+0x5c/0x6c [rt2870sta]) from [<7f097700>] (MiniportMMRequest+0x90/0xd4 [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.939805] [<7f097700>] (MiniportMMRequest+0x90/0xd4 [rt2870sta]) from [<7f09f71c>] (ScanNextChannel+0x59c/0x5fc [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.951394] [<7f09f71c>] (ScanNextChannel+0x59c/0x5fc [rt2870sta]) from [<7f0aef94>] (MlmeScanReqAction+0x1d8/0x224 [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.963192] [<7f0aef94>] (MlmeScanReqAction+0x1d8/0x224 [rt2870sta]) from [<7f08ddc8>] (StateMachinePerformAction+0x3c/0x40 [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.975662] [<7f08ddc8>] (StateMachinePerformAction+0x3c/0x40 [rt2870sta]) from [<7f0939e8>] (MlmeHandler+0x1c0/0x204 [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.987586] [<7f0939e8>] (MlmeHandler+0x1c0/0x204 [rt2870sta]) from [<7f0be6b8>] (MlmeThread+0x100/0x124 [rt2870sta])
Apr 30 23:43:35 efikamx kernel: [ 35.998416] [<7f0be6b8>] (MlmeThread+0x100/0x124 [rt2870sta]) from [<8006b7d0>] (kthread+0x84/0x8c)
Apr 30 23:43:35 efikamx kernel: [ 36.007623] [<8006b7d0>] (kthread+0x84/0x8c) from [<8002d8e4>] (kernel_thread_exit+0x0/0x8)
Quote:
I'll try to answer all questions, here goes:
Quote:
Sometimes there are visual artifacts on the screen especially when the mouse moves. Also, the Freescale demos occasionally hang the system without any errors given.
I haven't actually experienced those artifacts at all, at least not in the current setup. Could you give some hints as to how to reproduce those?
Code:

_________________
http://deliriotecnologico.blogspot.com


Top
   
 Post subject:
PostPosted: Mon Apr 30, 2012 9:52 pm 
Offline

Joined: Wed Oct 13, 2004 7:26 am
Posts: 348
Quote:
Thanks Markos;

I still have a problem while trying to generate a full mage with multistrap :
Code:
libegl1-imx : Dépend: libx11-6 (>= 2:1.4.99.1) mais 2:1.4.4-4+b1 devra être installé
That's because you're trying to using testing setup with unstable debs, that won't work. testing debs will follow soon.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 47 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group