yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] bazzix:
check out this link guys:

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

which links to video on http://exabyte.es/omnia/2009/02/video-con-linux-corriendo-en-omnia/

which contains video of the omnia AND the i780! (starting from around 2min30s)

They even seem to have enabled all of the functions like camera as well, so why not try contacting those people instead of reinventing the wheel?

Greetz
[Upgrading, Modifying and Unlocking] ilMessia:
It would be great, but i don't think samsung will tell you how to run LiMo:(
[Upgrading, Modifying and Unlocking] Ginger_Fish:
Awesome work! :eek:

Is there some news? :)

anyway, keep it on!!! *Thumps Up*
[Upgrading, Modifying and Unlocking] xsacha:
Linux seems to be running fine on the phone. Anyone trying android?

SD card isn't working is the only blocker for me.
[Upgrading, Modifying and Unlocking] ivm164:
But under which operating system? If not Linux than you obviously missed most of linux-related attributes like "executable" and so on.
[Upgrading, Modifying and Unlocking] xsacha:
The following still do not work:

Component: Status

USB net: Should be working but doesn't? Requires more work

GSM radio / GPS / Camera: These are all on the same MSM62xx chip. Driver needs to be written from scratch.

Sound / Battery: Part of the WM97xx chip that we use for touchscreen. Driver exists but a lot of work must be done to interface with it.

Wifi / bluetooth: Unknown chip
[Upgrading, Modifying and Unlocking] xjackassx:
ok thanks for the quick answer .
[Upgrading, Modifying and Unlocking] snoopy11hk:
see if this useful

Samsung announced that the Samsung i780 Smartphone is powered by the Marvell PXA310 processor and will have the Marvell 88W8686 WLAN chip embedded.

The Smartphone will be available in Europe and will come with GPS, HSDPA, EDGE, Bluetooth and Windows Mobile 6 operating system.

http://www.cameraphonesplaza.com/samsung-i780-powered-by-marvell/
[Upgrading, Modifying and Unlocking] xsacha:
Do you know if it's a combined chip with the two wifi/bluetooth modules (example: Wi2Wi with this marvell wifi and bluetooth).
[Upgrading, Modifying and Unlocking] Ginger_Fish:
Partition 1: ext2 or 3 ( test both ) > androidroot

Partition 2: Fat32 > haret (+Image)

I have everytime the Same Issue: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (179,2)

I changes permissions, change partition range (1: Fat32, 2: ext2 or ext3 )

Its confused because it worked before very well.

Kind regards,

