[Tilt, TyTN II, MDA Vario III Android Development] loserskater:
THIS IS NOW OUTDATED!!

It uses the old sqsh method WITH a rootfs. So if you're wanting to use the NoMoRootfs method, this won't work. Please use the already complete builds in the Kaiser/Vogue threads as they are working the best at this moment.

I hope to update this when I have some free time. Will include a how to for NAND also.

What's What:​

zImage

Linux kernel which initializes hardware

initrd.gz

Initial ramdisk. Usually, startup scripts, device drivers (modules) and related files (e.g. Bluetooth firmware), as well as some basic system tools (shell etc.). This has grown and split into the rootfs.img.

rootfs.img

Contains the ril (how our phones communicate with the network) and other necessary files to get the system going.

haret.exe

Bootloader to reboot the device into Android

default.txt/startup.txt

Contains settings for the boot process, and special kernel configuration parameters

system.img/system.sqsh

Contains the Android core, default applications and some more system files and tools.

*.user.conf

Contained in conf folder. Sets compcache/swap parameters.

How it works​

When you run Haret, it wipes Windows from memory so it's not running anymore, (although it keeps it on the actual phone storage) then it "reboots" the phone into android. So think of it like this... Windows is on the phone storage and Android is on the SD card. Haret shuts down Windows (keeping it on the phone storage) and then boots up the phone using the SD card in place of the phone storage. When you turn the phone off/reset it will boot back into Windows.

Haret looks at the default.txt/startup.txt for it's bootup parameters, it then loads the zImage which initializes all of the hardware (screen, keyboard, etc.) and initrd which contains the initial startup scripts. The rootfs is then called which creates the data.img and moves the system and data to partitions (if available). It looks in the system.sqsh for a file called ion.build, donut.build, tattoo.build, etc. which tells it what kind of system it is. This also tells it to run the ion.user.conf, donut.user.conf, tattoo.user.conf.

Setup:​

Download this package.

If you can't run this then you'll have problems with other builds. If you can run this, things are on the right track.

Format your SD card to Fat32, if not already. Make sure there's NOTHING on your SD card.

Extract the android folder to your SD card.

Rename the default-*.txt file to either default.txt or startup.txt.

-default.txt will make it so you have to tap "Run" when you start haret.

-startup.txt will cause haret.exe to automatically run instead of having to tap Run.​

Now when you run haret.exe you should see some scrolling text.

Don't touch anything and let it run.

You should soon be presented with a startup animation and then be ready to setup your new Android phone.

Advanced:

Partitioning SD

Installing Ubuntu (Live CD)​

DOWNLOAD UBUNTU

You should now have an .iso image.

DOWNLOAD IMGBURN

Install ImgBurn

Select "Write image file to disc"

Click on the magifying glass/folder next to where it says "Please select a file..." and select the .iso file you just downloaded.

Uncheck Verify (underneath "destination")

Click on the picture on the bottom left to burn.

Once it's burned restart your computer with the disc in the drive.

You should then see the following image:

*If you boot into Windows you'll have to consult your motherboard manual on how to boot from a CD*​

Select your language and then select Try Ubuntu

Installing Ubuntu (USB)(thanks sd73ta)​

I haven't tested this but you can make a bootable USB drive with Ubuntu using UNetbootin

1 - download unetbootin

2 - insert a blank usb drive

3 - select ubuntu (the highest numerical) live version and run

4 - when its done reboot your pc

when it first boots look for instructions on how to enter setup usually F2 or Delete

5 - change your startup options so usb is before hdd

6 - save changes

Now it should boot to ubuntu

Partition your SD Card​

Follow my vid:

Extract the android folder to the Fat32 Partition

Install Android to Partitions​

Run Haret

Pay close attention to the scrolling text.

When you see "Press Voldn to run Android Installer" press the left softkey(the key just right of the green phone button)

It should now be placing the system.sqsh onto the first ext2 partition and creating a new data.img on the second.

To see if this actually worked, when you restart your phone into Windows you should see a folder called "backupsystem" with an installedsystem.sqsh file inside.

Swap/Compcache

*WARNING: Using a swap file/partition can decrease the life of your SD Card*​

To use swap/compcache you'll need to edit your *.user.conf file which can be opened using any text editor. It should be easy to follow what everything in the file does, but if you can't figure it out SEARCH FIRST and then ask.

To utilize the swap partition you'll have to change

cc_backingswap_en=0 from 0 to 1

OR

linux_swap_en=0 from 0 to 1

Very Advanced (NAND)​

NAND refers to the actual phone storage (where Windows resides). This wipes Windows from your phone and writes Android to the internal storage. It's not completely developed yet, but it's getting really far really fast.

There is already a thread HERE that discusses everything you need to know about running Android from NAND.