Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,743,150 Members 44,385 Now Online
XDA Developers Android and Mobile Development Forum

[PRJ][AND][LNX] OPANDROID (The Wing-Linux Opal branch)

Tip us?
 
MusikMonk
Old
(Last edited by Shreyas Jani; 19th October 2010 at 05:32 PM.)
#1  
Senior Member - OP
Thanks Meter 259
Posts: 573
Join Date: Aug 2008
Location: Paris
Post [PRJ][AND][LNX] OPANDROID (The Wing-Linux Opal branch)

Please, don't reply with a quote of this post.



This thread is a continuation to what happened in the LINUX BOOTS at OPAL! Thanks to linwizard project! thread. I thought it's about time a proper thread is made to get this project the attention it needs.

What is Wing Linux all about
Wing Linux aims to bring Linux and Google's Android operating systems to OMAP850-based devices.
Wait, did you say Linux AND Android?
Yep, you did read that right. If you're running Wing Linux, you are simultaneously running Ångström and Android on top of that. That means you get all of the cool Linux functionality with the intuitive interface and usability of Android.
For more information about Wing Linux please visit the official site. It'll save you from having to read through this whole thread

If I installed Wing Linux, will I lose WM? / Will this brick my device?
No. There's no flashing involved here. Still, it's best practice to have thing backed up before doing anything. I've heard of a few cases were people lost some files from there SD cards.

Great! How can I try this?
I'm glad you asked!
Installation is very easy and smooth, all you have to do is following these simple steps:
  1. Navigate to the Wing Linux site.
  2. On the navigation menu to the right of the main page, you'll find a "Download" link. Obviously, you're supposed to click it
    Once the download completes, you'll end up with a zip file that contains a few cab files and 4 text files. Please do open these files using notepad for a quick look. They contain plenty of useful information.
  3. After extracting that zip, and hopefully taking a look at the text files, you'll need to move two of the cab files to your device: rootfs and opal.
  4. From your device, install the two cabs (navigate to them using your favourite file explorer then click them) and make sure to install both files to storage card.
  5. Before proceeding any further, make sure that you still have at least 250MB of free space on your storage card. If you don't then you'll need to do some clean up before you can continue.
  6. Also, make sure to close any open application, otherwise you'll lose any unsaved progress in any of them.
  7. Open the brand new wing-linux short-cut in your start menu.
  8. Hit run.
  9. While Linux is booting up. You'll be asked to input a size for the image file used as storage for Wing Linux (consider it like virtual hard disk). Don't touch anything and just wait, default value (250MB) will be used after a couple of seconds.
  10. Grab yourself a cup of coffee/tea/beer/... then sit back and relax. Installation will take a while.
  11. When everything is over, you'll get a calibration screen. Try your best to get a good calibration on the first time as fixing it later takes some work.
  12. Enjoy Android

