yashsingh1/xdaforums huggingface dataset:
[Touch Pro2, Tilt 2 Android Development] mcnutty:
Frequently Asked Questions

What is NAND booting?

NAND booting uses code on the NAND to boot directly into Android without having Windows Mobile on the device. Currently, zImage and initrd.gz are stored on the internal NAND while the modules, rootfs, ext2, and data are stored on the SD card.

How do I setup NAND boot?

First, you need to download the Update Utility (CustomRUU) and the latest package. Extract the NBH to the same folder as the Update Utility and flash like you would a custom ROM. Put the included modules on the SD card (modules must be from the same package as the NBH) along with the modified rootfs.img (see first post) and system.ext2 from http://xdandroid.com/wiki/Main_Page (you can use system.ext2 from BLAZN, but XDAndroid will be better for testing)

Why don't my changes to Startup.txt work/How do I change boot options?

Because we are booting without Haret, Startup.txt is not used. Any changes to Startup.txt will have no effect. If there is a boot option you need enabled, you can either compile a new tinboot with those changes or let me know and I can compile one for you.

Where are the Android files stored and how do I update them?

Modules, rootfs.img, and system.ext2 must be stored under /andboot on the SD card. Every update will require flashing a new NBH (contains zImage) and replace the old modules file with the new one. Sometimes deleting the data.img file is necessary between builds if you experience major problems.

Wifi or other devices aren't working after an update...

The modules and zImage are a pair and must always be updated together. If you only flash the NBH but don't replace the modules file on the SD card, you will get a mismatch on the modules preventing the drivers from loading.

My battery drained and now my phone is stuck in a boot cycle! AHHHHHH!

Don't worry about it. You have two quick and easy options. First, unplug the USB cable, then remove the battery, then put the battery back in, and plug the USB cable back in. Now let it charge for 5 minutes, then turn it on, and you should be good to go. If it still does not work, unplug the USB cable, then remove the battery, then put the battery back in, attempt to enter bootloader mode and plug the USB cable back in as soon as the bootloader screen comes up. Now you can charge it for 5 minutes and restart back into Android (where you should continue charging).

Project Status

What is currently being worked on?

Battery life (up to about 9 hours now)

Backlight control (Dimming works and backlight can be turned off, but re-initializing is causing issues)

What is working?

Phone

Data

Sound

GPS

Keyboard

Wifi

Hardware 3d

What is NOT working?

Camera

Bluetooth

3.5mm headphone jack
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Heh, only a matter of time before this thread made it over onto XDA. Thanks Nate ;)
[Touch Pro2, Tilt 2 Android Development] ksper6986:
testing

has anybody here tested yet and if so... please note the outcome of the testing i would like to test but i would need more elaborate install instructions so that it is done right the first time ...also a couple of links are not working
[Touch Pro2, Tilt 2 Android Development] mcnutty:
Thanks for the heads up. The copy/paste from PPCG killed some of the links. They should be working now ;)

And this does work great. You can find the thread over at PPCGeeks here: http://forum.ppcgeeks.com/tp2-andro...esting-12-11-panel-power-off-now-working.html
[Touch Pro2, Tilt 2 Android Development] Bieka:
First of all i want to thank all devs who are involved in the NAND Booting Section. I think i will test this in the next days but i must ask some questions first to do it ;).

1. So, do i need to do the Task 29 or is it just in case of problems.

2. Am i able to flash WinMob back if i'm failing?
[Touch Pro2, Tilt 2 Android Development] kabu:
yes u can go back to windows. infortunately i have been following all the steps correctly and it loads up the with letters showing its working and then i get a black screen so i think im stuck at boot any help. can someone tell me what im doing wrong. the files are in sd card/ andboot
[Touch Pro2, Tilt 2 Android Development] mcnutty:
Task29 is just recommended to make sure everything is nice and clean. It makes troubleshooting much easier because it ensures nothing weird is being read from the internal nand.

You can easily flash back to WinMo by starting the phone in bootloader mode and flashing. Unfortunately, you will not be able to do the ActiveSync connection through USB and flash that way.

