November 19, 2019, 06:07:01 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Linaro 13.04 developer for A20

Started by patwood, October 02, 2013, 02:02:07 pm

Previous topic - Next topic

magno

Quote from: esiravegna on October 11, 2013, 11:21:51 am
Pat, thanks a lot for your work. I'm trying to build xbmc from scratch using http://linux-sunxi.org/XBMC, the libhybris binaries et all...however, when i try modprobe mali seems that the trivers aren't installed. I'm following http://linux-sunxi.org/Binary_drivers#Mali_kernel_driver, but make install states, which is true, that dev/mali isn't found.

Any ideas on how can install the mali drivers? Thanks!


Let me know when you are done. So I can refer your distro in my catalog.
http://www.cubieboard.cmabreu.com.br

esiravegna

October 12, 2013, 03:04:33 pm #46 Last Edit: October 12, 2013, 03:40:32 pm by esiravegna
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

patwood

Quote from: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

Horrible performance (1-2) fps usually means you're not using the hw decoder.  Start here:  http://linux-sunxi.org/CedarX

esiravegna

Quote from: patwood on October 12, 2013, 06:13:56 pm
Quote from: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

Horrible performance (1-2) fps usually means you're not using the hw decoder.  Start here:  http://linux-sunxi.org/CedarX


Thanks for the tip. I followed the http://linux-sunxi.org/XBMC guide, and used the http://linux-sunxi.org/CedarX/libve libhybris method. XBMC reports in sysinfo that I'm using the mali drivers. I'm not sure what I'm doing wrong here.

magno

Quote from: esiravegna on October 13, 2013, 08:40:10 am
Quote from: patwood on October 12, 2013, 06:13:56 pm
Quote from: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

Horrible performance (1-2) fps usually means you're not using the hw decoder.  Start here:  http://linux-sunxi.org/CedarX


Thanks for the tip. I followed the http://linux-sunxi.org/XBMC guide, and used the http://linux-sunxi.org/CedarX/libve libhybris method. XBMC reports in sysinfo that I'm using the mali drivers. I'm not sure what I'm doing wrong here.


Try to put the test movie in a SDCARD. Network videos is not the best way to test performance.
http://samplemedia.linaro.org/H264/big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4

patwood

Quote from: esiravegna on October 13, 2013, 08:40:10 am
Quote from: patwood on October 12, 2013, 06:13:56 pm
Quote from: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

Horrible performance (1-2) fps usually means you're not using the hw decoder.  Start here:  http://linux-sunxi.org/CedarX


Thanks for the tip. I followed the http://linux-sunxi.org/XBMC guide, and used the http://linux-sunxi.org/CedarX/libve libhybris method. XBMC reports in sysinfo that I'm using the mali drivers. I'm not sure what I'm doing wrong here.


Mali doesn't perform video decode, cedar does.  Check a few things. 

First, do you have the files /dev/cedar_dev and /dev/disp?  If not, then try "modprobe sun4i_cedar_mod".

Are /dev/cedar_dev and /dev/disp writable by the user running xbmc?  If not, try "chmod 777 /dev/cedar_dev /dev/disp".

Do you have something like this in your uEnv.txt: sunxi_ve_mem_reserve=0?  If you do, remove it, as this reserves zero memory for the cedarx driver, so it'll exit without initializing during setup.

Also, I've never built xbmc for A10/A20, but I believe you need a special version in order for it to use the allwinner HW decoder driversL http://linux-sunxi.org/XBMC.

esiravegna

October 13, 2013, 06:42:39 pm #51 Last Edit: October 13, 2013, 06:51:20 pm by esiravegna
modprobe sun4i_cedar_mod did the trick, video looks acceptable now...

THANKS!

esiravegna

Hey Pat, I found that the /lib/modules/3.4.61-sun7i+/build is a symbolic link pointing to /home/a user that doesn't exists. I'm trying to compile https://gitorious.org/hid-aureal-kernel-module, and doensn't find any rules, obvliously. Where can I get the proper  dirs? Thanks!

patwood

Quote from: esiravegna on October 14, 2013, 10:10:15 am
Hey Pat, I found that the /lib/modules/3.4.61-sun7i+/build is a symbolic link pointing to /home/a user that doesn't exists. I'm trying to compile https://gitorious.org/hid-aureal-kernel-module, and doensn't find any rules, obvliously. Where can I get the proper  dirs? Thanks!


The linux make system seems to create three symlinks to full path names.  Here are mine (I put all my builds in an "output/<build-name>" subdirectory):

