July 04, 2020, 01:00:48 am


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

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - wickwire

Software & Applications / Re: Qt5 build for cubieboard
February 05, 2015, 10:50:46 am
I'm assuming you're running everything on framebuffer, if that's the case then what you're seeing is the cursor blinking - and if you type some text, you should see it flashing as well.

Ways to get around this > http://www.cubieforums.com/index.php/topic,173.msg5854.html#msg5854

you can set the Qt variables directly on the command line, just before the command to run or on /etc/environment for a permanent fix

Software & Applications / Re: Qt5 build for cubieboard
February 05, 2015, 10:23:52 am
If by some chance I left a broken example inside the VM, grab a clean working version from here:


I can't remember if I've tested all variants on all devices, but using the sources above, you should get a clean Cinematic Experience, working on Qt 5.3.0+ and then test it on your setup! :)
Software & Applications / Re: Qt5 build for cubieboard
February 02, 2015, 12:53:08 pm
I'm actually not really sure what kind of connectivity issues you might have there, but just to make sure - as the errors you're getting state a "linaro" user, I'm thinking you're using your own cubietruck SD Card image.

If that's the case, then you should really use the included sd card images that ship with Qt5Box (i.e. reside inside the VM) - and those are Cubian based, with a cubie user on port 36000, so no need to change Qt Creator's kit configurations, except perhaps IP address.

So to make sure, here are the steps you should be taking:

  • Revert the changes already made to Qt Creator's kit settings (port, user, pass - check the README) - or better yet, start fresh with a new VM instance

  • Close Qt Creator, then use a terminal to safely unmount the SD Card image of your choice (i.e. cubietruck X11 or cubietruck FB) - I believe they are located in /opt/qt5.cubie2/

  • Extract the image file from the VM to your host system (scp works fine, a bit slower than normal ftp but easier for me, use whatever is easier for you)

  • Write the image to an available SD Card

  • Boot the cubietruck with the new image and reboot the VM or remount the unmounted sd card image

  • Fire up Qt Creator, make sure you have connectivity and run Qt Cinematic Experience or a simple hello world app to confirm

Software & Applications / Re: Qt5 build for cubieboard
January 28, 2015, 05:00:56 am
Hi Essien,

Try starting your app on the cubietruck by appending the following to the command line:

-platform eglfs -plugin EvdevKeyboard -plugin EvdevMouse

if that also fails, check if it's a permissions issue, accessing the keyboard and mouse:

- run the same command line but as root

if it works, then you need to adjust permissions on the system to access your keyboard and mouse using a regular user - something similar to this:

# cat /etc/udev/rules.d/99-input.rules
    KERNEL=="mice", NAME="input/%k", MODE="664", GROUP="input"
    KERNEL=="mouse*", NAME="input/%k", MODE="664", GROUP="input"

Then if your Qt Creator doesn't have the -plugin EvdevKeyboard -plugin EvdevMouse parameters, just add them so that when you deploy your apps, they run with permissions.
Software & Applications / Re: Qt5 build for cubieboard
December 14, 2014, 05:44:33 pm

- base images are framebuffer, no X
- desktop images are X enabled
- a20 images are cubieboard 2
- a20-ct images are cubietruck
Software & Applications / Re: Qt5 build for cubieboard
December 07, 2014, 06:03:34 am
...that would be qt5box03.zip.034...

@Leibinitz thanks for solving the 7-zip decompress mystery!
Software & Applications / Re: Qt5 build for cubieboard
December 07, 2014, 04:50:07 am
Quote from: homerjay on December 06, 2014, 07:08:14 am
Quote from: homerjay on December 05, 2014, 05:14:23 pm
I correctly loaded VM with qt5box 0.3 and tried both SD cards images for cubietruck.
That's fine but still i can't get Wifi module working, i tried to modprobe bcmdhd just like i did on the cubian official image but wifi is not getting up due to a strange error (it tries to power up and then it power off with an Android error (android?)).
Can you please confirm that it has been tested with bcmdhd mounted?

Because as far as i can guess and searching for it on google i found it is probably an error in kernel compilation of that module driver, and i was hoping to don't recompile the whole image trying to fix it.


Error log from dmesg is

[   11.477426] ANDROID-ERROR) wl_android_wifictrl_func_add: platform_driver_register timeout
[   11.500296] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON


I did recompile the sunxi kernel in order to include mali r3p2-01rel2 but I didn't mind much about additional components on cubietruck, so it's possible that something went missing for wifi and that you'd just have to do some extra work in your case...
Software & Applications / Re: Qt5 build for cubieboard
December 03, 2014, 11:15:33 am
Hi, nope - Portugal
Software & Applications / Re: Qt5 build for cubieboard
December 03, 2014, 09:28:24 am

Yes, there is a README.1st file which explains how to use the Virtualbox appliance.

Basically, you should download all the files in Qt5Box > VMs > v0.3 if you already have access
then use 7-zip to decompress the zip slip archives by selecting the first one > qt5box03.zip.001
then import the resulting OVA file in VirtualBox and boot the Virtual Machine.
Software & Applications / Re: Qt5 build for cubieboard
December 02, 2014, 01:59:36 pm
Under Tools > Options in 7-zip, which extensions are enabled?

You shouldn't get a zip when extracting, this is what you should do/see (sorry, my Windows is in Portuguese):