You should have three files in /sdcard/andboot: rootfs.img, system.ext2, and modules (don't rename the modules). Now flash the NBH and it should generate the data.img, and you should be good to go. It should be loaded in under 10 minutes, so if it isn't, I would check the contents of the memory card. Also note the card must be FAT32 formatted and have not be partitioned.

The panel power on/down is apparently fixed for some panels but not others. ACL and bzo have been working together on this and found that there are several different panels being used in our phones, and ACL is working on a patch to fix up the panels that aren't functioning perfectly.
[Touch Pro2, Tilt 2 Android Development] Bieka:
What about the rhod100? I have a modified rootfs.img for correct german keylayout in haret version of xdandroid. Can i use that too or do i need to delete all other .kb's? And is it even possible to get a working rhod100 keyboard? ;) I know many questions but i think this should be BEFORE i get lost ;).
[Touch Pro2, Tilt 2 Android Development] Thordim:
Ahh yess the custom keyboard and how to create it. This threw me for a bit too and when i realized that all I had to do was open up notepad and then do a saveas rhod400.kb, I laughed at myself.

yep that easy a blank text file with the correct name and you are good to go
[Touch Pro2, Tilt 2 Android Development] blitzer320:
Well now that the thread is over on xda I tried again but still to no avail even tried two different SD cards both end with it booting but freezing at SMD: ch 0 OPENING -> OPENED. Pretty sure I have everything setup correctly three files in andboot folder on sdcard renamed rootfs to just rootfs.img but left the other two files. By the way this is on a tilt2.
[Touch Pro2, Tilt 2 Android Development] Bieka:
Does that mean i just had to rename my rhod100_de.kb file to a rhod400 or something? That would be TO Easy ;)... ok i always think around corners ;)))
[Touch Pro2, Tilt 2 Android Development] mcnutty:
Actually, I didn't account for the non-US variants when creating the rootfs. I have some other modifications that I'm testing for the rootfs at the moment, so I will be sure to add the other variants back in for at least the KB overrides. I will need help with a variable for the automatic detection to work properly.

If anyone has any of the non-US variants, it would be extremely helpful for you to flash to NAND, hook up to ADB, and run "cat /sys/class/htc_hw/machine_variant" and let me know what yours is. :)
[Touch Pro2, Tilt 2 Android Development] kdub94:
wifi

i want to start off by saying this is an amazing project.

But my problem is that wifi is not working for me. When i try to start wifi, it immediately says "error." I have done many flashes and used task29. i was just wondering if anyone else had this issue.
[Touch Pro2, Tilt 2 Android Development] Bieka:
I will do that for you in the next days. Before Christmas it's a turbulent time for me. As soon as i can get the Time for it i will flash to nand and follow your instructions. If i need help, can i PM you?

Cheers
[Touch Pro2, Tilt 2 Android Development] TooHot2Handle:
I'm using Neopeek's rom instead..how can i set it up? since this rom doesnt use the system.ext2 file
[Touch Pro2, Tilt 2 Android Development] MassStash:
getting calibration without visible points to touch aka the boxes. also, boot ani glitches out on screen with a "solid" animation, and video glitchs on the bottom half of the screen. sits here indefinately.... still waiting..... haha

update: loads to lockscreen, so far can't get screen to stay on??? strange

update2: got it working, but keeps turning screen off immediately... any ideas>?
[Touch Pro2, Tilt 2 Android Development] liveordie56:
hmm, i have been trying this and i feel like i have everything right

tilt2.kb, rootfs.img, modules, and system.ext in an andboot folder in my storage card and then, a nbh with the same name as the module in a folder with customRUU.exe. I flash and then it gets to the linux boot screen, after a couple lines go by, the screen fades out and dies and restarts. My battery says 88 percent when i flash back to windows, anybody know what could be going wrong?
[Touch Pro2, Tilt 2 Android Development] seemles:
HTC Sense

will it only recognize only an ext2 or will it recognize squashfs.
[Touch Pro2, Tilt 2 Android Development] TheJoester09:
I'm on the rhod210 (T-Mobile), and I've been having this exact issue. Any ideas?

btw, this is my first post here, but I've been reading and following this project for quite a long time. You guys are great! Thanks for all the work you do!
[Touch Pro2, Tilt 2 Android Development] electricalve:
Ok McNutty I downloaded the new file pack. and it gaves me the same error, waiting for sd card and reboot, then i removed my sim card and it boots fine but in CDMA and Im using my Rhod500 with GSM. Could you please cookme a thinboot for this or I just have to change something in my files thanks for all,