.:]GF[:.
[Upgrading, Modifying and Unlocking] xsacha:
It's cause you have partitions wrong way 'round. Change default.txt so that the cmdline has:

root=/dev/mmcblk0p1

instead of

root=/dev/mmcblk0p2
[Upgrading, Modifying and Unlocking] ivm164:
Are you sure you don not have any other partitions on SD card? Hidden or whatever? I mean do you really see only two partitions with your partitioning SW? Also are you sure that both partitions are primary?
[Upgrading, Modifying and Unlocking] Ginger_Fish:
I change it, but its still the same Issue.

Yes iam sure, On my SDCard are onle the 2 partitions. First is ext 3 and second is Fat32

Kind Regards,

.:]GF[:.
[Upgrading, Modifying and Unlocking] MarkRain:
If you connect your sd to the pc under linux, how the system recognize it??

What's the name of your sd under linux??

I ask you that because after some changes in partitions of my sd card i have now 2 partitions,

a Fat32 called "sdb1" and a Ext2 called "sdb3"...

and to get android boot i have changed the default.txt with this string:

root=/dev/mmcblk0p3
[Upgrading, Modifying and Unlocking] Ginger_Fish:
hope you can help me with this screenshoot
[Upgrading, Modifying and Unlocking] MarkRain:
mmm sorry, i can't :(

However it's surely a label partitions problem, not hard to solve i think.

Let's wait for some linux guru
[Upgrading, Modifying and Unlocking] Ginger_Fish:
Android is working now, again! :D

"Ok" dosnt close Apps & red button shut down the device ( reset needed ).
[Upgrading, Modifying and Unlocking] melgurth:
xsacha - WiFi module is called "Samsung WLAN CF Card(SWL-2450)". (this same name appear in WM driver)

Look at pictures in Service Manual, the metalic-one chip with "SWL-2450" on it.

This isn't good, because this is some unique chip, which means developing driver from scratch.

/// Edit

To all of you... remember to create FAT partition as first. In other way WM will have searious performance drop. Don't belive? Try to record movie on your camera ;)
[Upgrading, Modifying and Unlocking] xsacha:
It won't matter that it's a different chip because we have drivers for the modules inside them. That Marvell chip has firmware that I'm trying to interop with now. The HP Ipaq uses the same wifi chip but I don't think they got it working properly.
[Upgrading, Modifying and Unlocking] ivm164:
Hi,

Rootfs files shall be placed to the root of your disk and not into the Androidrootfs folder.

If you still encounter problem after fixing this please send the screenshot of GParted screen for your SD card.

WBR
[Upgrading, Modifying and Unlocking] xsacha:
I have Wifi sort of working. Well, it would be working if we were using an earlier kernel. Turns out there is a regression in 2.6.29 that causes the card to report a voltage of 0. See here.
[Upgrading, Modifying and Unlocking] Ginger_Fish:
my Android is working, but the "OK" button doesn't close Applications.

- is it possible to bring the funktion of the "Red Button" to the Power button on the top of the i780
[Upgrading, Modifying and Unlocking] linuxholgi:
That are great news! Thought its almost impossible. Seems to be more than the half way already. Anything preventing to use 2.6.27 or 28?

Holger
[Upgrading, Modifying and Unlocking] xsacha:
A lot of new stuff for our processor was added in 2.6.28 and 2.6.29. There's even more in 2.6.30. So I'm trying to stick to cutting edge. Android doesn't have 2.6.30 yet though.

I don't have the power button (top of i780) working yet. I believe it's GPIO 70 but it's sort of a guess. You can't log the value in HaRET normally because it stops logger when you press it :P.
[Upgrading, Modifying and Unlocking] MarkRain:
Great news, step by step you're doing an amazing work!!

Is it normal that i have this when a open the Camera?? :eek:
[Upgrading, Modifying and Unlocking] ilMessia:
Yes it's normal;)
[Upgrading, Modifying and Unlocking] MarkRain:
Ok, thanks!!

PS:check your PM ;)
[Upgrading, Modifying and Unlocking] xsacha:
The camera is part of the GSM chip - we don't have it working yet.

Also, Android's definition of an 'SD card' is different to the linux one. Android expects an SD card directory on the partition (assumed to be mounted from a real SD card). You can just make the SD_CARD (?) variable in init.rc whatever you want and it'll think you have one.
[Upgrading, Modifying and Unlocking] xsacha:
Update: Vibrate and Keypad Backlight working! Android doesn't recognise them but they are in /dev. I'll work out what Android needs to recognise them later.

The LED is from Rohm and the RGB LEDs are a bit more complex so I need to write a driver for them from scratch. Luckily, LEDs aren't that hard. Might take a while though.

I've also discovered some more of the chips in our device.

Edit: The wifi driver is close to completion. It turns out the Palm Pre uses the exact same WiFi card as us! And, as you know, the Pre's kernel and patches are fully opensource and downloadable at opensource.palm.com. So, I'm porting that driver over. I can see why we had so many problems with this driver.

....
// workaround for marvell B1 CIS issue:
....
// MAR: our sdio card lies to us as it actually runs at 1.8V
....
[Upgrading, Modifying and Unlocking] geez:
This project is great, I've always wanted to put a usable OS on my phone, and it would also be useful for my work. It is a big project, and it is great, that you have time for this development. I would like to install android on my phone. It is possible to use this kernel with ramdisk rescue? I don't have a card reader, and I want to create a linux partition on the SD Card without connecting it to the PC.

Is it possible in the future, that the Palm WebOS will also run on this phone?

Thx for all

Btw: a Service manual: http://www.mediafire.com/download.php?uknnyyjuktz
[Upgrading, Modifying and Unlocking] xsacha:
Thanks for your support. NAND technically works but I've not wanted to risk bricking anyones device so it is disabled right now -- that is, you require a microSD card.

While Palm's WebOS can theoretically run on our phone (and any other phone), the ROM that holds all the important stuff that makes WebOS what it is... is only compiled for ARMv6 and ARMv7. Our device is ARMv5 and the processor is not forward compatible. We would need to wait for a palm device to be released with an ARMv5 processor.

Android, on the other hand, is not only compiled for the G1 (which uses ARMv5) but also has full source code available allowing it to be compiled for ... well anything.
[Upgrading, Modifying and Unlocking] geez:
Android is more than enough for me:) Actually, I have a microSD, but I couldn't format it to have an ext2 on it, that is why i mentioned ramdisk rescue, which is capable of creating a linux partition on an SD. I will - however - get a card reader today, and I will reformat my card. Keep up the good work, a working wlan would be faboulos. Damned wifi chip, it looks like it needs a bit hacking to work on linux.
[Upgrading, Modifying and Unlocking] xsacha:
You don't need to format your micro SD card to add an ext2 partition. The ext2 partition can be created of any free space on the drive (it resizes the fat).

