[Touch Diamond CDMA] Starfox:
Since MrPippy no longer seems to be maintaining the thread over here, I figured I'd bring the latest way to properly run xdandroid on Touch Diamond CDMA devices. This has been tested on my Sprint Touch Diamond (DIAM500), your device may vary.

Android 2.2.2 (Froyo) for CDMA Diamond

Instructions:

From this xda post, download the XDANDROID build (currently

7/05/11

).

From the XDANDROID zip file, extract AndroidApps/, conf/, media/, zImage, haret.exe, system.ext2, initrd.gz, modules-*.tar.gz, and rootfs.img into a directory called /andboot/ directory of your Internal Storage. If you extract the folder FRXnn/ (where the nn is the build) you can rename the folder to andboot/.

If you are using DIAM500 (Sprint's CDMA), navigate to FRXnn/STARTUPS/DIAM/DIAM500 inside the zip file, and extract the file called startup.txt into /andboot/ of your Internal Storage. These contain the necessary instructions for Haret to start Android on the Diamond. There are several other types of Diamond config file to try inside the zip file if you are not using Sprint's Touch Diamond, and should be renamed startup.txt if named differently.

The list of files you should have inside the Internal Storage should now look like:

If you want the older way of having everything in / (root) of the Internal Storage, just move everything from /andboot/ and also delete the argument rel_path=andboot from startup.txt.

Unplug the Diamond from the computer, and run /Internal Storage/andboot/haret.exe to start XDANDROID. If you have not done the calibration, there will be a white square with a cross that you will have to click on a few times. On first boot, it will take time for the system to set up the correct APN for data (usually a few minutes). If you get an error saying that no connection can be made, wait until the 3G icon appears on top before doing anything that requires data (Marketplace, etc.)

---

Optional: Download the latest rootfs Zip file from here.

Extract and rename the file rootfs-*.img to rootfs.img, and replace the one already in your Internal Storage.

Optional: Download the latest kernel bzip file from the links in the xdandroid post (several are provided) using 7Zip. Extract the modules-*.tar.gz and zImage.* file to your Internal Storage. You must then rename the zImage-* file to zImage after renaming/deleting the existing one. If you do not do this, Haret will not use the latest kernel file.

Caveats:

If you are running any previous versions of XDANDROID, it is highly recommended that you delete your data.img. This will wipe all your existing apps and data, but you can save your downloaded apps by going into /data/app and/or /data/app-private and copying it to /sdcard, but you need a root-capable file explorer.

GPS takes a while to get a position fix. It is working, but since there seems to be no AGPS support, it may take up to 15 min for the AGPS chip to get a fix on ephemeral data. Running QuickGPS from WM and keeping it updated seems to help a lot.

If you enable smart backlighting in WM, XDANDROID is unable to set the backlight level. Hopefully this will be addressed soon, since other devices (Rhodium, etc.) now has backlight support working.

If you still have trouble running XDANDROID, then make sure you post at least the following: What type of Diamond you have (model #), the startup.txt you are using (open it in Notepad to see the mtype), the build of XDANDROID you are using (along with any rootfs/kernel updates if applicable), and the last thing it does that you can see (ie. Haret reboots WM instead of running XDANDROID). Without this information,

it isn't helping you or the person trying to help in order to figure out what may be going wrong

.

A lot of information that applied to Andriod 2.1 (Eclair) also applies to 2.2 (Froyo), with the exception of where the files are located (/ vs. /andboot on the Internal Storage). I've kept Eclair-related instructions below.

Android 2.1 (Eclair) for CDMA Diamond Instructions: (for historic reasons)

From this xda post, download the latest XDANDROID build (currently

6/21/10

).

From the XDANDROID 7z file, extract AndroidApps/, media/, zImage, haret.exe, system.ext2, initrd.gz, modules-*.tar.gz, and rootfs.img into the root of your Internal Storage. You must use a computer to extract this, none of the WM/Android apps have enough memory to extract the 7z file correctly!

Create (don't copy) a directory called conf/ on the root of your Internal Storage. Now navigate to conf/Diamond inside the 7z file, and extract the file called eclair.user.conf into the conf/ directory. This is important, you should have a file named conf/eclair.user.conf, not conf/Diamond/eclair.user.conf.

If you are using DIAM500 (Sprint's CDMA), navigate to STARTUP CONFIG/DIAM500 inside the 7z file, and extract the file called STARTUP.TXT into the root of your Internal Storage. If you are having problems with Haret restarting WM instead of booting, you can try the one inside CONFIG/DIAMOND100 or rename CONFIG/DIAM-STARTUP.TXT to STARTUP.TXT. Each file has a different MTYPE, and is most likely the cause of failure to boot into XDANDROID. (DIAM500 mtype 2040, DIAM100 mtype 1805, the unknown DIAM-STARTUP one uses mtype 1910)

Unplug the Diamond from the computer, and run haret.exe to start XDANDROID. On first boot, you cannot connect to Google's server until you have entered an APN (regression bug from

6/12/10

.) Skip the account stuff for now, go into Settings→Wireless&Networks→Mobile Networks→APN, and create an APN with Name: Internet and APN: Internet. Press the Home key (to bring up the menu), Save, and then select the APN. You should get the 3G icon in a few seconds.

-- Starfox