HP5310m un2420 Wireless Gobi2000 Module in Ubuntu

QUICK POST TO BE CLEANED UP LATER 😛

If you have a Windows 7 installation (as it should be pre-installed) and with the Window’s Qualcomm driver’s loaded, find the driver log directory.

e.g. C:\ProgramData\QUALCOMM\QDLService2k

There should be two files, Options2kHP.txt and QDLService2kHP.txt.

Open Options2kHP.txt and you should see 3 lines similar to :-

C:\Program Files\Qualcomm\Images\HP\UMTS\AMSS.mbn
C:\Program Files\Qualcomm\Images\HP\UMTS\Apps.mbn
C:\Program Files\Qualcomm\Images\HP\0\UQCN.mbn

Copy these 3 files listed into

/lib/firmware/gobi

The other file is a log file of the firmware loading done by the Windows driver if you’re curious.

The device ID for the firmware loader on the HP 5310m, un2420 module is 0x241d.
The device ID for the modem is 0x251d.
If the firmware is not loaded, you should see the firmware loader device.
If the firmware is loaded correctly, you should only see the modem device.

Short Instructions (Request in comments if you need debugging/testing instructions).

Download, compile and install the updated qcserial driver.qcserial_5Jan10
Download, compile and install the modified gobi_loader.gb2kload_5Jan10
Reboot and pray that network manager now shows your modem 😉

*UDEV ISNT WORKING AT THE MOMENT … WILL FIX SOON … Run in manually like below…*

madox@madox-5310m:~$ lsusb -d 03f0:251d
Bus 001 Device 003: ID 03f0:251d Hewlett-Packard

Blah blah

Gobi Loader manually run and output

madox@madox-5310m:~/projects/gb2kload$ ./gobi_loader /dev/ttyUSB0 /lib/firmware/gobi
QDL protocol server request sent
01 51 43 4f 4d 20 68 69 67 68 20 73 70 65 65 64
20 70 72 6f 74 6f 63 6f 6c 20 68 73 74 00 00 00
00 04 04 30 03 0b
QDL protocol server response received
7e 0d 05 00 00 00 00 04 e4 7e
QDL protocol server request sent (Retry as gobi2000)
01 51 43 4f 4d 20 68 69 67 68 20 73 70 65 65 64
20 70 72 6f 74 6f 63 6f 6c 20 68 73 74 00 00 00
00 05 05 30 07 48
QDL protocol server response received (Retry as gobi2000)
7e 02 51 43 4f 4d 20 68 69 67 68 20 73 70 65 65
64 20 70 72 6f 74 6f 63 6f 6c ff ff ff ff 24 00
17 5c 05 05 00 00 00 00 00 00 00 00 00 00 00 00
00 30 d6 8a 7e
QDL protocol server request sent
25 05 2c 50 a9 00 01 00 00 00 04 00 00 40 97
QDL protocol server response received
7e 26 00 00 01 00 00 00 04 52 65 7e
QDL protocol server request sent
27 00 00 00 00 00 00 2c 50 a9 00 db ae
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 610348 bytes of image
QDL protocol server response received
7e 28 00 00 00 00 00 00 00 00 14 39 7e
QDL protocol server request sent
25 06 2c 60 2f 00 01 00 00 00 04 00 00 81 0e
QDL protocol server response received
7e 26 00 00 01 00 00 00 04 52 65 7e
QDL protocol server request sent
27 00 00 00 00 00 00 2c 60 2f 00 69 f0
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1048576 bytes of image
QDL protocol server sent 1007660 bytes of image
QDL protocol server response received
7e 28 00 00 00 00 00 00 00 00 14 39 7e
QDL protocol server request sent
25 0d 44 24 00 00 01 00 00 00 04 00 00 50 90
QDL protocol server response received
7e 26 00 00 01 00 00 00 04 52 65 7e
QDL protocol server request sent
27 00 00 00 00 00 00 44 24 00 00 b9 49
QDL protocol server sent 9284 bytes of image
QDL protocol server response received
7e 28 00 00 00 00 00 00 00 00 14 39 7e
QDL protocol server request sent
29 bb 4c
Firmware Loading Complete