I'm having problems with the wifi. I did all the patches that palm has done but I get the same bug. I just have to put it down to a regression in 2.6.29. I might try and revert files slowly until it works again.
[Upgrading, Modifying and Unlocking] geez:
Unfortunately, gparted wasn't able to shrink volume, however there was plenty of free disk space on it. It is a 4GB SDHC (and this is my only card). I formatted it, and created a 400 mb ext2 partition as a second primary after the fat32 partition. Android logo didn't showed up, and a message showing "attempt to access .. beyond end of device ". I thought it was because of the large first partition (more than 3 GB), and i switched the order of the partitions, the ext2 partition is now the first partition (and changed partition number in default.txt as well). Is this kernel SDHC compatible?

EDIT: I had the permission problem mentioned above. After setting the permissions correctly, android works like a charm. Looks very great, an OS i could use everyday. I will try it with other dpi-s as well, fonts are little blurry now, but the whole OS is far better than WM. Thx again.
[Upgrading, Modifying and Unlocking] xsacha:
Good that you got it working. I just remembered it is possible without a microSD card. You can bundle the android rootfs in to an initrd and then load it as an initrd. You can also mount the FAT partition if you want. No need for an ext2.. but hey, running linux on FAT?:P

Anyway, I'm working on Android (itself, the source) now. Downloading all 2GB of it. I will fix the 320x320 resolution glitch and work at integrating the LEDs, vibrator and backlit keyboard. I will also submit these patches for review so they are permanently in Android :).

Meanwhile, I hope that wifi regression gets solved.
[Upgrading, Modifying and Unlocking] mmoooo:
Great work!

I recently stumbled upon an android porting site, maybe this is of some help: kandroid guide

They describe a lot of the steps for porting like display and keyboard, and other config/drivers.

Can we download the src of your latest kernel changes somewhere? I'd like to do build myself (e.g. add vfat/codepage support).

A last qeustion, is the androidized kernel as is usable on a debian rootfs? I'm interested in the Ubuntu effort to build an android execution environment running in the normal desktop env.
[Upgrading, Modifying and Unlocking] xsacha:
I have decided to merge my board with the Omnia one.

Here's the current state of the board (sgh_i780_i900.c). This one will run i780 (Mirage) or i900 (Omnia). The two devices have very similar hardware. So now working in combination with the Omnia team too, though they haven't got any extra progress.

As you may notice, I have added a few LEDs that I dumped from HaRET. To get Vibrator working in Android you need /sys/class/leds/sgh:vibrator -> /sys/class/timed_output/vibrator/on because that's where it looks. I'll fix that up later. I don't want to rely on custom android images.

With the current board, the red LED is hooked to mmc0. That is, reading from the sd card will make the light blink.

Edit: Yeah no porting guides can really help us now. We need to write custom drivers (gsm/camera/gps), work through kernel regressions (wifi) or reverse engineer windows mobile (battery).
[Upgrading, Modifying and Unlocking] manatails007:
wow

Wow, Fullscreen android is very impressive! :eek:

I'm gonna try this on my SCH-m480(Korean version of i780)
[Upgrading, Modifying and Unlocking] mmoooo:
ok, thanks for the update
[Upgrading, Modifying and Unlocking] xsacha:
OK, I have merged my board with Omnia one.

I also have all LEDs and Vibrator working.

Blue+Green LEDs (creates Aqua) is trigged my SD card read.

Here's the updated kernel.

mtype = 2265 for i780

mtype = 2276 for i900

Enjoy :).
[Upgrading, Modifying and Unlocking] geez:
The new kernel works great, much smoother, and i love the 'hdd led' as well. If the wifi will work, It would be fantastic. I'll follow the andromnia chat at: irc.freenode.net: 6667

channel #andromnia too, I see that you are developing as a team from now on. Keep up the good work.
[Upgrading, Modifying and Unlocking] xsacha:
Thanks :) Hope you like that nice colour I discovered (Blue+Green). Wish they used that in WinMo.

