yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] monovaldes:
probably silly question...

so, ive got this tiny little problem trying to boot android in an ext2 partition...

just as Tremere said, ive copied the contents of rootfs.img to the root of my ext2 partition, and those of system.ext2 to /system folder on the same one.

my problem is that when i run Hatred, with the newly modified startup.txt, it tells me:

Error: "VFS: Cannot open root device "dev/mmcblk0p2" or unknown-block (0,0)"

if i added "rootwait" or "rootdelay =3" to the startup.txt... it found the partition, and VFS mounted it correctly... but

initial console cannot be started, and crashes with

Error: "Kernel Panic - Attempted to kill init"

can somenoe be kind enough to tell me wich stupid mistake am i making? xD

thanx in advance
[XPERIA X1 Android Development] Oggy972:
Maybe because you have a X1a and not X1i

^^
[XPERIA X1 Android Development] steadyshot:
When you guys installed the android sdk with the "SDK Setup.exe" did you guys make sure you marked the usb driver package under available packages?
[XPERIA X1 Android Development] Oggy972:
Yeah pretty sure ! I can even identify the folder of the drivers !
[XPERIA X1 Android Development] ilgreco112:
Mine Win7 pro x64 recognized my X1 under winmo, and when I press Haret it recognizes it automatically as HTC Dream, no problems so
[XPERIA X1 Android Development] circleofomega:
I dont understand this.....What do u mean by 'THEN ADB DEVICEs' am i supposed to type it or what???
[XPERIA X1 Android Development] steadyshot:
Sorry for the confusion. It's 2:00am here in California. But what I meant was by typing "adb devices" it should show a device connected. And then if a device is connected you should be able to type "adb shell" and send commands to the device.
[XPERIA X1 Android Development] circleofomega:
Oh..ok...i understand..so its all on the terminal on the phone right?? or the command prompt on the PC??
[XPERIA X1 Android Development] steadyshot:
Oh ya sorry for leaving that out too. It's all from the command prompt of your pc. (or terminal if you are using Linux)
[XPERIA X1 Android Development] circleofomega:
Sorry but i dont know what u are talking about...its completely beyond me...after i run the SDK.exe..just two windows open and nothing more...

Its JUST beyond me...

if i start the cmd separately, it says

"'ADB' is not an internal or external command, operable command or batch file"

i guess some1 will just have to teach me step-by-step
[XPERIA X1 Android Development] tchatzi:
Obviously you didn't read the installation instructions very thoroughly: from http://developer.android.com/sdk/index.html:

You obviously did not add that location to your PATH. Do that or just try

``C:\path\to\sdk\tools\adb devices'' which should work too.
[XPERIA X1 Android Development] circleofomega:
How do u do this???

WHat location, what path??

Where??

I did read all the instructions, ONLY TO LEARN i know nothing about it...;)

i tried entering this to the cmd prompt...but it said

"The system cannot find any such path specified"
[XPERIA X1 Android Development] tchatzi:
my startup.txt is like this and works:

set ramsize 0x8000000
set ramaddr 0x10000000
set mtype 2006
set FBDURINGBOOT 0
set KERNEL zImage
set initrd initrd.gz
set cmdline "root_partition=/dev/block/mmcblk0p2 root=/dev/mmcblk0p2 init=/init rootwait rw rootdelay=3 console=tty0 fbcon=rotate:2 lcd.density=240 clock-7x00.a11=500 msmvkeyb_toggle=off msmts_calib=0x0366.0x04b.0x0c8.0x038e physkeyboard=kovsq msmsdcc_1bit msmsdcc_fmax=14000000 msmsdcc_nopwrsave"
boot

Do you have a mmcblk0p2 file in /dev ?

Notice the difference in startup.txt : ``root_partition=/dev/block/mmcblk0p2 root=/dev/mmcblk0p2''.

<speculation severity="wild">The root= argument is read by the initrd while root_partition= is understood after initrd switches / to /dev/mmcblk0p2</speculation>

