July 07, 2020, 08:04:23 am


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

Just received cubieboard2 and here is some of my experiences

Started by tomg, February 27, 2014, 06:58:15 pm

Previous topic - Next topic


Out of the box.
cubieboard2 booted up android and worked very well.
I installed linaro cb-a20-lubuntu-desktop-card-v105.img to mmc card 4GB and it failed.
Then installed that image to another card and it worked.
Always suspect mmc cards !

After lubuntu booted up it seemed very slow but then it was on an mmc card.
When I tried to bring up android from nand I got a half filled block in the middle of the screen
and thats where it stayed.
I installed CUBIER from the website android-cb2-20131230.img and that worked great.
boot from nand super !
Then booted lubuntu from the mmc card and that worked fine.
Tried to boot android from nand "Depressing half filled box in the middle of the screen".
Reinstalled android again thats fine. and can boot lubuntu from the card guess what ? android gone again.
Any one have any knowledge ?
An update.
I have just installed the linaro nand image using phoenixcard to the cubieboard2 and I have to say that
I shouldn't have bothered with the card image or android this image is much faster and the sceen resolution much finer.
I am ready to do some work now. Compile a program Woops ... No compiler !
Installed gcc make and dev files on cb2 and now compiling native.
Compiled c code to access PORT registers via mmap and tested with the status led on the cb2.
Started to build a library to access gpio ports.
I now have a library to access the configuration of all of the i/o ports on the allwinner SoC for the cubieboard.
This allows me to find out what each port is configured for and to modify the settings.
Subroutines include getCfg (), setCfg (), getPin (), setPin (), clrPin ().

An example which will flash the status led on and off a few times (Green led on the cb2)

#include <stdio.h>
#include "registers.h"

main ()
setPin (PORTH, 20);
sleep (1);
clrPin (PORTH, 20);
sleep (1);
setPin (PORTH, 20);
sleep (1);
clrPin (PORTH, 20);

Next step is to include PWM in the library.

Dual boot nand or mmc
I now have and image of v105 on mmc card as a backup and can boot either
from nand or mmc card.

Attached sata drive
Also I have attached a 500 GB sata disk which I am using to store software on.

Create additional tty ports.
Yesterday managed to modify a fex file to enable two extra ttl uarts
uart5 and uart6 are now enabled.