yashsingh1/xdaforums huggingface dataset:
[Tilt, TyTN II, MDA Vario III Android Development] graey:
I just tried the kernel building-tutorial, and to some extent I succeeded, though there are some small faults in the tutorial, as addressed here:

1- Set up your prefered Linux Setup, i use Debian

2-Build kaiser kernel with wiki manual

3-git clone git://androidhtc.git.sourceforge.net/gitroot/androidhtc/tinboot

4-git clone git://androidhtc.git.sourceforge.net/gitroot/androidhtc/bootenv

5-cd bootenv

6-cp buildInitrd buildInitrd-mini

!! in between these two steps you'll have to copy the folder called initrd, and rename it to initrd-mini. this is very important !!

7-nano (or whatever your favorite editor is) buildInitrd-mini

8-change all instances (2 of them) of initrd to initrd-mini

9-sudo sh buildInitrd-mini << I added sudo there, as it's doing lots of chown-commands which wont work unless elevated

10-cd tinboot

11-nano tinboot.S

12-the paths to fix are at the bottom of the file, it's pretty self-explanatory. higher up in the file you'll see the kernel cmdline under an .ifdef kaiser line

13-after that you'll need to download and extract any windows kitchen, and install wine however your linux distro requires and make a note of the path you extract nbhmerge.exe to as you'll need it in your tinboot.S file, along with the path to your kernel zImage and initrd-mini.gz

after that if you've got everything else in place, go ahead and run the compilekaiser script in the tinboot dir and you should have an nbh

if the nbh won't flash (i had this issue) copy the output.nb file, boot into windows, and use nbhutil.exe to convert it to an nbh and flash that one. for some reason yang doesn't work right for me personally

You don't need the path to nbhmerge in tinboot.S, you do need it in tinboot/compilekaiser (or ofcourse one of the other compile-files, depending on what device you use), so set make the path to nbhmerge in that file is correct!

Also you'll have to install yang still, for which you can get a .deb file (easily installable in anything debian-based such as Debian, Ubuntu or any Ubuntu flavour) here:

http://code.google.com/p/htc-flasher/downloads/list

After that I got a working zImage (which you can find after compiling in kernel/arch/arm/boot) that I booted with HaRET, however, I didn't get a working .nbh file due to this error:

tinboot.S: Assembler messages:
tinboot.S:120: Error: attempt to move .org backwards

If anyone knows how to fix that, I'd me most pleased to know :)
[Tilt, TyTN II, MDA Vario III Android Development] kubino99:
yes these nbh are compiled with rootfs support, so you have to use old method flash rootfs, system.
[Tilt, TyTN II, MDA Vario III Android Development] kubino99:
you propably have big initrd.gz, note that there is size limit that zImage + initrd.gz shouldn't cross. I think it's a little below 3Mb
[Tilt, TyTN II, MDA Vario III Android Development] endretobias:
Hi all,

First.(Sorry my bad English)