You might need to kill modem-manager if you’re doing this manually…

sudo pkill modem-manager

HTC Sense UI on HTC Magic

Well I’ve installed the official HTC Magic update with the new Sense UI a week ago and I have to say I’m pleasant amazed at HTC’s work with the Sense UI and how responsive the update is.  Just purely love it.

IMGP0909

Other than the annoying thing that I couldn’t download it using Firefox or Linux, and that you need to update using Windows and HTC Sync… its awesome.  Even though it’s a Taiwan ChungHwa ROM, there is an English option luckily 🙂

In addition to the Sense UI and its wonderful feature set, another interesting but hidden away feature is “Mobile Internet Sharing”, aka tethering!  Azilink is now redundant with this new firmware, and honestly I was getting annoyed with Azilink’s performance and constant dropping out.  On Ubuntu at least, it was ‘plug-and-play’ without any other tricks.  Awesome.

Now I’m not so jealous about all the HTC Hero’s my friends and relatives have…

Photos (pretty boring) after the break.

Continue reading “HTC Sense UI on HTC Magic”

EasySync USB-CAN Bus Adapter – Works great in Ubuntu after some fiddling

Neat little package
Neat little package

The toys just keep coming in!  Another one of those wallet killing impulsive orders whilst I was sick in bed last week just arrived today, a USB-CAN bus converter module by EasySync that promises a great interface and should work in Linux!  This will give a little bump start to my Mazda CAN Bus / mChumby projects.

Note : EasySync UK’s online form doesn’t allow international shipping but a short E-mail or two managed that.  There is a US subsidiary with US and international shipping, but the international shipping rates on the US site is plain ridiculous [$68USD to ship a $88 device to Australia].

Note 2 : I hear the interface is mimicking the Lawicel CAN-USB interface…only hearsay…

Plugged it in – didn’t work.  Doh!  Took a peek at the manual and website, nothing on Linux other than “Linux drivers provided”… So much for the marketing material, guess I have to try make it work myself.  (Yes I got it working, read on for the quick run-down post aimed at helping others)

Continue reading “EasySync USB-CAN Bus Adapter – Works great in Ubuntu after some fiddling”

Citrix Linux Client 64bit (AMD64) for Ubuntu Jaunty 9.04

This post is record to help myself if I ever decide to do a fresh install again, so it might be a bit messy.  (Posting helps me keep these untitled files off my hard-drive hehe)

Download the Citrix Linux client (v11) from :-
http://www.citrix.com/English/ss/downloads/index.asp
URL mileage may vary, go back to the home page if its not right.

Unpack the tarball and install… e.g.

tar -xvzf linuxx86-11.0.140395.tar.gz
sudo ./setupwfc

Might be missing a ‘cd’ step here obviously…
If run using sudo, default installs to /usr/lib/ICAClient

Confirm it doesn’t run because of libmotif

/usr/lib/ICAClient/wfcmgr
/usr/lib/ICAClient/wfcmgr: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory

Download a 32bit (i386) Open Motif package from :-
http://ftp.ubuntu.com/ubuntu/pool/multiverse/o/openmotif/

Rip out libXm from it…

$ dpkg -x libmotif3_2.2.3-4_i386.deb ./tmp
$ cd ./tmp
~/tmp$ cd usr/lib
~/tmp/usr/lib$ ls
libMrm.so.3      libUil.so.3      libXm.so.3      X11
libMrm.so.3.0.2  libUil.so.3.0.2  libXm.so.3.0.2
~/tmp/usr/lib$ sudo cp libXm.so.3 /usr/lib32/
~/tmp/usr/lib$ cd /usr/lib32
/usr/lib32$ sudo ln -s libXm.so.3 libXm.so.4

Then this stupid error…
You have not chosen to trust “Equifax Secure Global eBusiness CA-1”, the issuer of the servers security certificate (SSL error 61).