Key-map for Android
As the Opal doesn't have that many keys, some changes had to be made:
  • D-Pad + Centre: works normally.
  • Green: Dialer.
  • Red: Default behaviour under Android is like this:
    • Short press: puts device in standby. This can be changed in the settings (which I recommend).
    • Long press: Display menu to turn off device, put device in airplane mode...
  • Volume Up: menu key (it's the key that unlocks the screen as well).
  • Volume Down: back/cancel.
  • Power button: It's working, but it doesn't do anything because it's functionality doesn't work in Android yet.

Okay, I'm done playing around and I want to go back to WM.
That's easy:
  1. Click and hold the red button and you'll get a menu.
  2. Select "Shutdown" and the phone will reboot.
  3. Once the phone boots again, you'll be in WM.

I want to completely get rid of Wing Linux
Eh, it's your loss.
  1. Un-install both cabs as you would do for any application.
  2. Check if there's still a folder called "linux" in the root of your storage card.
  3. If there's one, delete it.

What works and what does not work:
For details look at this page here. In short:
For the time being, these stuff work:
  • Making/receiving calls, although you won't be able to hear the other side during phone calls. But there's a small workaround for that:
    When in windows mobile, start Wing Linux during a phone call, that way you'll have sound in Android during calls.
  • Sending/receiving SMS.
  • GPRS also works. If your carrier/service providers details are included already, it'll work out of the box. Otherwise you'll need to set up a new APN under settings.
For the time being, these stuff do not work:
  • Battery (will always report it's 100% full).
  • Bluetooth
  • WIFI
  • Camera
  • Sound (other than what you'll get with the workaround)
  • Vibration
  • LED notifications
  • Standby/Suspend mode.
  • Unlocking SIM (Android will accept the PIN code but it won't connect to network, you'll need to disable PIN from WM).

FAQ
Q: When I let the phone sit for a while it goes to a text screen that just rolls android_power_suspend messages?
Right now these message are normal, just hit any key or the screen to go back. The suspend portion of Android is being actively worked on so just hang tight!

Q: I installed and booted Wing Linux and when I attach it via USB to my Windows computer it asks me for a driver for an "Ethernet Gadget". Where can I get this?
Linux has this driver natively. For Windows, there's no driver right now, if you know where we can find one (that is free to distribute legally) please do share it with us.

Q: When I boot for the first time the installer hangs at partitioning 0%, is it not working?
Walk away from your phone, this part will take some time. It will only have to do this on initial install so have faith.

Q: Can I install this to my phone's internal memory?
Not presently. Although the cab file will install, you won't be able to boot from internal memory. Ensure you install to your storage card.

Q: Does this run emulated under Windows Mobile?
Not at all! Although it's started from inside Windows Mobile, HaRET completely replaces Windows with Linux in memory, so you actually are booting native Linux -- No emulation at all.

Q: I successfully entered my PIN and unlocked my SIM card through Android, but I can't get on the network. Why?
This is a known issue -- unlocking a SIM card works, but Android does not follow through with connecting to the network. The best solution to this for now is to remove the PIN from your SIM card.

Q: I opened an application but how to I get back to the main page or quit the program? Where is my back button?
Check the keymap posted above.

Q: When will X work on Opal?
In due time. The project is made of volunteer effort working in their spare time. If you'd like the development to speed up, feel free to give a hand!
Not every single one of the people working on this is a developer. Some, like me, are learning as they go. And none is able to dedicate all his time for this project.

Q: I messed up with the calibration. How can I re-calibrate the screen?
Go to storage card, then go to the folder called 'linux'. You'll find a file called default.txt
In that file, look for the line that says "set CMDLINE", add "reset_ts" to it (between the two quotations). Then boot normally.
Remember to remove that once you're satisfied with the calibration.
(If Microsoft Word asks you to save it in their format, always say no)

Q: I waited a lot but the device won't finish booting after installation. What should I do?
First of all, try resetting the phone and booting Wing Linux again. In most of the cases, this'll work. If that doesn't work, try deleting the "rootfs" file from "/Storage Card/linux". If you don't see that file, delete rootfs.img instead. Then boot back in and it should start installing from scratch.
If you're still having issues, remove everything (refer to the "I want to completely get rid of Wing Linux" section) and reinstall the two cabs.

Q: What version of Android is Wing Linux running?
Right now, it's running Cupcake (1.5). An upgrade is planned.

Q: What version of Ångström is Wing Linux running?
Latest as of time of posting.

Q: I'm trying to use the virtual terminal but the enter button on the virtual keyboard won't do anything. Is that normal?
It happens occasionally. Try pressing the d-pad in various directions then hit then enter button again.

Q: Can I SSH to the phone?
Yes you can
Code:
Select Code
sudo ifconfig usb0 10.100.0.2 up
ssh root@10.100.0.1
The password is "wing".

Q: Is installing to a dedicated partition supported?
Yes it is, for more information check the 'INSTALL' file included in the zip, and that can also be found under /storage card/linux

Q: How can I set up a development environment to help with coding?
Take a look here.

Q: How can I get in contact with developers?
Through this thread, the project's forums and on the IRC channel at #wing-linux on Freenode.net. Please, do not use E-Mails, PMs, IMs...


Personal thanks from me to the following people for making this a reality:
  • darkstar62 for being the main man behind the whole project. And for going easy on me despite my noobness
  • The people at Linwizard for creating the base kernel and helping throughout development.
  • kshaurya for helping me to get the Opal branch started
  • raditzgds, life02 and zenned for helping to get the touchscreen working on Opal.
  • HTC for this nice device.
  • Google for Android.
  • The people behind Ångström for the base system.
I hope I didn't forget anyone...
Nexus 5 - Running latest ParanoidAndroid


Previously:
  • HTC Desire HD: Sold.
  • HTC Diamond2: Needs replacements for screen and digitizer.
  • Dell Axim X51v: Needs a replacement digitizer.
  • HTC Hermes: Was borrowed from a friend.
  • HTC Opal: Stolen.
  • HTC Magician: R.I.P.
The Following 2 Users Say Thank You to MusikMonk For This Useful Post: [ Click to Expand ]
 
MusikMonk
Old
(Last edited by MusikMonk; 5th April 2010 at 10:45 PM.)
#2  
Senior Member - OP
Thanks Meter 259
Posts: 573
Join Date: Aug 2008
Location: Paris
Please, don't reply with a quote of this post.


Release Informations


Released Versions:
  • 0.1 released on 2009-02-16
  • 0.2 released on 2009-05-26
  • 0.3pre3 released on 2009-06-14
  • 0.3 released on 2009-06-16
  • 0.4pre1 released on 2009-07-04
  • 0.4pre2 released on 2009-07-25
  • 0.4pre3 released on 2009-08-12
  • 0.4pre4 released on 2009-08-12
  • 0.4 released on 2009-11-09
  • 0.4.1 released on 2009-11-19
  • 0.4.2 released on 2009-11-21

Planned Releases:
Nothing is currently set in stone. Next release can be either 0.4.3 or 0.5.

Things to look forward for in the next release.
Hopefully: Sound and there might be some changes concerning Android.

Latest Change Log:
Will be updated on next release.
 
MusikMonk
Old
(Last edited by MusikMonk; 16th October 2010 at 08:27 PM.)
#3  
Senior Member - OP
Thanks Meter 259
Posts: 573
Join Date: Aug 2008
Location: Paris
Please, don't reply with a quote of this post.

How to help with testing and development on Opal:

The people behind Linwizard and Wing-Linux are in need of the results of running this test:

Quote:
Originally Posted by ali1234
Hi,

Thanks to everyone who came to our sprint and tested things. We got a
basic kernel booting on several platforms.

After looking at the results I started to look at the LCD detection
code. I would like to ask everyone to run this test and send me the
results.

I need testers with any omap7xx phone. You only need to run a haret
script and mail me the output, no kernel boot in necessary. The test
scripts are here:

http://al.robotfuzz.com/~al/htc/lcd1.zip

You need a modified version of haret which is included. Unpack the zip
to the phone's internal memory and run haret. Press the "boot" button
like normal. It won't boot linux, it will run the tests instead. Your
screen will flicker during the test, it is normal. It will generate
lcdlog.txt. Mail that file to me or the list, along with any
information you have about your phone. Especially if you have an
after-market LCD, or you know what model of LCD you have for another
reason.

The test works by rapidly switching between LCD mode and GPIO mode on
the LCD controller pins, to check which pins are tied high, low, or
are floating. It does this 30 or so times. Any pin that changes value
is deemed floating. The others are tied high or low (1 or 0). Ignoring
floating pins (zero them) and you get a code which identifies the
panel type of the phone.

More about the LCD detection, including device database and log
processor: https://sourceforge.net/apps/trac/li...wiki/LCDDetect

Thanks
While the quote tells you to email the results to ali1234, it would be best if you PM them to me and I'll handle passing them forwards.
 
jagan2
Old
#4  
jagan2's Avatar
Recognized Developer
Thanks Meter 170
Posts: 1,299
Join Date: Jul 2009

 
DONATE TO ME
Very nice thread with all the info needed

musikmonk that rom is ready contact me today eve or tom i will send u... then u can do testing works.
 
indresh88
Old
#5  
indresh88's Avatar
Senior Member
Thanks Meter 104
Posts: 528
Join Date: Nov 2008
Location: Ahmedabad
good discription brother........
i have tried it out already....but sound wifi etc not working.....hopefully the developers will solve the problems in next build....
DEVICE:SAMSUNG GLAXY S3 GTI9300
Device History:nokia 2112, motorazr v3i, nokia 6300, Htc gene,Htc opal, Htc Raphael, Galaxy S2, Salaxy S3
My contribution to XDA:
[Mod]4.1.2 TW Accuweather themes http://forum.xda-developers.com/show....php?t=2404521
WM 6.5 ROM OPAL REVOLUTION:http://forum.xda-developers.com/showthread.php?t=624265
WM 6.1 ROM FOR OPAL:http://forum.xda-developers.com/showthread.php?t=625811
 
jagan2
Old
#6  
jagan2's Avatar
Recognized Developer
Thanks Meter 170
Posts: 1,299
Join Date: Jul 2009

 
DONATE TO ME
Quote:
Originally Posted by indresh88 View Post
good discription brother........
i have tried it out already....but sound wifi etc not working.....hopefully the developers will solve the problems in next build....
I guess you dont know that musikmonk himself is one of the developer of android for omap 850 devices
 
freelancer81
Old
#7  
freelancer81's Avatar
Senior Member
Thanks Meter 11
Posts: 109
Join Date: Nov 2009
Location: 127.0.0.1
i downloaded it from the web to my mobile...took me a couple of hours but was worth it.

installation was a breeze.

wifi is not a necessary for me...so i am okay with it...

there are some probs tho...like the battery percentage...it is stuck at 100%. even after fiddling with it, it remained the same.


i rebooted to wm to find that battery was about 45%. this issue is critical...i feel. what about you guys??

btw...my sincere thanks to all who toiled so hard...without getting paid...to port this amazing os.

hats off to you guys...and do keep up the good work.
speak up before your silence is misunderstood.
Sony Ericsson Z550i | HTC Opal (Touch Viva)
Samsung Metro 3500 | Motorola ES400 | Samsung Galaxy Note 10.1 GT-N8000
 
gp.triple
Old
#8  
Senior Member
Thanks Meter 40
Posts: 275
Join Date: Jan 2010
Location: milan
i'm testing android from some week
i test version 0.4.2 and the 0.4.3 pre4
bluetooth don't work... when I turn on the bt the scrren increase brightnees...
for the audio problems if you start winglinux during a call audio works

now i want try your kernel
 
MusikMonk
Old
#9  
Senior Member - OP
Thanks Meter 259
Posts: 573
Join Date: Aug 2008
Location: Paris
Quote:
Originally Posted by jagan2 View Post
I guess you dont know that musikmonk himself is one of the developer of android for omap 850 devices
Thanks But I'm still faaaaaar from being a developer. I'm just learning.


Quote:
Originally Posted by freelancer81 View Post
there are some probs tho...like the battery percentage...it is stuck at 100%. even after fiddling with it, it remained the same.


i rebooted to wm to find that battery was about 45%. this issue is critical...i feel.
Ah, I forgot to mention that . I added it to the not working section now.
Right now, wing-linux is using a fake battery driver that always reports battery as 100% full. There's still no working driver and I'm afraid that it might be a long time till there is one.

Quote:
Originally Posted by gp.triple View Post
i'm testing android from some week
i test version 0.4.2 and the 0.4.3 pre4
bluetooth don't work... when I turn on the bt the scrren increase brightnees...
for the audio problems if you start winglinux during a call audio works

now i want try your kernel

Please do try that kernel and tell me how it goes for you.
Nexus 5 - Running latest ParanoidAndroid


Previously:
  • HTC Desire HD: Sold.
  • HTC Diamond2: Needs replacements for screen and digitizer.
  • Dell Axim X51v: Needs a replacement digitizer.
  • HTC Hermes: Was borrowed from a friend.
  • HTC Opal: Stolen.
  • HTC Magician: R.I.P.
 
mrushabh
Old
(Last edited by mrushabh; 9th February 2010 at 10:51 AM.)
#10  
Senior Member
Thanks Meter 4
Posts: 142
Join Date: Dec 2007
Location: Mumbai
nice work MusikMonk, i m so happy to see development for android on our phones
Bluetooth works on mine, but not all the time(once in 10 it doesn't)
Thank you so much for sharing your work

Edit: Sometimes,network problems occur after changing kernel
Rushabh Mehta
Current Device: Samsung Galaxy S II
Previous Devices: HTC Touch Viva, HTC S710 with my cooked Custom V2 WM 6.5 Standard ROM

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes