yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 ROM Development] dcordes:
http://linuxtogo.org/~lgorris/initrd-angstrom-2009-09-17

this has no gui. it's for debugging in the frist place. but you can get online using 3g and do other fancy stuff.

/home/root/ppp.sh <access_point_name> <user> <pass>

If you run into trouble uncoment the DNS hack in ppp.sh

make sure you first run

loadkeys /home/root/x1-keymap

I want to cook some gpe/opie/illume images though. somebody needs any special programs?

edit: btw it's totally nothing new to boot into android on kovsky :)
[XPERIA X1 ROM Development] jkoljo:
Wow... Got it working! That is really nice job done, i hope you, developers, will continue your work!

Thanks dcordes :)
[XPERIA X1 ROM Development] Timfal1:
can someone just give me a link to the file that works? ive tried from the wikipage but it just hangs during boot? anyone. just tell me what to download. really want to try
[XPERIA X1 ROM Development] Timfal1:
It boots fine but when i get to the login and i type in "root" and hit enter nothing more happens what am i doing wrong? can someone whos succesfully booted this tell me. i really want to try
[XPERIA X1 ROM Development] cyberdesigner.net:
in my case the cursor goes to the next line and i get a command prompt...

what have you expected?
[XPERIA X1 ROM Development] Timfal1:
I see that android is running pretty good on blackstone, how far are we here from android beeing that good and running???
[XPERIA X1 ROM Development] RoterAdler:
Hello, my Xperis X1i don´t want to run Android.

I´ve downloaded the File Package by hhenault and copied them to my storage card. when i launch haret and boot android it says:

A N D R O I D [ 14.846923] init: cannot find ´/system/bin/sh´, disabling ´console´

[ 14.846923] init: cannot find ´/system/bin/servicemanager/´, disabling ´servicemanager´

[ 14.846923] init: cannot find ´/system/bin/vold´, disabling ´vold´

and a few more.

What am I doing wrong?
[XPERIA X1 ROM Development] cyberdesigner.net:
your /tmp/ folder seems to not be in the right place. this could happens if the kernel doesnt see your storage card, or storage_card:/tmp/system.e2img is not accessible. tmp needs to be in lower chars no capitals.

@Timfal1: its far away... just read or try to see if you need.
[XPERIA X1 ROM Development] Gwystyl:
Hmmm maybe that's where it went wrong :). I put all .e2img files (and haret and other files for that matter) in storage card root. I'll check again if I can find what to place where.

edit: I see Scholbert says root has to be /tmp on card. I think that means all files have to be placed in /storage card/tmp? Does Storage Card have to be all lower chars also? Default in WinMo is Storage Card afaik.
[XPERIA X1 ROM Development] cyberdesigner.net:
which name the storage card gets depends of the partition scheme. as some cards don't have a partition table. for the card itself there is no naming convention as i think. cause it is used under the linux kernel and his owen device namings. but i think thats not the problem. the files have to be placed in storage_cards root dir:

/storagecard/tmp/ -> system.e2img, data.e2img, cache.e2img

/storagecard/tmp/boot/ -> haret, Initrd, zImage default.txt

/storagecard/tmp/newapps/ -> *.apk

thats all...
[XPERIA X1 ROM Development] SneakyViper:
For the /Storage Card/ part it really doesn't matter what the casing is like. For "tmp" it probably doesn't matter either, but I just try to keep it lowercase.

Rationale: /Storage Card is just the WM mount point for a storage card. When Linux is booted, it will mount the first partition of the storage card 'directly' from the hardware (there's no WM mount point in there any more ;) ). In case of the android initrd we're using, it will mount it at /mmc.

After mounting the partition, other images are loop mounted from /mmc/tmp. If the storage card partition would be ext2 or something like that, file and dir names would be case sensitive. Currently most of us (if not everyone in this topic) are using fat/fat32 on the storage card, so WM can read it as well. For fat (vfat driver) the default setting is case insensitive names, so it shouldn't matter.
[XPERIA X1 ROM Development] hhenault:
In fact, you can put the stuff anywhre on your device, provided the location matches Haret's startup file (default.txt, startup.txt ...) :

set kernel zImage_kovsky_20091014

set initrd initrd.cpio.gz

set ramsize 0x6000000

set ramaddr 0x10000000

set cmdline "root=/dev/ram0 init=/init console=tty0 mem=76M msmsdcc_id=3 imgdevname=/dev/mmcblk0p1 imgdevnum=1 imgdir=/tmp msmts_calib=0xc5.0x399.0x367.0x4d fbcon=rotate:2 msmvkeyb_toggle=on"

boot

You can choose imgdir=whereever_you_want
[XPERIA X1 ROM Development] cyberdesigner.net:
if you _realy_ mean everywhere, i have to disagree. "imgdir" takes the storagecard as root. i'm not shure if you kann change this by changing "imgdevname" to something else to use the phone-storage...
[XPERIA X1 ROM Development] Gwystyl:
Thx for the explanation, it does make some sense :).

I tried it with all files (cache.e2img, data.e2img, default.txt, haret-x1.exe, initrd.cpio.gz, system.e2img, some kernels) in /Storage Card/tmp, and it boots fine.

I got into Android with the kernels from 20091015 and 20091016. As reported before, pacman works, menu's work, swiping desktops left and right works.

No phone, wifi, bluetooth yet, but I think this is a large improvement over a few months ago.

While booting, startup lines are upside down, then flip to normal, but Android desktop is upside down again. Scholbert do you have any clue what causes this?

I'll just keep on trying some versions I find here, and report back if input is needed on something. I'm not a coder myself and have only basic knowledge of linux, so I'm afraid I can't help much with tackling the problems which are still here. Just keep up the good work all!
[XPERIA X1 ROM Development] fogozito:
screenshots please:D
[XPERIA X1 ROM Development] hhenault:
To all :

I forgot that 'imgdevname' was pointing on the sdcard ... oops!

To scholbert :

- Kernel 20091016 Ok.

- I can "expand" the initrd file by gunzip + "cpio -icvB ...", and access the init script.

Thus, I can edit and modify the init scripts.

BUT when if I rebuild the initrd with 'cpio -ocvB...' + gzip, I can't have exactly the same image, because the main dirs (system, sys, cache ...) are expanded as 'flat files' instead of physical ext2 file systems.

When booting with my modified initrd, what I get a is nice crash + a nice dump...

I can't decide if due to my change ('/sdcard' instead of '/mmc'), or due to bad filesystems.

If you have a tool to rebuild correctly the initrd file, I suggest you try the changes above.

Keep going everybody !!!
[XPERIA X1 ROM Development] scholbert:
Hi hhenault!

I suggest these steps to extract, modify and rebuild initrd:

1. Gunzip with: gunzip initrd.cpio.gz

2. Extract inside working folder: cpio -i < initrd.cpio

3. Move initrd.cpio from working folder and backup if you like.

4. Do the mods...

5. Within your working folder create the new cpio-archiv: find ./ | cpio -H newc -o > initrd-new.cpio

6. gzip initrd-new.cpio

You may also use the description in the wiki: http://htc-linux.org/wiki/index.php?title=Initrd

For the *.e2img you may use these instructions on your linux host:

1. Create a temporary mountpoint in you work directory e.g.: mkdir tmp_mnt

2. Mount the EXT2 file images: mount -o loop system.e2img ./tmp_mnt

3. Modify whatever you like, but keep track of the user rights inside the mounted filsystem.

4. Just for security call sync afterwards: sync

5. Umount ./tmp_mnt

To create a new file with a EXT2 filesystem inside (just an example):

1. dd if=/dev/zero of=/your_work_directory/your_file.ext2 bs=1024k count=65536

2. mkfs.ext2 /your_work_directory/your_file.ext2

3. You may even tune up the filesystem inside this file: tune2fs -c 0 -i 0 your_file.ext2 (or similar)

4. You may then mount it as loop, and build up the directory structure, do whatever you like :p

You need to be root for all the steps described above.

Hope this helps :D

scholbert
[XPERIA X1 ROM Development] scholbert:
Yes basically the kernel and android use a default orientation for the framebuffer, which is valid for most platforms.

Due to some design issues the engineers at HTC decided to build in the screen for the X1 with a rotation of 180 degrees.

For the console this is fixed already.

Normally this should be no big deal for the GUI as well, we simply need to find a mechanism to turn it around :o

Someone who's more familiar with the Android system may help us out.

Have a look here:

http://android.git.kernel.org/?p=pl...c;hb=946fa82bce5557cbd10ccdc06822f037302f7c84

These are some libs inside the Android system that build an API to the kernel drivers.

Some insiders may also have a look into the kernel sources as well.

Search for the flag: MDP_ROT_180.

So maybe it is also possible to set the screen rotation on kovsky by default to 180 degrees inside the kernel.

Unfortunately these parts of code are not easy to read for me and i had no success to implement it to so far.

Anyway, i'm sure someday this will be fixed :rolleyes:

Regards,