Right now I am coding up a battery driver for our MAX8660 based on documentation from MAXIM. It is an I2C battery and I already have the Charge GPIO as 88 (so Android knows if you're plugged in or not right now). I2C code is quite complicated, you might want to read the document: http://datasheets.maxim-ic.com/en/ds/MAX8660-MAX8661.pdf
[Upgrading, Modifying and Unlocking] Ginger_Fish:
I Like the LED feature, but the "OK" Button doesnt close applications for me!
[Upgrading, Modifying and Unlocking] xsacha:
OK, I wrote that driver but turns out it isn't the battery. Samsung must have a 'smart' battery with integrated SMBus. There's absolutely no doco on it, so it's a no go until I get more information.

OK button has always closed here :\ Which Android RootFS are you using?

Some other people have had this issue -- how did you guys resolve it?
[Upgrading, Modifying and Unlocking] Ginger_Fish:
I use the RootFS from Post #172
[Upgrading, Modifying and Unlocking] ivm164:
HDD led is really amazing! That't what I was always think about when using all of my PDAs...
[Upgrading, Modifying and Unlocking] xsacha:
New kernel

Vibrator, LEDs and Backlight should work in Android. Test out the settings in menu to enable the functions.

Made vibrate last longer.

New touchscreen driver by Wolfson Microelectronics. I fixed some bugs in it. Made touch abs values more closely reflect our screen.

Changed battery output (in development). Sorry for any random shutdowns.
[Upgrading, Modifying and Unlocking] shayan1:
You don't need to say sorry at all xsacha. You're doing a amazing job.

Keep up that good work ;)
[Upgrading, Modifying and Unlocking] ilMessia:
I have a really stupid question: which are the advantages of a new battery driver? It only displays the charge level or what?
[Upgrading, Modifying and Unlocking] geez:
Xsacha, you have mentioned, that it is possible, to run Rosie on our device, I tried with the current kernel, and copied the downloaded files to /system/, but I couldn't get it working. It is an error related to adbd: exec format error, and keeps trying to wakeup. Did you try installing this new android version, or it isn't possible?
[Upgrading, Modifying and Unlocking] xsacha:
Can't see why it wouldn't be possible because they have same ARM version but you may need to modify it a bit.

It may be setup to use a different init (inside the boot.img). You can extract the boot.img using this method.
[Upgrading, Modifying and Unlocking] xsacha:
Update! Battery driver completed! Whew.

Should show charge, temperature and voltage. It will detect if you were charging when you booted but I don't think it updates that yet.

Here's your new kernel.
[Upgrading, Modifying and Unlocking] superoloan:
you're the best!
[Upgrading, Modifying and Unlocking] xsacha:
Here is a new kernel with an updated battery formula. The previous formula was just made up. This one uses the exact same one as Windows Mobile (extracted from zylonite_battdrvr.dll from hours of reading assembly, lol).

So if Windows Mobile thinks your battery is X%, so will Android. Though, Windows Mobile uses artificial compensation for things such as wifi and booting. Also, Android doesn't poll information yet.
[Upgrading, Modifying and Unlocking] nipenk:
Hello guys.

First of all i want to express my gratitude to those who spend their time and effort in i780 andriod. im a big fan of you. :)

i'd try the step as i read all the post from the beginning. and got 3 result.

after run the haret. its says something like "... kernel" suddenly the word gone slowly. (this means black screen, but the blue LED always blinking)

or

if its working. it will gives my SDIO error -110 (something similiar like that, ill figure it out later) and "android sh: cant access tty; job control turned off". but this one can boot the android. with no network for my gsm(can't even search the network) and with low storage. and no SD card.

or

after success booting. it will says "SYSTEM UIDs INCONSISTENT". for this one i'd try to reformat the ext2 partition. but the second time i boot the android. it says im running out of memory. :( and i need to force quit the alarm clock and the calender).

any advice for my problems? (help linux guru T_T)

and do i need to plug out the battery each time i want to go back to WM?

Sorry for asking this much questions. im just a noob. please dont flame me. :)

thanks for ur concern,

Niven.
[Upgrading, Modifying and Unlocking] ilMessia:
First situation is an error (i think an haret error) that sometimes happens.

The second situation you described is normal. We haven't gsm, gps, wi-fi drivers so it's normall they didn't work. Sdcard works (or you cannot boot) but android can't recognize it.

The third situation never happend to me, so i don't know.

Instead of removing the battery you can softreset using the little hole in the left side of the phone.
[Upgrading, Modifying and Unlocking] xsacha:
Yeah right now it should boot in to Android with no GSM or Wifi. Wifi doesn't work because of a recent kernel regression (otherwise it would). Wifi is what causes the SDIO -110 error by the way. The job control message is normal.