My question is, when I will do the "Method One" for my Kaiser which version nbh. file must I download from megaupload? How can I check which is the correct for my device? What can I do if my device will broken, Can I reinstall my original WM 6.1 ROM? Has anybody a video tutorial for this procedure? Must I use a HardSPL?(I didn't use ever before)

Thx a lot!!!

"HOW TO START ANDROID FROM NAND

Method one:

1-Download one of the nbh's here (link was removed), you'll have to look for the right panel type, Key layout and resolution needed for the rom you're flashing, just like your default.txt from sd boot.

2-Download (link was removed)

3-Copy the androidinstall.tar from the androidinstall.zip file to the root of your sdcard

4-delete/rename any old android files on your sdcard

5-Unzip the androidinstall.zip and replace the ruu_signed.nbh in it with the one you downloaded in the first link. (must be named ruu_signed.nbh)

-6Run the custom ruu.exe - thats all after reboot you'll have a flashed Cupcake android."
[Tilt, TyTN II, MDA Vario III Android Development] graey:
Actually, my initrd file is 1.5MB, and my kernel is 1.4, bringing it in at a nice 2.9MB... But where can I verify that I did make the right initrd?
[Tilt, TyTN II, MDA Vario III Android Development] liveskelet:
I tried both ways to lash android but android never starts. Always stops. :mad:

1. long stop - [16.89...] mmcblk0: p1

2. final stop - [143......] r5:0000000 r4:0000000000

i tried many builds. Every button. I dont know what to do.
[Tilt, TyTN II, MDA Vario III Android Development] loserskater:
I was having the same problem and I had to remove a couple things from the initrd like recovery menu (doesn't really work anyway) and made it 1.4. Double check the bytes of the file. It wil say 1.4 MB but be 1500000 bytes. The nbh can't be over 3 MB. Once you get it small enough you won't have anymore .org problems.

And also you want to use initrd and not initrd-mini.
[Tilt, TyTN II, MDA Vario III Android Development] JeckyllHavok:
Same prob for me like graey, here is the complete output for sh compilekaiser (never had this issue before, i updated all 3 gits today):

tinboot.S: Assembler messages:

tinboot.S:119: Error: attempt to move .org backwards

/home/docjeckyll/arm-2008q3/bin/arm-none-linux-gnueabi-objcopy: 'tinboot.o': No such file

cat: tinboot: No such file or directory

NBMerge 2.1rc2

Executing ./NBMerge.exe with data chunk size = 0x800 and extra chunk size = 0x8

on file output.nb

Checking output.nb for bad NAND block marker

Checked 0x2 sectors successfully!

Done.

=== yang v1.1: Yet Another NBH Generator

=== (c) 2008 Pau Oliva Fora - pof @ XDA-Developers

[] Output NBH file: KAIS-428.NBH

[] Input files: output.nb

[] Input types: 0x400

[] SignMaxChunkSize: 64

[] Device: KAIS****

[] CID: 11111111

[] Version: 1.0.MARTIN

[] Language: WWE

[] 0x400 --> output.nb

Done!

The outputed nbh is just 4,8kb i think it's just the header from NBMerge, and yasu. Seems that is has a problem with including zImage and Initrd.gz. I tried with deleting bootenv and tnboot and remake a git clone of it (and yes, i edited the paths after taht) but no luck...... any idea?????
[Tilt, TyTN II, MDA Vario III Android Development] loserskater:
Your initrd.gz and/or zImage is too big. You can take stuff out of the initrd to save space
[Tilt, TyTN II, MDA Vario III Android Development] JeckyllHavok:
I zImage i just enabled the Eclair OpenGl drivers and in Initrd i make no changes...
[Tilt, TyTN II, MDA Vario III Android Development] bandur:
Installer menu DZO latest NBH?

Anybody know how to enter the installer menu in the latest (11/2-10) kaiser nbh images from DZO? It boots fine for me, but I cannot enter the installer menu. I tried: dpad, half press and full press camera ....
[Tilt, TyTN II, MDA Vario III Android Development] JeckyllHavok:
Initrd.gz is 1.5 MB and zImage is 1.4MB
[Tilt, TyTN II, MDA Vario III Android Development] loserskater:
I got initrd down to 1.4 by removing recovery menu install apps and adbd from

../bootenv/initrd/bin/instscripts
[Tilt, TyTN II, MDA Vario III Android Development] aqtrans:
I'm having the same problem. Can't get the menu to come up at all with the updated images.
[Tilt, TyTN II, MDA Vario III Android Development] loserskater:
I haven't tried this but if somebody wants to edit bootenv/initrd/init and replace where it says

blah blah vogue hw keys "32"

and change it to 232 and see if the center key will get into the menu
[Tilt, TyTN II, MDA Vario III Android Development] JeckyllHavok:
Thanks, after removing this it works.
[Tilt, TyTN II, MDA Vario III Android Development] JeckyllHavok:
The same idea i had yesterday, but for me it didn't work, but maybe someone else is more lucky
[Tilt, TyTN II, MDA Vario III Android Development] polyrhythmic:
From the testing I've done, the key the kernel listens for has to match the init script... and Kaiser does not pick up dpad-center in kernel... so someone needs to recompile the kernel with all the new fixes EXCEPT using the camera-key trigger as before -- unfortunately I don't exactly know how to do this.

Then change the init script line 89 to pick up camera-key:

if [ `cat /sys/class/vogue_hw/keys` = "2" ] ; then

Furthermore, the /bin/instscripts/fixperms script needs to be changed to set proper permissions on /etc/init.d and /etc/wifi .

I've attached the init and fixperms that I am using for norootfs ext2 partition install... hope this helps y'all.
[Tilt, TyTN II, MDA Vario III Android Development] graey:
Thanks, I'll try that. I saw though that the recovery menu was fixed (one of the commits says "Add kaiser keys for nand recovery mode.")? Well, I'll uncheck some things and try again. Thanks again :)
[Tilt, TyTN II, MDA Vario III Android Development] moisha:
Kaiser keymap is broken in the current head.

I had to git branch working_keys 9abacb92667d5921334869e1b15409bb75f0ceea to get KEY_UP and KEY_DOWN working
[Tilt, TyTN II, MDA Vario III Android Development] idumych:
Seriously what the heck, nothing works now! Will someone please link me to at least one nhb/eclair rom combo that WORKS? I'm getting really sick of seeing "unable to open persistant directory" or random junk when I try to boot!
[Tilt, TyTN II, MDA Vario III Android Development] idumych:
This does not work. On my phone it just says Creating 4 MTD partitions followed by a listing of the 4 partitions, and just sits there. none of the keys work.
[Tilt, TyTN II, MDA Vario III Android Development] samtruman:
The only one that works great for me it's the 04-02 one from here

http://sourceforge.net/projects/androidhtc/files/

My tricks is to use that file for flashing purpose than overwrite with the one of your choice
[Tilt, TyTN II, MDA Vario III Android Development] liveskelet:
"init: Unable to open persistent property directory /data/property errno: 2"

It stops here every time. What have i to do with it?
[Tilt, TyTN II, MDA Vario III Android Development] j101399j:
The issue is the boot scriptscannot edit data.img file. I had this issue with the Dark Eclare 2.1a from Polyrhythmic (Works GREAT!, just no nbh combo yet). The fix was using a clean data.img

So if someone could upload a clean data.img to start with for you, that would get it working. There is one here but it is for the dark Eclare on HaRET, and I don't know if it will work for any other build or NBH but it should. If you try it, post if that works
[Tilt, TyTN II, MDA Vario III Android Development] idumych:
Wait, so if I'm using NAND with androidinstall.tar I still need a data file?

This is the procedure I've been following so far:

Put androidinstall.tar in /andboot/

Flash one of the kaisereclair nbh's from vouge android site

Pull battery

turn on phone with camera key held down

watch it fail in various idotic ways

curse, suppress urge to throw phone at wall, drink vodka

repeat

I have NEVER seen the android installer menu come up, ever. No amount of button pressing or battery pulling fixes it. It makes me feel stupid, but somehow I'm able to flash donut without this hell, so yeah
[Tilt, TyTN II, MDA Vario III Android Development] j101399j:
@idumych; That sucks that this is being so difficult. You should not need a data file with method one, but becasue the issue is that the data.img that is being created cannot be mounted and edited; you may want to use one anyways. I don't know if this will work, but if i understand correctly, you can place the clean data.img in the andboot folder with the androidinstall.tar and it will use that insted of creating a new one. However you still need to get into the install menu. Also what kind of phone do you have again? and which NBH are you using, some require full camera press some require 1/2 camera press.

Also it looks like on this post Vilord changed the button to the center d-pad button for all phones. You may want to try that NBH insted
[Tilt, TyTN II, MDA Vario III Android Development] idumych:
Firstly, I have an AT&T Tilt.

I've tried so many different NBHs I can't even keep track anymore. That's why I want someone to link me to one specific one they KNOW works, so I have someone to blame for my frustration :P Also I've read that the center button doesn't work on Kaiser, so I'm not even going to try that.

I'm going to give this one more shot with the data file, and if that doesn't help i'm throwing a full fledged stomping tantrum.
[Tilt, TyTN II, MDA Vario III Android Development] zenity:
I feel your pain, however I'm making up a one rar setup that I know works for me. i'll post the link once it's uploaded, 25-30 minutes ( damn slow rapidshare upload speed ).

:)
[Tilt, TyTN II, MDA Vario III Android Development] idumych:
Thanks dude, I'm taking deep breaths :P
[Tilt, TyTN II, MDA Vario III Android Development] zenity:
Check your pm's idumych :)