BTW what happend with the cam? froyo x says that he have it working.
[Touch Pro2, Tilt 2 Android Development] mcnutty:
Tiad's build is based off Haret kernels that were for testing the camera (which has not been pushed to the repo yet). We don't have that code committed on NAND, so no camera.

As for the SIM card in a CDMA phone, the problem SIM card users are having seems to be in initrd. I have never touched this part, but Wozzer probably ran into this a long time ago and fixed it with a modified initrd. The problem is that nobody has the one he was using, so we just used the auto-build version without any modifications (which has worked fine for us until we started adding SIM card users).

I released the new RootFS that auto-determines if the phone is GSM or CDMA and does the force cdma by itself without having to bake it into tinboot. This will eventually allow GSM users to have data when they can finally boot. I just need to figure out what is changing with the device enumeration when the SIM is out vs in.
[Touch Pro2, Tilt 2 Android Development] MassStash:
yea, working with test haret kernels. cam commit will trickled down to here soon
[Touch Pro2, Tilt 2 Android Development] lord-whiskey:
Hey mcnutty

quick update from a rhod100_uk user it now doenst hang on SMD: ch 0 OPENING ->OPENED annymore,

the last thinge mine now says:

Failed to find system.img on SD Card

/bin/sh:can't access tty; job controll turned off

Edit 1: i now use a difrent SD card then i used before i now use an: Adata SDHC 4GB class 6

dus the SD card needs to contain an system.img ?

Edit 2: OK! forget what i said here,! it hangs on: SMD: ch 0 OPENING ->OPENED

again i didnt completely put the files on the SD card stupid me!

Edit 3: on page 18 you asked for some .txt how can i get that for you?

Edit 4: When it boots plugged into USB it says: mdp_dma: busy but when its not its the same old story

i also updated the rootfs.img with the last one and also changed the tar.gz with the last updated one!

i realy want this to work because im getting sick and tired by using that slow fíng winmo

for now good night!
[Touch Pro2, Tilt 2 Android Development] Redlime:
alright, so i read through the thread, and i guess your updating it today, for us proir cdma to gsm users?
[Touch Pro2, Tilt 2 Android Development] mcnutty:
So you made it a lot further with the one that said system.img not found. This displays because you do not have the system.ext2 in the andboot folder, and then when it can't find that, it looks for system.sqsh which it didn't find, so then it looked for system.img and it displayed that error message.

Please use the latest full package, then copy the contents of the sdcard folder directly to the root of your sd card, then flash the latest NBH.
[Touch Pro2, Tilt 2 Android Development] Redlime:
ok my phone boots without a sim, but once i insert my sim it just reboots on reading of the sd, its a cdma phone unlocked for gsm
[Touch Pro2, Tilt 2 Android Development] JJHiemenz:
using the NAND-2011.01.09.zip file contents.

AT&T Tilt2 (Rhod300)

2GB Kingston MicroSD

8GB SanDisk MicroSDHC

Task29 to the phone before each flash of the NBH in the .ZIP file.

SD cards formatted to FAT32 with the HP formatting tool, then populated with the contents of the sdcard folder of the ZIP.

With my SIM card installed - constant reboots at the 'waiting for SD Card text - same results on both SD cards.

Remove my SIM - see 'Waiting for SD Card' text twice, and then booting continues, creates a new data store, modules unpacked, GSM Rhodium detected - more text.. and then finally a hang at the text 'SMD: ch 0 OPENING -> OPENED

So.. still not working on the Tilt2/Rhod300 as far as I can test.
[Touch Pro2, Tilt 2 Android Development] mcnutty:
I still think it is detecting the SIM card as a mmcblk and messing up the boot. I've got a modified initrd that will dump me to bash. I'm hoping to mess with this tomorrow if I can get my hands on a SIM card. If I can figure out what is happening when the SIM card is inserted, I can make the changes in initrd to fix the problem of not booting with a SIM card. I can't say for sure if that will fix the hanging problem, but I'm betting they are related.

Unfortunately, it looks like the SIM card is messing things up right now. I have to do a little work to see if I can figure out what is going on there.
[Touch Pro2, Tilt 2 Android Development] Redlime:
thanks mcnutty, ill check back later to see if you have fixed it
[Touch Pro2, Tilt 2 Android Development] tzh2231:
Hi folks, what is the main benefit of this NAND boot? Does it boot faster / run faster compared to HARET? How is standby battery life?

I am currently using HARET with FRX03 and latest kernel, but standby battery drain is still pretty significant, like 30% for just half day in airplane mode.
[Touch Pro2, Tilt 2 Android Development] DutchDanny:
Now that i got my TP2 back from my wife, i can get started with NAND boot here.

My first boot didn't work...

The last line in my screen is: [ 44.281188] SMD: ch 0 opening -> opend

Any ideas?
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
I'm assuming you have a RHOD100... did you read the giant warning for RHOD100's...?
[Touch Pro2, Tilt 2 Android Development] DutchDanny:
I did read that... not sure if it was RHOD100... so just tryed it...

Gonna try the SD versions then..

Tnx
[Touch Pro2, Tilt 2 Android Development] lord-whiskey:
/offtipic

ik zou dan tog is eerst het topic even goed doorlezen, iedereen met een rhod100 heeft die crashline

/ontopic

hey mcnutty i think i came a littlebit further.. by holding the "end button" he comes a littlebit further then the known crashline for rhod100's

it now says: ARM9 has CRASHED and the next line: smem: DIAG "
[Touch Pro2, Tilt 2 Android Development] DutchDanny:
Did not know if MY device was a RHOD100, thats why i tryed
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
I can basically guarantee yours is a 100... that is the most common one I see in Europe.

You can check by pulling the battery - underneath the battery (sticker is on the phone itself) you'll see a label. It's small - and quite often in a light gray font, so that makes it even harder to see - but you'll see RHODXXX.
[Touch Pro2, Tilt 2 Android Development] DutchDanny:
Did see it in the bootloader now to.

Didn't work on it for a while now.... seem to forgotten most info about him. XD
[Touch Pro2, Tilt 2 Android Development] Tanmomon:
Good looking is the new version of the download? :p
[Touch Pro2, Tilt 2 Android Development] mcnutty:
The battery drain on NAND is about the same as Haret since they both use the SD card for almost everything once Android is loaded.
[Touch Pro2, Tilt 2 Android Development] mcnutty:
Still looking for a fix, but the full package that was uploaded is new. I forgot to change the dates on them, but that is taken care of now too.
[Touch Pro2, Tilt 2 Android Development] MassStash:
wait, another update today? or are you referring to the 9th from someone else's comment>? maybe I'm bein' a lil liiight headed right now... just got done plowing for ~9 hrs
[Touch Pro2, Tilt 2 Android Development] rraquib:
RHOD300 aka Tilt2 stuck on "opened" my luck :(
[Touch Pro2, Tilt 2 Android Development] sun122:
I'll gladly pay for a NAND Android boot rom...

Thanks for all the work on this project! I would be happy to contribute $40.00 to the ROM developer that can make this happen. It would make our phones so much better.

I'm using energy's rom right now, from Jan 6th I believe, and use the Android utility to boot into Android through haret.

Anyways,

Thanks again to everyone who contributes their efforts.
[Touch Pro2, Tilt 2 Android Development] mcnutty:
Nope, no new updates. Still trying to work out the kinks in initrd for the SIM card stuff. Unfortunately, I've been completely swamped at work this week. Let me just say that legal discovery stuff sucks...

I'm assuming this is with the SIM card out? At what point is this happening for people? Is there anyone that can hook up to ADB and get a dmesg dump for me (maybe one with the SIM card in and one with it out).

I think maurice.green from PPCG is the closest on this, but I haven't heard from him in a while due to work. I'll be sure to update here as soon as I know anything ;)
[Touch Pro2, Tilt 2 Android Development] rraquib:
mcnutty if you can give me instruction on what you want I will be happy to oblige.

Edit: Seems to me I get stuck on "ch 0 Openeing: Opened" with or with out SIM card on my Tilt2. Any ideas what I should look for or what kind of information I can provide? :confused:
[Touch Pro2, Tilt 2 Android Development] dunkkid23:
I dont have my US Tmo TP2, but would NAND work on the US Tmo version?
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Don't see why it wouldn't... That's the RHOD210.
[Touch Pro2, Tilt 2 Android Development] MassStash:
slowed down a bit round here, just chillin
[Touch Pro2, Tilt 2 Android Development] mcnutty:
Yeah, [ACL] pushed 11pin USB headset detection, but he's still looking at the native 3.5mm. I just have to say that I hate legal discovery. Work has sucked something fierce this week...
[Touch Pro2, Tilt 2 Android Development] ardis:
I have tried to hook up ADB / Droid explorer, but can't get it to recognize my rodh100.. My TP is recognized as a HTC Dream and no errs in device mgr .. but ADB can't find any device.. Any tip are appreciated.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Sounds like you're using Windows.