You can paste those lines before line 20 in init:

if [ ! -d /dev/block ] ; then
mkdir -m 0777 /dev/block
mknod -m 0666 /dev/block/loop0 b 7 0
mknod -m 0666 /dev/block/loop1 b 7 1
mknod -m 0666 /dev/block/loop2 b 7 2
mknod -m 0666 /dev/block/mmcblk0 b 179 0
mknod -m 0666 /dev/block/mmcblk0p1 b 179 1
mknod -m 0666 /dev/block/mmcblk0p2 b 179 2
mknod -m 0666 /dev/block/mmcblk0p3 b 179 3
mknod -m 0666 /dev/block/mmcblk0p4 b 179 4
fi

if [ ! -d /dev/input ] ; then
mkdir -m 0777 /dev/input
mknod -m 0644 /dev/input/event0 c 13 64
mknod -m 0644 /dev/input/event1 c 13 65
mknod -m 0644 /dev/input/event2 c 13 66
mknod -m 0644 /dev/input/event3 c 13 67
fi

if [ ! -f /dev/null ] ; then
mknod -m 0666 /dev/null c 1 3
mknod -m 0444 /dev/zero c 1 5
mknod -m 0644 /dev/ppp0 c 108 0
mknod -m 0644 /dev/smd0 c 253 0
mknod -m 0644 /dev/smd1 c 253 1
fi

When I had this problem, it was due to yanking the USB cable when connected to the PC and not unmounting cleanly. e2fsck that partition from your linux box and you should be good to go.
[XPERIA X1 Android Development] angusmcb:
Read this

Please google how to work in a command prompt or shell and how to use the

system PATH, or start a thread asking for a tutorial. Kernel dev threads are

not the place for this. The information is readily available all over the internet.
[XPERIA X1 Android Development] Oggy972:
@steadyshot

Oh ! It works now !

but adb devices doesn't show me the devices list !
[XPERIA X1 Android Development] Axos:
market not working?

hey guys,

this android version is great, it runs fast,fluently and the battery stays a long time. but when i want to start the market it comes a white screen and 2 secs later it shuts down again to homescreen. i also was never asked to type in my google account. (could it be that there are old files on my sd card from older versions? i will check)

of course i used the searchfunction but i couldn't find any information.
[XPERIA X1 Android Development] circleofomega:
i thoroughly appologize for this but what i totally disagree to is this : "The information is readily available all over the internet."

If it was that easily available, IT schools wouldnt exist.
[XPERIA X1 Android Development] angusmcb:
http://commandwindows.com/

http://dosprompt.info/

http://www.bleepingcomputer.com/tutorials/tutorial76.html

http://www.computerhope.com/issues/ch000549.htm
[XPERIA X1 Android Development] misiekthcteam:
Great work! I give up to 50$ for fully or almost fully working Android 2.2 with 3d acceleration, battery working good, camera, etc.

I can't wait...
[XPERIA X1 Android Development] aoao4040:
Hi,

I noticed that there's a problem with charging the phone, it drains the battery despite claiming that it's charging, all the mandatory modules work though.

Is it just me, or is there something else?
[XPERIA X1 Android Development] didoop:
Great

Incredible work !!! Finally fast and HW accelerated (looks like) , If you'll make (nearly)fully working android , and I will have xperia :D , then I'll definetely donate :)
[XPERIA X1 Android Development] ilgreco112:
Yeap I'll donate too :D can't wait!!!! <3
[XPERIA X1 Android Development] ukon:
I really apprichiate the work you guys are doing with this port.

it is going to be quite interesting, to test the 2.2 version.

Since I haven't gotten it on my x10. And my friend is borrowing my x1.

But as soon as I get it back, I'll try it out :)
[XPERIA X1 Android Development] Tremere:
You are doing something that is draining the battery faster than it can charge.