I'll give you first shot at this, since it's on that rapidshare 10 download thing.

I'll post the link in a bit once you have had a chance to d/l
[Tilt, TyTN II, MDA Vario III Android Development] idumych:
Thanks for sending that. I won't be able to try it for a bit as I'm on filtered internet for the next few minutes. Did you get my PM about my FTP space? If you upload it there, there is on limit and everyone can enjoy it.
[Tilt, TyTN II, MDA Vario III Android Development] knytphal:
Wow, it's been awhile since I've been online....

I pretty much did follow those steps exactly, and even left the phone sitting (plugged in) overnight while on the frozen nexus launch screen. So I don't know what the deal is.

Thanks for help, but looks like I'll have to wait out the nand boot. I'm back to using poly's 2.1a package currently.
[Tilt, TyTN II, MDA Vario III Android Development] idumych:
Well, I finally got the menu to come up, so that's progress. I hit install and now it's got a blinking cursor at the bottem
[Tilt, TyTN II, MDA Vario III Android Development] fultotop:
I've installed PolyMod 2.1 alpha 3 and it loaded fine using the 04-02-10.nbh and then updated with 14-02-10.nbh.

Then I copied my calibration file to /data/misc/wifi, also I modified the /system/sysinit.rc I changed chmod 0660 /data/misc/wifi/wpa_supplicant.conf to chmod 0666 /data/misc/wifi/wpa_supplicant.conf.

Wifi will then start connect to my router but I still can't browse, though it's got an IP address. Any one any ideas as the other PolyMod thread says NAND is not supported.
[Tilt, TyTN II, MDA Vario III Android Development] fakts13:
sorry to be kind of off topic to this, but how well is alpha3 working on your phone (besides wifi)? i noticed his thread said not NAND supported, so i haven't updated to his rom. is gps working? does it force close anything at all?
[Tilt, TyTN II, MDA Vario III Android Development] j101399j:
I'm using version 3 and love it. WiFi is great, Sleep works, GPS takes a little bit but it works 75% of the time, not too sure on the cell tower part. I know Poly is working on making it ready for Nada, hopefully for the next release. I find if you use a Fat32 install I get an FC once in a while; if I use the EXT2 partition install, I rarely see a FC.
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
androidinstall.tar with working wifi!

I take no credit for this rom, only for piecing together the bits and pieces of the wifi/gps all together into one install file. No calibration file needed!

This is based off of this rom:

http://xdaforums.com/showthread.php?t=625052

Here is the complete package:

http://homecncfun.com/KaiserAndroid.zip

To install on kaiser/tilt:

*edit* DZO's latest nbh will work for both installing and running! Use it instead of the ones I include.

1. extract the entire package to the root of a blank fat32 sd card.

2. hold the camera button down, press and hold the reset button with the stylus. When you see the tri-color screen let go. press the power button to install nbh.

