Author Topic: Htc Universal  (Read 653501 times)

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« on: April 03, 2008, 07:03:51 pm »
I've been using an HTC Universal for a month now, and I've all but forgotten about my poor Zaurus.  

Pros:
  • Runs Debian EABI, including X.
  • About the same size as a clamshell Zaurus.
  • 640x480 screen.
  • I get about 9 hours life with the extended battery.
  • Was sold in Europe, and it's still easy to get accessories.
  • No touchscreen jitter.
  • Backlit keyboard.
  • Built-in Wifi, Bluetooth and GPRS/UMTS for internet access almost anywhere.
Cons:
  • Stuck at 2.6.21 (not a major problem).
  • Wifi driver is unstable.
  • Running from an SD card is slow.
  • No USB Host, CF or SD (SD socket is occupied because you can't install on the internal flash).
  • Takes some hacking to get everything working.
Does anyone else here have one of these?  Would there be any interest in creating a Debian "distro" for it?

Update: See here for progress so far.

Update 2: I've uploaded a Debian package to install the keymap, power management, sound and phone functions here.
« Last Edit: April 17, 2008, 04:10:57 pm by datathief »

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Htc Universal
« Reply #1 on: April 03, 2008, 07:38:19 pm »
Wow. That's sounds really cool. Any pointer to setting it up?
Can you get phone functionality when running Debian?
« Last Edit: April 03, 2008, 07:38:41 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #2 on: April 04, 2008, 06:53:47 am »
Quote from: ZDevil
Wow. That's sounds really cool. Any pointer to setting it up?
Can you get phone functionality when running Debian?

For a basic install:
  • Get a kernel and modules here (untar the rootfs, look in /boot for the kernel and /lib/modules for the modules).
  • Format an SD card (I think the above kernel supports ext2 and ext3) and put the Debian rootfs on it (I used debootstrap from my Zaurus), and copy in the modules.
  • Get a copy of HaRET.
  • Put HaRET (haret.exe), the kernel (zImage), and a config file (default.txt; see below) on the Universal.  Insert the SD card, and run haret.exe.
The HaRET config file, default.txt:
Code: [Select]
set kernel "zImage"
set mtype "855"
set cmdline "root=/dev/mmcblk0p1 rw console=tty0 rootdelay=5 fbcon=rotate:1"
boot2

This was enough to get Debian to boot.  USB networking works.  Wifi works best if you set the speed to 1Mbps using iwconfig (I have to do this after associating with the AP).  The keyboard goes a bit weird after suspending (there's a fix here).

The modem accepts AT commands over one serial port and exchanges data with pppd over a different serial port, so GPRS is tricky.  I've written a daemon to handle this.  In theory, it should be easy to add the ability to make and receive voice calls and SMS, but the interface needs some thought.  Probably best to keep it simple  -  a command-line tool to dial, pick up, hang up and send SMS, and an interface like /etc/apm/ to handle events (incoming call, SMS).  That should be enough for me to use it as my only phone.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #3 on: April 10, 2008, 04:24:01 pm »
Quote from: datathief
The modem accepts AT commands over one serial port and exchanges data with pppd over a different serial port, so GPRS is tricky.  I've written a daemon to handle this.  In theory, it should be easy to add the ability to make and receive voice calls and SMS, but the interface needs some thought.  Probably best to keep it simple  -  a command-line tool to dial, pick up, hang up and send SMS, and an interface like /etc/apm/ to handle events (incoming call, SMS).  That should be enough for me to use it as my only phone.
So, if I understand it correctly, you cannot use it currently as a normal phone? I.e. accept and make calls and send/receive SMS/MMS?

BTW the Universal has UMTS, as you mention in your fist post?

Can you workingly use GPRS, i.e. connect to the web easily?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
Htc Universal
« Reply #4 on: April 10, 2008, 05:02:44 pm »
very interesting to hear of progress on the HTC uni. it seemed so promising when started, shame it's only reached ?90%?

maybe with google android coming out on HTC devices, it will be possible that HTC will provide linux drivers for their hardware?
« Last Edit: April 10, 2008, 05:02:56 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Htc Universal
« Reply #5 on: April 10, 2008, 10:03:53 pm »
Sounds interesting, datathief.....

How is the keyboard and display?

Also, is there handwriting recognition app available if you run linux?

Keep us posted....

 
« Last Edit: April 10, 2008, 10:11:05 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

scheck.r

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
    • http://
Htc Universal
« Reply #6 on: April 11, 2008, 05:53:09 am »
Quote from: ArchiMark
Sounds interesting, datathief.....

How is the keyboard and display?

Also, is there handwriting recognition app available if you run linux?

Keep us posted....

 
Yes , there is cellwriter
SL-C1000 from PriceJapan(cheap and very fast shipping) with EA-70 power adapter, iRiver USB Host cable, PDAIR case, pentopia stylus, ultra clear screen-protector from shop.brando.com.hk only $3 for shipping worldwide
4GB Hitachi Microdrive, 1GB Kingston Elite Pro CF, 4GB Transcend 150x SD, Symbol Spectrum 4137 CF WiFi(low power)
PdaXrom pdaxii13 5.4.9 updated with Kkazakov13's feed. I owned a SL-6000L before

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #7 on: April 14, 2008, 10:09:16 am »
Quote from: ArchiMark
How is the keyboard and display?
The keyboard is slightly noisy ("clicky"), but perfectly usable.  The screen isn't quite as bright as my Zaurus, but is otherwise very similar (same size, resolution, etc.).  I'm running screen, mutt and finch, but X works fine.  I haven't tried cellwriter for handwriting recognition, but it's in the Debian repos.
« Last Edit: April 14, 2008, 10:15:43 am by datathief »

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #8 on: April 14, 2008, 10:15:05 am »
Quote from: ShiroiKuma
So, if I understand it correctly, you cannot use it currently as a normal phone? I.e. accept and make calls and send/receive SMS/MMS?
Not yet.  I almost have basic SMS send/receive working.  Once I can make and receive calls too, the Universal will be my primary phone.

Quote
BTW the Universal has UMTS, as you mention in your fist post?
Yes.  I'm getting 384kbit/s in good conditions.

Quote
Can you workingly use GPRS, i.e. connect to the web easily?
Yes.  I'll publish my daemon that handles this soon.
« Last Edit: April 14, 2008, 10:15:58 am by datathief »

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #9 on: April 14, 2008, 05:34:50 pm »
Wow, I think I'm gonna go buy this phone...

Do you have any sources of info, or is your main one http://forum.xda-developers.com/showthread...178#post1680178

Quote from: datathief
Quote from: ShiroiKuma
So, if I understand it correctly, you cannot use it currently as a normal phone? I.e. accept and make calls and send/receive SMS/MMS?
Not yet.  I almost have basic SMS send/receive working.  Once I can make and receive calls too, the Universal will be my primary phone.

Checking at http://www.handhelds.org/moin/moin.cgi/UniversalStatus specifically with GPE/x11 it says phone calls are working. Yet it says SMS isn't. Can you give any pointers on what you've done to get SMS functionality, and what "almost" means in terms of SMS functionality?

Quote
Quote
Can you workingly use GPRS, i.e. connect to the web easily?
Yes.  I'll publish my daemon that handles this soon.
Great, how soon do you expect to be able to publish this?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #10 on: April 14, 2008, 07:18:17 pm »
Quote from: ShiroiKuma
Checking at http://www.handhelds.org/moin/moin.cgi/UniversalStatus specifically with GPE/x11 it says phone calls are working. Yet it says SMS isn't. Can you give any pointers on what you've done to get SMS functionality, and what "almost" means in terms of SMS functionality?
I've successfully sent and received SMS messages, and made and received calls, using standard AT commands.  It all works, it's just not integrated with GPE etc.

I'm not interested in GPE, QTopia or OpenMoko, so I'm writing a daemon and command-line tools to handle GPRS, calls and SMS (GPRS and incoming SMS are working already).  I should have something usable in the next few days, though it will probably still be buggy.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #11 on: April 15, 2008, 04:55:17 am »
Quote from: datathief
I'm not interested in GPE, QTopia or OpenMoko, so I'm writing a daemon and command-line tools to handle GPRS, calls and SMS (GPRS and incoming SMS are working already).  I should have something usable in the next few days, though it will probably still be buggy.
OK, how are you gonna integrate it into the phone interface? Hardware keys? Or do you assume, you'll accept calls etc via shell scripts? Or do you have a simple graphical frontend?

Referring further to your first post, I sorta assumed you were using GPE or sorts... How did you install debian, is there a rootfs tarball somewhere, or how did you proceed?

Which WM are you using, since you are not inclined the GPE way? IceWM?

Here's a thought, if you'd go the hardware keys phone functionality integration, how about ratpoison? Is this too radical for a phone?
« Last Edit: April 15, 2008, 05:09:02 am by ShiroiKuma »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #12 on: April 15, 2008, 07:07:16 am »
Quote from: ShiroiKuma
OK, how are you gonna integrate it into the phone interface? Hardware keys? Or do you assume, you'll accept calls etc via shell scripts? Or do you have a simple graphical frontend?
In X, I can imagine using zenity or similar.  Use xmodmap to map the hardware keys to Enter and Escape.  Pop up a dialog (while vibrating and/or playing a ringtone) for an incoming call.  Enter accepts the call, Escape rejects it.

I don't intend to focus on the user interface.  All I need is a "backend" that I can integrate into my own environment, however I want.  

Quote
How did you install debian, is there a rootfs tarball somewhere, or how did you proceed?
See my second post in this thread.

Quote
Which WM are you using, since you are not inclined the GPE way? IceWM?
I'm not using X at all.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #13 on: April 15, 2008, 08:59:18 am »
Quote from: datathief
I don't intend to focus on the user interface.  All I need is a "backend" that I can integrate into my own environment, however I want.
Sounds reasonable.
Quote
Quote
How did you install debian, is there a rootfs tarball somewhere, or how did you proceed?
See my second post in this thread.
Doh... )

Is there a difference between using the Opie exe or the cabs from other directories, i.e. PhoneGPE, whatever that is, etc.?

Quote
I'm not using X at all.
Why do you not use X at all? Are you using Opie, or plain console? For performance reasons, or what are the considerations?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #14 on: April 16, 2008, 03:48:28 am »
Quote from: datathief
Quote
Can you workingly use GPRS, i.e. connect to the web easily?
Yes.  I'll publish my daemon that handles this soon.
I'm getting the phone today. Can you publish even a work in progress of this daemon - so that one may get started utilizing the GPRS in debian? Also maybe the WIP of the call/sms daemon?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze