Public Syndication

LCA Day 4

Well, the conference is nearing its end, and yesterday morning it was showing. Wednesday night finished up rather late.

Yesterday I had a look at Rusty Russell’s talk on advanced C programming. Very enlightening, although much of it went woosh over my head due to my state of sleepiness and the speed of the presentation. In particular, it introduced the Comprehensive C Archive Network (the logo and concept is a blatant copy of CPAN) which I will definitely have a look at, as I find myself coding in C more and more.

I also had a look at the Dili Village Telco, which is making a big difference in Timor Leste (East Timor). I wonder though… now that people have been saved those long 3 hour walks, is there now a looming obesity crisis in Dili? Hopefully it’s compatible with the Serval BatPhone, as I can see the two being quite complementary once the economy picks up enough for people to afford the Android devices required.

Lunar Numbat brought up some interesting concepts. In particular, the use of 8051 hardware surprised me. It seems high integration and radiation are not a good combo, unless you want to see your bits flipped randomly. I do worry about the MCP2515 CAN controller in use though — that thing gave us lots of grief in an electric harvester project (a lot of data corruption issues in fact, frames about-to-be transmitted would frequently get their data payloads overwritten by received frames before being transmitted).

I learned a bit more Perl tricks. Perl is quite a nice language really, and gets unfairly called “executable line noise” (which can be done in any language). I finished up with a discussion on how to disassemble flamewars and extract useful information.

The Penguin Dinner went down well, another late night but quite enjoyable. We didn’t do so well at the trivia, but I chucked in $50 to the flood effort. It finished again after 10:30PM, so another late night. Thankfully I wasn’t riding the bike home.

LCA Day 3

Well, this day the conference got on in earnest. Tuesday I spent almost all my time in the Parallel computing conference, which was very interesting.

The first session was, let’s just say, very interactive. Dr. Vinton Cerf giving a presentation on the implications of parallel computing on network infrastructure, wound up being as much him teaching us, as the rest of us teaching him. A true two-way exchange, with the added challenge of hearing aids deciding to turn themselves off without warning. 😉

That, and the discussions into FPGAs were very interesting, but sadly, I won’t be messing with FPGAs for fun at home. Too expensive, and sadly the companies involved seem to think that something is at stake by being truly open. (Yes fellas, release a FPGA with fully open tools, and I may consider trying out your product! Keep the status quo, and I’ll keep ignoring you!)

Yesterday started off with a very pertinent talk from keynote speaker Geoff Huston discussing IPv6 and the impending shortage of IPv4 address space. (i.e. we run out in February this year. Hint hint iTel!)

The direction that the commercial interests are pushing the Internet in is certainly a sobering thought. I myself run a dual-stack network, and I intend to code what I can to support IPv6 from the outset, however there is a hell of a lot of inertia to overcome on this issue. Non-technical minds are touting NAT as the solution, which still only gives us 48 bits of effective address space. Yes, fine for a small network, but globally it’ll be a nuisance. And NAT makes it harder to trace offenders.

We’re in for interesting times with X by the looks of things, with a lot of code moving out of userspace and into the kernel. That, and multitouch adds a whole new layer of complexity — largely because the hardware cannot tell us much about what the user is doing, we have to make an educated guess. That’s going to be fun to code for!

I was hoping to see the talk on ARM Device Trees by Jeremy Kerr, but sadly that got cancelled. So I prepared to pack up and check out the HTML5 discussions, just as I do so, a horde of people stream in. The HTML5 lecture had moved to the room originally slated for the other lecture. So I stayed put. HTML, CSS and JavaScript have come a long way in the last few years, and some of the things that are now possible make definite food-for-thought.

Sadly most of it leaves IE users out in the cold, but perhaps that’s payback for all the ActiveX and IE-only sites out there. I certainly will be making no special effort to support this browser.

Last night was a late night at the Professional Delegates Networking Session, a bit of confusion as to whether dinner was provided or not, when it started, and for some, where to go. It seems if you ask a Tom Tom GPS for directions, it’ll point you way over in the direction of West End. If you ask Google Maps, it’ll direct you to the Queensland Museum. At least a few of us locals could point the way. 🙂

The networking session lasted ’till after 10:30PM, at which point I made the long trek home on the bike, arriving at midnight. Needless to say I’m sitting in the back row of F509 now, somewhat zombie-like, and I gave the bike ride a miss today due to the late night. Hopefully the cup of tea before Rusty Russel’s lecture will wake me up. 🙂

LCA Day 2

