[HD2 Ubuntu Development] castrwilliam:
ArchLinuxARM for the leo (HTC HD2) - Native Boot

This is only tested with MAGLDR 1.13 on the T-Mobile US HD2, though there's no reason it shouldn't work on a global one, as NAND isn't touched.

Working:

Wi-Fi (with NetworkManager)

Not Working:

Bluetooth

2D & 3D Acceleration (though kgsl and freedreno drivers are in use, the userland isn't patched/installed/tested yet)

Audio

Installation (to the third partition of the SD card)

This procedure is intended only for advanced users. By providing a 6GB F2FS image, the system will boot reasonably quickly and not run out of space, however, it can't be stored as a file on the internal memory - it has to be a partition of its own because of the FAT32 filesize limit of 4GB.

You will need at least 3 MBR primary partitions on the SD card. The third one must be 6GB or larger. Since F2FS volumes can't yet be resized, any space above 6GB on that partition is useless. When this scheme is created, gunzip the provided root.img.gz and write it to the 3rd partition. Then, make the first FAT32 (if it isn't already), make a directory in root of the FAT32, and put the the linux kernel zImage.

Booting

Select the directory you created as the Android SD directory in MAGLDR and boot the system. There will be no console, and you will get a jumbled screen during boot. Eventually, lightdm will start up and you will be on your way.

Logging in

The username is "arch" and the password is "arch". Change the password ASAP.

For root, the username is "root" and the password is also "root". CHANGE THE PASSWORD ASAP!

You'll probably want to enable the On-Screen Keyboard (onboard) and set your Session to "MATE" up in the top right corner.

You can try to get reroute audio by modprobing "snd-mix-htc-leo" and setting the mixer settings. The system wasn't set to do this at each boot due to serious issues with the concept of copying a 2.6.32 alsa driver into 3.0 and just compiling ;) - it barely works and has a huge propensity to hang during load.

Read Me

I realize this will be difficult to install for most users. I did not provide commands because I don't want anyone wiping and formatting the wrong disk. Eventually, I'll implement a way to make this installable via image. The initramfs issues with the kernel I'm using will first have to be investigated, and then the ext4 issues will. Since Arch Linux uses systemd, I can barely get it to boot with kernel = 3.0, let alone 2.6.32. All my other ports use 3.4, which already requires patches to work after the introduction of udevd version 217.

Downloads

root filesystem image compressed with gzip: https://drive.google.com/file/d/0B4WUjKii92l2ZTNraFpVb2tHbVE/view?usp=sharing

3.0.101 kernel (thank you to maniacx at github for initially sharing the source): https://drive.google.com/file/d/0B4WUjKii92l2aGdGLUYxMm9KSWM/view?usp=sharing

Kernel Source: https://github.com/willcast/kernel_leo

Also available for:

Nexus 7 2013 (flo): http://xdaforums.com/nexus-7-2013/general/unofficial-archlinuxarm-release-n7-2013-t2969301

HP TouchPad: http://xdaforums.com/hp-touchpad/other/unofficial-archlinuxarm-release-hp-t2969310

Nexus 10: http://xdaforums.com/nexus-10/general/unofficial-archlinuxarm-release-nexus-10-t2969450

Samsung Galaxy S III LTE: http://xdaforums.com/galaxy-note-2/devs-only/unofficial-port-archlinuxarm-release-t2969290