Archive for November, 2007

GPS driver for FIC GTA01 in beta

Thursday, November 29th, 2007 by Marcin Juszkiewicz

During night some selected people got link to page on one of OpenMoko servers. After accepting EULA they got gllin package.

What is in package? Gllin binary itself, starter script and set of libraries from OM2007.1 release (OABI). They used “–library-path” option of dynamic linker to use old libraries on OM2007.2 system:

lib/ld-linux.so.2 --library-path /home/root/gllin/lib:/home/root/gllin/usr/lib /home/root/gllin/gllin.real -low 5
lib/ld-linux.so.2 --library-path /home/root/gllin/lib:/home/root/gllin/usr/lib /home/root/gllin/gllin.real -periodic 1

What I do not like is location where those files are stored - $HOME should not be touched by packages… But they will probably change it later.

Now who first will share informations how good it works for him/her?



Audio routing in mobile phones

Wednesday, November 28th, 2007 by Marcin Juszkiewicz

I do not know how it is in other mobile phones but there is one annoying thing in my Sony Ericsson k750i phone. It is how it handle audio…

As phone has FM radio integrated I use it very often. When I go somewhere I usually plug headset (which was provided with phone) and turn on radio. The problem is when someone calls me… The phone starts ringing but it does not use headset for output :( Yes — ring tone is played on internal loudspeaker instead of headset. Good part is that radio playing is interrupted so I have occasion to hear ring and press headset button to receive call. Bad part is that radio is interrupted from time to time sometimes even without calls so it is hard to find out sometimes is it radio problem or incoming call.

If there will be a day that I will switch to Neo1973 (and I hope that it will be GTA02 version) then at least that problem will be solved. Or it will be solvable due to openness of platform.



How Many HTML Elements Can You Name in 5 Minutes?

Tuesday, November 20th, 2007 by Marcin Juszkiewicz

54



Converting ringtones (WMA -> MP3)

Friday, November 16th, 2007 by Marcin Juszkiewicz

Yesterday I had occasion to play with HTC Touch Dual smartphone. Nice phone, comfortable formfactor, a bit crappy keypad. No WiFi or GPS but HSDPA/UMTS/EDGE present so it can be used for browsing net.

And it has nice ringtones :) I grabbed few of them to use with my SE k750i phone but they were in WMA format and my phone handle only MIDI or MP3 ringtones. So converting is required…

How to convert WMA to MP3 then? There are many ways.

First method require use of Mplayer and Lame:

mplayer -ao pcm:waveheader ringtone.wma
lame -h audiodump.wav -o ringtone.mp3

Second way require GStreamer and lame plugin:

gst-launch filesrc location=ringtone.wma ! decodebin ! lame ! filesink location=ringtone.mp3

As a result I got ringtones in format accepted by my phone.



2.6.23 on Tosa

Thursday, November 15th, 2007 by Marcin Juszkiewicz

Thanks to work done by Dmitry Baryshkov we have 2.6.23 kernel working properly on Zaurus SL-6000 (Tosa). Ångström images are already present so users can test how does it works for them.

Today I reflashed Tosa with fresh build and did some testing. We still have problem with framebuffer (famous yellow lines) but otherwise it looks quite good. USB host is working very nice — I connected few devices:

root@tosa:~$ lsusb
Bus 1 Device 9: ID 1457:5122
Bus 1 Device 8: ID 046d:c70a Logitech, Inc.
Bus 1 Device 7: ID 046d:c70e Logitech, Inc.
Bus 1 Device 6: ID 046d:0b02 Logitech, Inc.
Bus 1 Device 5: ID 0a46:9601 Davicom Semiconductor, Inc.
Bus 1 Device 4: ID 05e3:0606 Genesys Logic, Inc.
Bus 1 Device 2: ID 0bb2:0302 Ambit Microsystems Corp.
Bus 1 Device 1: ID 0000:0000

Detailed checking as to wait until I charge this device to 100% because now it shutdown after few minutes.



GIT and I do not match

Wednesday, November 14th, 2007 by Marcin Juszkiewicz

For both of my desktop machines I use git kernels and from time to time I add some additional patches to get something experimental to test. By default I use “quilt” to manage patches so my usual kernel session looks like:

quilt pop -a
git pull
quilt push -a

And as a result I have updated kernel with all my patches applied. If one of them do not apply I usually do updating by hand and call quilt refresh or search for newer version of patch.

Today I decided to do another attempt to use just GIT for managing my patched kernel tree instead of using GIT + quilt. And I failed :(

I cannot understand why GIT developers say that they hate CVS but follow its way when it comes to merging stuff… If any operation ends in merge conflicts all you get is file with CVS conflict markers inside. You need to call merge tool by hand, resolve problem, add files back to repository (do not ask me why adding files already known to SCM is needed) and tell that you resolved conflict. Even CVS or Subversion does not works that way…

I like the way it works with monotone — if there is conflict during update (so git pull like) merge tool is called (kdiff3 on my system) and user has to resolve all conflicts before monotone will go into next step. Whole merging stuff is then stored as another revision (with git it can be then remove during git rebase).

Maybe one day I will find a way to get familiar with git but it is not today…