Use DroidExplorer, makes adb in Windows very easy.
[Touch Pro2, Tilt 2 Android Development] ardis:
DroidExplorer says "0 Devices found"..

Not able to put my phone in to usb debug mode , since it is stuck in OPEN->OPENED
[Touch Pro2, Tilt 2 Android Development] MassStash:
adb kill-server

sudo adb start-server
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
...sudo? In Windows?

To ardis, see this thread.
[Touch Pro2, Tilt 2 Android Development] MassStash:
lol right right, droidexplorer...
[Touch Pro2, Tilt 2 Android Development] ardis:
Have tried almost everything to get Droid Explorer / adb to start.

Can someone confirm that it is possible to connect ADB even if Android UI is not fully started.
[Touch Pro2, Tilt 2 Android Development] mcnutty:
So, the deal with ADB is that the interface comes up during the init sequence of the rootfs, and the interface is taken back down during the boot animation at some point (I'm not sure what happens during that time, but my guess is the network interfaces are refreshed or something).

So, you have a small window during which to get ADB going. On your system, watch device manager until the ADB device shows up, then start it right away. If it doesn't make it this far, then we need a custom rootfs or even initrd that dumps the dmesg for us.

Unfortunately, I was doing some testing with Haretconsole, and I think my USB is totally shot now. I've tried a ton of things so far, and I can't get USB to function for anything other than charging. That means I can no longer ADB or use Haretconsole for anything. Luckily the device is not bricked, but I have to flash everything from the sdcard, and I think the USB is stuck in an always on state which is draining my battery from full to empty in about 8 hours...
[Touch Pro2, Tilt 2 Android Development] MassStash:
Nate, USB on all the time, does android think it too by having debugging n mnt sdcard in notTray? That happened to me last friggin night. Had to plug a cable in, plugged into nothing else, n jiggle the sh*t out of it n Yank cable out til the USB port told android it was actually unplugged
[Touch Pro2, Tilt 2 Android Development] dunkkid23:
Well thanks, I guess I'll get started as soon as I get my TP2 back.
[Touch Pro2, Tilt 2 Android Development] Selbyclebert:
So I'm using the Package from 1.09.11 and I haven't been able to boot up Android yet on my RHOD210

Haret boots up and then the phone restarts 3 times then,

I get to "A N D R O I D"

and it gets stuck at this line "[51.486297] ch 0 OPENING -> OPENED"

It's been stuck here for a couple of minutes. Is it frozen?:confused:
[Touch Pro2, Tilt 2 Android Development] mcnutty:
It's something with some of the GSM models. I know ACL was trying to get his hands on a GSM rhodium to figure out why some of the NAND stuff isn't quite working, and there are several differences that Haret may be taking care of for us that need to be programmed for on NAND.
[Touch Pro2, Tilt 2 Android Development] mcnutty:
USB is stuck on all the time regardless of WinMo, Bootloader, or NANDroid. Major power drain :(. I'm trying to see if there is a way for me to send a power off command from Android to just shut the USB off completely. I don't really care if I can't ADB or Haretconsole anymore at this point, I just need my phone to last at least 12 hours...
[Touch Pro2, Tilt 2 Android Development] kable:
1234567890 disregard.
[Touch Pro2, Tilt 2 Android Development] MassStash:
man, the usb ports prolly jacked, factory warranty covered no>? unless they complain about your excessive chargeing... haha
[Touch Pro2, Tilt 2 Android Development] electricalve:
what happend with this? dont let the project die.

STICK THIS THREAD
[Touch Pro2, Tilt 2 Android Development] mcnutty:
The project isn't dieing. There's some odd issues with GSM devices that we are still looking into, and I think there might be a donor for a rhod100 to ACL which would be immensely helpful.

Another thing that is currently happening is ACL is looking at committing the camera code to NAND, and the process has already started on moving to the .35 kernel.

As for me, I have been having issues with my phone which makes it difficult to do testing. I'm waiting for maurice.green before I start making changes to initrd and more changes to rootfs.
[Touch Pro2, Tilt 2 Android Development] sean1197:
i just tried the nand package and it is stuck on the line opening opened...
[Touch Pro2, Tilt 2 Android Development] rraquib:
Same here?