yashsingh1/xdaforums huggingface dataset:
[Wing, P4350 ROM development] darkstar62:
I've had some success getting Linux running on my wing. Here's what I've got:

Custom kernel built using the linwizard kernel sources and my own configuration (based on theirs for the wizard)

Separate ext3 partition on my SD card (1gb + 128mb swap) that I created using my laptop (used for the root filesystem)

Minimal base system installed as a combination of the linwizard base + some extra software I compiled using OpenEmbedded

System booted with HaRET + the kernel

What works:

Minimal X server capable of landscape and portrait video modes (KDrive, using the framebuffer (omapfb))

Touch screen support + calibration software (TSC2046 driver + tslib)

Console keyboard (some characters are difficult / impossible to type due to the limited key layout and driver)

USB gadget support for connecting with my laptop (I can SSH / telnet into the phone, or ssh/telnet from the phone into my laptop)

Full access to the SD card (even the Windows FAT side -- mmci-omap driver)

What doesn't work:

Bluetooth -- haven't been able to get a working driver, or anything to even recognize that it exists

WLAN -- same as bluetooth

GPRS / Phone -- same

Most of the extra buttons don't fire any events

LEDs for the most part don't work

Battery and power stats aren't available, as well as power management

No control of the backlight or display power

Sound -- don't have any drivers / software compiled for sound, so I don't know if this would work or not

RTC

I've attached my initial dmesg output, plus the output of /proc/cpuinfo and /proc/devices.

I've done some kernel development in the past, but only on small USB drivers. That being said, I have lots of programming and Linux experience, so I would be glad to help in any way. I've also got a full ARM cross-compile environment set up so I can build most anything for the wing and run it there (I just scp the packages over and unzip.)
[Wing, P4350 ROM development] darkstar62:
I started a new thread on linux development with instructions on how to obtain and install the linux kernel and image I built here:

http://xdaforums.com/showthread.php?p=3260793
[Wing, P4350 ROM development] Kuuf:
Nice darkstar!
[Wing, P4350 ROM development] N3xt2N0N3:
This thread will remain open for any advancement of android getting ported onto the wing.

Visit darkstar62's thread (click here) for he has really gotten far with ported linux onto the wing.

Thanks

Edit: added url to darkstar62's thread
[Wing, P4350 ROM development] 1TMobEngineer:
Yea, it is funny... The G1 is to finnicky and the windows mobile can be almost the same pain..
[Wing, P4350 ROM development] expone:
Ok! Now, we have a running linux kernel including basic linux....

Whats the next steps to android?

Or need we more drivers? Sure, WiFi and Bluetooth etc doesn't run yet. But is it not possible to start android now? Then we can looking for solves....
[Wing, P4350 ROM development] darkstar62:
@expone:

I did a bit of research last night about the Android-specific patches added to the kernel -- seems we're missing quite a bit in the kernel that we have. So I'm going to try tonight or tomorrow to build an Android kernel using their patches and taking bits and pieces from my kernel config to get it running. With any luck, I'll be able to post a new kernel that should boot.

After that I'll try and compile the Android source from scratch. With any luck, the combination of the two will allow us to at least boot Android. Who knows -- maybe we'll have some of that non-working hardware too. :)

I'll keep you posted.
[Wing, P4350 ROM development] rod1189:
So do u just flash the DREAM image file to the wing and thats it. or do you have to play with linux??
[Wing, P4350 ROM development] 1TMobEngineer:
At least its linux.. Should be REAL easy to make drivers..
[Wing, P4350 ROM development] ivanmmj:
No. The Kernel has to be compiled to work with the OMAP850 CPU and all the other hardware.
[Wing, P4350 ROM development] ivanmmj:
Assuming we have all the information about the hardware.
[Wing, P4350 ROM development] darkstar62:
Exactly. Porting the android base system is the easy part -- it's written in Java. It's the kernel that's the hardest. The linwizard team has made quite a bit of progress on getting that working though, so hopefully all that's left is for us to get the android-specific patches installed.

We'll still need to do some work to get things like wifi, bluetooth, sound, and GSM support there (although I think the wizard GSM driver from linwizard is at least partially working for us -- may just be a matter of integrating missing functionality).

Again, if anyone has chipset info about the wing, that can greatly help.
[Wing, P4350 ROM development] drmidnight:
Im sure you could probably find some info about the chipset in the Herald Service Manual.

