yashsingh1/xdaforums huggingface dataset:
[Touch Cruise Android Development] dwaradzyn:
Hi, I'm happy to report my results. My radio ROM version is 1.64.08.21. I'm using ROM udK Diamond R3. I changed carrier setting to polish operator named ERA, and renamed initrd-android to angstrom-console. With those carrier settings I was able to connect to Internet under android. Content of my default.txt file is:

set RAMSIZE 0x07800000
set MTYPE 1723
set KERNEL zImage
set initrd angstrom-console
set cmdline "rw init=/bin/sh rootdelay=20 fbcon=rotate:0,font:MINI4x6 carrier.mcc=260 carrier.mnc=02 carrier.name=ERA carrier.apn=erainternet carrier.ppp.username=erainternet carrier.ppp.password=erainternet"
boot

After booting Angstrom and logging in as root I typed "listen&" and this was written to console:

eHTCCSQ: 3
eHTCCSQ: 4
eHTCCSQ: 3
+CREG: 1, "3B10","D248"
eHTCCSQ: 4
eHTCCSQ: 3
+CREG: 1, "3B10","D375"
eHTCCSQ: 2
+CREG: 1, "3B10","D311"
+CREG: 1, "3B10","D248"
eHTCCSQ: 2
eHTCCSQ: 3
+CREG: 1, "3B10","D375"
eHTCCSQ: 3
eHTCCSQ: 4
+CREG: 1, "3B10","D248"
+CREG: 1, "3B10","D375"
+CREG: 1, "3B10","D248"
+CREG: 1, "3B10","D248"
+CREG: 1, "3B10","D373"
+CREG: 1, "3B10","D343"
+CREG: 1, "3B10","D375"
+CREG: 1, "3B10","D343"

After 3 minutes I entered the command "gprs" and my screen was filled with following messages (combined output of listen and gprs?):

eHTCCSQ: 3

OK

OK
+CREG: 1, "3B10","D375"

CONNECT
+PCD: 1,1
+HTCerror: 3,21
+PCD: 1,0
eHTCCSQ: 3
+CREG: 1, "3B10","D248"

Now for mounting SD card ("sdmount" command output):

FAT: codepage cp437 not found
mount: wrong fs type, bad option, bad superblock on /dev/mmcblk0p1,
missing codepage or other error
In some cases useful info is found in syslog - try dmesg | tail or so

I also checked dmesg, and this is what its tail was:

<3>mmc0: Command timeout
<3>mmc0: Command timeout
<3>mmc0: Command timeout
<3>mmc0: Command timeout
<4>clk_set_rate 21:2400000000
<3>Error setting clock rate (-22)
<4>mmc0: host does not support reading read-only switch. assuming write-enable.
<6>mmc0: new SDHC card ad address d555
<6>mmcblk0: mmc0: d555 SU08G 7977472KiB
<6> mmcblk0: p1
<3>FAT: bogus number of reserved sectors
<6>VFS: Can't find a valid FAT filesystem on dev mmcblk0
<3>FAT: codepage cp437 not found
<3>FAT: codepage cp437 not found

I think kernel sees my SDHC card correctly (it knows its size for sure) but couldn't mount it because of not supported codepage. I can successfully mount my card under desktop linux, so i think it is matter of including codepage support in kernel config.

Edit:

I think CONFIG_NLS_CODEPAGE_437 must be set in kernel .config for the sd card mount to work.

I also noticed that removig SD card from slot produces following message on screen:

mmc: Slot status change detected (1 -> 0)

Inserting the card again produces similar message:

mmc: Slot status change detected (0 -> 1)
[Touch Cruise Android Development] dwaradzyn:
Happy to report again. I changed my setting to ERA (carrier config is the same as in my previous post).

Firstly I've tested incomming calls. I was able to receive the call, audio was normal. When I presssed the red button call was not ended, and green call icon was appearing in higer left corner of screen. Icon disapeared after hanging the call on phone which initiated it.

