yashsingh1/xdaforums huggingface dataset:
[Touch CDMA Android Development] erups:
Following are the first few lines of my install script

#!/bin/sh
# Generated with l1q1d bootscriptgenerator
echo "starting script"
echo 0 > /proc/sys/kernel/hung_task_timeout_secs
echo "Unmount fat32 part"
umount /dev/block/mmcblk0p1
echo "check values"
max=`parted -s /dev/block/mmcblk0 p | grep Disk | awk '{ print $3 }'`
start=`parted -s /dev/block/mmcblk0 p | grep fat32 | awk '{ print $2 }'`
maxfat32=`parted -s /dev/block/mmcblk0 p | grep fat32 | awk '{ print $3 }'`
parted -s /dev/block/mmcblk0 resize 1 $start 1365 mkpartfs primary ext2 1365 3896 mkpartfs primary linux-swap 3896 -- -0
[ $? -eq 0 ] || fail "Failed to repart the sd - please check options"
echo "Remount fat32 part"
mount -t vfat -o fmask=0000,dmask=0000,rw,flush,noatime,nodiratime,utf8 /dev/block/mmcblk0p1 /sdcard

The output of running this is

Using boot install script
starting script
Unmount fat32 part
check values
No implementation: Partition 1 isn't aligned to cylinder boundaries. This is still unsupported.
Failed.
Failed to repart the sd - please check options.

I chose the following

System - nand p2

Data - sd p2

Swap - sd p3

SD is 4gb, parted in three

P1 1.3gb FAT32

P2 2.5gb EXT2

P3 200mb SWAP

The SD has been reformatted many times both in windows and in the phone, still it gives me this error about alignment.

What can I do?

If I set all auto in atools, it goes to display "A N D R O I D" and stops there.

As of now the only way I could install was manually setting both system and data to nand.

But then many settings wouldn't be retained after boot, sd card was seen but not accessible by the system (no link to any usual place: sdcard, ext_sd, whatever: they are all empty).
[Touch CDMA Android Development] l1q1d:
try to repartition the sd before putting on the phone on linux with fdisk, on windows with partition magic
[Touch CDMA Android Development] ol1ver:
First off all, thanks for the great work you've put into this. It's nice to see people still appreciating old things ;)

As such I've gotten my hands on a few HTC polaris 100's myselfsome and thus discoverd the joy of atools.

I was wondering however, where do we report bugs?

For example, in atools there is ext4 support button, but this crashes during boot. (Using haret) but changing nothing else, ext2 works fine. I have thus installed ext2 to nand without problem.

Then there is a http://sourceforge.net/projects/and...ngerbread-all-unodex-24-01-11_07.tgz/download but no gingerbread option in atools. It works with froyo, albeit the UI is very slow. I guess renaming Froyo to Froyo/Gingerbread would be a little bit more clear?

And then keymappings, I've swapped menu and back and that works fine, so keymappings are being picked up just fine, however DPAD_CENTER should also be 'home', but doesn't work. Could be wrong on that one. Also I 'checked' end call and explorer as to also 'wake' from sleep, just like the power has been, but now those keys also put it to sleep. Unchecking that obivously fixes it, but a minor nuisance.

And then finally, the only real issue I can think of with regards to atools/the kernel, After having the phone in standby (screen off) for a while (seems like more then 30 minutes) the red led blinks regulary, but it is impossible to get it out of standby. A reset using the reset button is then required.

Other than that, awesome awesome work :)

P.S. I assume building the kernel is just getting the git tree and building that from the htcandroid page, but what about building the rest? Any instructions on what is needed and what goes where? (initrd, kernel, android userland)?

P.P.S. Where would I report bugs about the android system from htcandroid?
[Touch CDMA Android Development] mijailrv:
doesnt works to me in Ubuntu.
[Touch CDMA Android Development] l1q1d:
Errors? Problems? python version?
[Touch CDMA Android Development] mijailrv:
This is the error in the terminal:

Traceback (most recent call last):
File "/home/mijail/Escritorio/atools.py", line 16, in <module>
from tkinter import filedialog
ImportError: No module named tkinter

the error start here in the file .py:

except ImportError:
from tkinter import filedialog

i have Python 2.6.5 in Ubuntu 10.04
[Touch CDMA Android Development] l1q1d:
try with 2.6.6 or 2.7 version
[Touch CDMA Android Development] mmec2:
mijailrv:

I had that error on aptosid (debian unstable based distro) and it was because the Tkinter package was not installed by default with python, try:

su

apt-get install python-tk

