Author Topic: Linaro 13.04 developer for A20  (Read 50970 times)

magno

  • Guest
Re: Linaro 13.04 developer for A20
« Reply #45 on: October 12, 2013, 01:53:10 pm »
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

Offline esiravegna

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #46 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?
« Last Edit: October 12, 2013, 03:40:32 pm by esiravegna »

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #47 on: October 12, 2013, 06:13:56 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

Offline esiravegna

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #48 on: October 13, 2013, 08:40:10 am »
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

  • Guest
Re: Linaro 13.04 developer for A20
« Reply #49 on: October 13, 2013, 11:37:50 am »
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

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #50 on: October 13, 2013, 12:36:28 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.

Offline esiravegna

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #51 on: October 13, 2013, 06:42:39 pm »
modprobe sun4i_cedar_mod did the trick, video looks acceptable now...

THANKS!
« Last Edit: October 13, 2013, 06:51:20 pm by esiravegna »

Offline esiravegna

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #52 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!

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #53 on: October 14, 2013, 10:58:43 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):

Code: [Select]
/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

Offline esiravegna

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #54 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?

Code: [Select]
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.

Offline tombs

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +3/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #55 on: October 14, 2013, 11:49:08 am »
I am having a brain fart today. How do you install the image to an sd card?

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #56 on: October 14, 2013, 12:00:24 pm »
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?

Code: [Select]
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.

Offline esiravegna

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #57 on: October 14, 2013, 12:24:08 pm »

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.
« Last Edit: October 14, 2013, 02:02:11 pm by esiravegna »

Offline esiravegna

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Re: Linaro 13.04 developer for A20
« Reply #58 on: October 14, 2013, 02:54:08 pm »
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

  • Guest
Re: Linaro 13.04 developer for A20
« Reply #59 on: March 16, 2014, 05:42:13 pm »
I can't recognize the sata disk plugged in my CB 20.
Can someone test this?