http://www.onlinefreeebooks.net/gadget-ebooks/htc/htc-herald-service-manual-pdf.html
[Wing, P4350 ROM development] mywingflys:
oh man

i would DEF love to see andriod on the wing

how far have you all come along with it?
[Wing, P4350 ROM development] darkstar62:
I've so far managed to extract the Android patches from the latest copy of the source code (currently against a 2.6.27 kernel) and masaged it enough to patch the 2.6.25 kernel I used to boot linux originally. Haven't yet gotten it to build -- still have some dependency issues to work out. Hopefully I'll know later today if it builds into a working kernel -- and if Android will boot from it.

The post I started for all this has the latest code and patches (also images) I've been able to get working if you want to play with it:

http://xdaforums.com/showthread.php?p=3265331

- d
[Wing, P4350 ROM development] darkstar62:
Whee!

So I've managed to successfully build a working, bootable kernel with the Android patches installed. This gets us a bit further, though I still can't start Android. However, now I can get as far as seeing the two-android startup screen, and I've confirmed that all the android server processes do start up and seem to run. After 30 or 40 minutes though, the startup screen is still going and android is still not started.

I noticed two of the processes taking up the most CPU time during that period: app_server and mediaserver. App_server is the main Android startup, so I'd expect that to be working hard. Not sure why mediaserver was so active.

I'm going to attempt to build in some debugging tools tonight (particularly strace, but a few others) so I can see what Android is doing while it's running. Maybe I can track down why it takes so long to start up (and why it never finishes). I also noticed it uses up to my physical memory limit, but never starts using swap...I wonder if modifying it to allow for swap use would help it start up.

I've got an updated kernel image and config, along with the Android /system and / partitions, and I"ll be updating the other thread with links to that and installation instructions.
[Wing, P4350 ROM development] quicksite:
This is so cool. I love it: A few months back there was an ambitious goal: Get Android running on the Wing. Initial goings were, expectedly, tough, and several people at XDA dissed the whole thing as "impossible", seeking to close the thread. But others with a variety of knowledge-sets persist saying " we can crack this nut". I'm not a coder but it sure sounds to me like "Part 1" of the "impossible" has been done: getting linux to run on wing.

darkstar, I can be naive sometimes about what's proprietary and what's not, and what a developer on one platform is able to share with a developer on another platform. But let me know if you think there is anything that could be acquired this way:

I'm in San Francisco and in my neighborhood someone I met at a cafe is, no ****, the designer of the G1 phone, from its UI to its functional design in working with HTC and T-mobile. Google, ultimately, wants to sell ads, and Android was just a step to have a platform in which they could do that. It seems to me that if Google isn't trying to sell phones, they would want Android penetrating the market as widely as possible. So, if there was something I could ask for, that might be possible to obtain, what would that be?

Maybe someone else will throw cold water on all of this, but it's just cool to see the 'audacity' to take on challenges here.
[Wing, P4350 ROM development] darkstar62:
Wow, that's really cool! Not sure what we can ask for. The biggest help I can think of would be in debugging Android startup problems, or possibly in getting very detailed specs of all chips used by the wing (neither of which I think this person would be able to obtain...). Did (s)he design the phone as it sounds like, or did (s)he actually work hardware/software? If (s)he worked on the hardware/software end of the phone in detail, that might be very useful to us in terms of getting specs and help porting.

I know at least some of the Dream software is proprietary -- I believe there's a library used for GSM radio communications that was developed by HTC and can't be distributed as open-source. Not sure if we'll need it or not, and if we do, we'll more than likely have to bargain / negotiate with HTC to try and get it. I don't want to do anything illegal in this, so if it isn't open source and we can't get it legally, I won't consider using it.

It might be interesting to find out what level of involvement (s)he had first.
[Wing, P4350 ROM development] CDR123:
whoa i cant believe how far you guys/gals have gotten so far keep up the good work

looking forward to android ;)
[Wing, P4350 ROM development] darkstar62:
IT WORKS!

It works! After a bit more mucking with the kernel and some writing of some scripts, I can now report that I have a working Android install!

Currently the only thing of real interest that works is the GUI -- the main home screen comes up and I can pull open the Apps folder (using the Enter key on the keyboard). Touch screen doesn't work, nor does data/wifi or pretty much anything else -- and it crashes a lot. But the important parts are in, it'll boot and run!

When I get home, I'll update the packages and kernel images I have in the other thread so you can all download and play with it. I'm going to try and get the touchscreen working tonight, so we can get a feel for more of what's working.

