Cubietech Cubietruck

Cubietruck is the third generation of the famous Cubieboard, and is the most full-featured board to date.

= Identification =

The board helpfully states "CUBIETRUCK".

= Sunxi support =

Current status
Mostly supported. See A20-Cubietruck for more details.

Manual build specifics

 * For building u-boot, use the "Cubietruck" target.
 * The .fex file can be found in sunxi-boards as cubietruck.fex

Everything else is the same as the Manual build howto.

= Tips, Tricks, Caveats =

Fel mode
There is a button marked 'FEL' next to the full-size usb ports.

kernel
stage/sunxi-3.4 supports GMAC, patches are pending to let GMAC talk to MII PHY as well, see here, review is pending.

U-boot
Patches for GMAC in U-Boot are submitted to ML, review pending.

u-boot does not work with gbit ethernet

DRAM frequency
 arokux: 432MHz. that's the speed at which my board runs with sunxi bootloader, too. but look here:http://dl.cubieboard.org/software/a20-cubietruck/common/ct-v101_sys_config.fex  arokux: I simply do not know why 432MHz if the hardware can do 480... they downclocked it for security purposes in the first batch? tomee^: sorry, I have no idea.  arokux: I've heard somewhere that someone complained about overheating of the prototype tomee^: Turl may know.  dunno, we should ask benn

See this conversation on memory frequency problems.

Wifi
There is an AMPAK AP6210 Wifi+BT chip on board with PCB antenna, but it is not clear what exactly is inside:
 * Broadcom BCM43362 + BCM20710
 * Broadcom BCM4330 / BCM40183 Based Chipset
 * Cubietech says it is BCM4329/BCM40181

WiFi will not work with latest sunxi-3.4. On the Cubietech's kernel modprobe bcmdhd

There is a parameter op_mode, which allows you to enable AP mode, for example

modprobe bcmdhd op_mode=2

Wifi-VGA crosstalk
Wifi have bad effect to VGA screen, in some videomodes - due bad PCB placement, wifi is too near with VGA analog wires

Networkmanager
The Lubuntu Desktop images has NetworkManager running. It spawns its own wpa_supplicant, which is respawned once you kill it. This wpa_supplicant will also interfere with yours, if you want to configure WLAN Adapter by yourself. I have removed NetworkManager and was able to successfully configure WiFi.

wpa_supplicant -D nl80211 -B -i wlan0 -c <(wpa_passphrase YOUR_SSID YOUR_PASSWORD)

Bluetooth
This is a new or differently wired chip, status UNKNOWN, please test it!

Huang Benn said here (the cubietruck chipset AMPAK) ap6210 is a combo of wifi(bcm40181) and bt(bcm20710). the firmwares can be found here: wifi/bluetooth driver


 * Here is some info on how to get the bcmdhd compiled with workarounds / ideas how to overcome problems

 arokux:  CC [M]  drivers/net/wireless/bcmdhd/dhd_linux.o drivers/net/wireless/bcmdhd/dhd_linux.c: In function ‘dhd_os_prealloc’: drivers/net/wireless/bcmdhd/dhd_linux.c:5192:2: error: implicit declaration of function ‘wl_android_prealloc’ [-Werror=implicit-function-declaration]  arokux: I guess you should ifdef the DHD_OS_PREALLOC option for non-android builds... or I did something wrong  arokux: it comes from the bcmdhd driver compilation  arokux: when I disabled buffer preallocation for it, it went through  arokux: CONFIG_DHD_USE_STATIC_BUF=y broke the compilation. CONFIG_DHD_USE_STATIC_BUF=n made it work. maybe this flag should depend on android or some other build environment

Battery
This is completely new on A20.

VGA
Probably wired differently on this board - the original fex selects LCD and has VGA working with the kernel shipped in NAND

Cubietech Kernel source
There are kernels developed by Cubietech, they are supposed to have all features workin.


 * Kernel: https://github.com/cubieboard/linux-sunxi
 * fex and kernel config: https://github.com/cubieboard/cubie_configs

Reportedly AP mode does not work with the WiFi driver in this kernel.

This kernel is abandoned by Cubietech, but can still have something interesting, such as: https://github.com/cubieboard2/linux-sunxi/tree/sunxi-3.4-ct-dev/drivers/net/ethernet/allwinner/gmac

System load issue
Load is always > 1.0, if usb_detect_type = 1, see https://groups.google.com/forum/#!topic/cubieboard/mhb55nTj7lo This is now mentioned in our FAQ.

Expansion Ports
The cubietruck exposes 2 2.0mm pitch connectors with lots of expansion possibilities.

= Adding a serial port =

There is a nice .1" connector behind the USB ports, just plug in your UART adapter.

= Pictures =

=See also=
 * FAQ
 * Cubieboard
 * A20-Cubieboard


 * cubieboard.org - official homepage
 * docs.cubieboard.org - cubie's user manual
 * cubie's download site