Use /sdcard/current.sh in terminal to see what the current in/out of battery is.
[XPERIA X1 Android Development] monovaldes:
thanks tchatzi, now new probles have arised though :(

a couple of questions... you dind't delete your reference to initrd.gz on your startup.txt, is that ok?

with initrd.gz on the same folder as hatret, and using the reference, it now fails trying to mount mmcblk0p1 on /sdcard :(

btw... ive used umount command, but it stills bug me off on every e2fsck about partition not being clearly unmounted, im starting to believe that my memory card is a future trash candidate xD

thanks in advance
[XPERIA X1 Android Development] ncw2k69:
join

hello everyone... i would like to join the froyo project.. so i want to know what i need to develop android platform... for start ubuntu is good??

1ox
[XPERIA X1 Android Development] AssasinQ:
Hello there!

Finally the battery works so awsome :]

I have a music bug, when i play mp3 it plays for about 5s and goes to next mp3.

I have found where is a bug. It is because of loading the album cover. When i stop this mp3 for few seconds and album cover loads. This mp3 works normally. When music plays and album cover loads at the same time, the mp3 goes to next one.

Sorry for little briefly talking ^^
[XPERIA X1 Android Development] 515276542:
it`s so hot when i used yesterday.i want to know why？
[XPERIA X1 Android Development] 515276542:
this version is not better than 7.26`s version.so，i hope to better version soon
[XPERIA X1 Android Development] tchatzi:
initrd serves as a temporary root filesystem, setting things up for the real root to become available and executes switch_root(8) to switch to it. It is that way in this build, because / resides in a loop mount or in our case a partition. so you need some logic to mount it.

relevant part in initrd's init:

#Call it ... root= ?
#I don't do that because I don't want to interfer in any way with kernel
root_partition=`/bin/grep -o "root_partition=.*" /proc/cmdline | /bin/sed -e "s/.*root_partition=//g" -e "s/ .*//g"`
if ! [ "$root_partition" = "" ];then
mkdir /rfs
mount -t ext2 $root_partition /rfs
exec switch_root /rfs /init
fi

So, initrd looks in the kernel command line for a ``root_partition='' argument and assumes an ext2 filesystem in there. so ``root_partition=/dev/block/mmcblk0p2'' in startup.txt should/does work (assuming /dev/block/mmcblk0p2 is indeed ext2 and contains rootfs.img files.

I'm afraid I don't follow. /sdcard is mounted after switch_root by init on the actual root filesystem.

line ~40 in rootfs.img init:

mount -t vfat -o fmask=0000,dmask=0000,rw,flush,noatime,nodiratime /dev/block/$partition /sdcard
[ $? -eq 0 ] || fail "Failed to mount the SD card. Cannot continue."

perhaps you're missing an /sdcard directory in your root filesystem in /dev/block/mmcblk0p2 ?

Either that or you're changing the system time on windows mobile. Android keeps system clock in UTC and Windows in local time, so from androids side, it seems that filesystem's last mount time is in the future. That makes it a candidate for fsck-ing. Doesn't hurt and only minimally slows down boot.
[XPERIA X1 Android Development] seeeeeeee:
how to install flash 10.1?

not found in market

i installed a download one but crash the browser:confused:
[XPERIA X1 Android Development] danistuta:
What about bluetooth?

On my x1 it doesn't work.

And what about gps and radio?:-)
[XPERIA X1 Android Development] xperiaatic:
BT - seams to be just around the corner

GPS - works

RADIO - unknown
[XPERIA X1 Android Development] tastetrout:
That is for ARM v7 Processors only
[XPERIA X1 Android Development] Matzemink:
BT works with main xdandroid kernel

But our battery fix isn't included.. sound and wifi doesn't work.

The rest is the same but without tremere's little tweaks (power button, gallery, ...)

You can read the "Getting started with xdandroid" articles from the xdandroid wiki
[XPERIA X1 Android Development] skaterazn:
I have a german X1, how do i set QWERTZ keyboard with ÄÖÜß-characters?
[XPERIA X1 Android Development] danistuta:
And is there a way to use x1 camera?
[XPERIA X1 Android Development] jkoljo:
Read the first page, no.
[XPERIA X1 Android Development] truncate:
My GPS not working, how to enable it?

Thanks!
[XPERIA X1 Android Development] Tremere:
You probably need to use QuickGPS in WM first.
[XPERIA X1 Android Development] DonDizzurp:
uhm.. wifi doesnt work with latest release.. just getting an error. everything else is running smoothly except the common issues all builds have (battery life, heat, speed/stability, screen sensetivity)
[XPERIA X1 Android Development] Isich:
You should first enable wifi in WM, then it works.
[XPERIA X1 Android Development] AssasinQ:
Well, i don't have heat problem xP sometimes on WM my phone gets warmer than on this Android.

My battery stays for 5-10hours. 5 with a lot of using, and 10 without using.

Speed is enough for me, it doesn't lagg and anything like that.

My android restarts only when i increase/decrease sound with buttons for it(but not everytime).

About screen sensivity. It is great as on WM O.o what do you want else?
[XPERIA X1 Android Development] circleofomega:
http://xdaforums.com/showthread.php?t=709519&page=31

Hi..I know this isnt the forum to ask this, but as these guys were looking for a small help, I thought I will ask for it from the Devs here...

Also, Im posting this here so that I dont have to make a new Thread....

Read the second last comment...

its the Droid X keyboard that doesnt work on Froyo...Any help will be greatly appreciated...
[XPERIA X1 Android Development] Tremere:
Can someone who gets "Error" when starting wifi send me logs (logcat and dmesg)? preferably from a clean sdcard android install thats just been booted for the first time.

I haven't needed to start wifi in WM first for some time, but the way its loaded does cause some kernel errors.
[XPERIA X1 Android Development] angusmcb:
I've had that error after having wifi on in WM (with a shiny new data.img). The thing that seemed to fix it for me was shutting down and taking the battery out. Completely anecdotal, I know but worth a try.
[XPERIA X1 Android Development] DonDizzurp:
hmm, ill try that again

i tried with wifi on and off in wm, no success. ill do a full format and fresh install and see if this helps
[XPERIA X1 Android Development] DonDizzurp:
well for me the sensitivity seems smoother on WM.. i have to use more pressure in android. the speed is MUCH improved for sure..but maybe im asking for too much. if a battery cant last me a day, its a problem :P

and omega, LOL.. you always ask for the weirdest stuff.. lets get the basis of android running to the best of its ability first!
[XPERIA X1 Android Development] circleofomega:
:o

;)