Secondly I tested outgoing calls. I launched the dialer app and selected recent call. The call again worked fine. This time call was made in loudspeaker mode and I was not able to change it from GUI.

New keyboard works much better than the first one.

Thanks for your hard work, and keep it up :)
[Touch Cruise Android Development] imfloflo:
@premy ok so i reload all files, i log in root

i type listen&

i type gprs& and i have this
[Touch Cruise Android Development] dubbeld00:
In what format do you want the list? The script will rip the information from wikipedia, merges it with the info from quickim and gives it into an array:

btw, some countries like the netherlands needs some adjustments on the Wiki page. The brand is not always given

T-Mobile / Ben = T-Mobile

Orange / Dutchstone = T-Mobile

Array with information
[Touch Cruise Android Development] imfloflo:
dubbeld00 you put

in the lastest cab from premy (who is orange france) there is carrier.mnc=01 ;)
[Touch Cruise Android Development] dwaradzyn:
I've tested this kernel with android and it works just fine. Calls, SMS, and data connection worked with no issues.
[Touch Cruise Android Development] dubbeld00:
http://en.wikipedia.org/wiki/Mobile_Network_Code#France

According to this source it can be 00, 01 and 02. they are all operational, if this is false information, please edit it on Wikipedia, my information will automatically adjust to that information.

My script always select the last one found in the table (so 02)... I don't know how premy wants it.

You can create 3 tables:

country

country_id (PRIMARY_KEY)

country_name

country_mcc

providers

provider_id (PRIMARY_KEY)

country_id (= country.country_id)

provider_name

provider_apn

provider_username

provider_password

mnc_codes

mnc_id (PRIMARY_KEY)

provider_id (= provider.provider_id)

mnc_code

(mcc is always related to a country; table: mnc_codes, you can also make provider_id and mnc_code the primary key (and drop mnc_id))

This way you can have multiple mnc codes on one provider and select the one which allow you to connect.
[Touch Cruise Android Development] imfloflo:
Ok I think it wasn't the same but if you say that good :) thanks for the table :)
[Touch Cruise Android Development] dubbeld00:
I don't know :) I'm not in France and can't test it out, but it's all about the design of the database or the script... So I'm waiting for further details... By the way, the script isn't finished yet, still have to make some improvements to it.

Also maybe someone can open a wiki page with the GPRS settings (or extend the current wiki page)... Then we can "rip" it from there... so if we keep Wikipedia up to date, it will always work on our android image...
[Touch Cruise Android Development] premy:
The way android works is that it fetches from the modem the MCC and MNC (probably from the SIM card), and then based on this, and on the values it fetches from a sql database, it initializes the GPRS connexion.

So the key is really the MCC/MNC. So if there's multiple MNCs for a single operator, the safest way to go wold be to include them all.

As for the way to update the android initrd

1/ you have to gunzip and cpio -i -u it

2/ sqlite3 data/data/com.google.android.providers.telephony/databases/telephony.db to upload the new values

3/ re-create the ramdisk image

The new ramdisk image would then replace initrd-android.

You can take a look at etc/setupmodem.sh in the android-initrd. That's the script that fetches the parameters from the kernel command line, to upload them in the database at boot time.

By the way, this script was initially written by Matsuu, posting on the kaiser forum. All credits to him.
[Touch Cruise Android Development] premy:
imfloflo: strange. CONNECT means that the GPRS connexion is initiated.

Can you try to type 'ifconfig' ? If you get something mentioning ppp0 with a proper IP address, then it would mean that you have an end-to-end IP connection.
[Touch Cruise Android Development] premy:
dwaradzyn,

thanks for the report. You're right for the SD problem and CONFIG_NLS_CODEPAGE_437. You probably also need CONFIG_NLS_ISO8859_1.

I'll post a patch later, and update the bootkit. In the mean time, you can try to compile your own zImage from the source tree in linuxtogo.

This will only solve the codepage error, though. Your message is also saying "bogus number of reserved sectors". I'm having the same problem with my 8GB SDHC card. Did you format your SD card yourself ? Would it be easy for you to do it, and see if the problem is still there afterwards ?
[Touch Cruise Android Development] dwaradzyn:
I compiled kernel with codepage 437 and iso 8859-1 support and Angstrom mounts my card at boot time. I was able to browse contents of my 8gb card.

Android media scanner does still doesn't seem to work.

Edit:

I've attached my build to this post.

I modified onscreen keyboard in this build a little: it includes tab, escape and minus key.
[Touch Cruise Android Development] imfloflo:
premy: ifconfig after running gprs& say ppp0 and i have an inet 10.26.11.66 and a p-t-p adress 10.64.64.64 with mask 255.255.255.255 MTU 1500 metric 1

i try to ping google.com and it is Ok so i don't understand why i haven't gprs on android but on angstrom yes
[Touch Cruise Android Development] premy:
dwaradzyn,

did you reformat your card, or did the "bogus number of reserved sectors" disappear only with your new zImage ?
[Touch Cruise Android Development] premy:
Imfloflo, very strange indeed. You could maybe try all the MNC recorded for Orange (try with MNC=00 then with MNC=02).
[Touch Cruise Android Development] dwaradzyn:
I didn't format my card. The "bogus number of reserved sectors" message was because I tried to mount /dev/mmcblk0 instead of /dev/mmcblk0p1. Now mounting works and does not produce any message. My mount command is:

mount -t vfat /dev/mmcblk0p1 /media/card
[Touch Cruise Android Development] dubbeld00:
Hehehe nice script, to just insert it into the carriers table on boot (never looked within the initrd-android).

Attached you can find the database filled some extra providers (142 in total).

EDIT: http://android.v-dh.nl/internet.php?download=1

With the above link you can download the latest database (inserts the latest carriers into the telephony.db) I'll leave the first 27 lines of the table alone (since there was already data in the table)

______________

http://android.v-dh.nl/internet.php

Can you all please check if there is a telco missing? What can you do if you see your provider is missing?

- Check if your provider is on this page: http://www.quickim.com/support/gprs-settings.html

- Check if it's on the wiki page, with the right! brand: http://en.wikipedia.org/wiki/Mobile_Network_Code

If it doesn't have the right brand, please edit it on wikipedia, if it isn't on wikipedia, please add it to it.

If it isn't on quickim, please hand me all the details (maybe create an article on wikipedia with the gprs-settings, so more people can help to keep it up to date)

Please also check if the brand of wikipedia match the provider of quickim... (I really don't know if telco "Telfort" is on the "KPN" network, or "Orange" is taken over by "T-mobile")
[Touch Cruise Android Development] dwaradzyn:
Hi,

I wanted to play a bit with Angstrom on Polaris but Android green keyboard was too limited to fully operate in Linux console. There was no way to input "-" character, no way to exit from vi during edition (no escape key, no colon key) or to simply stop commands like ping (no ctrl+c). I wanted a full PC keyboard equivalent. Keeping in mind that we will soon be able to boot from SD card and install full distros like Debian, I started to work on such keyboard.

I post here my first result: a zImage with keyboard having most of pc useful keys. I have only tested it for few minutes and it seems to work, but expect bugs. Please report encountered bugs with details.

I do have many ideas on how to improve the keyboard. To name some of them: ability to move keyboard to arbitrary position, support for gestures like in WM keyboard, animated/faded apperance/disapperance and so on. I am also aware that this new keyboard is so small that it is usable only with stylus, which I do not consider as disadvantage.

Please post back bug reports and opinions considering the new keyboard. I'll be grateful for thoughts for further improvements so please do post them. The layout of new keyboard is also open to discussion. Indeed there are two buttons to which I had difficulty to assign anything meaningful. Finally I hope someone will propose a better-usable and good-looking layout (yes, we need a real graphic designer for that) for new keyboard.
[Touch Cruise Android Development] imfloflo:
I test this news keyboard i love it, i can do ctrl+C, but i can't do a ping and i don't see very well some grey character and i don't kkow where to find it cause i usually use a AZERTY keyboard but our keyboard rocks :)
[Touch Cruise Android Development] tseng:
Hi,

i tried to Run the Andoid with haret on ym Polaris. But after i start haret and klick onto the RUN Button. The Polaris Hang at BOOTING LINUX ....

Can anyone help?? Thanks
[Touch Cruise Android Development] L10nH34Rt:
Just try till it boots!!! Charging your battery might help as well as turning on airplane mode...

But again it only boots 1 out of 3 times really....

Which ROM are u using btw??
[Touch Cruise Android Development] tseng:
My Rom is Bepe 0.67

Which Version of Zimage is the best to boot on this Polaris?? In this Thread are many zImages :)
[Touch Cruise Android Development] imfloflo:
Try them all, begin with the last release and try the previous one by one.
[Touch Cruise Android Development] imfloflo:
Hi there is news on the Vogue site
[Touch Cruise Android Development] ravest:
update