Right click > Extract to...

... and the qt5box03 directory is created and the OVA extracted into it

If you're not getting this expected behaviour and since all individual zip files you have are checksum OK, I'd say it has something to do with Windows 7 + 7-zip combo perhaps, or some option you have on that machine. Maybe try to decompress the OVA on another computer, if possible?
Software & Applications / Re: Qt5 build for cubieboard
November 26, 2014, 03:45:52 pm
Can you share OS specs + 7zip version?
Software & Applications / Re: Qt5 build for cubieboard
November 26, 2014, 12:05:14 pm
Hi, using 7zip on windows you just select qt5box03.zip.001, right click > 7-zip > Extract to "qt5box03".

It will combine the zip files and extract the OVA file directly to a qt5box03 directory - no zip file in-between.

The extracted OVA file sha1sum will then match the OVA.SHA1SUM value - I've just finished trying it out on Windows 8.1 64bit and it worked properly.  :)

7ZIP.SHA1SUM includes the zip files sha1 hashes for validation
OVA.SHA1SUM includes the extracted OVA file sha1 hash validation

both files are correct for validation
Software & Applications / Re: Qt5 build for cubieboard
November 25, 2014, 03:27:40 pm
Hi, have you tried 7zip to unzip? Once you have the OVA file, import it on Virtualbox
Quote from: alcantor on July 20, 2014, 03:44:18 am
Hello Everyone,

Based on https://github.com/jemk/cedrus/tree/master/h264enc, I have made a version of ffmpeg with that included.

I also tried with the proprietary cedarx library, but it need SUNXI_MEM in Kernel, which is less convenience and it was also complicated to have a proper implementation (Only bitrate constant?).

This open source version only support I Frame and constant quality with QP between 2 and 47.

To use it:

sudo modprobe sunxi_cedar_mod
./ffmpeg -y -i src.avi -filter:v pad="trunc((iw+31)/32)*32:trunc((ih+31)/32)*32" -pix_fmt nv12 -qp 20 -vewait 3600 -c:v cedrus264 -c:a copy -f avi dst.avi

The parameter vewait is only useful, when you're starting multiple instance of ffmpeg at the same time.

I have done this to use transcoding feature of mediatomb on my CT. I will put some details on my mediatomb configuration, but I am not done yet.

Would it be complicated to implement P-Frame?
Should I put this on Git? I never used Git except to clone source.
HW Decoding should be possible with vdpau-sunxi, but i not tried yet (and it will probably collide with the HW Encoder).


The binaries are compile with libx264 libmp3lame libfaac x11grab libpulse libv4l2, so you probably need the appropriate libraries. But it can be useful to encode from camera, or to try streaming Desktop http://realmike.org/blog/2011/02/09/live-desktop-streaming-via-dlna-on-gnulinux/comment-page-1/ ;)

Bye bye

Hi, nice work! I found your post while browsing for cedarx video encoding on cubieboard. I followed your guide and set up 2 cubieboards, an A10 and an A20, both with webcams connected and ran some tests:

Cubieboard 2 (A20)
./ffmpeg -f v4l2 -s 510x400 -i /dev/video0 -filter:v 'pad=trunc((iw+31)/32)*32' -pix_fmt nv12 -qp 20 -r 30 -c:v cedrus264 -an -f mpegts udp://
45% PID CPU, bitrate=5166.6kbits, 30fps

./ffmpeg -f v4l2 -s 510x400 -i /dev/video0 -filter:v 'pad=trunc((iw+31)/32)*32' -pix_fmt nv12 -qp 2 -r 30 -c:v cedrus264 -an -f mpegts udp://
50% PID CPU, bitrate=14882.9kbits, 30fps

Cubieboard 1 (A10)

./ffmpeg -f v4l2 -s 510x400 -i /dev/video0 -filter:v 'pad=trunc((iw+31)/32)*32' -pix_fmt nv12 -qp 20 -r 30 -c:v cedrus264 -an -f mpegts udp://
53% PID CPU, bitrate=5297.6kbits, 30fps

./ffmpeg -f v4l2 -s 460x380 -i /dev/video0 -filter:v 'pad=trunc((iw+31)/32)*32' -pix_fmt nv12 -qp 2 -r 30 -c:v cedrus264 -an -f mpegts udp://
60% PID CPUI, bitrate=16797.8kbits, 30fps

What I noticed is that although the webcams support up to 1280x720 resolutions, anything beyond 510x400 (A20) / 460x380 (A10) makes ffmpeg freeze.

If I stay within those resolutions, it's ok to lower the qp parameter and go for a better quality output, at the expense of CPU (slightly) and bandwidth (considerably).
with a qp of 2, I get really high bitrate and the LAN client on my PC manages to play the stream but with stutters, although ffmpeg doesn't freeze on cubie.

Has anyone else using webcams been able to go for 640x480 or above? Are there any parameters I should adjust on my ffmpeg command lines to achieve this?

Thanks in advance!
Software & Applications / Re: Qt5 build for cubieboard
October 11, 2014, 09:22:55 am
Hi everyone,

Qt5Box 0.3 - Codename Isaac
is currently being uploaded to Box.com

New features are listed in the main topic of this thread

@othiman: thanks for the input, I've generated 7zip split archives this time and included sha1sums for the OVA file as well as the split archives.