September 18, 2019, 07:37:00 am


Have you visited the Allwinner Chipset wiki? -

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 - pullmoll

Quote from: miguel.rodriguez on February 26, 2015, 11:38:29 am
I used win32 to burn this image android4.2-cb2-dualcard-v2.0.img.7z in a  sd card

You certainly did not write the 7z to the SD card, but unpacked the 7z archive and wrote the image contained therein!? Otherwise it is obvious why the cubieboard won't boot, because it can't unpack 7z archives on the fly...  :o

You may have seen the Chinese text in some script.fex files and been wondering what it says. Here's a rough translation done with help of and a little rephrasing. No warranties whatsoever, though :)

1.) Script strings are case sensitive. You can modify variable values after the "=", not the names.
2.) The primary and subkey name lengths must be less than 32 characters.
3.) Comments begin with a ";" in column one and continue until the end of a line.
4.) Comments can not be appended to configuration items such as the primary key.
    Comments can not be appended behind Zijian(?) comments.
GPIO format description:
    port:port number in the group + <function assignment> <internal resistance state> <drive capability> <output level> <status>
For example:

Hi all,
based on Igor Pečovnik's script to build a recent linux-sunxi kernel and minimal Debian (jessie, wheezy) or Ubuntu (trusty), I built some images and put them on

These are my first steps to somewhat automate the installation of a desktop Debian, which is based on Igor's prior work for a console only Linux.
BTW Igor: Thank you a lot for this good start!

Edit: 20145-02-28

I heavily modified Igor's scripts to generate an initial set of Xorg, MATE desktop and some basic applications.
There's also an script run after the first login, after changing the root password.
The script (optionally) lets you compile libump, libdri2, sunxi-mesa and xf86-video-fbturbo to have an accelerated Xorg installation. If everything succeeds, the display manager lightdm service is activated so that on the next boot you will see the lightdm screen.

I'd appreciate any installation reports, success or failure. not yet...

Quote from: c128 on February 01, 2015, 04:39:10 am
If anyone's interested, I'll post-back my experience when I give it a go - for server installs (where you aren't too much worried about *all* the hardware of the Cubietruck being supported) this sort of Jessie Debian mainline install seems a good way to go.

Hmm.. there is no VGA/HDMI support in this process, no? I tried it: zcat Cubietruck.sdcard.img.gz >/dev/sdx and created an 8GB USB stick with ext2, untarred hd-media.tar.gz onto it and finally copied debian-testing-armhf-DVD-1.iso to it.

What I see on the CT is the USB stick being accessed several times, then go off for some seconds and finally stay selected. I can tell this by a LED on the stick.

There is no video on VGA nor HDMI and even blindly trying to type "run usb_boot" gets me no further.

Are you required to using the CT serial port to install the Debian netboot?

Quote from: phelum on February 21, 2015, 06:46:53 pm

b) I think I fixed the booting from NAND problem without having to load Lubuntu using PhoenixSuite.  My NAND update program is at  I am aware of a problem with libusb and USB3 ports here.

Any feedback will be appreciated.


Hi Steven!
A great work you did on reverse engineering the images used to flash the NAND. I guess that was a hard piece of sifting through megabytes of trace logs.

Not to discourage you, quite the opposite, I took your code and converted it to C++ classes and a Qt4/5 project. You can find it at my github page. I already successfully flashed my CT with it.

My main intention is to try to understand the structure and meaning of all those traced or extracted files and perhaps be able to flash arbitrary boot and root filesystems, as you obviously already tried and began writing code for. Things like calculating the CRCs of images and using calculated, variable image offsets in the process will be necessary for that.

In a first step I took the scratchpad address found in the version info to use it in the code afterwards. That may be overkill, if 0x7e00 is always good :)

Cheers and thanks for all the work
Deutsch / Re: Vorstellungsrunde
February 22, 2015, 08:04:35 am

Mein Name ist Jürgen und ich bin Baujahr 1964, also ein schrecklich alter Sack :)
Ich komme aus den Zeiten, als 2MHz die Übertaktungs-Frequenz für den Prozessor (Z80) war.

Der Cubietruck gefiel mir wegen seiner Daten, vor allem SATA + WIFI fand ich interessant.

Ich bin ein ergrauter Hacker und habe vor, ein paar Erkenntnisse und Tools für die Community beizusteuern.

Mein erstes Projekt ist eine Portierung von phelums CTNandBoot nach C++ und Qt4/5. Es ist
zu finden auf Es läuft hier unter Debian 8 mit libusb-1.0.

Ich habe damit bereits erfolgreich einen Cubietruck mit den von Steven Saunderson aus
LiveSuit- oder PhoenixSuit-Sessions extrahierten Images beschrieben. Was ich da genau
geschrieben habe, ist aber so einfach nicht zu sagen, da es wenig Erkenntnisse dazu gibt.

Es gibt also noch einiges zu tun. Vor allem möchte ich den Aufbau der Dateien studieren
und herausfinden, wie man andere Images einbindet (neuere U-BOOT) und vor allem
möglichst direkt die Dateisysteme erzeugen kann, also boot und rootfs - oder auch
mehrere Dateisysteme.

Mal sehen, wie weit das Projekt gedeiht und wie viel Zeit ich dafür habe.

Bis besser
Hi all,
just a heads up for rolling my own based on Igor's work. I successfully built and in a VM running Ubuntu 14.10

If you want to try them, here is a link:

An image built with the options set to use mainline (next), which is now 3.19.0, built okay, but it doesn't seem to finish resizing the SD (to 16GB) after the first boot. Still investigating.

What I would suggest was to add "apt-get install console-setup" as a command in the first run, after resizing the SD, if network connectivity is detected. Or alternatively console-setup could be integrated and just dpkg-reconfigure called after successfully resizing the SD.

Also the timezone setting would perhaps be something that many people would like to change from the built-in default Europe/Ljubljana. There a dpkg-reconfigure tzdata should suffice.

When I find time, I'll perhaps try to integrate these steps, once I understood the firstrun script.
Ideally a simple menu (whiptail?) would be what could help lots of people to get some initial setup right.
Working with the English keyboard layout always confuses me ;-)

Anyway, thank you for a really nice cubietruck experience.
FWIW if you go up one directory on github, i.e., you can see all their repositories. There you'll find a  linux-sdk-card-tools repo which is, what I suppose, the renamed linux-sdk-tools repo.

I got my cubietrack only yesterday and until now am playing around with a pre-built debian image, so it will take some time until I try to roll my own nand images.