AMLogic 8726m3/Mali400 and Debian Linux/Xorg
#46
I work on the m6 platform and use the develop branch on the nspierbundel/amlogic-common on github.
I've done no work on the 3.0 kernel for m3.
See forum on j1nx.nl look for thirsty, he has a somewhat running 3.0 kernel for m3
Daniel
Reply
#47
cool!

THanks for the info!
Reply
#48
hi,
maybe you guys can help me out.
https://gist.github.com/nspierbundel/5535423

this is on a m6 box using the buildroot from j1nx
I had to disable lirc to get it compile in the first place so I think it is safe to ignore the lirc errors.

Daniel
Reply
#49
Fixed
Reply
#50
I found the workaround for segmentation fault on Amlogic M3
As it start since I move from M1(512MB) to M3(1024MB)

I disabled HIGHMEM in kernel config
and it is all fine now
It isn't solution but it solve my problem
If I want to build debian package on device it crash many times
And I don't know how to continue package build process Sad

btw
I have working debian 7.0, qt5 with opengl es (fb version) vsync fine on device
but ALSA audio output generate crazy sound
hw video decoder get me 50%cpu in memcpy to userspace. I am going to use DMA
Reply
#51
Thanks for that!

I'm working on migrating device drivers to kernel 2.6.36 (according to mali documentation, it's the minimum required)

I have the kernel booting, with ehternet, usb, framebuffer and sound working.

I had to disable DVB since it gets me lots of trouble, but i'll let you know and upload the source once I have something more usable.

I remember having some issues with the sound card when i installed debian wheezy. I will let you know on monday when i get to work, what changes i did in order to get it to work..

Are you rendering video fromes taken from the video decoder to the framebuffer as textures using opengles?
Reply
#52
I think that pivos and little black bock project have same problem with segmentation fault
but as they only start xbmc, it all looks OK
I search the web for HIGHMEM problem and Texas instruments have same problem and they solve it in 2.6.XX
I don't know if it is upstream in kernel tree but I am going to do some tests in 3.0 kernel
as it works fine on geniatech atv320b (no alsa, opengl, ethernet) but still good for this type of test.

Can you point me how to solve ALSA.
I am just curious where is problem.

Why did you not moved to 3.0 ? It will be nice to have 3.0 on M3 hw.

with sw decoder (in case CPU handle video file)
I am able to use gstreamer as sw decoder to render video as texture in qt5/qml (opengl)
all nice effects as you can see here http://www.youtube.com/watch?v=P4kv-AoAJ-Q
gstreamer(sw decoder) -> qt5/qml (opengl) -> framebuffer

hw decoder
I am able to make gstreamer plugin but simply memcpy(decoded) from kernel hw decoder to user memmory space take 40% cpu
I hope DMA fix this problem.
Reply
#53
this solve my gstreamer -> alsa(http://www.volkerschatz.com/noise/alsa.html) problem

/etc/asound.conf
pcm.!default { type hw card 0 }
pcm.default.card 0

I don't know what kind of device is default without this config
because gstreamer get all kind of unsupported formats( SNDRV_PCM_FMTBIT_S32_LE, SNDRV_PCM_FMTBIT_S24_LE ) from default device.
now all works fine with analog output on M3

3.0 amlogic kernel driver add support for SNDRV_PCM_FMTBIT_S24_LE format
2.6 amlogic kernel driver support only SNDRV_PCM_FMTBIT_S16_LE on M3
but SNDRV_PCM_FMTBIT_S16_LE, SNDRV_PCM_FMTBIT_S24_LE, SNDRV_PCM_FMTBIT_S32_LE on M1

I didn't test spdif pass through and hdmi audio
Reply
#54
I tried to make the old 3.0.8 kernel work on the M3/MyGica A11.
But Amlogic put some code in Meson3 directory but did not finish it.
See the old repo: https://github.com/nspierbundel/amlogic-...its/meson3
It is bootable BTW.

I also have a noisy sound on my M6 box. I going to try you asound.conf.
Reply
#55
thx
I done some test on
https://github.com/nspierbundel/amlogic-...its/meson3
mem tests on M3
I don't have problem with HIGHMEM on 3.0 kernel.
and debian weezy boot fine.
When I enable amlogic sound driver in kernel I don't have any audio and alsa can't find any sound driver

btw
from my experience XBMC don't use any alsa configs.
Reply
#56
You have to enable aml dummy codec.
Daniel
Reply
#57
we need to do more in your branch of M3 3.0 kernel
http://pastebin.com/Gvs8KJLN
Reply
#58
Ill try to start porting the m3 to the 3.0.50 this evening .
Reply
#59
(2013-06-17, 19:08)miskol Wrote: we need to do more in your branch of M3 3.0 kernel
http://pastebin.com/Gvs8KJLN

Is debugFS enabled?
Reply
#60
https://github.com/nspierbundel/amlogic-..._defconfig
CONFIG_DEBUG_FS=y

It looks like I need to mount it in fstab
https://access.redhat.com/site/documenta...bugfs.html
http://www.linuxtopia.org/online_books/l...09s07.html
Reply

Logout Mark Read Team Forum Stats Members Help
AMLogic 8726m3/Mali400 and Debian Linux/Xorg0