Cubieboard anyone?

This forum is for supported devices using an ARMv7 Allwinner SoC.

Re: Cubieboard anyone?

Postby maribu » Tue Feb 12, 2013 6:45 pm

Ok, once again I failed at writing a working udev rule.

But I got something better working:

$this->bbcode_second_pass_code('', 'cat /etc/systemd/system/leds.service
[Unit]
Description=Sets up the cubieboard LED to trigger activity on the SD card

[Service]
Type=oneshot
ExecStart=/bin/dash -c "echo mmc0 > /sys/class/leds/green\:ph20\:led1/trigger"

[Install]
WantedBy=multi-user.target')

Change "dash" to "bash", if you don't have dash installed.

Regards,
Maribu
maribu
 
Posts: 33
Joined: Wed Nov 23, 2011 12:39 pm

Re: Cubieboard anyone?

Postby maribu » Wed Feb 13, 2013 12:54 pm

Hi, everybody!

I found out why my fbcon does not work. The fbcon driver wasn't included in the default kernel package. I didn't thought that someone wouldn't include fbcon.

I really don't see any reason why you wouldn't compile fbcon as module. This way all the people who want to use the fbcon console could use it, and those who don't want to use it simple have to blacklist the module. Now I will definetly provide my package (and PKGBUILD) for those, who also want to use console via display.

Regards,
Maribu
maribu
 
Posts: 33
Joined: Wed Nov 23, 2011 12:39 pm

Re: Cubieboard anyone?

Postby WarheadsSE » Wed Feb 13, 2013 2:52 pm

You can just make a pull request with the justified change :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cubieboard anyone?

Postby maribu » Wed Feb 13, 2013 8:29 pm

Hi, WarheadsSE

Thanks for encouraging me on that. I now did my first commit.

Regards,
Maribu
maribu
 
Posts: 33
Joined: Wed Nov 23, 2011 12:39 pm

Re: Cubieboard anyone?

Postby maribu » Sun Feb 17, 2013 1:10 pm

Hi, everyone!

I'm trying to use CedarX to accelerate video plackback. Therefore I compiled VLC with cedar support enabled following these instructions http://linux-sunxi.org/VLC

You can download my packages and my PKGBUILDs on https://www.dropbox.com/sh/wbycgdxowe41es3/CBgBiQQCe8. You want to make sure that you either use my PKGBUILD for mali-libs if you want to compile the PKGBUILDs your self, or you could also extract the egl.pc and copy it to /usr/lib/pkgconfig to get VLC compiled against the AUR version of mali-libs.

If you start vlc with:
$this->bbcode_second_pass_code('', 'cvlc --demux ffmpeg --codec cedar --vout cedarfb --aout alsa --no-osd /path/to/my/video/file.mkv')

it seems to start accelerated playback. The only problem is, that on my CubieBoard I cannot see the video output. Note: Make sure you use "--vout cedarfb" if you use "--codec cedar", otherwise you system will freeze. Also you need access to /dev/dips and to /dev/cedar_dev for vlc to work.

If someone finds out how to actually make the video output visible, I would be glad if you tell me how.

Regards,
Maribu
maribu
 
Posts: 33
Joined: Wed Nov 23, 2011 12:39 pm

Re: Cubieboard anyone?

Postby phito » Tue Feb 26, 2013 2:32 pm

Hi Maribu,

Did you make any progress with CedarX?
I'm stuck at the same point.

Regards,
Phito.-
phito
 
Posts: 3
Joined: Tue Feb 26, 2013 2:23 pm

Re: Cubieboard anyone?

Postby maribu » Tue Feb 26, 2013 2:56 pm

@phito:

Yes, a little bit at least. Load the fbcon module, switch to tty1 (or tty2, ... tty6) and do the following:

$this->bbcode_second_pass_code('', 'fbset -xres 640
fbset -yres 480')

This way you will still have the resolution you started with (for it's 1920x1080), but only the upper left part (640x480 pixel) is used for you console. If you then start playback, you will see the video on your screen except the upper left part, which is used by your console.

I haven't get playback working with fbcon module not loaded (I hoped this way I would get video output using the full display).

Regards,
Maribu

PS: If you start vlc with "--demux ffmpeg" it will fail after updating ffmpeg. You can simply not use ffmpeg to demux, or rebuild vlc (using my PKGBUILD) and it will work fine again.

PPS: mali-libs from AUR has broken. I have create a new PKGBUILD for a new package sunxi-mali (name changed because mali-libs now is deprecated and replace by sunxi-mali). I guess I will provide that later using my dropbox. But I will need to sort out some conflicts with mesa, which now is needed by cairo (and therefore gtk2). I do like the idea to provide a set of PKGBUILDs which will remove OpenGL dependencys for all packages I use with arm, and instead build it against Malis EGL / GLES.

Btw: Does someone know, if the mesa versions of egl / gles is binary compatible with the mali version? I really would love the idea that the default packages in ALARM would be build only against mesa egl / gles (and not mesa gl) and you simply could replace mesa with sunxi-mali as a drop in replacement. If not, I still would like to build mali specific packages and share them somehow. I guess that nobody from ALARM is very interested in providing many version of the same package which only differ in egl /gles librarys they are compiled against?
maribu
 
Posts: 33
Joined: Wed Nov 23, 2011 12:39 pm

Re: Cubieboard anyone?

Postby phito » Wed Feb 27, 2013 1:48 pm

@Maribu

Could you upload an image of your SD card? I would appreciate that.
Thanks in advance.

Phito.-
phito
 
Posts: 3
Joined: Tue Feb 26, 2013 2:23 pm

Re: Cubieboard anyone?

Postby WarheadsSE » Wed Feb 27, 2013 10:18 pm

If you upload it, remember to CLEAN it.

Otherwise, I will make an image soon anyways.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cubieboard anyone?

Postby phito » Thu Mar 14, 2013 5:26 pm

Great! I'll be waiting for that image....
phito
 
Posts: 3
Joined: Tue Feb 26, 2013 2:23 pm

PreviousNext

Return to Allwinner

Who is online

Users browsing this forum: No registered users and 35 guests