:D
[XPERIA X1 Android Development] AssasinQ:
Tremere, is there any possibility to get D-Pad(I mean this "optic joy") working?

And can you map the "OK" button(this one under "Enter" button) on QWERTY keyboard?
[XPERIA X1 Android Development] ferlanero:
Here you got one Europe Mirror for the 9th August Froyo porting version.
[XPERIA X1 Android Development] truncate:
Hi all, I have another problem. The handfree doesn't work! Is it a known bug? or something else?

Thanks a lot!!!
[XPERIA X1 Android Development] Tremere:
Sadly no one has reverse engineered the input for the optic joy yet :(

I'll try and get that OK button mapped.
[XPERIA X1 Android Development] maniac0213:
How can I know the progress of the new kernel's development? Where is the new battery driver?
[XPERIA X1 Android Development] DonDizzurp:
formatting and starting over got the wifi to work.. dont know how reliable it will stay but its been good for now..
[XPERIA X1 Android Development] Tremere:
kovsky-battery-driver branch

Not yet ready and I have not had much time to work on it.
[XPERIA X1 Android Development] ali.htc:
how change silent mode to normal mode

the incoming call sound in disable
[XPERIA X1 Android Development] Delver26:
Sorry if this has been asked already, but I get a weird bug where over the course of the day, the time on my phone goes out of sync. At the start of the day it'll be fine, but within a few hours it'll be up to 15 minutes behind the actual time! This is really weird, and really leaves me second guessing the time on my phone!

Does anyone else get this issue? Is there any way to keep the clock constantly updated?

Great job on the port by the way, excellent work. Much smoother that WinMo, and great fun to play around with!
[XPERIA X1 Android Development] Tremere:
I haven't tried tracking it down, if anyone wants to look, it seems Android grabs its time from the GSM modem at startup and possibly after wakeup. I've seen Android report in GMT for a second then the correct local time. Maybe the clock is reset by the hardware during standby.
[XPERIA X1 Android Development] radzix27:
Battery is still hot :/
[XPERIA X1 Android Development] circleofomega:
yea... me 2..but sometimes only...+ i really really want the battery issued to b fixed ..tried the market and all....ITS AWESOME....

And also tried the the voice Search ITS JUST SUPER COOL!!!:cool:
[XPERIA X1 Android Development] tastetrout:
There is still noise coming out from the speaker, sorry to say this but I really hope that issue could be fixed
[XPERIA X1 Android Development] lancedehm:
Hope that the battery issue could be fixed, right now is the only that I'm waiting to give another change to this port!!
[XPERIA X1 Android Development] maniac0213:
me too. I visit this site times, only to take a look at the battery issue.
[XPERIA X1 Android Development] sstfn:
You are not the only one, haha. Sometimes I look twice a day this topic to see for changes.

Hope the battery issue will be fixed soon.
[XPERIA X1 Android Development] circleofomega:
This is the most stable ROM so far...touch wood, fingers crossed...just waiting for the battery issue to b fixed...ADB Tremere!!
[XPERIA X1 Android Development] Tremere:
Sorry to burst anyones bubble but it won't be that soon, it requires some driver improvements which are beyond me at the moment. Its the same problem across Raphael/Diamond/Blackstone :(

tl;dr Watch the Rapahel forum instead :p
[XPERIA X1 Android Development] AssasinQ:
Maybe contact with ROM developers(of course X1 ROM developers) would help? They have optical joy drivers and they know how to use them in ROMs.

LOL i am looking at this topic ten times a day or more XD!
[XPERIA X1 Android Development] circleofomega:
make that 2!

And im know im asking for a lot, but can Sum1 plz cook a ROM(or whatever its called) wit the Droid Red EYE Boot scream....
[XPERIA X1 Android Development] ilgreco112:
NRGZ who makes WM ROMS made a Android ROM for HD2, maybe he can help?
[XPERIA X1 Android Development] hojjat1991:
hi

how I can charge my x1 in android?
[XPERIA X1 Android Development] ddanat:
it currently doesn't charge in Android because it uses more power than the charger puts out (from what I've understood while reading this thread at least)