Hello

Can someone update the first post to include the most recent files and info ?

10x
[Touch Cruise Android Development] Naaf:
Why not updating the already existing Android Polaris Site (http://android.v-dh.nl/). The would be the best and easiest way to get the latest release of Android for our Polaris.

Thanx for the good work on this project.

Greetz
[Touch Cruise Android Development] szsoftware:
Hello all,

I was absent for a quite long time.

These days I notized the huge progress and want to test the latest developments.

Unfortunately I stuck within the haret boot process.

Some month before I was able to boot Android and an angstrom console image. I dont know exactly, but I think it was possible with the o2 stock rom.

Now I tested the latest zImages in this forum and wonder why no one boots, not even the angstrom-console.

Maybe there is a problem with the default.txt?

Help appreciated, information below:

haret-console.log:

======== Connecting to haret ========
Minimal virtual address: 00010000, maximal virtual address: 7FFFFFFF
Detected machine Generic MSM7500/MSM7500 (Plat='PocketPC' OEM='Polaris')
CPU is ARM ARM arch 6 stepping 4 running in system mode
Enter 'HELP' for a short command summary.

HaRET(1)# run default.txt
boot KERNEL=zImage_2008-07-19_0601 INITRD=initrd-angstrom-console
Opening file zImage_2008-07-19_0601
Opening file initrd-angstrom-console
boot params: RAMADDR=10000000 RAMSIZE=07800000 MTYPE=1723 CMDLINE='rw mem=128M carrier.mcc=262 carrier.mnc=07 carrier.name=o2 carrier.apn=internet carrier.ppp.username= carrier.ppp.password='
Boot FB feedback: 0
Built virtual to physical page mapping
Allocated 1979 pages (tags=5C000000/15167000 kernel=5C001000/15166000 initrd=5C107000/15060000 index=5C7B6000/149b2000)
Built kernel tags area
Built page index
preload=2264@5C7BA000/149ae000 sj=5C7BA000 stack=5C7B8000/149b0000 data=5C7B9000/149af000 exec=149ae128
Reading 1070483 bytes...
Read complete
Reading 7005582 bytes...
Read complete
Launching to physical address 149ae010
Trampoline setup (tram=136@000241C0/1c0241c0/10e4f1c0)
MMU setup: mmu=A0330000/10630000

default.txt:

set RAMSIZE 0x07800000
set MTYPE 1723
set KERNEL zImage_2008-07-19_0601
#set initrd initrd-android
set initrd initrd-angstrom-console

# MCC and MCC can be found at http://en.wikipedia.org/wiki/Mobile_Network_Code
# APN, USERNAME and PASSWORD can be found at http://en.wikipedia.org/wiki/Access_Point_Name

set cmdline "rw mem=128M carrier.mcc=262 carrier.mnc=07 carrier.name=o2 carrier.apn=internet carrier.ppp.username= carrier.ppp.password="

set fbduringboot 0
boot

Thanks in advance
[Touch Cruise Android Development] szsoftware:
One step further

Ok, I just had some succes, after optimizing my testing environment.

I think because of the stock rom I have to accept, that the success-rate with haret is very low. So I set up a "boot loop" with this steps:

- for the boot testing I switched off the phone-radio in comm

- created a startup.txt with the listen-option

- put a link to the haret.exe in the device's autostart

- created a bash-script:

#!/bin/bash
HOST=169.254.2.1

echo -n "Awaiting connection to haret "

STATUS=1
while [ $STATUS == 1 ]; do
echo -n "."
printf 'run default.txt\r\n' | nc -t -w 1 $HOST 9999 2>/dev/null
STATUS=$?
sleep 1
done

BTW, I tried the last stuff from the vogue website. The first try was successfull (until the expected kernel panic), after that it took approx 10 times to the next successfull boot.

Update: Just booted Android, took 7 to 10 times or so.
[Touch Cruise Android Development] Henry_Lee:
Are you tried this? http://android.v-dh.nl/?m=Downloads is empty. Very nice project.... :mad:
[Touch Cruise Android Development] Naaf:
You misunderstood me. I wanted to thank for the nice Android project, not for a site, that is not finished oder updated. But it would be nice if the page would give us the latest releases of Android. Thats what i meant.

So long
[Touch Cruise Android Development] Henry_Lee:
Android project still not work. Like and site. Thats mean I.
[Touch Cruise Android Development] szsoftware:
Android usage / console switching?

After some testing with latest android stuff I want to know wether it is possible to switch to a console from android gui and back?

Same like VT-Switch or so. Isn't there a android console like xterm or kde's konsole?

Another question I didn't figure out while reading depending threads:

On what parameters does it depend, whether haret boots good or not. I don't mean "use this rom or that" but the technical reason, why haret boots well with one rom and needs a lot of cycles with another. Are there options in default.txt, that have influence of reducing the count of attempts? This booting stuff sometimes let me think, I spend my time not with a machine but with my girlfriend :confused:

CU later aligator
[Touch Cruise Android Development] dubbeld00:
Because they seem to have there own page... Therefore I stopped developing that site. You can find all the files over here: http://linuxtogo.org/~lgorris/

and you can see what they are doing on this document: http://linuxtogo.org/~lgorris/kaiser-bootkit/README.txt .

That's all what there is...
[Touch Cruise Android Development] szsoftware:
Yeah, now we have a nice little app for the console: nano.

I like this console-stuff :).