Yesterday was great. A lot of interesting discussion on Ardunio and the business of Open Source, particularly the commercial implications of the GPL. Well worth seeing.

Today has been good so far too. Been in N515 listening to the parallel computing talks, and it has been very interactive as well.

Whilst listening, I’ve set myself up on the unofficial LCA planet (in leiu of the official one) and I’ve duly noted the LCA2011 simplex frequency of 145.525MHz into my handheld … I’ll programme the FT290 later. Other radio amateurs at the conference may wish to have a look at this page I put together yesterday.

LCA: Lemote boxes

Well one Lemote Fuloong 2F system has already been given away, and the new owner has been asked to try and find out about them.

Some of you may be aware of some Lemote related resources on my devspace.  I’ll try to get some Fuloong 2F stuff up there,  but I’m flying blind as I don’t have one of these systems.  The netboot and LiveUSB image you see online is for its older cousin based on the Loongson 2E CPU, and won’t work on the Yeeloong or the newer Fuloong, as the graphic chipset and northbridge differ substantially. The stage 3 tarballs (MIPS I or MIPS III little-endian) will work however.

I’ve got one of the Fuloong 2Es onto the case now however, we’ll see what we can get achieved over the next few days.

LCA2011 Day 1

Well, here I am.  Just registered and watching the stream flowing into the rego desk.  It’s not a queue, it’s the whole alphabet.  The only queue I’ve seen longer recently was the one to the checkout at the local shopping centre just before the flood peak.

Journey between The Gap and Kelvin Grove along Waterworks Road/Musgrave Road (to the Normanby Fiveways) took a bit over an hour, had a good conversation on the Mt. Cotton repeater, but evidently I’ve got a connection issue with the antenna.  That, and a bump just severed the connection between the battery and fuse holder, so I shall be riding home in silence tonight.  (Not the first time this has happened either.)

Not sure what to expect today, being my first time, guess I’ll find out.

On other news, Gentoo/MIPS I Big-endian stage 3 got uploaded last night.  Builds for other ISA levels continue.

Going with the flow

Well, that pretty much explains me the last few days.  Haven’t really done much planning, just been taking it one day at a time.  Ironically, it’s exactly what I recall seeing as the theme for linux.conf.au this year.  The very same year that the Brisbane and Bremer rivers decided to get out of bed and visit the neighbourhood.  Pity neither river thought to wipe their feet before flowing through peoples’ houses, leaving a trail of smelly mud behind.

Saturday and Sunday were spent over at Kenmore helping out my grandparents with the clean-up effort there.  As I was home alone, I relied on my one and only form of transport, the bicycle, riding (and walking) Gap Creek Road between The Gap and Brookfield.  Surprisingly, I can do that run in a bit over 1:20 or so, not bad for pedal power alone, and with a trailer loaded with gas bottle and camp stove to boot.

And of course today, seems I was a glutton for punishment, fronting up to Graceville State School and signing up to volunteer there along with my father.  So very little time spent in front of the computer this weekend.  Apart from the nasal assault the mud inflicted as we drove around Graceville area and the tiredness from all the running around, things aren’t too bad.  Our house here in The Gap suffered no ill effects from the floods.

Gentoo/MIPS builds have plodded along, I had to re-start the Qube2 building MIPS4 little-endian builds as it crashed for some unknown reason.  The O2 is busy building MIPS1 Stage 3 now as I type this.  The little-endian builds for MIPS1 and MIPS3 are already online in my devspace.  I’ll see about getting these moved to mirrors when the others are up too.  Cobalt users;  MIPS4 builds will be some time yet, if you’re desperate, the MIPS3 ones will work.

I’ve only uploaded the stage 3’s for now, since the stage 1’s gave me a slight hiccup with regards to python-wrapper, if you really want a stage 1 or 2 image, just throw the stage 3 at catalyst.

I did plan to try and at least get something going on the netbook as a bit of show-and-tell for linux.conf.au, which is rapidly approaching.  I probably won’t get time, but at least it’s working, so I’ll leave it for now.  I will definitely be there next week.  Those in the Gentoo community, we should definitely meet up at some point.  If you see someone riding in, looking like a postie with a bike downgrade, it’s probably me, particularly if the bike in question has an antenna or two mounted on it.

VK4MSL/BM on 2m

VK4MSL/BM on 2m: side view, will probably be seen at LCA2011