It occurred to me that once all this is working, it should be possible to bundle up the HaRET.exe, kernel, and an initramfs that upon loading would basically install Android to your SD card.

I'm figuring the following:

Upon first startup, the initramfs would mount your SD card and create two large files on it -- one for the root Linux filesystem, and one for the swap partition. This would allow us to have a nice partition scheme without actually needing to destructively repartition the card.

Once the "partitions" are created, scripts would extract the linux and android root filesystems to the image (from a storage location on your SD card).

After all that, a pivot_root call would be made to make the newly created linux filesystem the root, and normal bootup would occur, starting Android.

Optionally, kernel command line parameters (in the default.txt file) could be specified to prohibit launching Android and instead drop you to a console login

Subsequent bootups of the image would simply result in mounting the image and starting Linux.

This would make it pretty brain-dead easy to get Android on your phone, and if you wanted to delete it or move it somewhere else, you could -- all the data would be contained in a couple of files on the SD card.

Thoughts?

-d
[Wing, P4350 ROM development] ivanmmj:
That's the way that they did it on the vogue (more or less) and it works beautifully.

We could make it a cab file. And if you want, we can collaborate on making a stripped down ROM that automatically launches Android (which would be built in to it.)
[Wing, P4350 ROM development] darkstar62:
Yeah, that's pretty much exactly what I was thinking. A cab file would be excellent! That would alleviate the guess work for the initrd too as to where its system images are.

-d
[Wing, P4350 ROM development] ivanmmj:
Which I think may be causing the white screen of death on my end.
[Wing, P4350 ROM development] chymnon:
It's amazing. I luv U, darkstar62 and ivanmmj :X
[Wing, P4350 ROM development] Black Hawk90:
do someone get it run? I only get an white screen :(
[Wing, P4350 ROM development] darkstar62:
Hmm, that makes two. Can you describe what you see right before the white screen? Do you see scrolling text, or is the last thing you see "HTC WIZARD" before the white screen? Also, does the white fade in gradually or appear suddenly?

- d
[Wing, P4350 ROM development] ivanmmj:
HTC Wizard and fade in my case.
[Wing, P4350 ROM development] darkstar62:
Can you both tell me what it says under "Processor" in your Settings->System->About screen in Windows? Also, are you running custom ROMs (ivanmmj, I know you are)?

Just as an FYI, I'm working on getting us all a sourceforge site for all this so we can stay organized. It'll be at:

https://sourceforge.net/projects/wing-linux/

once it's approved.

-d
[Wing, P4350 ROM development] N3xt2N0N3:
Great no more scattered files LOL.
[Wing, P4350 ROM development] Black Hawk90:
Processor is: OMAP850-201MHz

and yes my Phone runs with an custom Rom.

The Last thing is saw befor the White screen is an Scroling Text (booting Linux) and the last enrty is: "Jumping to Kernel"

greatz

Black Hawk

//Edit: Is there an Video of running Android on an Wing? I want to know how fast it is :D
[Wing, P4350 ROM development] ivanmmj:
I'm running the most current version of the unreleased JustStable. Before that, I was running an alpha version of the unreleased JustFlo which was based on Just2Clean. All are wm6.1 and at least 19558.

The Hardware is identical except for the keyboard. On WM ROMs, the only thing needed to make the ROM work perfectly is the correct keyboard driver (which contains different mappings.)
[Wing, P4350 ROM development] darkstar62:
Hmm...I'm starting to wonder if the use of custom ROMs is the common link here...

Can someone try booting either of the two kernels who's not using a custom ROM and let me know what happens? (Just grab the HaRET+zImage.zip file from the other thread, unzip it and run haret.exe.) Without following the rest of the instructions, you should get to a kernel panic about not being able to mount the root filesystem. If you get that far, Android should run for you. If you could then report back whether it worked or not, that'd be great.

Just for reference, on the back of my phone (underneath the battery) is the model number HERA110 -- is that common to everyone?

@Black Hawk90: I don't have a video yet of it -- not too much to see, really. All I can do right now is open and close the program folder and crash it a bunch of times. But it crashes fast! I'll see if I can make a video soon, along with everything else.
[Wing, P4350 ROM development] Black Hawk90:
With the Kernel of the other Theard, i come to HTC Wizard and then the White Screen fade in ... :(
[Wing, P4350 ROM development] ivanmmj:
Maybe it's WM6.1 and its kernel?
[Wing, P4350 ROM development] darkstar62:
Also a possibility. There might be a version of harat floating around that's useful for 6.1 (I thought mine was the latest, but I could be wrong).
[Wing, P4350 ROM development] Fenopy:
My Phone has the HERA110 as well....

Are you running HardSPL?

Really, the current ROM shouldn't have anything to do with flashing Linux on...
[Wing, P4350 ROM development] xsdx:
I am using PDAVIET 20764.1.4.3.PV and I am able to boot all the way into linux.

When I launch start_android I see the android logo, the little robot flashes and it doesn't proceed further.

I don't think this is a wm 6.1 issue, most likely specific to their rom, or POSSIBLY their microSD card they are using?
[Wing, P4350 ROM development] darkstar62:
I'm not -- just using the stock ROM that came with my phone (WM6, not 6.1).

- d
[Wing, P4350 ROM development] Fenopy:
HardSPL could be the issue then.

Because HardSPL is a Firmware flash that almost all of us are using...

I guess I don't know how to remove HardSPL, or even if we can.... -.-

ivanmmj? lolz
[Wing, P4350 ROM development] darkstar62:
If you're seeing the android logo, that's good news -- you'll be able to get it running. I haven't uploaded the most recent kernel and image which got me in -- I wanted to wait until the project page was up so I could have a better place to put everything (and so we can better collect our experiences). Now that it's been approved, I can start setting it up.

Are you on WM6.1 with HardSPL? If so, then I doubt that's the issue. It's *possible* that it's the SD card, but I tend to doubt that, since it never gets that far for the others...

The white screens I've heard described so far are happening at the time the jump is made into the kernel code. If no actual scrolling is seen before the white screen (but after the jump), that means the failure is occurring between kernel first instruction and the time the framebuffer is initialized (i.e. when the CPU and memory are being started).

I had issues with white screens when I was working on my kernels, but mainly after the framebuffer was initialized (I'd see some kernel text scroll by, but then the white screen). My issues were mainly bad/buggy drivers in the kernel that were loading at that point. I think what I'm hearing though is that the kernel isn't getting past CPU and memory initialization. But it would be useful to have more data.

Can everyone try this for me:

Try running the harat kernel alone (unzip the file from step 1 of the howto and just run harat).

Tell me what you see in as much detail as possible (i.e. what you see right before the white screen, how the white screen displays (i.e. fades in, suddenly white, etc.)). If you get a white screen, leave it that way for about a minute, and tell me if you see the screen change to grey. Also take a look at your keyboard LEDs at the time, and tell me if any of them are lit.

I'd also like to know if it boots for you (you'll get a kernel panic later in the boot sequence about a missing root partition -- that's a success in this case.)

For everyone that tries, can I have the following:

Model number listed on the back of your phone, underneath the battery (mine says HARA110)

Whether it's a T-Mobile Wing branded phone or an actual HTC Herald

Whether your phone is unlocked

What ROM you're using, if any, and what version of WM it is (6 or 6.1)

Whether you have wifi/bluetooth on at the time you attempt the boot (I've found it matters for me -- sometimes the SD card doesn't initialize right if the wifi is on)

What the "Processor:" part says in Settings->System->About

Whether you overclock your processor or not (and if so, what to)

What programs you might have running that alter the behavior of your hardware (i.e. wifi enhancement, special button software, etc) and what it does

Hopefully something in this data will help us track down the differences between the working and non-working phones.

- d
[Wing, P4350 ROM development] xsdx:
Yes, HardSPL, with WM 6.1. And, yes, you can remove HARDSPL, but you will want to make sure the rom you are using supports running non-HARDSPL.

Can wait to actually get IN to android. :)

Try running the harat kernel alone (unzip the file from step 1 of the howto and just run harat).

I can get in to linux all the way

I'd also like to know if it boots for you (you'll get a kernel panic later in the boot sequence about a missing root partition -- that's a success in this case.)

I can boot all the way. :)

Model number listed on the back of your phone, underneath the battery (mine says HARA110)

Same, HERA110

Whether it's a T-Mobile Wing branded phone or an actual HTC Herald

T-Mobile Wing

Whether your phone is unlocked

Unlocked (SIM and SPL) I was SIM unlocked using a code provided by Tmobile, SPL unlocked using YANG

What ROM you're using, if any, and what version of WM it is (6 or 6.1)

PDA-VIET 20764.1.4.3.PV

Whether you have wifi/bluetooth on at the time you attempt the boot (I've found it matters for me -- sometimes the SD card doesn't initialize right if the wifi is on)

WIFI/Bluetook OFF at boot time and also during launch of HARET

What the "Processor:" part says in Settings->System->About

OMAP850-201MHZ

Whether you overclock your processor or not (and if so, what to)

Not overclocked

What programs you might have running that alter the behavior of your hardware (i.e. wifi enhancement, special button software, etc) and what it does

Hmmm AEK for remapping keys, but it doesn't appear to make a difference if I am running it or not.

HTH!!
[Wing, P4350 ROM development] ivanmmj:
WM6.1 with HardSPL

It looks like its loading something, then it says "Printing linux banner" then "HTC WIZARD" then it fades into white.

What do you mean? It requires the default.txt file.

As I mentioned above.

The keyboard lights don't turn on. The status light still shows the status.

The white screen goes "gray" only because the backlight gets dimmer.

HERA110

T-Mobile Wing (a.k.a HTC Atlas.)

CID unlocked. SIM locked.

My own personal unreleased ROM.

I've tried both on and off.

OMAP850-201MHz

No.

Trayicon for the vibrate on button function.

I also have TouchResponce for the vibrate on touching the screen response.

[/INDENT]
[Wing, P4350 ROM development] Fenopy:
I formatted my SD-Card EXACTLY as you stated (Had some problems, but then I tossed my 64-Bit Ubuntu disc and used x86, worked perfect)

Rebooted to my ROM

Ran HaRAT.exe

The 3 Lines of words came up (Wizard etc...)

then it slowly faded out to a white screen

It would not pass the white screen (I waited 10 min)

Model: HARA110

Brand: T-Mobile Wing

Phone Status: Locked to T-Mobile

ROM: ivanmmj's Just2Clean WM6.1

SPL: HardSPL

Additional Utilities: Bluetooth/Data Connection

Processor: OMAP850-201MHZ

Overclock: Overclocked to 273 MHZ

Additional Programs: None Running - Today Plugins: HTC Home, SPB Diary

I am going to try again in Airplane Mode soon....

May Put stock ROM on as well

EDIT:

Airplane Mode + No Today Plugins

No Luck. Same Screen.

Going to Flash Stock ROM now...

Hope I have some Luck.
[Wing, P4350 ROM development] ivanmmj:
I wonder if it's something to do with one of the things I strip from my ROMs? Perhaps sqlmobile or enterprise?
[Wing, P4350 ROM development] Fenopy:
I don't think so...

I just put on the T-Mobile Stock ROM....

Exact same issue.

Seems like HardSPL is causing the Problem to me...

How?

I can't find anything that supports going back to SoftSPL...

At least to try it...
[Wing, P4350 ROM development] ivanmmj:
Use USPL to flash the stock RUU with stock SPL and all.
[Wing, P4350 ROM development] Black Hawk90:
HTC Herald Model number HARA 160

Gullums Rom with Manilla - Windows Mobile 6.1 Professional CE OS 5.2.20755

No Bluetooth or Wifi was on

Processor: OMAP850-201MHz

It looks like its loading something, then it says "Printing linux banner" then "HTC WIZARD" then it fades into white.
[Wing, P4350 ROM development] Fenopy:
Oh... Well I did that... Didn't work.

Stock ROM, No changes, No Radios on.

Then I had a HELL OF A TIME putting Just2Clean back on.... Kinda forgot I upgraded my SDCard and needed my 2GB card to Flash... Apparently HardSPL doesn't support SDHC... lolz
[Wing, P4350 ROM development] darkstar62:
OK, I'm beginning to think it isn't anything in the ROMs. There must just be a slight variation in our phones that's causing this (and possibly buggy drivers in Linux).

I'd like to try and build a minimalist kernel to see if we can isolate the issue -- I know from all of your responses now that either the kernel isn't even starting (which I doubt), or one of the many drivers that starts before the framebuffer is initialized is causing the problems.

I'll try disabling all drivers that load before the framebuffer (except the required, CPU and memory) and issue that out. Hopefully that'll work, and we can begin to figure out which driver(s) are causing the problem.

I want to get the project page a bit more complete first though. Take a look:

http://wing-linux.sourceforge.net

If you'd like to be on the development team, lemme know and I'll add you to the project -- you'll need to create a sourceforge account first.

More to come.

-d