Archive for July, 2005

One Geeks messages

Friday, July 8th, 2005

A message to the families
I can’t say anything that will help you in your grief. Mourn your loved ones.

A message to terrorists
Please go away. We don’t like you killing civilians. It’s not good.

A message to soldiers in Iraq
Please act with honour and integrity. Treat people justly please. I can’t imagine how difficult it is but please try.

A message to out leaders
Don’t do anything stupid and hasty. Look how far the hasty action surronding 9/11 got us.

A message to the media
Please give families grieving privacy.

A message to the people
Please don’t go and attack Muslim’s. That doesn’t help anyone.

A message to God
Please heal this planet of the hate that can incite such attacks. Please comfort the families and friends of the victims as they grieve. Please heal the injured quickly.

Please ignore this post unless you are a total geek

Thursday, July 7th, 2005

So the last few days I have been working pretty solidly on a SerialServer. I inherited it from a previous employee at my work. Basically it enables serial devices to be connected to a network. It’s written in C and uses lots of threads.

This week I have fixed about a dozen defects in the code. Interesting ones included setting file descpitors to 0 and checking for -1 as the un-init value. When it is 0 and you write to it under Linux it outputs to stdio (i.e the screen). Other problems selective use of MUTEX’s a lot of them had been commented out. Lots of system calls weren’t checked for errors to.

Ended up adding the select system call before the LAN reads to make it more robust. However on my faster laptop this caused the system to have MUTEX problems. Turns out adding a usleep(1) when no data is found by select works quite nicely.

Using three usbserial (FTDI chips using ftdi_sio.c ) devices under 2.4.28-lck1 was causing the data to stop on one or more devices. However often no error was reported. Sometimes I got race errors and other input errors.

I decided to try a 2.6 series kernel. I decided on 2.6.10 (which I already had on my laptop) and it worked fine. Fixing the USB Serial issues. However I then had to update some of the startup scripts.

However the sound was still not working. The motherboard was a Cyrix MediaGX board. I couldn’t get it recognised. I needed to recompile the kernel using modules for the audio componenets. This meant I also had to update the mod-utils (I used the ubuntu ones). All but lsmod worked fine with the old libc on the target board. So that was fine. I tried compiling a geode-alsa driver I had found. However it wouldn’t compile with the 2.6 kernel. Eventually I tried using the sb module from oss with the irq=5 io=0×220 dma=1 and that worked!

Then I tried playing an mp3. The board was too slow for that and they played with a stuter. However .wav files played fine.

That’s all the issues I know of solved. Now I just need to get the control box working.

Bytes

Monday, July 4th, 2005

Oh dear, I think I am going to be dreaming about bytes, characters, mutexes, file desciptors and arrays tonight.

One Year

Monday, July 4th, 2005

Hard to beleive that one year ago today I left for India. Seems like much much longer ago.

Happy Independence Day

Monday, July 4th, 2005

Just like to wish Pete a Happy Independence Day today.

Ok You can call me

Friday, July 1st, 2005

I have got my old phone going again. Though I don’t have all the numbers on it.

Poor Phone

Friday, July 1st, 2005

My mobiles screen has died. Stupid Nokia phones.. Grr..