I’ve been ambushed by people lurking around it before.  I probably won’t have the coolie hat with me (too awkward to carry on a bicycle, and of course I can’t wear it with the helmet) so in terms of visual queues, that’ll have to do.  I’ll likely also be on the 2m band a lot whilst in-transit between The Gap and QUT where LCA2011 is to be held, so expect to hear me on 147.075MHz (VK4RAX) and 146.875MHz (VK4RBS) repeaters.  Sadly, no APRS yet, so you won’t be able to track me that way for now.

This week, a lot of nets and club activities also resume, including the Brisbane Amateur Radio Club, who meet at the Queensland Maritime Museum just across the water from LCA2011 at 7:30PM that Friday (the 21st)  for a business meeting.  Despite it being largely for business, we welcome anyone wishing to come across and say ‘ello.  Amateur Radio and the Open-Source community do have a lot in common.

In short, I’m cracking the whip on the O2, and hoping to have at the very least, MIPS1 big-endian builds up by the start of LCA2011, and I hope to meet a lot of you at this year’s LCA, which will be the first time I’ve attended one of these events.

We’re still dry

For now at least…

Rain is continuing to pour down on us here in The Gap (Brisbane North) and while the gutters resemble little rivers at the moment, things aren’t too bad. Elsewhere in Brisbane, things aren’t so great.

For those who have been “praying for rain” in this area, you can stop now, we’ve had more than enough!

The following is a photo of the cycleway/footpath underneath Walton Bridge. Enoggera Creek is flowing well.

Enoggera creek at Walton Bridge

Enoggera creek at Walton Bridge (Photo Credit: David Longland)

Flood maps

I have made a mirror of the Brisbane City Council flood maps here. (And I’ve just fixed the file permissions.  Seems Down-them-all chmods the files 0600 and I forgot to chmod them 0644.  Ooopsie!)

Amateur Station Status

Given the emergency situation in the SE QLD region I have the station operational at my home QTH in The Gap (Locator QG62LN35CA).

Frequencies being monitored:

  • 147.075MHz FM Mt. Cotton Repeater VK4RAX (on handheld)
  • 476.525MHz FM Channel 5 UHF CB Emergency Repeater (periodic check)
  • Numerous repeaters in the Brisbane area (periodic check from FT897D)
  • 146.500MHz FM 2m National Calling Frequency (periodic check)
  • 439.000MHz FM 70cm National Calling Frequency (periodic check)
  • 3.600 MHz LSB WICEN/IARU Region 3 80m Emergency frequency (periodic check)
  • 7.075 MHz LSB WICEN 40m frequency (periodic check)
  • 7.110 MHz LSB IARU Region 3 40m Emergency frequency (periodic check)
  • 14.125 MHz USB WICEN 20m frequency (periodic check)
  • 14.300 MHz USB IARU Region 3 20m Emergency frequency (periodic check)

Gentoo/MIPS O32: New builds

Recently, a new version of binutils was released.

I had reported earlier about some patches needed to work around errata bugs in the Loongson CPUs.  There were also some other big updates since.  GCC 4.5 and Perl 5.12 have both been unmasked, enough has changed to warrant a rebuild before things get too far out of date.

This release will come with binutils-2.21 which incorporates many fixes for linker issues on MIPS, as well as the Loongson errata.  I have successfully compiled KDE 4.5 using a CVS HEAD version of binutils snapshotted around the time that the 2.21 branch was created, and found that it has fixed quite a few issues.

If you haven’t upgraded just yet, hold on a few weeks and I’ll have new stages up for all to try out.  MIPS-I Little-Endian is building now as I type this, I’m in the process of building seed stages for big-endian builds.  MIPS-III and MIPS-IV little endian builds will begin very soon too (before noon AEST).

I expect I should have most of the little-endian builds up before new year, and the whole release out in early January 2011.

VMWare Server 2.0: How web-based fails and a work-around for the masses

Well, I’ve recently gained some employment where I’m making use of VMWare Server to run a Windows 2003 virtual machine.  This VM runs ION Enterprise, Schneider Electric’s energy management package.  The project I’m working on will involve communicating with this software package.

Now, I’m working from home, and luckily I had the foresight to upgrade my desktop (actually, my hand was forced, the old one died) and I settled on purchasing a new 64-bit system based around the AMD Phenom II X6 1090T, which amongst other things, features the AMD-V virtualisation feature.  I’ve used it with VirtualBox OSE and it runs rather well.  However, for this job, the image I had was for VMWare.