/home/pwood/arm/mk802/linux-sunxi/output: ll ./3.4.61-sun7i+/source ./3.4.61-sun7i+/output/lib/modules/3.4.61-sun7i+/source ./3.4.61-sun7i+/output/lib/modules/3.4.61-sun7i+/build
lrwxrwxrwx 1 pwood pwood 54 Oct  2 01:24 ./3.4.61-sun7i+/output/lib/modules/3.4.61-sun7i+/build -> /home/pwood/arm/mk802/linux-sunxi/output/3.4.61-sun7i+
lrwxrwxrwx 1 pwood pwood 33 Oct 10 19:53 ./3.4.61-sun7i+/output/lib/modules/3.4.61-sun7i+/source -> /home/pwood/arm/mk802/linux-sunxi
lrwxrwxrwx 1 pwood pwood 33 Oct 10 19:52 ./3.4.61-sun7i+/source -> /home/pwood/arm/mk802/linux-sunxi

esiravegna

Thanks. Seems the problem is related to linux-headers not installed. I suppose I can't install any from the repository as the kernel is modified, right?

pt-get install linux-headers
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers is a virtual package provided by:
  linux-headers-3.9.0-1-linaro-lt-vexpress 3.9.0-1.1ubuntu1~ci+130422180640
  linux-headers-3.9.0-1-linaro-omap 3.9.0-1.1ubuntu1~ci+130422195534
  linux-headers-3.9.0-1-linaro-u8500 3.9.0-1.1ubuntu1~ci+130422182708
  linux-headers-3.9.0-1-linaro-arndale 3.9.0-1.1ubuntu1~ci+130422185028
  linux-headers-3.9.0-1-linaro-highbank 3.9.0-1.1ubuntu1~ci+130422191348
  linux-headers-3.9.0-1-linaro-vexpress 3.9.0-1.1ubuntu1~ci+130422174343
  linux-headers-3.8.0-1-linaro-omap 3.8.0-1.1ubuntu1~ci+130225001457
  linux-headers-3.8.0-1-linaro-u8500 3.8.0-1.1ubuntu1~ci+130225033828
  linux-headers-3.8.0-1-linaro-origen 3.8.0-1.1ubuntu1~ci+130222082435
  linux-headers-3.8.0-1-linaro-arndale 3.8.0-1.1ubuntu1~ci+130225052351
  linux-headers-3.8.0-1-linaro-lt-vexpress 3.8.0-1.1ubuntu1~ci+130225011935
  linux-headers-3.8.0-1-linaro-highbank 3.8.0-1.1ubuntu1~ci+130225061748
  linux-headers-3.8.0-1-linaro-vexpress 3.8.0-1.1ubuntu1~ci+130225020935
  linux-headers-3.7.0-1-linaro-arndale 3.7.0-1.1~ci+130118091958
  linux-headers-3.7.0-1-linaro-origen 3.7.0-1.1~ci+130118091510
  linux-headers-3.7.0-1-linaro-u8500 3.7.0-1.1~ci+130118092324
  linux-headers-3.7.0-1-linaro-lt-vexpress 3.7.0-1.1~ci+130118091309
  linux-headers-3.7.0-1-linaro-vexpress 3.7.0-1.1~ci+130118091958
  linux-headers-3.5.0-17-omap 3.5.0-17.28
  linux-headers-3.5.0-17-highbank 3.5.0-17.28
  linux-headers-3.5.0-17 3.5.0-17.28
You should explicitly select one to install.

tombs

I am having a brain fart today. How do you install the image to an sd card?

patwood

Quote from: esiravegna on October 14, 2013, 11:31:38 am
Thanks. Seems the problem is related to linux-headers not installed. I suppose I can't install any from the repository as the kernel is modified, right?

pt-get install linux-headers
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers is a virtual package provided by:
  linux-headers-3.9.0-1-linaro-lt-vexpress 3.9.0-1.1ubuntu1~ci+130422180640
  linux-headers-3.9.0-1-linaro-omap 3.9.0-1.1ubuntu1~ci+130422195534
  ...



Yup.  The allwinner kernel is a branch of the mainline linux source tree, so its headers probably won't match up; however, you've got the kernel installed, so you should be able to make a symlink of your git tree in /usr/src.

esiravegna

October 14, 2013, 12:24:08 pm #57 Last Edit: October 14, 2013, 02:02:11 pm by esiravegna

Nm, cloned the https://github.com/patrickhwood/linux-sunxi and did a simlyn from the root to /usr/src , same error.
I'll keep trying.
Thanks.

esiravegna

oh, dang, now I need a working Module.symvers...does anybody can share a linaro 13.04 with me? I'm running out of space in order to make modules in src...

magno

I can't recognize the sata disk plugged in my CB 20.
Can someone test this?