BTW, are there other kernel cmdline selectable fonts? one size bigger than MINI6x4 would be great. In the .config I see only this console font compiled in, can more fonts compiled in?

Thank a lot to the developers, your work is soo appreciated by me, you can't imagine!

CU
[Touch Cruise Android Development] maximos86:
which file should i download to get the latest version from http://linuxtogo.org/~lgorris/ ???
[Touch Cruise Android Development] dubbeld00:
http://linuxtogo.org/~lgorris/android_polaris_20080718.zip

And update that package with the latest zImage

http://linuxtogo.org/~lgorris/zImage-htcpolaris.bin
[Touch Cruise Android Development] Henry_Lee:
Works more faster then WM6.1, but it can not be used. :(

What you think, when Android will be worked shell for mobile device?
[Touch Cruise Android Development] pananza:
Out of 10 tries Haret onyl boots android about 2-3 times. And when it starts booting the hangs on the moving red dot thingy. It starts going from side to side, but after a few seconds it just stops and then nothing happens.

I tried all the different tricks (beeing connected on active sync, not beeing conencted, flight mode on and off, bluetooth on and off etc) but that does not seem to have any effect at all.

Currently running a cooked WM 6.1 rom (Touch-IT_Diamond_v4_Polaris_WWE). Any ROMS that are known to work better than others with Android?
[Touch Cruise Android Development] imfloflo:
It seems like everybody is on hollydays.

Any news, progress ?
[Touch Cruise Android Development] Skywalker74:
Hi guys. It would be very nice to hear some news from our Android developers. We all are just tired of Windows mobile. :-)
[Touch Cruise Android Development] imfloflo:
http://code.google.com/android/RELEASENOTES.html

