Rick's b.log - 2013/08/03 |
|
It is the 24th of November 2024 You are 13.58.203.255, pleased to meet you! |
|
mailto:
blog -at- heyrick -dot- eu
That said, midsummer - sadly - is way past us, the holiday coincides with the bringing in of the wheat harvest, it's coming to the end of the agricultural cycle for another year.
As a small anomaly, the woman at the supermarket checked the Livebox for return and ensured that both it and the power brick were there. She then said "you don't need to give back this stuff" and handed me the ADSL cable, the line filter, the short network cable, and the Livebox-to-phone-socket adaptor. Bizarre, but hey, spare parts are always useful!
Then it rained. I mean, Epic Rain. It chucked it down. But then, on and off it has chucked it down in style as wave after wave of thunderstorm pass through. Laval and Caen were flooded, several times. We were at a large supermarket during one downpour and mom was concerned about the roof. Nothing happened, but a short way up the road the roof of a supermarket failed. It didn't collapse, thankfully, but there was a ten metre long waterfall in the middle aisle.
People tend to forget that while they might enjoy insufferable heat and relish the opportunity to douse themselves in skin cancer, anomalous weather does not arrive without a penalty. This is why it is preferable to slide into seasons, instead of hopping from 18&dec;C to 32°C...
Me?
I don't do BBQs.
I do pasta:
Oh, and pancakes:
I know that Andy Warhol said, in '68, "In the future, everyone will be world-famous for 15 minutes", and that as a leading figure in the pop-art movement, he might have thought to use Perrier cans instead of Campbell's soup cans; however I wonder if he anticipated having his name scrawled across cans of bottled water forty five years later?
My previous incarnation of the DDE dates from the Castle/Iyonix era, but in terms of the ARM processor, quite a few fundamental things have changed since then. The biggie is the issue of unaligned loads - that is, addresses on the ARM processor are supposed to be "aligned" to a word boundary. A word is a 32 bit value, or four bytes, therefore the address you load word-sized data from should be an address divisible by four. Now, if you load data from an address that is not divisible by four, the older ARM processors would load the data from the next lowest aligned address and rotate it around weirdly (rotated right by eight for each byte off of being a word aligned address); while the newer ARMs will - literally - load the unaligned word (with some caveats). Somewhere in the middle, there is an option on the ARM v5 and v6 families to not load unaligned at all, but instead throw an exception.
It has been said that unaligned loads allow you to quickly read halfword (16 bit) values from arrays of 16 bit data by using the load instruction, then a shift or a mask to get rid of the unwanted 16 bit value.
So back to the DDE. The older (Castle) one crashed on newer hardware. It could be coaxed into working by disabling alignment exceptions, but then the line numbers for compiler errors and warnings would be total gibberish - so I had serious concerns about the quality of code generated by the older compiler. If it tried some fancy optimisation...
Here it is, a ROOL branded USB stick:
In response to this, I have done two things: I have updated by "fork" of DeskLib. More on this below. I have also (partially) written a USB compatible clone of Acorn's MIDI module. More on that below, too.
This also, pleasingly, brings me the capability of rolling my own build of RISC OS. I plan to do that soon.
At any rate, it is great to have a compiler that just works on the new hardware. Many thanks to XXXXX for this!
The reason for this is the Pi's video is controlled by a GPU that works in a slightly odd way. I tell the Pi, at startup, in a configuration file, what sort of display I want. In my case, 1280×1024 at 60Hz. Then, whatever I choose in RISC OS, it will be scaled to fit that. Essentially I can switch modes all over the place without concern.
The Beagle, on the other hand, has a more traditional approach to video output, so getting a stable video signal means having a good MDF (monitor definition file). Unfortunately, getting some sort of video output on the Beagle with an HDMI-to-VGA adaptor seems to be a fairly hit and miss procedure. It would scale everything to fit into the s-video output, but with the DVI output, it tries to output what it is being told to do - which is rather annoying when you have a stable display and then, after a reboot, the HDMI-to-VGA adaptor just provides a blank screen, even though the machine should be using the same settings as just previous!
It is possibly also worth mentioning that it appears as if the Beagle's display capabilities might max out at 1280×1024 at 57Hz. While the ARM core is later and faster, the GPU is only rated for 720p as compared with the Pi that has bolted an older/slower ARM core to a damn fast (apparently HD1080 capable) GPU. This is why the Pi is finding application as a home media device; while for raw grunt, the Beagle xM wins (well, actually the Pandaboard, which is like a Beagle-Maxi (OMAP4, something like 1.5GHz?) wins, but I don't have one of those so it isn't in the comparison).
If you have suggestions for features, if there is stuff from the other DeskLib you'd like rolled in to mine, or if you know of a bug or two in need of TLC, you know my email address.
The first build of DeskLib 2.30/RM that should be fully 32 bit safe is here:
Note that the library file is called desklib32 so you can have old and new side by side if you write code for Acorn-era machines. You'll need to link with the ...32 library in order to use this.
Unfortunately, the RISC OS USB stack (all its many variants) each have their own quirks and issues. Sufficient that I'm wondering if it was a good idea to even begin in the first place...
So here is the second alpha release of the (USB)MIDI module, with the following provisos:
The latest version of the module, with text programs:
And here's a 106K PDF that documents the module, with rough mods for the current status:
The previous version was tested...
The hammock
I'm on summer holiday. Three weeks of not going to work. Actually, the holiday started Friday before last, at half twelve. The first thing I did was go and buy a nice solid hammock (on clearance offer). It's a very peaceful way to relax. I'm in the hammock as I write this; oh the joys of WiFi!
[I'm relaxing, not dead! ☺]
But on the plus side, look at that lovely blue sky!
Speaking of which
...I picked up another Livebox yesterday. It is missing one of its rubber feet, but otherwise it appears to be working okay. The power brick was in a box, so I'm hoping this one is a new unit and not a customer return. It appears to be working, so... third time lucky?
Rained out
Was at a vide grenier the other day when the sky turned. Mom suggested we go back, and some people were deciding whether or not to cover the stuff they were selling. Bright flash of lightning and a man said "oh crap, I've not switched off the house!" (well, in French) and he legged it leaving his wife to deal with the stall.
BBQ
Of course, when the hot weather turns up, the females of the species dress in ridiculous clothes (if you're embarrassed about being seen in bra&panties, how can you wear that?), while the males have visions of getting in touch with nature by doing the venerable barbeque - a concept that primarily involves taking perfectly good pieces of meat and adding fire, incinerating the outsides while leaving the insides raw.
There are, one might suggest, less troublesome ways to clobber the human immune system...
Hey Mona Lisa, who was Leonardo? Was he Andy Warhol? Were you Marilyn Monroe?
[title from "Something Worth Leaving Behind" performed by Lee Ann Womack]
This might be some hipster-trendy-retro French thing, but I'm just not seeing how Mr. Warhol connects to Perrier water at all...unless it is intended to appeal to hipster-trendy-retro Frenchies?
Share a Coke with...
Speaking of drinks, Coca-Cola (as in Holidays Are Coming, Coke-Is-It, and First time first love, Oh what feeling is this?) has devised a rather clever campaign. Lots of coke bottles with lots of names, and the text "Share a Coca-Cola with <name>".
Mom's is Jennifer (which seems to be the usual French rendering of her name), and mine is Alice for I'm born on the day of Sainte Alice (one of the Catholic saints who appeared to lead a life that didn't end in bloodshed and tragedy; she is known as Adelaide of Italy to the anglophone world).
A welcome surprise
A generous and anonymous benefactor (I know who, but they don't want to be named) has purchased for me the latest version of the Desktop Development Environment.
I struggle to understand the thinking here, as surely a legal word load with a shift or mask is just as simple? The only complicated factor is that you need to know to read words and mask off the desired halfword instead of just incrementing the offset by two, which is the lazy approach. Certainly, I have always - since my days coding ARM on the ARM2 - considered unaligned LDR to be more trouble than it is worth; and it seems my concerns were justified...
...but hey, who listens to some random twat with a self-written blog, anyway?
A slice of Pi!
While the Beagle is about a third more powerful than the Pi, and it contains twice as much memory, I anticipate doing my current round of development on the Pi.
I will get this to work, I just don't have time right now.
DeskLib 2.30/RM
This is based upon version 2.30. I note, sadly, that DeskLib is apparently no longer going to support the DDE, but will be GCC/ELF. I can understand supporting GCC in addition to the DDE as it brings an option for those who cannot afford the DDE (although RISC OS Open's forty-some quid or bundled with the NutPi suite is ridiculously cheap compared to what I paid Acorn for C release 4 all those years ago), however the move to ELF is the part that I don't agree with. ELF is a specifically NON native RISC OS filetype and it means future development of DeskLib is likely to exclude those using the DDE.
I had never planned to fork DeskLib. I just rolled my own build a decade or so back because nobody else seemed to see the writing on the wall that a 32 bit version would be a necessity.
However, given this, and because I think the RISC OS DDE is The One True Toolchain, I'm going to nail my colours to the wall and say - it's a fork. It's official. I will continue with DeskLib 2.xx/RM and keep it DDE compatible.
USB MIDI
Another project on the go is to reimplement the old Acorn MIDI module, only this time talking to USB devices. This was a project I had no necessity to do (I use MuseScore under Windows and both keyboards talk to Windows) but it was something I wanted to do, given the lack of support for musical instruments under RISC OS these days.
*RMReInit MIDI
if you reinsert the MIDI device.
This version was tested...
Rick, 4th August 2013, 00:18 Even if I can't get the Beagle video working with the HDMI dodah, I will DEFINITELY use it for RISC OS system builds. It's a no-brainer (to use a horrible expression). I mean, it's pure processing power and data shifting so it's initially a question of ~700MHz ARM vs 1GHz ARM. Plus, I might see if I can knock up a program to copy the entire toolchain and source tree to RAMdisc for the builds, so it can all work without _touching_ external media. The Beagle has more than enough RAM to pull this off, and enough CPU oomph that it would be daft to think of anything else!Rick, 4th August 2013, 00:20 "_touching_"? ;-) Spot the person used to ROOL's Textile interpreter!
Textile, being generally horrible and sucky, uses underscores for ITALICS.
Yup, really.Rick, 5th August 2013, 15:38 Looks like the Beagle will do 1024x768; but in order to get it to work I need to drop to BASIC and switch to MODE 12 (that's an old-style TV mode!) first. Bizarre.Zerosquare, 5th August 2013, 16:22 I guess the Orange shops backrooms are overflowing with defective Liveboxes, so they tell people to keep them ;)
Is there a spare serial port that supports 31250 bps on the Pi? With a bit of extra hardware, you could make a MIDI port out of it, and you wouldn't need to bother with USB. See the official site for low-level details (it's for a 5V power supply, but the same idea can be used for 3.3V supply if you adjust the resistors values): http://www.midi.org/techspecs/electrispec.php
© 2013 Rick Murray |
This web page is licenced for your personal, private, non-commercial use only. No automated processing by advertising systems is permitted. RIPA notice: No consent is given for interception of page transmission. |