Vincent Sanders: What is it with embedded computing?
Now I am a fairly competent engineer, I have worked with the ARM processors and SoC for many years. It should not therefor take me four days of almost continuous frustration to get a bootloader and kernel onto a system, but it has.
Firstly the system arrives and we look it over, the hardware design is not exactly elegant but seems like it will get the job done. That is at least a step up from several previous offerings which have been just plain broken. So I power it up and it boots into Fedora core 8, possibly not my first OS choice for a diskless system, but it does work.
Perhaps its worth mentioning that my experience with doing any Open Source development has caused me to have a severe aversion to software which is not upstream, especially kernels. The effort required to run your own patch series and keep it up to date is nothing short of Herculean.
Let us be honest, how many developers do you know who are talented enough to generate good code and patient enough to separately maintain it over a long period of time? I shall not belabor this point as others have repeatedly made it for me in much more eloquent ways. Lets us just say from my point of view. Upstream - good. Long term forks - bad.
With this in mind, the solutions Simtec develop are always with a view to our customers being able to simply download and use the standard upstream software wherever possible. Here is where the story stops being smooth and becomes a rant.
The system was running 2.6.22, one that was patched all which ways. "maybe they just shipped an old kernel" I thought. I opened the CD they provided and...oh, OK its just zips and tarballs of the binaries and source they used (actually that in itself is a minor miracle with a lot of vendors right now - see the almost continuous stream of copyright infringement litigation from the FSF) but sill stuck back in July 2007.
So i did teh normal thing, entered the URL printed on the outside of the box and went looking for the updates. No dice, just the same old stuff. So I contacted the company and recived the news that no there were no updates, that was what was published for the device, thats what I could have.
My initial reaction was of tired resignation...this would not be my first SoC port (probably around the fifth or sixth!) So I responded with cd linux-2.6;git checkout master;git pull and went to see what I could see. and lo and behold, there in the kernel, was full support for not only the SoC but for the other version of the very board I had.
Fortunately after mentioning this on IRC my giraffe loving friend. pointed me at the correct community git tree to find the tiny patch required to support my board.
So the vendor was not only shipping old code but actively dissuading customers from even looking for new stuff, which it turns out was mainline anyway! To add to this somewhere along the lines the company name on the box and contact information has changed and...well confusion reigned.
Right Plain sailing from here on? not quite...that would have been too easy. So you can build a mainline kernel...but you cannot boot it. you guessed it the bootloader they ship on the board is ancient, specifically a u-boot fork from December 2005. Having finally figured out how this was going to go, I went to the uboot repo, pulled the latest and built it for my target. And then I needed to upgrade the u-boot and joy of joys bricked the system.
Fortunately the system has a integrated FDTI serial/JTAG port so re-writing the flash should be as simple as running openOCD configured correctly. Of course this did not work...in the end I resorted to running their binary built versions from the CD (tarfile inside a zip inside a tarfile...whatever) and wrote their original image back to the board...which worked.
Long story short, next day I discover that i need a magic different uboot target (make u-boot.kwb for those that care) write this with the binary openocd build and...success
From then on its all been a bit anticlimactic and straightforward and I now have a system capable of starting a kernel over the network and a root fs on network, disc or flash.
My main complaint from all of this is what the hell are vendors doing shipping crap like this? Why do they all insist on taking a dreadful code drop from the SoC manufacturer when they first brought the part up and shipping that prototype junk until the part reaches the end of its life?!?
All the usual excuses about support etc. will come out, but seriously, you recive *no* support from vendors unless you pay for it and even then they will simply tell you whats on the CD is "it". Btw the diff for u-boot to support this board is larger than the original sources and the 2.6.22 is attacked with a 65MB diff which cannot be good.
The Open Source option is continuously innovating and improving, producing ever better software...but the embedded world seems to be forever stuck shipping crap. Is this just me? Does anyone have any solutions? Or am I stuck with this until I change profession?
I've recently gotten myself an
Collabora was kind enough to buy N900s for all its employees. Yay! I
got mine on Friday and has been playing around with it quite a bit.
It's very shiny and the user experience is a lot better than the
N810. There are a few graphical glitches, it seems it's XDamage
damaging a bit of a window and it's just not quick enough to repaint.
Not a problem, and it has far fewer instances of just hanging for half
a second which my iPhone has. That is, it hasn't had any of those
yet.
The screen is good, but resistive. Takes a short while to get used to
when you're used to capacative, but it's not a problem at all. The
keyboard is good, but I need to map something as the compose key.
Having US/UK key caps and using the Norwegian layout is a bit
confusing. Not really the fault of the device though.
The web browser is generally quite good. The gestures take a bit of
time to get used to, but they're not hard as such. Some of the
default "applications" are implemented as just links to the web pages
of services like Twitter, which is a bit silly as you don't even get a
version that's optimised for the N900. They're not useless, but they
are absolutely nowhere near a real application. Also, the "Store"
(Ovi Store) application/web page says "coming soon", which is quite
odd.
I'm not sure if I can change the selection of applications on the
default application list, but modifying the desktop is easy. There
seems to be few themes and background images available so far, at
least in anything resembling official repositories. Hopefully this
will improve over time.
So far, I haven't actually written any code for the N900. I have some
applications I want to write, mostly widget-style apps like "when does
the next bus home leave from a bus stop close to me and where is the
bus stop", but also some other ones.
Battery life is not great. It almost did 48 hours today with a bit of
use underway, and I did charge it before it ran completely out, but
when I'm used to closer to a week, it's not that good. Camera seems
good and is quite fast, I think it took less than five seconds from
opening the camera shutter until I had taken a picture. Shutter delay
is quite bad at about a third or half a second, but this is a mobile
phone (or mobile computer, as Nokia likes to call it) and not a DSLR,
so I'm quite happy with it.
As a phone, it seems fine so far. I can make calls and accept calls
and there's no noticeable problems with it. It also functions as a
modem/DUN over bluetooth, which is quite useful.
Build quality seems good, there's a good feeling when sliding the
keyboard in and out, but only time will tell how good it actually is.
So far, I'm happy with it, it's a big step up from my previous UK
phone (which is a Nokia E70; my iPhone is a 2G phone so I can't use it
here with the provider I'm using). Hopefully I'll post more happy
stories about it in the days to come.
Having excitedly bought an
I've been watching some good films recently. Two I especially liked.

Still, I felt so much more at home in Tulpan. Kept pausing it to check out
how the family had their
As is becoming my custom, I'm planning to spend much of December and
January on the road. This time I'll be in Seattle, Japan and Wellington,
New Zealand. Here's the rough schedule:

I have an imaginary automobile. It is the finest hybrid
of German and Japanese engineering. It has a peppy little
engine and a turning radius so small it would make a baby
camel cry, and a six-speed manual transmission, and it is
powered by the urine of vegan bears.
My imaginary father asked me why I would possibly want to
buy an imaginary car with a manual transmission. Obviously,
whichever marketing campaign brainwashed him in the first
place wasn't strong enough on the memetics, because after
borrowing my imaginary car, he shut the hell up. You see,
it's considerably more fun to drive than an automatic.
There are other benefits as well, of course. The primary
one is that the transmission does what I want.
An automatic transmission is configured for maximum comfort ,
so it wastes a lot of power when shifting. With a manual,
you can slip from gear to gear with minimal clutch time, or
in some cases, if you're feeling sassy, without using the
clutch at all. You can control your engine speed so that
your shift will be just as smooth as an automatic without
the egregiously long clutch disengagement or shift overlap.
You also can see the road in front of you, so you're always
going to be smarter than an automatic transmission, unless
you don't understand how slopes work or what collisions with
other cars mean to your well-being.
Now some NRA member is going to point out that you can get
a shift kit and tweak your automatic to be less awful.
While spending money on this type of thing sounds like
a great idea, a shift kit is not going to bring an
automatic into the same league as my car. I can still
start the car when the battery's dead. I can get higher
fuel efficiency (vegan bears don't exactly urinate for
free). I can shift into fifth gear, and coming from a
full stop, drive up a hill without stalling (this is
particularly useful when a squirrel has gnawed the teeth
off of all your other gears). Furthermore, shift kit
or not, an automatic is absolutely no fun.
Someday, when transmissions have advanced into the realm
of liquid hyperspace buckminsterfullerene cones that
commune with the unicorns, and they'll have cameras and
radar feeding the car's computer with useful information
about its surroundings so it can make intelligent shift
decisions faster than a human. Then I'll have to choose
between saner and more fun. That era has not yet arrived.
This is a lousy metaphor for debhelper.
I've been using virtual machines (KVM, these days) as isolated environments to do things like build packages as root. Unfortunately, some of these activities require decent-sized chunks of random data (pulled from /dev/random). But /dev/random pulls from the kernel's entropy pool, which in turn is replenished from "hardware" events. But a virtual machine has no actual hardware, and if it is only doing isolated package builds, there is very little activity to feed the kernel's entropy pool. So the builds and test suites that rely on this randomness all hang for a long long time. :( My current way to get around this is to replace /dev/random with the /dev/urandom device, which does not block if the entropy pool is depleted:
GPE packaging (at least for my own packages in GPE) has been added to