Cubieboard2 wheezy image

http://androtab.info/cubieboard2/ has links to repos and stuff for the A20 cubieboard2

'''This image is obsolete. Use one of the sunxi-3.4 based images is preferred and should work on cubieboard2.''' This image is for reference only.

In this image you have serial console and ssh support. running from mmc works well. nand driver works for the nand image so it should work with this image too. connecting a SATA disk works too.

Don't expect much else to work. HDMI display currently does not work with many screens - it is configured at fixed 1280x720@50 mode.

Machine ID Mismatch
u-boot and linux cannot agree what number the sun7i platform is. This image uses 0x00000f35 (cubieboard2 factory linux image) but some images might use 0x10BB (hno's uboot). If these numbers don't match the kernel won't boot showing message like:

Error: unrecognized/unsupported machine ID (r1 = 0x000010bb). Available machine support: ID (hex)       NAME 00000f35       sun7i Please check your kernel config and/or bootloader.

you can fix that with setenv machid in u-boot if you want to boot kernel that uses a different id.

Memory Performace
The u-boot used in the image does not set some dram parameters properly which causes a performance regression in memset. look for updated sources that might fix this in the future.

Installation
Download

To use this image

unxz cubieboard2-linux3.3-SD-card-image.xz dd if=cubieboard2-linux3.3-SD-card-image of=/your/card/device gparted /your/card/device Use serial console to log in. Root can log in without password. You can use the ssh key to log in over network. The image tries to obtain an ip address from dhcp but the board gets new mac address on every boot so you will probably need to watch your dhcp server log or set up a fixed mac addres over the serial console.

Used kernel source (372f562ab7) https://github.com/hramrach/linux-sunxi/commits/sunxi-3.3-cb2

More ways to get the early linux 3.3 kernel for a20 (untested):

You can use this hwpack to break your favourite sunxi linux distro image instead of using the pre-built image: http://dl.linux-sunxi.org/users/hramrach/cubieboard2-linux3.3_hwpack.tar.xz

.deb packages created with kernel-package http://dl.linux-sunxi.org/users/hramrach/linux-headers-3.3.0-a20+_3.3.0-a20+-10.00.Custom_arm.deb http://dl.linux-sunxi.org/users/hramrach/linux-image-3.3.0-a20+_3.3.0-a20+-10.00.Custom_arm.deb

when you install these do

cd /boot ; mv -v uImage uImage~ ; mv -v uImage-* uImage

u-boot is looking for uImage, not something like uImage-3.3.0-a20+

Further Resources
Bootable_OS_images

http://androtab.info/cubieboard2/

https://github.com/hno/linux.git

https://github.com/cubieboard2/manifests