Yes, I could “convert” it over to running on VirtualBox, but what if the hardware was different?  Windows doesn’t like that sort of thing.  The CPU changing model would be bad enough, and there was nothing I could do to prevent that, but I wanted to keep as much identical as possible.  So I began by installing VMWare.  There were two options I considered; Server and Player.  I figured Server had some nice features, one of which being that I can access the VM remotely.  I often like to work on the front verandah at home where there’s a nice cool breeze, this would enable me to run client software on my laptop and access it via the network.  Sounds good.

Sounded good.

The web interface firstly, relies on SSL 2.0 as its means of security.  Ewww! SSL3 was out in 1996, why are we using a security protocol that’s so old, and fundamentally broken?  Well, I’m not sure whether SSL3 is absent, or broken with regards to Firefox, but Firefox sure doesn’t like it, and won’t talk to the web interface until you apply one small hack to about:config, which enables SSL 2.0.

Now, once that’s done, you can at least log in and do things with the server.  All well and good.  I had some fun and games getting the image to boot, it turned out the disk image set for one of the drives was in the wrong place.  Some symbolic linking fixed that, and I had Windows 2003 booting.  No worries, but where’s the screen? I’ll come back to this.

VMWare Server 2.0 abandons the remote console it appears in favour of a web interface.  They don’t mention this in the documentation however, and when I at first couldn’t get at the web interface, my first instinct was to just install app-emulation/vmware-server-console. At first it refused to start, I had to apply some patches and install libraries from here to get it to even come up, lest I got a message about undefined symbols. It’s times like this I really begin to despise closed-source software. The clincher though was when I tried to log in, I was confronted by this:

Unable to connect to the remote host: 501 Global command GLOBAL server-vmdb to non-host agent targets not supported.

No one seems to know exactly what that geek-speak gibberish is supposed to mean. Best I can ascertain is that current versions of VMWare Server Console are for VMWare Server 1.0, and not compatible with its more modern counterpart. Everyone’s solution was to “use the web interface”. Now prior to that SSL hack, all I’d get is the server slamming the door in my face. Firefox would refuse to connect remotely. I discovered I could log in when running a local Firefox instance on the machine running VMWare Server.

That’s fine, got the VM set up and booting, try to bring up the screen. At first it needed to install a plug-in for the VMWare console, that’s fine, I do this and restart Firefox (3.6.8), then try again. I click on the screen area. It sits there for what seems like 30 seconds doing nothing, no acknowledgement that I had clicked it, I clicked a few times before it finally informed me:

Cannot access virtual machine console. The request timed out.
The attempt to acquire a valid session ticket for "Windows 2003 Server" took longer than expected. If this problem persists, contact your system administrator.

I did exactly what it said. I conversed with myself at considerable length to the problem while I researched the problem. I drew blanks every time. F$#!% VMWare, what ever happened to a desktop client?! Heck, why not open a VNC port or something?

Further research seemed to suggest it was a glitch with Firefox 3.6. On a hunch, I fired up VirtualBox, and started up a Windows XP VM which had IE8 installed. Pointed that at VMWare, and voila, I was in. It seems extremely silly to require another VM (a competing VM no less) to access the first, but at least I had access. That got me thinking as to whether I could coax the plugin to work somehow.

This morning, I had another crack at it. Looking in the Mozilla extensions, I noticed the following directory structure:
stuartl@beast ~/.mozilla/firefox/new7diw5.default/extensions/VMwareVMRC@vmware.com $ find . -maxdepth 2
.
./install.rdf
./plugins
./plugins/vmware-vmrc
./plugins/bin
./plugins/np-vmware-vmrc-2.5.0-122581.so
./plugins/vmware-vmrc-daemon
./plugins/xkeymap
./plugins/vmware-desktop-entry-creator
./plugins/lib
./plugins/open_source_licenses.txt
./plugins/share
./plugins/vmware-vmrc-legacy
./plugins/libconf
./install.js
./components
./components/xpcom-vmware-vmrc-2.5.0-122581.xpt

Ohh, a bin and lib directory? Interesting. I had a peek inside.