Here is the news and now waiting for a new release of the cab with all the good files and the new interface. :)
[Touch Cruise Android Development] fleadog99:
you can get the android SDk in the downloads section of android.
[Touch Cruise Android Development] voxid:
whats up with a keyboard?
[Touch Cruise Android Development] Mormy:
On Italian web site www.hwupgrade.it there is a new and a link:

http://www.youtube.com/watch?v=WCyceYJRUtE

Automatically translated:

"Last month of November Google and other partners presented the draft Android, a new software platform intended, according to the designers to revolutionize the segment of mobile telephony. The open nature of the project would provide a rapid proliferation of software solutions dedicated to the benefit of the spread of products based on Android.

According to what reported by the New York Times on the first mobile operator to bring to market a product based on Android will T-Mobile USA. It is also a risky launch date and, always amerciano the newspaper, indicates the month of October as a likely period for the official launch of this solution.

It 'was also revealed who will produce the device will be HTC that with this product aims to challenge the competitor as ever, the iPhone. It 'also a short video posted to YouTube although in these cases, caution is essential.

When not know the details, characteristics and the cost of this first product Android but considering the competitor of reference, is acceptable to assume that T-Mobile USA intends directed towards higher-end market."
[Touch Cruise Android Development] yubyub:
I got it working on my HTC Touch Cruise this morning. The first zImage didn't boot at all for me, but I'm 2/2 on the latest zImage that was posted.

Things are quite flakey still. The phone app's "hangup" button is a real pain - pressing the hardware hangup button closed the app, but left the phone connection running. Does anybody know how I get back to the phone app if I closed it?

Otherwise, this is looking quite neat. It's cool to see it up and running.

I'm on T-mobile US, and the phone is working - but internet connection is not yet operational. I'll be working on that in my "spare time".

The Keyboard app needs LOTS of help, but it is functional.
[Touch Cruise Android Development] pananza:
Where did you get updated zimages from? http://linuxtogo.org/~lgorris/ does not have anything new for the Polaris...
[Touch Cruise Android Development] yubyub:
Sorry, I wasn't clear at all on that. I used the image here: http://linuxtogo.org/~lgorris/zImage-htcpolaris.bin - that one is different than the one I got from the android_polaris_20080718.zip file. That seems to boot just fine.

(apologies - I'm catching up on the entire thread here).

Using the internet connection/apps (browser, maps) seems to lock the device solid in a matter of minutes. Otherwise, things seem to be okay.

The clock isn't updating at all. Also, changing from portrait to landscape mode a few times seems to lock things up.

Hitting the power button presents a menu of items (turn off screen, power off, turn off radio), and none of them seem to have any effect.

I have no idea if these are all known issues.

Does anyone know how to view a build number, etc from the GUI? Or is this command line driven only?

All in all, though, it's remarkable progress, and very exciting to see. Some great work has been done here - my compliments and congratulations to those involved in this.
[Touch Cruise Android Development] imfloflo:
I hope everybody come back from holliday, and are ready to release a new cab :)
[Touch Cruise Android Development] pananza:
Is anyone working on the Andooid for Polaris at all? http://android.v-dh.nl/ seems to be a good page, but it's totally dead. If anyone is working alone or as a team trying to get Android running on the Polaris, please send a little heart beat here so we know you are alive and kicking :)
[Touch Cruise Android Development] dwaradzyn:
Little heartbeat :)

I won't post until I have some results, so don't ask if I have any.
[Touch Cruise Android Development] pananza:
Great, at least one is trying then :) If you need any help testing call out.