3. ONce it is complete remove the battery, wait 15 seconds, replace and power on.

4. As soon as you see the penguin fully press and hold the camera button

5. Install the system to NAND

6. Rename the kaisimg.nbh to something else and rename the other nbh to kaisimg.nbh, reboot and flash new nbh following instruction in steps 2+3

7. wait for it to boot fully to the lockscreen and then wait another 5 minutes, reboot, enjoy!

You might have to enter the following commands once if wifi won't start, not sure why but some permissions aren't set every install!?

su
mount -o remount,rw /system
chmod +x /etc/wifi/loadit
chmod +x /etc/wifi/wlan_laoder
[Tilt, TyTN II, MDA Vario III Android Development] samtruman:
Ok...

Good work, i've tried your installation and wifi it's working good, but i have a question for you, the other stuff like suspend mode and battery state are always at a dead point, isnt'it?

'Cause, imho, these things are the only reasons that make unsense the use of android on nand on my device (it's drain too fast and i have no idea about battery state)
[Tilt, TyTN II, MDA Vario III Android Development] liveskelet:
Thx. It's working fine but i cant use mount command. I dont know root password. What password should i enter to use root? And i can not use chmod command - "read only file system" .
[Tilt, TyTN II, MDA Vario III Android Development] samtruman:
No password needed, only type "su" before type a command
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
root

To gaining root type su then enter before first command.
[Tilt, TyTN II, MDA Vario III Android Development] liveskelet:
Sorry i am noob. :) It is working great.
[Tilt, TyTN II, MDA Vario III Android Development] hoatienii:
after flash to androi, to return to the Windows Moblie,how to? sorry my English ability very bad
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
Suspend works, battery shows correct if it is above 40% after that its a crapshoot.

Yes you can re-flash winmo. Simply name the winmo nbh file kaisimg.nbh on your SD card and follow steps 2+3 of my howto post.
[Tilt, TyTN II, MDA Vario III Android Development] hoatienii:
thanksssssss:D
[Tilt, TyTN II, MDA Vario III Android Development] samtruman:
Yes, suspend works but battery is always at 100%, maybe a last fix is needed??
[Tilt, TyTN II, MDA Vario III Android Development] MrPaveL:
Yes, but if you charge battery to full capacity and then unplug charger, it'll start count down battery percentage correctly.

Pavel
[Tilt, TyTN II, MDA Vario III Android Development] samtruman:
Great news, i've flahsed it on a kaiser with broken usb (waiting for piece from china), so i can't try it, but it's a great news, the rom is fast and solid, wifi, gps and battery drain appear to be good, we still miss bluetoot but it's not so dramatic. i'm almost convinced to flash my primary phone with android...
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
I'm working on the battery and bluetooth issues now. It would be so much faster work if the new NBH's had a working install menu on kaisers. Unfortunately I have not yet had much success working with these directly. I hope to eventually have a single NBH to flash with the entire rom/system.

Battery has first priority, bluetooth should be just a few tweaks as it already initializes just fine.
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
I'm hoping to port openeclair 1.2.1 to our kaisers. Polymod is based on an earlier version but is really laggy for some reason. I have succeeded in booting 1.2.1 but have not yet got wifi and gps working on it.
[Tilt, TyTN II, MDA Vario III Android Development] MrPaveL:
Dzo fixed problems on Kaiser keypad. With latest kernel I'm able to use it like a charm.

Dunno if it is included in last nbhs on sourceforge.

Pavel
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
Do you have a link or could you send me a copy? FYI I prefer tilt (damn "?/!") but either is cool
[Tilt, TyTN II, MDA Vario III Android Development] aqtrans:
http://it029000.massey.ac.nz/vogue/files/?C=M;O=D