scholbert
[XPERIA X1 ROM Development] SneakyViper:
I quickly grepped over the android source and only found some references to libcopybit from within the surfaceflinger. After some searching using Google, I also found out that libcopybit is not the preferred way of talking to the hardware, but it was mainly used in the G1.

I'm not 100% about all this, I'm going to work some more on this tomorrow.
[XPERIA X1 ROM Development] fogozito:
lots of screenshots please
[XPERIA X1 ROM Development] gsgflash:
If you guys get Android working (and I mean working enough to use it daily as a phone OS) on the Xperia, you will basically be like gods to me :D
[XPERIA X1 ROM Development] MattKeating:
They basically are gods to me already :D

And I'm a Linux Admin, been using it for too many years - enjoying watching/reading the progress here.
[XPERIA X1 ROM Development] jerpelea:
hy all

i followed the progress on xperia

i saw that keyboard is mapped but soft keys ,accept,reject and ok are not mapped

we can map xpannel to menu key in android so that we can unlock the screen

i will try to port the new 0.2 blackstone fs to xperia
[XPERIA X1 ROM Development] hhenault:
To Scholbert

Ok, I changed "mmc" to "sdcard" in the initscript, but nothing really new;

Lacks recognizing hardware feature like SIM card, SDcard (does it expects a second one ?),

wi-fi, radio etc ...

And anyway to find how to install new appl.

Below, the 'dmesg' log, but It seems ending just before 'init.android' launching.

Where is the equivalent of '/var/log/messages' ?

Note that Android tries to find two sdcards (line #327)

The calibration is perfect: there is an application hidden somewhere, which permits to test the "pointer" : it says left top corner=<0,0>, bottom right corner=<479,799>.

To all :

in your default.txt, you can set '"msmvkeyb_toggle=hide" :

You will get a small blue sqare; when you tap it, it becomes green (keyboard ready), then red (to be moved inside the screen), then blue (it 'vanishes' ???), etc...

Inside applications, you can fiddle with the X1 "left" and "right" soft buttons, the small joystick [ acting like up/down arrows], and the the "X" an "OK" black buttons: it is more or less a way to navigate.

Good Hunting ...
[XPERIA X1 ROM Development] cyberdesigner.net:
dmesg is talking about mmc (after timeouts at that device?) looks like we have to edit the kernel/udev (dont know whats used in such small distributions to recognize the devices to /dev ;) to asign sdcard to mmc
[XPERIA X1 ROM Development] scholbert:
Hi there!

Not time for deep investigations right now, but had a short glimpse at the dmesg.log :rolleyes:

In fact the kernel is scanning the hardware and registers two controllers.

One is used for the SD-card, the other one is connected to the WiFi chipset and will use SDIO protocol (if the driver will be implemented someday;)).

The SD-card is definitely registered as memory device and working o.k., otherwise the procedure of booting into Android would fail.

I wonder if someone with console access did ever try a simple mount command to attach the card.

mount -t vfat /dev/mmcblk0p1 /sdcard

What happens?

What happens if you simply type 'mount' at the console?

Should report all mounted filesystems anyway.

Regards,

scholbert
[XPERIA X1 ROM Development] ashkan_mc:
I finally didn't realize .... Can we set up linux on X1?
[XPERIA X1 ROM Development] bahkyp:
Q's and HTC Hero android code!!!

Hello, I'm a X1 android newbie.

I have been trying to get the hhenault set of files working. I unzip the files on my Mac and then copy them to the SD card and rename the folder to /tmp/ (as WM copies as TMP, other files/folders seem not effected). The consol zooms past text for about 30 seconds, then hangs at Android GUI screen, I cannot workout which is the power button to unlock the GUI. (or the X1 has crashed silently)

I'm assuming that my 8GB SDHC FAT32 card needs to be reformatted to work. I have seen mentions of both need for a kernel driver and the SD to have a primary partion with a different format.

What do I do need to set in GPARTED (or FDISK) to get this to work?

