Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Tip us?
 
BHSPitMonkey
Old
(Last edited by BHSPitMonkey; 10th November 2008 at 06:11 AM.)
#1  
BHSPitMonkey's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 29
Join Date: Jun 2008
Post Linux on StarTrek: Runs, Needs Work

Hi all,

I've learned that the StarTrek is able to boot the current kernel from the Linwizard project without any modifications. I've posted a video of this at http://vimeo.com/2114567. Before you get too excited, however, there's a few things to keep in mind:
  • The buttons aren't mapped correctly by default.
  • You need a networked computer to log in and do anything fun, for now.
  • If you're wondering about Android, the answer is "not yet".

I will do my best to address the important things here; what works, what needs tweaks to work, and (most of all) what needs attention. I will also, over the next day or two, try to post my findings regarding the button GPIOs collected from HaRET, kernel modifications necessary to fix a few things. etc.

Consider this post a call for help. I'm hoping this will encourage others to contribute toward more complete linux support on the phone. I personally am driven by the opportunity to dual-boot Android on the device, but I have much to learn and can't do this alone. So, if you have kernel experience and a StarTrek, here's your motivation to get hacking! (If you'd like to help, but don't have a device to test kernels on, I'm often in #xda-devs.)

Status (Let me know if there's anything missing here.)

Internal LCD - YES - Seems to work great.
External LCD - ? - Shows the device's default image. Not sure how to control this in linux.
Backlight - ? - Unsure. As far as I can tell, Linux will retain the brightness level being used when HaRET finished loading the kernel.
USB Networking - YES - Works like a charm.
Audio - ? - No idea. I don't know how to test this.
Cellular - ? - No idea, but I don't think it will necessarily come easily.
Buttons/Keypad - SOME - By default, the keys and buttons are mapped either incorrectly or not at all. The phone keypad and some of the special buttons type random keystrokes, since we are using the mappings for the Wizard. I have a modified board-htcwizard.c with correct mappings for the StarTrek I'll post really soon, as well as a list of the GPIO readings for many of the buttons. Unfortunately, the Up/Down/Left/Right/Select/End buttons function differently than the other, matrix-based keys. I have yet to discover how to configure them.
Camera - ? - No idea, but they don't even have this working on the Wizard (Linwizard's primary target device).
Light Sensor - ? - I wouldn't know where to begin. It barely works in WM, anyway.
MicroSD - YES - I can mount the MicroSD with no issues, full read/write. Even managed to open my photos in the GPE photo gallery on the device (launched over telnet).

[B]X[\B] - YES - I am able to start X, by calling startx over the telnet connection. However, X will try to run a touch screen calibration before doing anything else, and this is a bit of a problem for us! Fortunately, on newer Linwizard versions, you can disable this by passing tslib=0 to the kernel (in the defaults.txt file you give to HaRET). GPE also seems to be running perfectly after X starts.

Problems - After a few idle minutes in linux, the screen likes to black itself out automatically, as per the design of Linwizard. Unfortunately, on the Star Trek, there seems to be no way to make the screen wake up. Telnet still works in this situation.

I promise to keep this post updated, and get my data together and uploaded soon. Please share your own results and tricks as they come along, and join me (and some talented people) in #xda-xevs and #htc-linux on irc.freenode.net. Happy hacking!

Attached:
arch/arm/mach-omap1/board-htcwizard.c - Contains key matrix mappings modified for StarTrek. Be sure to remove the ".txt" from the file extension before using.
default.txt - Used with HaRET to make Linux boot. The only thing unusual in here is the TSLIB=0 option that's passed to the kernel, telling linux to skip touchscreen-related tasks.
Attached Files
File Type: txt board-htcwizard.c.txt - [Click for QR Code] (12.9 KB, 39 views)
File Type: txt default.txt - [Click for QR Code] (176 Bytes, 37 views)
 
Erofich
Old
#2  
Erofich's Avatar
Senior Member
Thanks Meter 6
Posts: 729
Join Date: May 2007
Location: Novorossiysk, Russia

 
DONATE TO ME
great work! but you need some advanced startrek owners to test linux - that's a big problem
 
dancer_69
Old
#3  
Senior Member
Thanks Meter 168
Posts: 1,749
Join Date: Jan 2007
Fantastic news! I' would really try it out. Unfortunatly my startrek's connector is damaged. I can charge the device, but I cannot connect with the pc. If I can use the micro sd card to install it(I think is possible) I will try it.
Thanks for the great job.
 
BHSPitMonkey
Old
#4  
BHSPitMonkey's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 29
Join Date: Jun 2008
Quote:
Originally Posted by dancer_69 View Post
Fantastic news! I' would really try it out. Unfortunatly my startrek's connector is damaged. I can charge the device, but I cannot connect with the pc. If I can use the micro sd card to install it(I think is possible) I will try it.
Thanks for the great job.
You can, by dropping Haret+default.txt+zImage+initrd onto the SD card. Unfortunately, without a USB connection, you won't be able to telnet into the device and run commands.
 
gigawatts
Old
#5  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Mar 2008
very interesting! Ive been waiting to hear this kind of news Unfortunately, I still use my StarTrek as my primary phone, so I can't test it out until it moves along a little further. I'll be sure to keep an eye on this thread, as this is good news!
 
BHSPitMonkey
Old
#6  
BHSPitMonkey's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 29
Join Date: Jun 2008
Quote:
Originally Posted by gigawatts View Post
very interesting! Ive been waiting to hear this kind of news Unfortunately, I still use my StarTrek as my primary phone, so I can't test it out until it moves along a little further. I'll be sure to keep an eye on this thread, as this is good news!
Linux actually boots directly from a Windows Mobile program called HaRET; When you're done playing with Linux, you can just reset the phone and you're back to normal. No permanent changes.
 
dancer_69
Old
#7  
Senior Member
Thanks Meter 168
Posts: 1,749
Join Date: Jan 2007
Quote:
Originally Posted by BHSPitMonkey View Post
You can, by dropping Haret+default.txt+zImage+initrd onto the SD card. Unfortunately, without a USB connection, you won't be able to telnet into the device and run commands.
I already did it, and works. Thanks anyway.
 
Kwen
Old
#8  
Senior Member
Thanks Meter 24
Posts: 242
Join Date: Nov 2006
Location: Montreal
Why not combine the effort to get Android on it?
 
ceramic
Old
#9  
ceramic's Avatar
Senior Member
Thanks Meter 0
Posts: 118
Join Date: May 2008
Quote:
Originally Posted by BHSPitMonkey View Post
Cellular - ? - No idea, but I don't think it will necessarily come easily.

from linwizard wiki page :

Quote:
What we need
Right now we need people with experience with GSM and WiFI to help get linwizard connectivity up!
about two years ago , another linux project ran that called Xanadux. why you don't use from Xanadux ?

sorry for my english !
 
xantan
Old
#10  
Member
Thanks Meter 1
Posts: 31
Join Date: Dec 2007
I have linux booting
it up booting to the point correctly then sit conclusion cannot one yet start?


sorry for my bad english my german are better
 
Tags
linux, linwizard, startrek, strtrk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more