Linux boots on my Htc Vox!

Search This thread

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
Hi,

I was looking for info about linux ports of the htc vox (found nothing, do you know if there's anyone trying it already?) I got myself booting linux on my vox using simply haret and the linux image from the linwizard project... oh, the keypad works too, but keys are completely wrong mapped, and some simply dump error. but you get to the login screen and doesn't get stucked at all :)

It would be really really nice to get linux working fully on this phone... until then, here is the photo!
 

Attachments

  • login_screen.jpg
    login_screen.jpg
    70.7 KB · Views: 3,308
  • 100_1633.jpg
    100_1633.jpg
    92.2 KB · Views: 2,622

h4waii

Senior Member
Nov 9, 2007
823
85
Excellent work. Would you mind posting some more information on how you were able to boot the kernel from haReT?
 

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
Hi!

Go here: http://sourceforge.net/project/showfiles.php?group_id=174107&package_id=199577
And download the file linwizard-0.1.0-r1.tar. Decompress that file into \Storage Card, and then decompress the initrd.bz2 file into the same folder (the initrd is in the Tar file too). Run haret from the same directory and after hitting "run", you will be booting a 7mb linux image. Oh! forgot to say, you have USB Ethernet too, so you can play a little bit more :)
 

cr2

Senior Member
Jan 15, 2005
1,671
59
Your SD card partition is detected, so why do you run off the ramdisk ?
 

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
Simply because I got the file directly from sourceforge and I didn't touch anything (yet), but as soon as I can I'll try to make something (I guess with gpe) after remapping the keyboard...

By now, X window works too, and even with the keypad mappings wrong, if you write "fooz" and press J (J is the Enter key) twice, you will get to the shell, there you may launch X window system.
Good work from the linux wizard project!
 

vhogemann

New member
Dec 14, 2007
2
0
Android?

This leads to the answer...

Could we dream about booting Android on the VOX, using a custom kernel?
 

h4waii

Senior Member
Nov 9, 2007
823
85
We can dream. It's a linux kernel, so licensing rules apply and it will be completely open source. Problem is, finding somebody willing to hack on it long enough to make it useable.
 

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
About Android... too soon for that. I'm more concerned by now of building a root filesystem with a graphic environment with more than a simple xterm, find information or some source for a kernel driver for the wifi (tnetw1251), another one for the TI 6300 Bluetooth controller, clean the kernel patches I've found, and build the gsm module (omap 850 and 730 cpus are pretty much the same except for the RF -850 has edge, 730 hasn't).

There's lots and lots of work to do before even trying to make Android show a bootscreen in my opinion...

Any help would be appreciated. By now, I have the kernel source, the patches for the omap 850, a root filesystem I didn't have time to try (it should work more or less) yet, the gsm kernel module source, and a bit of documentation. But I'm missing lot's of things (like a real good gpio dump wich my haret doesn't want to do), more info about the other hardware on the HTC... lots and lots of things...
 

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
Gpe Working out of the box too!

Hi, just wanted to say... Gpe is running! Well, sort of.. it hangs up a bit, keys still don't work, gsm doesn't work, I think sound doesn't work either...but hey, it's better than nothing, isn't it?
 
Last edited:

thor2002ro

Senior Member
Oct 11, 2007
731
519
38
127.0.0.1
www.tegraowners.com
anyone knows how to remap keyboard??? if we get that working we got a shot ot this...

and anyone got usb ethernet working? i got vista and its asking for driver "ethernet handheld"

startx works too... :)
 

h4waii

Senior Member
Nov 9, 2007
823
85
the acx100 project might have some infoez for patching together a 1251 driver.
 

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
@thor202ro

I do know, more or less, how to remap the keyboard, but I don't know wich keys are connected where, that's what we have to find out!

And from the usb networking, it works from linux. With the IP stored in the default.txt file, I got ssh'd onto the htc at first try. I would recommend you use linux for these things, not windows. And if you use windows, I would recommend you to use XP not vista, before you do any other thing...
you can download an easy to use livesystem from http://www.ubuntu.com
 