Where can I get a SDHC compiled in Kernel? (I cannot git on my net as I'm using Mac OSX 10.4 to write this which doesn't support git OR I'm on Debian which doesn't have the bluetooth modem and thus net I need to connect. I currently don't have landline net so the phone is all I have.).

Or where is a bundled recent X1 kernel source?

A comment on the current screen rotation issue. The consol and the GUI are different frame buffers, set in different places. The screen for the GUI will be set somewhere in xfree/x11 (or whatever android uses), not the Kernel parameters.

I have an autoconnect USB setup script from the openmoko project which I'll post once I have it working with Debian <-> X1 andorid.

And lastly, HTC HERO source is released (for those who missed it). Get it at developer.htc.com, this is a very similar machine to the X1
[XPERIA X1 ROM Development] jerpelea:
refresh...

http://developer.htc.com/

htc kernel sources published
[XPERIA X1 ROM Development] SneakyViper:
You don't need a special SDHC driver or something like that. You just need to make sure that the first partition on the sd card is a FAT/FAT32 primary partition. Often, sd cards are partitioned to have a single logical partition, that won't work. You can indeed use gparted or fdisk to do this, but I can't tell you by heart how to do that. Just look it up ;)

Second of all, if you're getting as far as in an android screen, you probably won't need to re-partition your card, because if the card doesn't work, the booting will hang before any android screen.

If you want to connect to your Xperia in debian using the usb cable, you should try installing synce. It will create a network interface which you can use just like any other network interface. When booting the Xperia using the android files from hhenault, the xperia will be 192.168.0.206, so if you set your own ip address to be something in the same range, you should be able to telnet to the device. (more info: http://www.synce.org/moin/)

And why can't you install git on Mac OSX? (see http://help.github.com/mac-git-installation/)

(Maybe I should put this (or even more descriptive) in the wiki?? ;) )

I've been busy creating a new vmware image with more diskspace, so I can build and customize the android file more easily. VMWare player sucks for these kinds of actions...
[XPERIA X1 ROM Development] cyberdesigner.net:
your x1 does'nt crash... the screen you are talking about is simply the "locked" screen of android. try F1-key on the software keyboard to unlock...
[XPERIA X1 ROM Development] scholbert:
Hi!

Some new faces appeared, that's nice!

Anyway reading the thread will be recommended i guess ;)

http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-msm-2.6.27

If you got no working git, you may grab a snapshot of the latest release.

Yeah, basically that's true.

The scenario you describe would use parts of the hardware glue libs i mentioned earlier. Apart from that there would be a nicer option.

The X1/Kovksy uses a chip from Epson acting as abridge between the MDDI interface of the Qualcomm chip and the digital-RGB of the TFT-display.

This chip supports screen rotation as well as mirroring and other features in hardware. To get this implemented would be the most convenient and best performance way to switch the orientation i guess. Obviously this is true kernel hacking :D

Anyway, rotating display data in some high level software would be a nice start :rolleyes:

Some words concerning the latest sources of the hero device.

I'm not sure if this is really new stuff, i guess the android developer tree is bleeding edge...

Tell me if i'm wrong.

@SneakyViper:

Nice description i would appreciate such information in the wiki

Regards,

scholbert
[XPERIA X1 ROM Development] joker.mn:
i used the files from post #92 #94 and #96 and i was able to boot android on my phone.

but similar to others i am stuck at the unlock screen. i cannot find any software keyboard and typing any of my hardware keys does not change the display at all.

did i miss a setting or a file that included (or gave me the possibility to open) the software keyboard.

-EDIT post #119 "'msmvkeyb_toggle=on" in default.txt helped me.

thanks in advance for your help.

i strongly encourage that project. i would love to have android running on my X1.
[XPERIA X1 ROM Development] hhenault:
if "msmvkeyb_toggle=on", then you will have the keyboard on GUI screen immediatly at boot time.

if "msmvkeyb_toggle=hide", then you will just have a small blue square, meaning "here is the hidden keyboard"; just tap it several times, the square will become green, and the keyboard just appears ...

With the last kernel, the software 'left' button [ just above telephone and 'X' buttons ] will unlock the screen --- due the reverse display, it lays upward right ...
[XPERIA X1 ROM Development] emuX:
or you could try a newer kernel

You could use the zImage_20091016 that was added in post #180 in this thread. It has X1 keys mapped for Menu, Home, Back, etc. The kernel link is: http://xdaforums.com/attachment.php?attachmentid=237781&d=1255711410

Left soft button = Menu

OK button = Back

Panel button = Home

Right soft button = Power (although this doesn't seem to work at the moment)
[XPERIA X1 ROM Development] bahkyp:
Get a 'SD card removed' message on startup but every thing seems to work so I will ignore that message.

Will try to install synce in Debian ASAP. Did not know that this program existed.

Can unlock screen now (Doh!) 'F1' is a great key. Also noted that 'F3' brought up the phone and 'hme' (I think, can't do net with Android yet and need the phone in WM for connection) went back to main screen.

What is the key for back to the prevoius screen?

Think I've tried them all on the soft keyboard and hard keyboard. Keep on getting stuck in configuration screens with no options, then can't go back and do other parts of that config.

How do you shutdown Android nicely? (and not pop the battery)

Any easy way to get a console? (Ok I need to learn this GUI) I could use this to restart or play with settings.

About GIT, I don't have darwin ports on my Mac and Git only has access to the needed internet libs in 10.5 (I have the last model PPC laptop and only run 10.4). I could use the 100Mb 10.4 install package but I feel that is overkill.

Michael.
[XPERIA X1 ROM Development] joker.mn:
I prefer pressing HOME on the software keyboard, that brought me back to the main screen.

thanks for the help with the keyboard issue.

i tried using the new kovsky image from #180

but it stops booting at "msmfb_probe() installing 480 x 800"

normally i have been able to boot to the android desktop.

what do you guys think: will there be a fully functionable android in the future for the X1? the HTC raphael seems to have a pretty decent version: there should not be that much of a difference between those two devices.

concerning the rotated screen:

is it possible to write the displayed data into some kind of matrix from 0 to 480 and 0 to 800 and simply switching the x/y coordinates of the pixels? or is that idea too simple.
[XPERIA X1 ROM Development] figurine:
I just now read some stuff online about the xperia x3(x10?) rachael phone that is going to be running android... said to be released sometime in February 2010. I'm sure you guys would be able to port that to the x1, right?

Hopefully you guys can get your hands on a leaked version of android for xperia much sooner than february...
[XPERIA X1 ROM Development] joker.mn:
i dont think it is that easy because the X3 has completly different hardware.

as you read in the signature of the first post it is not porting the android it is about porting the linux that runs android.
[XPERIA X1 ROM Development] anjel-2k:
How to open Zimage files?

:mad:Hi guys, iam pretty new to the linux scene ,but iam trying to do what i can to help this project. ive tried every program possible, but i cant seem to open the zimage files. iam trying to look at the coding to try and figure out the rotation issue. Is there a particular program you use to open, edit and compile these files?

I heard the only way to access the script is through a linux based system like ubuntu "which i have", but what program would you need to open the images?
[XPERIA X1 ROM Development] scholbert:
C'mon guys, please read some books or surf the web to learn some basics about all this stuff :rolleyes:

zImage = kernel = elementary piece of code to run a linux system

You may build your own kernel with a compiler from a source code base, also known as kernel sources.

A zImage is a special kernel file format and the result of this build process.

Regards,

scholbert
[XPERIA X1 ROM Development] anjel-2k:
Thanks Scolbert for the quick reply. I know a Zimage = a kernal and is a result of the compilation of the build process, but my question is related to what compiler i use to look through the coding of the posted kernels. you mention in your reply "You may build your own kernel with a compiler from a source code base" can you point me to a reliable compiler?

I have at the moment "eclipse-sdk, Navicoder IDE, and soucery g++ with the 2009q1 ext" and iam also running the linux 2.64.31.5 kernel.
[XPERIA X1 ROM Development] bahkyp:
An I thought I was a noob.

You can't look at the zImage you need to look at the source. These are text files. (*.c, *.h etc.) that can be found listed elsewhere in this thread (including my git questions). If you want an IDE for C/C++ under linux I'ld recomend Ajunta.

"iam also running the linux 2.64.31.5 kernel." go to $ cat /proc/kernel and tell me what it echos. The latest will be 2.6.29.

Maybe the wiki will also shed some light.

http://wiki.xda-developers.com/index.php?pagename=Kovsky Linux
[XPERIA X1 ROM Development] anjel-2k:
Thanks Bahkyp

That sheds a lot of light, as not to run around in circles. ill try the $ cat /proc/kernel and tell you what it echos as soon as i get a chance to try it.

anjel-2k
[XPERIA X1 ROM Development] scholbert:
Hi again,

you won't need a GUI toolkit to compile the kernel, anyway anjuta looks indeed like a very nice environment.

So it maybe helpful to step into the sources.

Thanks for the hint bahkyp!!

To get some other things cleared up:

Obviously you'll need a cross-compiler for ARM to compile a kernel for the X1.

It doesn't matter which kernel you are using on your host PC.

BTW, 2.64.31.5 does'nt exist :rolleyes:

I recommend to use the 2008q1 toolchain, because it is used in similar projects and is known to work very well.

The latest kernel for the X1 (htckovsky) is 2.6.27-msm :p

Cheers,

scholbert
[XPERIA X1 ROM Development] hhenault:
To Scholbert :

how to interpret :

"msmts_calib=0xc5.0x399.0x367.0x4d"

and

"fbcon=rotate:2" ?

To All :

For newbies in this thread, last files gathered at

http://dl.free.fr/lG3AhIgbM

[the SD card is mounted as '/sdcard' ...]