or use your gui package installer ;-)
[Touch CDMA Android Development] 79bass:
Very cool, but camera button in my Kaiser still doesn't works. So I think it's not mapped in the kernel.
[Touch CDMA Android Development] l355thanz3r0:
This is sweet and all but... I do I get it to work. I have Linux Mint 9 so essentially ubuntu. I unpacked the zip and got atools.py, double click and and gedit just opens it. How do I run the pretty gui ?
[Touch CDMA Android Development] mrkite38:
nvm, l1q1d got it below... lol
[Touch CDMA Android Development] l1q1d:
Open terminal

cd dirwith_where_is_placed_atool.py
python atool.py
[Touch CDMA Android Development] l355thanz3r0:
this is all I get when I try that command

Traceback (most recent call last):

File "atools.py", line 16, in <module>

from tkinter import filedialog

ImportError: No module named tkinter
[Touch CDMA Android Development] l1q1d:
install tkinter

and please use google!

and i think you are blind! two post before there is the answer!
[Touch CDMA Android Development] Does_It_Matter:
Does the NBH Editor work on the 2.6.32 branch?

Or only the 2.6.25 branch?

Even though I choose the 320x480 resolution, it seems to keep the 240x320 rez.

I really want to get the 320x480 running again.
[Touch CDMA Android Development] l1q1d:
It works with both, which changes did you apply?
[Touch CDMA Android Development] Does_It_Matter:
Device: Vogue

Resolution: 320x480

Version: Froyo

Include More Settings: Checked

Alter CPU Overclock: Checked (Set to 500MHZ)

Overclock GPU: Checked

-------------------------

Applied and saved settings

Using the Vogue 09/09/10 2.6.32 NBH from DZO's download site

Also tried the newest 09/28 testing one

Neither of these worked - the changes showed in the file,

but flashing the rom - it still showed as 240x320 resolution?

Not sure why these are not coming up as 320x480

The older roms, like from July - that were created as 320x480 - work properly.
[Touch CDMA Android Development] l1q1d:
Please make a test without changing

Alter CPU Overclock: Checked (Set to 500MHZ)

Overclock GPU: Checked

make only resolution change and let me know
[Touch CDMA Android Development] Does_It_Matter:
Vogue 09/09/10 2.6.32 NBH file

Vogue, 320x480, Froyo

Only changes applied to NBH file

Flashed, rebooted - no change - still in 240x320 mode.
[Touch CDMA Android Development] l1q1d:
i did the same test and the vogue has correct parameters.

Did you use the latest atools version?
[Touch CDMA Android Development] Does_It_Matter:
Yep - Latest ATools from page 1

And yea, I actually hex-edited and looked at the modified NBH

It has all the changes - yes!

But when you flash it, it ignores them, and still sits @ 240x320

I don't know why its ignoring those changes... that's the odd thing.

I'm wondering if some new changes were made in the firmware by DZO?
[Touch CDMA Android Development] l1q1d:
so it's a kernel problem not a atool bug...
[Touch CDMA Android Development] lunigma:
sudo apt-get install python-tk
[Touch CDMA Android Development] Gordon Freeman:
Wow thanks very much for this guide! Believe it or not, I read every single post just to be on the safe side. As far as I can understand it, the BSE just uses a form of Gparted to partition the SD card when you install? So technically I can just partition my SD card on my PC, place the anboot and .nbh file on the FAT32 partition, and as long as the .nbh file is set to install sys/data on the correct partitons, it should work fine?

It's not really a question that's important, I'm just playing around with Atools at the moment :) Very good program dude, lots of functionality. If people read the thread fully, they would be amazed at how good this program actually is! :D

EDIT : Partition Magic doesn't work that great anymore (isnt supported natively by Windows7) but I have a live disk of Ubuntu so I will use that ;)
[Touch CDMA Android Development] mati_motorloco:
Hi, sorry if this does not go here. When I download atools 1.3.0 it just opens a textlog in the same chrome page, I have python 2.7, what should I do to get atools running? thank you in advance
[Touch CDMA Android Development] russanandres:
Does this work with android 1.0 (RC29)?
[Touch CDMA Android Development] lunigma:
You can right click, choose "Properties", chose "Open with", click "Add", click "Use a custom command" and type "python", then click "Add". You should be able to open it by double clicking on it from now on. Along with any other python script.
[Touch CDMA Android Development] mikurej95:
Works PERFECTLY!! I'm finally able to overclock :) well, i was able to on incubus rls13 froyo but then when i went up to rls15 i couldn't but thanks to the nbh editor, i now can!! thank you verrryyy much! keep it coming.

And does anyone know if the gpu oc actually works?
[Touch CDMA Android Development] vellowax:
You can use neocore, it's a benchmarking app, download from market, try with and without the GPU oc.
[Touch CDMA Android Development] Does_It_Matter:
I think I figured it out...

Something weird.
[Touch CDMA Android Development] l1q1d:
so? what's the problem?
[Touch CDMA Android Development] Does_It_Matter:
Sorry - was busy and didn't finish the last post.

I got it working

Nothing wrong with the Kernel (either the 2.6.25 or 2.6.32)

Nothing wrong with ATools

SOMETHING wrong with Rom Update utility though...

I had multiple .NBH files in the Rom Update utility folder.

1 rom was named RUU_SIGNED_Vogue_320_Froyo.NBH

Another rom was named ruu_signed.nbh (The one I had modified and saved)

For some VERY STRANGE reason (probably bad error checking,

The Rom update utility read the RUU_SIGNED_Vogue_320_Froyo.NBH file and kept flashing that one.

It didn't pick up the "ruu_signed.nbh" rom - DAMN weird!

I finally got suspicious because I was trying a 2.6.32 NBH but after I flashed,

I checked the phone info, about listing, and saw 2.6.25 kernel...

So I removed all .NBH except the "ruu_signed.nbh" - reflashed, and it worked.
[Touch CDMA Android Development] cruiserrr:
Hi l1q1d, thanks for this great set of tools. I have tested the phyton tool both in vista and ubuntu (thanks to the posters of the tips on how to run from lynux!).

Can I pose a few questions?

sd-partition tool admits ext2 partitions. what about ext3/ext4? these types are not for our devices? any plans to add it?

your tool admits 4 partitions but has "only" three partition types. What would be the fourth partition?

swap partition: which size limit applies? the tools does not suggest a limit

GPU Overclok: Never heard of that !! it works for Pola100?

Help menu: when I run atools in ubuntu and press help nothing happens. Is that feature implemented? where can I find loserskater guide (I see you give credits to this guide)

data and system partitions: when would one change those settings?

thanks again for sharing your brilliant work.
[Touch CDMA Android Development] mrkite38:
I can answer some of that...

We prefer ext2 for speed, I think, since there's no journalling.

The typical 4-partition setup is fat32-ext2-ext2-swap

Sdcard capacity, I'd guess...

[Quote ]

data and system partitions: when would one change those settings?

[/QUOTE]

There are several reasons, but the driving one would be to install a small system and allocate more to /data.
[Touch CDMA Android Development] cruiserrr:
thanks for the quick reply but regarding the 2nd ext2 partition, what it is for?. I tested this config and it only had a lost+found directory. Well I do not wanna go offtopic.
[Touch CDMA Android Development] mrkite38:
Its possible to put /system and /data in sdcard partitions, that's why someone would use that setup.
[Touch CDMA Android Development] l1q1d:
@cruiserrr

there is no ext3/ext4 fs because there isn't the support on the compiled kernel. Ext3/ex4 are journal file system so are bad for limited writing device like nand or sd and thre is no good rease to use it.

4 partition -> all primary = less problem and you are using a sd not an hard disk so 4 i think is enaught!

Help menu is still in develop, i have no time to write guides....
[Touch CDMA Android Development] n2rjt:
For the kaiser,

Is it possible to add the volume wheel to the set of buttons that can be assigned?

There are really three buttons: wheel up, wheel down, and wheel push.

Would be interesting to have the following mapping:

wheel push: a "shift" key for the wheel...

wheel up: normal: page up; shift: volume up

wheel down: normal: page down; shift: volume down

But that is probably asking too much :o
[Touch CDMA Android Development] n2rjt:
Battery capacity for Polaris?

I believe that the battery capacity should be configurable on Polaris.

Also, please change the equation back to (mAh * 1.6), which is more accurate.

Thanks!
[Touch CDMA Android Development] l1q1d:
The wheel has only two option (up and down) it haven't wheel push...

i can add battery configuration to polaris (next release)
[Touch CDMA Android Development] erikly01:
How to install? (I'm a noob)

First, I would like to thank you for this great tool :D

I followed the instructions and I've successfully generated and saved the files in a anboot directory on my device.

I don't know what to do next? How do I flash my device? Do I have to flash my device? I basically wondering whats next?

Thanks!
[Touch CDMA Android Development] l1q1d:
if you want install on nand, flash as usual and then boot.

The install script do what you select without using the menu.

You can also use haret if you have select sd or image.
[Touch CDMA Android Development] voyteckst:
I tried atools, but unfortunately key mapping for kaiser (2.6.32 kernel) don't work. Some keys became unresponsive after updating.
[Touch CDMA Android Development] l1q1d:
Which keys?
[Touch CDMA Android Development] erikly01:
I'm sorry, but I'm a noob, could you help me with the items below?

>if you want install on nand, flash as usual and then boot.

Do you have a link that has instructions for flashing to nand?

>The install script do what you select without using the menu.

The install script has an .sh extension. When I try to run it on my phone or my Windows 7 box, they post a "file extension no supported" error. If possible, could you point me in the right direction in terms of running the install script?

Thanks again,

erikly01
[Touch CDMA Android Development] l1q1d:
Follow this guide (change polaris to your device)
[Touch CDMA Android Development] erikly01:
Ok, thanks
[Touch CDMA Android Development] randshid:
thanks a lot for this great tool ;)

i have flashed the androidinstall file with the l1q1d's uploded install-seq.sh file and everything works ok.

do i have to make a own bootscript file

to instal the androidupdate for getting wifi to work?

i dont know what to choose

"Apply update" or "Apply system update"

or is it possible to choose the advance mode an do both installations together?

the main problem is that i dont know if the androiupdate is just an update or an system update

thanks
[Touch CDMA Android Development] l1q1d:
For wifi use apply update
[Touch CDMA Android Development] sloniupl:
hello :)

this tool is grate it works on my arch linux perfectly :)

you only need to install

i have one question, what wersion of kernel does it download from interned when i press the download button?? ;)
[Touch CDMA Android Development] l1q1d:
Latest on dzo site, i'm thinking to move it to sourceforge.
[Touch CDMA Android Development] Rabid_Gypsy:
How do I update the battery info for vogue? It's always greyed-out, my battery is 1500mAh.
[Touch CDMA Android Development] l1q1d:
Battery module for vogue hasn't any option because is standard for all.
[Touch CDMA Android Development] thoughtlesskyle:
hey l1q1d did you see the program on here called hotboot it allows a restart of just the Shell and GUI i think it would be cool to implement something like that into the restart options and we need busybox installed for it so i wouldnt know where to start with it
[Touch CDMA Android Development] mrkite38:
We've already got busybox, don't we?
[Touch CDMA Android Development] voyteckst:
For example: vol up/down, e button, message button
[Touch CDMA Android Development] l1q1d:
@mrkite38: we have busybox.

@voyteckst: did you use latest version?
[Touch CDMA Android Development] thoughtlesskyle:
i just used the Hot Reboot app successfully and it worked
[Touch CDMA Android Development] voyteckst:
Rather yes.
[Touch CDMA Android Development] Rabid_Gypsy:
Thanks, I saw the option, so I just thought it might be important.
[Touch CDMA Android Development] thoughtlesskyle:
wow so l1q1d i just used the BSG for the first time today, and i can say from a testing stand point when installing builds that has just made my life like 90x easier
[Touch CDMA Android Development] Jimcisme:
Keymapper page

I can second this, wheel does nothing, nor do soft buttons(buttons just inside green and red ), e button does nothing.

I made andboot folder on root of 2gb sd card.

Inside this I put androidupdate.tar made by atools. (kaiser frontpannel key changes, only change was checkbox for wake with power button and device:kaiser, the rest were left at default for keymapper page.)

Also in andboot folder- install-seq.sh made by atools with apply update, install update, fix permission checked.

place sd card in slot, hit reset and after it goes past prompt for menu it said "installed update update complete". It made changes, just not the ones I asked for.

phone is att tilt 8925.
[Touch CDMA Android Development] n2rjt:
In WinMo, you can push the Kaiser jog wheel and it does something. I haven't figured out how to recognize it yet in the Linux driver, but it has to be possible. When I push, I get wheel values of 0,3,0,3,0 or something similar.
[Touch CDMA Android Development] cnigro1279:
Resizing System/Data on NAND

Still learning as I go but I have been playing with 7zip and building a smallish Eclair for my Kaiser that will give me more room on Data. Using Atools I have tried to re-size the System and Data partitions and am having troubles. I have been told that 85 MB for System should be acceptable for the build I am modifying but whenever I create my .NBH and install my build I get 'unable to mount Data'. Anybody know what I'm doing wrong??
[Touch CDMA Android Development] l1q1d:
@Jimcisme: which device are you using?

@cnigro1279: did you reinstall using androidinstall?
[Touch CDMA Android Development] samjam:
After you re-size you should re-install system and erase data.
[Touch CDMA Android Development] cnigro1279:
I created my NBH with Data partition to 95, knowing my build would fit and then tried re-installing the .tar. I'm always with a 'Cannot find image or umount, data not found'. Only when I leave the partitions to default am I able to install Android.
[Touch CDMA Android Development] n2rjt:
Same for me.
[Touch CDMA Android Development] alexandre.cgd:
I just installed via NAND, did all the settings (. Nbh, keymap, etc.) by atools! It seems that everything is 100% so far in my Kaiser!

I will then analyze!
[Touch CDMA Android Development] cribuj:
This marvelous tool can be adapted for HTC Blackstone ? If yes ... please let me know ...
[Touch CDMA Android Development] cnigro1279:
Nand on Kaiser

Seems there may be an issue re-sizing NAND partitions with Kaiser.....

Still a great tool!!!!
[Touch CDMA Android Development] l1q1d:
Yes for mapping part, for other part it depends how it boot...
[Touch CDMA Android Development] alexandre.cgd:
I'm having an annoying problem, when I restart the phone, errors appear on the screen saying it can not find the partition.

Selecting System installed in NAND and SD Data Partition. Img. I did wrong?

How can you create a partition on my SD? It is 6 GB!

Thanks
[Touch CDMA Android Development] l1q1d:
You need a sdcard with only one fat32 partition, then you can create partition with sdpart tool (check the button on left and create the partitions), i don't know if it work with system in nand and data on sd (i didn't try it)
[Touch CDMA Android Development] samjam:
You did nothing wrong, but SD data doesn't work.

Although it's tempting, I think you should not do it, but rather do install-to-SD more move-to-SD but have data on NAND
[Touch CDMA Android Development] Jimcisme:
Phone is att tilt 8925.

By the way, Thanks for the great tools! :D
[Touch CDMA Android Development] cribuj:
Adapting Atools for Blackstone

PLease let me know how can I help you in this matter . I really want to be able to flash an Android rom on Blackstone . All Blackstone users are waiting this for a long time . It will be a major breakthrough .

Cheers !!!
[Touch CDMA Android Development] l1q1d:
Atools is a editor, blackstone lacks of a working nand system. You need developers to create a working tinboot and support for nand (internal memory).
[Touch CDMA Android Development] cribuj:
Got IT ! I'll work on that ! I'll let you know when I will be in an positive stage . Thank you !!! Cheers !!!
[Touch CDMA Android Development] alexandre.cgd:
I can not create the zImage by Atools! The message at the bottom UNABLE TO DOWNLOAD FILE!

What to do?
[Touch CDMA Android Development] seancojr:
The problem he is having (as I am also) in fact is not being able to install the system. When you try it delivers the'unable to mount Data' right away.

I wonder if installing the system without the altered settings first, then doing a reinstall with the altered would make any difference?
[Touch CDMA Android Development] l1q1d:
@alexandre.cgd retry, it works for me (which version did you use?)

@cerebralgenius: the system/data resize change where the kernel start and stop the partitions. The code is the same of the "nbheditor" made by loserskater, try with this and let me know if it works.
[Touch CDMA Android Development] loserskater:
The system/data partition formulas could probably be looked over. I never really tested it myself but it all looked good on paper. I assumed it worked because nobody complained (probably because nobody used it until now).
[Touch CDMA Android Development] vellowax:
resize data/system partition work for me with nbheditor & atool.

as long as the system fit with your edited partition.
[Touch CDMA Android Development] n2rjt:
For Kaiser, the math is correct, but the seeks are not.

If we don't overclock GPU, it seems to build a correct image.

But, with overclocked GPU, the string is built with seeks, and extra zeros end up after the size and offset of userdata.

So, for now, don't overclock GPU if you want to modify system/data size.

For Kaiser. I didn't check the others.
[Touch CDMA Android Development] l1q1d:
Download haret from dzo site

On atools (nbheditor) select haret, download zImage and initrd.lzma

select your device and your preferred setup (screen size ecc ecc)

save the default.txt

on atools (bsg) check first install and sd partitions for both system and data, use sd partitioner and create one partition for system and one for data, select also apply androidupdate if you create new key setup.

REMEMBER THAT SDPARTITIONER WORKS ONLY IF YOU START WITH ONLY ONE FAT32 PARTITION.

put all your file in a new dir in sdcard named andboot

put your sd inside the phone.

start windows.

start haret.exe

cross your fingers.

I'll write a complete guide when i finish with a new magic update on atools.
[Touch CDMA Android Development] oyumurtaci:
Edit:

Sorry about the late reply once again, but I checked the partition table on a linux machine here at work (which is why I replied late), I went ahead and installed on "sd partition" and it seems it worked. Now I can start messing around with Atools more to see how it works with the Polaris.

Thank you once again, and let me know if you need any help writing up the complete guide, as it's the least I could do.