stuartl@beast ~/.mozilla/firefox/new7diw5.default/extensions/VMwareVMRC@vmware.com/plugins $ ls -l
total 904
drwxr-xr-x 2 stuartl stuartl 4096 Dec 15 17:17 bin/
drwxr-xr-x 61 stuartl stuartl 4096 Dec 16 07:25 lib/
drwxr-xr-x 4 stuartl stuartl 4096 Dec 15 17:17 libconf/
-rw-r--r-- 1 stuartl stuartl 684016 Oct 10 2008 np-vmware-vmrc-2.5.0-122581.so
-rw-r--r-- 1 stuartl stuartl 201997 Oct 10 2008 open_source_licenses.txt
drwxr-xr-x 4 stuartl stuartl 4096 Dec 15 17:17 share/
-rwxr-xr-x 1 stuartl stuartl 738 Oct 10 2008 vmware-desktop-entry-creator
-rwxr-xr-x 1 stuartl stuartl 738 Oct 10 2008 vmware-vmrc
-rwxr-xr-x 1 stuartl stuartl 738 Oct 10 2008 vmware-vmrc-daemon
-rwxr-xr-x 1 stuartl stuartl 738 Oct 10 2008 vmware-vmrc-legacy
drwxr-xr-x 2 stuartl stuartl 4096 Dec 15 17:17 xkeymap/

There were no executable bits set at the time however. They are AMD64 binaries however. So I chmodded and tried running vmware-vmrc. It failed due to some other permission errors, particularly lib/wrapper-gtk24.sh, needed execute bits set too. After fixing that, and some permissions on ~/.vmware which wound up being owned by root, I was looking at the VMWare Remote plugin … running stand-alone.

VMWare Remote Console plugin

VMWare Remote Console plugin, working stand-alone

This is about as close as I can get to a separate app. It took a bit of experimentation to get this to work, but in the Hostname field, you need to include the port number; so in my case it was localhost:8333. The rest is fairly self explanatory. I still can’t log in via the web interface, but at least now I can get in without a second VM.

Ohh, another rant, they forgot CTRL-ALT-DEL. Luckily, there’s this. Use the numeric keypad dot (also “del”), that seems to work here.

New toy

I picked up a few new toys recently.  I’ve been looking around for a small microcontroller based device to act as a combined remote face / DTMF generator for my FT897D.  The idea is that this device could interface with the FT897D via its CAT port, and allow me to adjust the frequency and mode, recalling the information from internal flash or an SD card.

The remote face would then be mounted on the front of the bicycle, and connect to the radio at the rear to allow easy bicycle mobile operation.  An extension of this would be control of a separate 2m radio, and a GPS to allow APRS from the bicycle.

The idea was to have the memory work like a relational database.  Rather than just recalling memory channels, and having a big long list, I could scroll through the repeaters by callsign, location (service area), or combined with GPS, proximity.  Modern flash technology would make this easily doable.

Likewise, for DTMF, rather than having to carry around a cheat sheet or remember IRLP node numbers, wouldn’t it be nice to just be able to scroll through a node list by country/region/callsign, select one, hit the “Call” button, put your callsign across and have it automatically dial the moment you raised the PTT?

I don’t have the ability to manufacture PCBs of the standard required for ICs such as most 32-bit microcontrollers.  SOIC is about as fine as I can muster, and prototyping services are expensive.  Thus I was looking for a stamp module or premade board.

Luminary Micro (now TI) make a few nice ones, and during my work at Laidley, I got to use the LM3S8962 Ethernet/CAN evaluation board.  One nice feature was that it had the JTAG built-in via a FTDI USB-serial chip.  However, the licensing for the board support package irks me — despite their code being useless on anything other than one of their chips, they still see it necessary to modify the BSD license adding a clause that prohibits its use on non-TI microcontrollers.  I had a crack at writing my own “free-software” Stellaris library, but haven’t gotten that far with it.

I happened to stumble on this board based around the STM32F103VET.  They were being sold on eBay for about $60 at the time, so I decided at that price I’d buy three.  ST’s driver library appears to be very liberal in its licensing (in fact they claim there is “no license”, I don’t know if this means “public domain”, or whether I treat it like BSD).

The LCD panel uses the Ilitek ILI9320 display controller with internal graphics RAM, and is capable of 18-bit colour.  The board also features a RTC backup battery, Texas Instruments TSC2046 touchscreen controller and on-board RS232 level converter.  The STM32 also functions as a USB peripheral, and can be programmed using the stm32loader bootloader script via RS232.

Interestingly, the LCD controller documentation states that no part of that documentation may be reproduced without written permission.  I’m not sure if writing an open-source driver classes as “reproducing” the documentation (as I’d be making documented #define statements in C).

The devices come with example source and have a pre-loaded µC-GUI demonstration on them.  So far I’ve managed to distill enough out of these sources to get working touchscreen, LCD and UART.  I’ll probably start looking at FreeRTOS next and seeing if I can get a workable device going.

STM32F103 board

STM32F103 board running a simple "Hello World" app

Hello world application for STM32

Hello world application for STM32

Guess now I had better start planning my application. 🙂