July 09, 2020, 05:22:45 am

News:

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


Cubietruck Bootloader

Started by DustinKazi, December 29, 2013, 06:33:30 pm

Previous topic - Next topic

DustinKazi

Hello :)

Is there a bootloader I can flash onto the onboard flash memory (using PhoenixSuit ???) that would allow me to boot from the microSD (8GB) or from SATA*?

If the above is possible, could I flash Android (Either the Cubietruck version, or possibly Android 4.4) onto a microSD (the same 8GB) and still have ADB functionality via the microUSB port?

My plan was to boot Ubuntu Touch 13.10 to try and see if I could get touch functionality working, as well as try out the new system. I also wanted to see if I could run Android 4.4 (reason for my second question) on the Cubietruck, and possibly share my findings. :D

Thanks!
{DustinKazi}

patwood

The A20 CPU checks for a bootable SD card and boots from that first before checking the onboard flash.

DustinKazi

December 29, 2013, 10:12:13 pm #2 Last Edit: December 29, 2013, 10:14:55 pm by DustinKazi
Okay, so is there some sort of bootloader compatible with the CubieTruck that I could load onto a microSD card and then transfer to the onboard flash?
And is there a way to set up the Lubuntu SD card on Windows? My Ubuntu system fails to read my microSD card.

Thanks again!
{DustinKazi}

patwood

I think you may be missing something.  The A20 processor has on-chip ROM that performs the lowest level of the bootloader.  This makes the decision on whether to boot from the SD card or on-board flash.  See this for more info: http://rhombus-tech.net/allwinner_a10/a10_boot_process/ 

If the SD card isn't inserted or isn't bootable, the CPU loads the initial bootloader from block 0 onboard nand flash.  This is not writable by the end-user; however, it loads a bootloader from the first nand partition (which must be a FAT file system) that can be changed by the user.  For more information on uboot for nand, see this: http://www.cubieforums.com/index.php/topic,511.0.html  It's for the CB2, but should work on the CT, although it will report only 1GB of RAM.  There are CT specific builds, I believe.

The SD card bootloader is called uboot, it's the standard bootloader for ARM.  Almost all distros for the Cubieboards have this built-in, as should the lubuntu SD card distro from cubietech; however, you can also build your own: http://linux-sunxi.org/Manual_build_howto

As for doing this on windows, I believe there's a program called imagewriter.exe for that; however, I don't use windows, so you'll have to search around for instructions.

dd

There  are lot of premade images, (you can use CB2/CB3, they are much the same)  you can find them here: http://www.dl.cubieboard.org/software and other places on the forum,
You can burn them to SD by Phoenixcard and to ROM (NAND) by PhoenixUSB (through usb cable after entering into FEL mode)you can find a lot of explanation for that on the forum. The tools may be found by googling.

After you boot from SD you can transfer os to load from NAND, and  replace kernel(core of os) for newer version, and move root(heavy part of os) to sata hard drive.All of that and more is widely explained on the forum by good heart patwood and other good guys.

For your first question: if I understand, you are looking for something to load first and let you choose which os to load linux/android, you can find a brief explanation here:http://www.cubieforums.com/index.php/topic,1279.0.html

I hope someone will make a full tutorial for that soon

DustinKazi

Thanks, I'm going to try that out now!
I will update on how it goes.