Oh and I have fixed battery polling now. Will upload new kernel shortly.

I don't think there's anyone else working on Android on i780 other than me right now. Though there are 2 people working on Android for Omnia.

To do:

Sound

GSM

Wifi (technically this works)

Bluetooth

Camera

USB

Mouse

Note that other than the wifi, which technically works, there are no drivers for any of these chips. The same was the case with battery. So I have to write these drivers from scratch.

If you like my work you can always buy me a drink :).
[Upgrading, Modifying and Unlocking] JerryJiang:
Hi, xsacha

I am a newbie of Linux, i have no sence of the kernel, driver, ba la ba la...

But yesterday, i downloaded the new linux kernel (2.6.30) and try to compile it in Ubuntu, when i type "make oldconfig", it listed lots of options for choosing, and i found there is "zylonite development platform", i donot know what it's but may has some useful things for i780 chips. if it's, can we migrate it to your kernel?
[Upgrading, Modifying and Unlocking] euphoria3k:
Hi i keep running into the same problem....when i run haret and click run i get a few lines appear then it fades into a blank screen! the led is flashing, so it seems to be doing something, but nothing appears. i have managed to get android working once, but the display was a bit messed up, however next time i ran it - blank screen!

I have split the sd card into 2 partitions fat 32 / ext3 both primary in that order.

I'm not sure what i'm doing wrong?

Cheers for the wonderful work though so far....seem to be making nice progress!
[Upgrading, Modifying and Unlocking] xsacha:
Zylonite development platform doesn't help us. But thanks for trying. zylonite.c is in the same directory as sgh_i780.c :)

euphoria3k: That's the haret bug. It doesn't happen that often though. If you boot again it should work.
[Upgrading, Modifying and Unlocking] nipenk:
Sorry for the late reply.

Thanks for your information for my such a newbie question. As for the linux thing, im still a amateur one. but i will help as much as i can, can you give me any information regards in the to do list?

Thanks!
[Upgrading, Modifying and Unlocking] scorpius7589:
How about we start a bounty for this project help speed things up. I'll donate 15 euro's when this hits beta status (working as any normal phone should with wifi,gps etc. hopefully a bit easier to install and be able to start up at boot), and an additional 15 for a full release with all the bugs ironed out. Who's in? This is any i780-owner's dream, i guess?
[Upgrading, Modifying and Unlocking] ivm164:
+1. progress must be supported )
[Upgrading, Modifying and Unlocking] superoloan:
i'll buy you a beer if this thing hits beta..

for sure.
[Upgrading, Modifying and Unlocking] tomapi69:
I'll particpate as well:

* Beta @15€

T.
[Upgrading, Modifying and Unlocking] xsacha:
Hmm there won't actually be a 'beta'. The only thing that needs to be done to make a phone run Android is for that phone to have linux drivers. Once we get all the linux drivers (write them from scratch), it's done :). There may be a few hickups while completing the driver, eg. battery driver but when it's done it is basically done.

I must warn you guys, it may take up to 6 months to do GSM when university is back on. It'll also probably be the last thing I attempt. There is 300 pages of documentation on the chip but not much that helps with driver development so I'll be mainly reading the windows driver in assembly.

Here's a new kernel with battery driver updated to recognise GPIO polling for charger. It'll poll once a second for charger and once every 5 seconds for everythiing else.
[Upgrading, Modifying and Unlocking] lebrase:
xsacha, you speak about the documentation of the chip. Do you mean rtr6275 or msm6260 ? Do you have a link ?

What are the files of the WINDOWS directory that implement the gsm driver ?
[Upgrading, Modifying and Unlocking] xsacha:
I mean I will work on MSM6281 chipset. Here's one part: http://rs662.rapidshare.com/files/250246932/MSM6280.pdf

(Note: will have support for our msm6260 of course, but I need to make sure it works for Omnia too)

The RTR is part of the MSM so it will be included in the documentation.

GPS DLLs:

GPSIDRIL (GPS Intermediate Driver RIL) <-- mostly contains AGPS functions, some important IOControl functions.

GPSID

GPSAPI (Generic GPS API file)
[Upgrading, Modifying and Unlocking] lebrase:
Do you think the msm kernel that is being made specifically for the msm7* can be useful for this i780 project ? (kernel/msm.git)

You said you investigate inside the WinMo drivers to find their actual behaviour. What tool do you use to disassemble the drivers ? Any free arm disassembly ?

What are the DLL that implement communication (GSM/HSDPA/...)?
[Upgrading, Modifying and Unlocking] lebrase:
double post ...