I can confirm these latest builds work great on the Kaiser, including the install menu. :cool:
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
Ymmv on needing a calibration file. Something to do with different sub-models of nand and what kernel/nbh you have.
[Tilt, TyTN II, MDA Vario III Android Development] acompres:
hey guys, isn't there a way to flash to NAND without using a MicroSD card? mine is out of reach for at least a month or so :(...anybody?
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
Yes you can flash the kernel/nbh to nand but you still need a sd card to install the OS/Android itself. WIFI will also only initialize after a hard reboot if you have a sd card although I'm working on that. Android itself also really likes to have a sd card in at all times.
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
Comparison

Anybody care to compare wifi performance between my install package and polymod alpha 4?

http://xdaforums.com/showthread.php?t=600154&highlight=nand&page=1

I am going to later tonight, let me know if you do I am curious.
[Tilt, TyTN II, MDA Vario III Android Development] moisha:
If still require, day before yesterday I posted a link to zImage with working dpad keyhere
[Tilt, TyTN II, MDA Vario III Android Development] alim274:
STUCK!!!

I flashed ployrithmic alpha 4 and my phone goes int to linux boot loader and gets stuck. HELP!
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
I have tested Polymod2.1a4 and the wireless and charging is more stable than my scripts. I am going to pull my links for now, at least until I get permission to use the mssmison package.

There has been some concern over me using it over on the polymod thread:

http://xdaforums.com/showpost.php?p=5645981&postcount=1432

Once I get clarification on that and make some more progress I will share if I can.
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
Check it our Version 1.0

Here is the first real release of my mashed up build. Wifi is much better. and it is FAST!

http://xdaforums.com/showpost.php?p=5654786&postcount=1
[Tilt, TyTN II, MDA Vario III Android Development] liveskelet:
I am using your build and it's faster. :-) I don't know why but NeoCore show "slide-show". I thing 1-2fps. Using DZO's 320x480 nbh from 15.2. I have to use terminal to get wifi working. I will try GPS soon.
[Tilt, TyTN II, MDA Vario III Android Development] slm4996:
Version 1.1 is out, wifi should work on first boot now, if not no terminal needed just be sure to have a sd card in and reboot!
[Tilt, TyTN II, MDA Vario III Android Development] liveskelet:
Thx. I found one bug. Don't know why but sometimes crashed acore (i thing) and phone lost connection with network. And sometimes phone don't want to start dialing number.
[Tilt, TyTN II, MDA Vario III Android Development] acompres:
Wrong thread
[Tilt, TyTN II, MDA Vario III Android Development] lupick:
NAND Flash issue

Hi

I've downloaded a kaisimg from Sourceforge and flashed the phone renaming it as kaisimg.nbh.

Then I've added Poly Eclair buld in the andboot folder on root of my sd, removed the battery and powered up the phone.

Now It remain at spalsh screen. Any idea how to boot it so that i can enter in the menu to flash it?

Thanks

L.
[Tilt, TyTN II, MDA Vario III Android Development] Raymongo:
Yes, take out your battery for 2-4 min and then it will boot.
[Tilt, TyTN II, MDA Vario III Android Development] utopykzebulon:
hi all!

i already have tis error

or

Someone can help me please

EDIT :ok i find the way...
[Tilt, TyTN II, MDA Vario III Android Development] utopykzebulon:
does "rootfs.yaffs" is created automaticly? or how to create it???
[Tilt, TyTN II, MDA Vario III Android Development] utopykzebulon:
no body knows how to create this file?
[Tilt, TyTN II, MDA Vario III Android Development] JeckyllHavok:
Do you want to make your own nbh file?
[Tilt, TyTN II, MDA Vario III Android Development] utopykzebulon:
yes good friend ;)
[Tilt, TyTN II, MDA Vario III Android Development] JeckyllHavok:
Nice to see you on board of android ship ;-)

You don't need a rootfs.yaffs in the tinboot.S all 3 rootfs lines are uncommented with an @

You only need the path to your zImage and your initrd.gz. The rootfs is in the included in the latest initrd.gz's

Hope it helps