Some black magic: bash, cgi and file uploads

Before you declare me an insane old man, I have to say, that I needed it for an embedded board with only 64MiBs of RAM. And (mostly due to the specifics of the tasks), I ended up using bash hooked to lighttpd via cgi. Bringing on heavy artillery (php or python), really complicated the task, since I mostly needed the outputs of different shell utils.
Anyway, I quickly got to the part where I needed to handle POST requests to upload binary files. First, I googled for a solution, and one of them eventually did what I needed. But alas, it had a drawback.

Windows XP: transferring an installation from one partition to another (worst case)

Okay, a lot of people hate windows these days, few can say why.
A have quite a few reasons to do so. Especially, since quite a few retarted developers write software that I _have_ to use, to get some the work done, I eventually have to boot it, and, even, work in it. Luckily, thanks to the fact emacs feels nicely even there, that’s not big deal … But the tale is about how I wasted a whole evening trying to move a windows installations from one hdd to another. If in case of *NIX that takes a few minutes and a few config files to edit, here… Well, it’s a different reality.
So, my setup:
Old hdd, now in a usb-hdd enclosure:
/dev/sdс1 – / of the installed linux (Agilia)
/dev/sdc2 – swap
/dev/sdc3 – A temporary field for experiments with moblin/android x86/etc
/dev/sdc4 – WinXP

On the new drive, now fitted into my asus n10j the table was as follows:
/dev/sda1 – A spare place for Windoze
/dev/sda2 – / of Arch Linux
/dev/sda3 – swap


XC3S100E, STM32F103ZET6, clocking and such stuff.

Okay, lately I’ve been quite busy routing another killerboard with a friend of mine. With STM32 and Xilinx FPGA on the memory bus. These babies are intended for use in some robots, will post some details later. If I get a chance.
Anyway, the boards arrived, I quickly ported my Xilinx-sscu driver to bare metal and… pooh, it didn’t work.
It took me quite a while poking with an osclilloscope: I adjusted delays, added caps to CLK & DIN lines to remove spikes – same shit. Then I accidentally disabled the oscillator for the FPGA… And guess what – it worked. I enabled the oscillator after config was done – the FPGA started blinking happily. WTF?
Looks like I’ll have to add another wire for toggling oscillator from uC.
No sources or kicad circuitry YET. Just a pic of the board for now, it’s in REALLY early testing stage.