thor2002ro

Senior Member
Oct 11, 2007
731
519
38
127.0.0.1
www.tegraowners.com
i got linux on my laptop no problem...
as for the keys we need something like "showkey"

Explanation
showkey - Examine the scancodes and keycodes sent by the keyboard. Options are -s (show scancodes) -k (show keycodes, default) -m (show keymap). This program outputs key values that the user presses on the keyboard. The program terminates when no keys are pressed for 10 seconds.

o and if you what to restart to wm without removing the bat "reboot" does the job :)
 
Last edited:

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
First, sorry for my english, wich is not as good as I'd want...

Yes, that's more or less what I think, but in a different way. I think the problem is in the kernel. See, this kernel is designed for a HTC Wizard. And this PDA has a quite different keyboard mapping, so some keys are missing in the layout, some do nothing, and some dump a kernel message, and I think what I must change is in here:

linux-2.6.16.27/arch/arm/mach-omap1/board-htcwizard.c

+ KEY(0,0,KEY_RECORD),
+ KEY(0,1,KEY_CAMERA),
+ KEY(0,2,KEY_PHONE),
+ KEY(0,3,KEY_VOLUMEUP),
+ KEY(0,4,KEY_F2),
+ KEY(0,5,KEY_MAIL),
+ KEY(0,6,KEY_DIRECTORY),
+ KEY(1,0,KEY_MENU),
+ KEY(1,1,KEY_COMMA),
+ KEY(1,2,KEY_M),
+ KEY(1,3,KEY_K),
+ KEY(1,4,KEY_OK),
+ KEY(1,5,KEY_I),
+ KEY(1,6,KEY_U),
+ KEY(2,0,KEY_RED), // FIX ME
+ KEY(2,1,KEY_TAB),
+ KEY(2,2,KEY_N),
+ KEY(2,3,KEY_J),
+ KEY(2,4,KEY_ENTER),
+ KEY(2,5,KEY_H),
+ KEY(2,6,KEY_Z),
+ KEY(3,0,KEY_SPACE),
+ KEY(3,1,KEY_L),
+ KEY(3,2,KEY_B),
+ KEY(3,3,KEY_V),

I think this is completely wrong... at least for my phone. But, my haret doesn't deal too well with it (maybe it's because of the cooked rom), and it looses connection once a while, and cannot get to debug where the keys are...

Workin' on it!
 

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
There's the problem. And with that, the other problem:

Welcome, this is HaRET 0.5.1 running on WindowsCE v5.2
Minimal virtual address: 00010000, maximal virtual address: 7FFFFFFF
Detected machine Generic TI OMAP/OMAP850 (Plat='SmartPhone' OEM='HTC_S710')
CPU is ARM ARM arch 5TEJ stepping 3 running in system mode
Enter 'HELP' for a short command summary.

HaRET(1)# dump gpio
line 1: No dumper gpio available, see HELP DUMP for a list

So, it doesn't work. Tried with versions 0.5.0 and 0.5.1. Didn't find anything newer than that, and I don't know how to do it in another way...any ideas?
 

biktor_gj

Senior Member
Jan 25, 2008
1,408
7,008
There's no password on that build, just use root as the username, press enter when asked for the passowrd, you're in.
 

thor2002ro

Senior Member
Oct 11, 2007
731
519
38
127.0.0.1
www.tegraowners.com
~ $ cat proc/bus/input/handlers [J

N: Number=0 Name=kbd

N: Number=1 Name=mousedev Minor=32

~ $
~ $ cat proc/bus/input/handlers [J d[16D
~ $ cat proc/bus/input/devices [J

I: Bus=0000 Vendor=0000 Product=0000 Version=0000

N: Name="omap-keypad"

P: Phys=

S: Sysfs=/class/input/input0

H: Handlers=kbd

B: EV=3

B: KEY=6400 1 0 0 0 0 84100000 280 8400800 c0000 0 1e0ff07f d3ffc000

i think he uses kbd to map keys

but thers a bigger problem how do we make the sistem rw.... not just read only?
 
Last edited: