[G1 Android Development] calamari:
Introduction

The DreamServer ROM makes the T-Mobile G1 (HTC Dream) a low-powered headless Linux server. The DreamServer ROM provides only the essential services and libraries required in order to start ADB and Wi-Fi. There is no Dalvik (and thus no Android user interface), which maximizes the resources available for server use.

WARNING

The DreamServer ROM is only intended for use by those comfortable with Linux. Once the DreamServer ROM is installed you will no longer have an Android GUI or user interface of any kind, and you will not be able to run standard Android applications or even USB-mount the SD card. The only device interaction you'll get is via ADB (and of course your custom recovery image).

Download

dreamserver-1.0.0-build.tar.gz (11.6 MB)

Revision History

1.0.0, 2013-02-02, dreamserver-1.0.0-build.tar.gz (11.6 MB), http://kidsquid.com/files/dream/dreamserver-1.0.0-build.tar.gz

Initial release

Prerequisites

Rooted T-Mobile G1 (HTC Dream) with custom recovery image that has the ability to restore nandroid backups.

Verified working adb connection via USB cable.

SD with a FAT file system (not ext2). The DreamServer ROM uses fsck_msdos to check the SD card before mounting it.

Wi-Fi access point.

Familiarity with Linux and shell scripts.

Installation

Meet all the prerequisites in the previous section.

Perform a nandroid backup and make sure you also have an update.zip on the SD card for whatever boot ROM you are currently using. Due to the extremely limited nature of the DreamServer ROM (see the WARNING above), you'll want to formulate your escape route now.

Under your existing rom, go to the Wi-Fi settings and forget any networks that you will not be using. Verify that Wi-Fi connects to your desired network.

Copy /data/misc/wifi/wpa_supplicant.conf from the phone to the root of the SD card as wpa_supplicant.conf. You'll need this in order to connect to Wi-Fi.

Copy the dreamserver-x.x.x.zip to an SD card, and install the ROM via your custom recovery as normal. No wiping of the internal DATA or CACHE partitions are necessary, as these are not mounted by the DreamServer ROM.

Reboot the phone.

When the device boots, it will turn off the backlight during init so you know that it did not hang. Wait for a while (around 30 seconds) and access the device with adb shell.

Customize the installation by adding init.sh and cleanup.sh scripts to the root of the SD card. See the "Run-time Configuration Files" section in the README file.

When you want to reboot, use the reboot command. Note that /system/bin/reboot is a shell script that runs cleanup tasks prior to rebooting. If fifosh is running, you can also reboot cleanly from within a chroot jail: killall -USR1 fifosh

Please see the README included in the tarball for additional information (key locations and files, how-to's, rebuilding the ROM, etc).

The tarball also contains example configuration files for a Debian chroot environment that sets the time with NTP and starts sshd and lighttpd.

Credits and Copyright

DreamServer was created by Jeffry Johnston, 2012.

This ROM was originally based on a 1.6 (Donut) ROM by dwang that I found to be reliable. My filesystem modifications are extensive, but the

kernel and busybox from that ROM are used unmodified. Source:

Thread: http://xdaforums.com/showthread.php?t=567023

Title: [ROM][32B/Dream][Dec23][Dwang][Donut][Speed and Stability][v1.17.1]

Filename: dwang-v1.17.1.zip

Download: http://files.androidspin.com/downloads.php?dir=dwang/ROM/

Existing programs and files are copyright their respective owners. Any customizations that I have made are released to the public domain, except for the tools programs I wrote, which are released under GPLv2.