Download the root 1 (Base64) Cert from :-
http://www.geotrust.com/resources/root-certificates/index.html
Change the extension to .crt
Copy it to Citrix Installation Path/ICAClient/keystore/cacerts

$ mv Equifax_Secure_Global_eBusiness_CA-1.cer Equifax_Secure_Global_eBusiness_CA-1.crt
$ sudo cp Equifax_Secure_Global_eBusiness_CA-1.crt /usr/lib/ICAClient/keystore/cacerts/

Set firefox to open the ICA with /usr/lib/ICAClient/wfica

Voila…

Need to tidy this post up in the future

Ubuntu 9.04 – Jaunty Jackalope AMD64 (64 bit)

I’ve finally made the jump and using the AMD64 version of Ubuntu as my primary installation.  There are a couple of tricky things to deal with, primarily with closed sourced applications such as Adobe Flash Plugin and Skype which are two applications I need to use.

How to install Adobe Flash Plugin 64 Bit for Ubuntu 9.04

A lot of the tutorials/guides online will tell you to use nspluginwrapper or similar.  Adobe has released an ‘alpha’ version of their 64 bit player which is pretty stable so far…

Download it from :-http://labs.adobe.com/downloads/flashplayer10.html

Unpack the archive and copy the only file to the Firefox plugins folder in ‘/usr/lib/firefox-addons/plugins‘ :-

sudo cp libflashplayer.so /usr/lib/firefox-addons/plugins

How to install Skype 64 bit for Ubuntu 9.04

You would think you could just go to www.skype.com and ask for a download and it’ll be like the Adobe site detecting that you have a 64 bit system right?  Wrong (at time of writing).  Annoyingly that’ll just let you download an i386 package!

You could manually remedy this by downloading the AMD64 .deb package from :-
http://www.skype.com/go/getskype-linux-ubuntu-amd64

Everything else?

So far the respositories have been kind to me… but i’ll update if I run into any other troubles 🙂

Voila happy 64 bit Ubuntu’ing.

MChumby – Interface Design

Working a 70 hour week dampened my enthusiasm for the MChumby but I managed to scrape a couple of hours today to try my hand with HaXe + Flash to prototype the Chumby Interface.

Test of revised layout
Test of revised layout

A few interesting tidbits were learned from the experiments :-

  1. HaXe + Geany are great for developing flash widgets for the Chumby
  2. Gnash doesn’t render the same as Linux Adobe Flash
  3. Chumby renders the same as Adobe Flash
  4. Text vertical alignment in flash is crap

A bit of background and a demo video of the widget on the Chumby after the break.

Continue reading “MChumby – Interface Design”

Compiling a toolchain for ARM7 under Ubuntu

Well this chronicles my first attempt at compiling a toolchain for programming ARM’s in ELF code.

Why do I need a toolchain for programming ARMs?

  1. I found a LPC2378-STK development board in my room
  2. I want to give ARM programming a try (PS WinAVR is great for programming AVRs)
  3. I found I have some spare ARM7 LPC2378’s lying around (WTF?) and thought I’ll actually complete my Chumby Speedometer on my car project!

Continue reading “Compiling a toolchain for ARM7 under Ubuntu”

Cowsay? Madoxsay! Fun (or oh so wrong) things in Ubuntu…

It started with a colleague walking by my desk today and asking me if I had ‘cowsays’ installed on my machine, never having heard of it before he dared me to just try run it.  A short command not found and a subsequent apt-get install later… I didn’t know whether to burst out laughing or slap my forehead.

 ________________________________________
/ This is a very very useful and         \
| productive program available in Ubuntu |
\ and other Debian distributions...      /
 ----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Continue reading “Cowsay? Madoxsay! Fun (or oh so wrong) things in Ubuntu…”

Java not working on Firefox 3.0.4 in Ubuntu 8.10 Intrepid Ibex?

Well it was just nagging me, and for anyone who runs into this problem here’s the solution (to the ever moving Firefox path problem)

cd /usr/lib/firefox-3.0.4/plugins

sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

Assuming you already had the sun-java packages (anyway if not just get it).