they're working on it
[XPERIA X1 Android Development] circleofomega:
Any1 is always welcome to help and contribute...
[XPERIA X1 Android Development] AssasinQ:
If you will change settings wich i've told some posts ago, and you don't use phone when you are charging. The charger gives more power than Android takes(I had 20% of battery and i've started charging and it charged to 80% then i've unplugged the charger).
[XPERIA X1 Android Development] hojjat1991:
i can not find it where is?
[XPERIA X1 Android Development] hojjat1991:
please say agine...i can not fint your post..
[XPERIA X1 Android Development] lofarkas:
Thanks to everyone who is working on an Android port for the Xperia, especially Tremere.

I've been testing the latest FroYo release, and everything seems to work well, except GPS.

However, the whole OS is pretty slow. I'd label it "barely usable". Is this due to being run from the SD card (in which case it will be fixed by the ROM, if and when it's made)? Or is it because the hardware is just too weak (unlikely, I'd think... the Xperia is not that old)? Maybe it's caused by non-optimized drivers? If so, how much hope is there for fixing it?

Also, it seems to have the same problem that was driving me up the wall in WinMo: on the hardware keyboard, one keypress often registers as two or three consecutive keypresses. Any ideas about that?
[XPERIA X1 Android Development] AssasinQ:
Go to Settings/Accounts & Sync Settings and uncheck "Background data".

Go to Settings/Location & Security Settings and uncheck "Use GPS satellites"(used by GPS)

And most important thing! When you use Task Killer, don't kill all apps! Some of them Android launches automatic again, and it takes more memory!
[XPERIA X1 Android Development] birdstream:
I don't have any problem charging when running the latest relaease, even with Wi-Fi turned on.. I'm using a car-charger though, maybe it gives more juice i don't know :)

One problem that i do have on the other hand is the main buttons are always illuminated, is there a way to turn them off?
[XPERIA X1 Android Development] lordblacksuca:
In winmo, wait until these buttons lights be off, and run haret with your finger!.
[XPERIA X1 Android Development] birdstream:
I prefer to use the stylus rather than my clumsy butter fingers :)

Anyway thanks for the tip. It works :)
[XPERIA X1 Android Development] matejdro:
I don't think they know that. They have files to put in ROM, but we need contents of these files and AFAIK ROM cookers don't build drivers by themselves.
[XPERIA X1 Android Development] lofarkas:
Thanks for that.

GPS was off already, but background data was on... I switched it off and everything became 5 times faster. It's not as fast as my HTC Desire, obviously, but it's pretty decent. I have no idea why the background data connection stresses the system this badly, but I'm not complaining about the improvement, that's for sure.
[XPERIA X1 Android Development] Reanrean:
will Froyo bild become multi-language, or only in Eng/Fre/Ger?
[XPERIA X1 Android Development] circleofomega:
WOO-HOOO!! 16 HOURS OF USAGE!!!

BUT..but...basic operations like call receive and make lags..sometimes the phone rings, but nothing happens on the screen...secondly, when i make a call from the Droid, ir hangs...the call screen doesnt go...it just remains stuck on calling...

Any help/fix for this???
[XPERIA X1 Android Development] jeroendh:
Sound

The sound works well, but if I not playing music the speaker makes some strange noise.

Is this a normal problem?

I tessted some other versions, vut the stuck at a black screen after the all the white tekst.
[XPERIA X1 Android Development] Tremere:
Remember, charger has to be plugged in and charging before starting Haret. You can then unplug and plug in the charger as you wish.

As for power usage, if the phone is burning hot then you would be chewing up more power than is going in anyway. current.sh from terminal can check this.

Next kernel release will have the keypad and keyboard illumination driver thanks to ultrashot and vdelf :o

Exactly. Someone needs to reverse engineer the WinMo driver either by discovering the optic joy inputs with HaRET or even disassembling the driver..
[XPERIA X1 Android Development] AssasinQ:
O.o I don't need to plug charger in WM to charge phone on Android O.o
[XPERIA X1 Android Development] rohith_luffy:
@temere

i have a small doubt ... as we know the battery overheats while using android ....

is it just due to over usage or something else ?

i mean... it isnt going to do any permanent harm to battery in long term ...is it ??

i know a lot of battery and battery driver issues are being discussed in the thread lately ...i havnt been following it for a while :( due to lack of internet connectivity ..

is this heating issue fixed alredy ? circleofomega says 16 hrs :O

btw i am still on previous port ..29th july .. ( as i said limited connectivity)

i think i will skip the 9/8 port and jump directly to next port wich xdandroid released today ... and u will release probly in a day or two :p
[XPERIA X1 Android Development] circleofomega:
Yea, but i forgot to mention, I had the phone plugged in the whole time and i never let the battery level drop below 85%...
[XPERIA X1 Android Development] Lunie:
why would you call your xperia a droid? Sounds silly to me... :V
[XPERIA X1 Android Development] steadyshot:
I can't wait for the backlight patch for the keyboard and keypad! Thank you developers for your hard work! :D
[XPERIA X1 Android Development] nurps:
Is it possible to run it from a directory and not from root?
[XPERIA X1 Android Development] lordblacksuca:
yes it is!. you have to create a folder called "Andboot" and run haret from there.