EM-Glitching For Nintendo DSi Boot ROMs

Some hacker events are muddy and dusty affairs in distant fields, others take place in darkened halls, but I went to one that can be experienced as a luxury break in a European city steeped in culture and history. Newline takes place at Hackerspace Gent, in the Belgian city of that name, and I was there last weekend to catch the atmosphere as well as the programme of talks and workshops. And of those a good start was made by [PoroCYon], whose fascinating introduction to the glitching techniques involved in recovering the boot ROMs from a Nintendo DSi taught us plenty of things we hadn’t seen before.

The talk which you’ll find below the break starts by describing the process of glitching — using power supply interference to interrupt the operation of a microprocessor and avoid certain instructions — to bypass security code. It then moves on to some of the protection mechanisms used in the various generations of Nintendo consoles and handhelds, before moving on to the work on the DSi at which point the talk moved onto a field which may be old hat in glitching circles but was new to me; that of EM glitching.

EM glitching involves using a small coil to generate precisely timed electromagnetic pulses which induce the glitch voltages in the chip. The fascinating part is that the EM probe can be made small enough to target individual areas of the chip, so using it involves a brute-force technique trying all combinations of timing and position with the probe held in a computer-controlled X-Y mount.

The DSi has two processors on board, this achieves success with the ARM7 but leaves its companion ARM9 as yet untapped. There are a promising set of attack vectors left to try, of which the ARM7 placing the ARM9 into a state from which it can be glitched seems to be the most promising. It’s fairly obvious that there’s plenty more to come from this quarter.

More details of the talk can be found in this repository, and for those interested in EM glitching you can find out more in this video and in this project using it to attack a Gecko microcontroller.

Continue reading “EM-Glitching For Nintendo DSi Boot ROMs” →

Save That Old VGA Monitor From The Trash

It’s quite a while since any of us unpacked a brand new VGA monitor, but since so many machines still have the ability to drive them even through an inexpensive adaptor they’re still something that finds a use. With so many old VGA flat panel monitors being tossed away they even come at the low low price of free, which can’t be argued with. CNXSoft’s [Jean-Luc Aufranc] was tasked with fixing a dead one, and wrote an account of his progress.

Seasoned readers will no doubt be guessing where this story will lead, as when he cracked it open and exposed the PSU board there was the tell-tale puffiness of a failed electrolytic capacitor. For relative pennies a replacement was secured, and the monitor was fixed. As repair hacks go it’s a straightforward one, but still worth remarking because a free monitor is a free monitor.

We called the demise of VGA back in 2016, and have seen no reason to go back on that. But for those of us left with a few legacy monitors it’s worth remembering that DVI and thus the DVI compatibility mode of HDMI is little more than a digitised version of the R, G, and B channels you’d find on that trusty blue connector. Maybe that little dongle doesn’t make such a bad purchase, and of course you can also use it as an SDR if you want.

Creating Video From A ROM

We’re used to computers with display screens, yet how many of us have created the circuitry to drive one directly? Sure, we’ve coded up an SPI display driver on a microcontroller, but create the hardware to generate a usable video signal? That’s a little more difficult. [Jdh] has given it a go though, with a TTL video card.

In this case it’s not a card so much as a collection of breadboards, but all the logic is there to generate the complex array of video timings necessary for synchronisation, and to output the bits sequentially at the right voltage levels for the analogue monitor. It’s worth pointing out though that it’s not a composite video signal that’s being created sinceit’s monochrome only with no subcarrier.

In the end he encounters the problem that his ROM isn’t fast enough for the pixel rate and thus the image has artefacts, but it does at least produce a recognisable and readable something on the screen. Old hands in the video business might point out that analogue TVs were a bit forgiving when it came to exact timings and line counts so the circuit could quite possibly be simplified, and also that trading away some of the resolution might fix the ROM speed issue. But it’s an impressive piece of work, and should be of particular interest for anyone interested in how video works.

Fans of video cards on breadboards should also check out [Ben Eater’s] 7400-series video card.

Continue reading “Creating Video From A ROM” →

Books You Should Read: Bil Herd’s Back Into The Storm

It’s a morning ritual that we guess most of you share with us; before whatever work a new day will bring to sit down with a coffee and catch up with the tech news of the moment on Hackaday and other sites. Most of us don’t do many exciting things in our everyday lives, so reading about the coolest projects and the most fascinating new developments provides us with interest and motivation. Imagine just for a moment then that by a twist of fate you found yourself taking a job at the epicentre of the tech that is changing the world,  producing the objects of desire and pushing the boundaries, the place you’d give anything to work at.

This is the premise behind our Hackaday colleague Bil Herd’s autobiographical chronicle of time in the mid 1980s during which he worked at Commodore, maker of some of the most iconic home computers of the day. We follow him through the three years from 1983 to 1986 as hardware lead on the “TED” series of computers including the Commodore 16 and Plus/4, and then the Commodore 128, a dual-processor powerhouse which was arguably the last of the big-selling 8-bit home computers.

It’s an intertwined set of narratives peppered with personal anecdotes; of the slightly crazy high-pressure world of consumer videogames and computing, the fine details of designing a range of 8-bit machines, and a fascinating insight into how the culture at Commodore changed in the period following the departure of its founder Jack Tramiel.

Continue reading “Books You Should Read: Bil Herd’s Back Into The Storm” →

The BornHack Badge Gets A Bubble

In a year of semiconductor shortages it’s a difficult task to deliver an electronic conference badge, so this year’s BornHack camp in Denmark had an SAO prototyping board as its badge. Some people made blinkies with theirs, but that wasn’t enough for [Inne] who had to go a step further with a light-up pneumatic bubble badge. It’s based upon a previous project producing silicone inflatable bubbles, but in a portable badge form.

On the front of the PCB is a multi-colour LED for illumination, while on the back is a small microcontroller board, a pressure sensor, and a motor driver circuit. A small air pump and battery sits in a pocket connected by a cable and a flexible tube, allowing the bubble to inflate at will. An interesting detail was the use of a cut-down hypodermic needle to carry the air through the silicone wall of the bubble. When seen up close at the camp it was an unnervingly organic effect, if there’s an uncanny valley of badges this is it.

We don’t see much in the way of soft robotics on these pages, so this happy crossover with BadgeLife is a special treat. It’s not entirely alone here though.

ARM’s Chinese Venture Goes Sour

We’re used by now to many of the more capable microcontrollers and systems-on-chip that we use having an ARM core at their heart. From its relatively humble beginings in a 1980s British home computer, the RISC processor architecture from Cambridge has transformed itself into the go-to power-sipping yet powerful core for manufacturers far and wide. This has been the result of astute business decisions over decades, with ARM’s transformation into a fabless vendor of cores as IP at its heart. Recent news suggests that perhaps the astuteness has been in short supply of late though, as it’s reported that ARM’s Chinese subsidiary has gone rogue and detatched from the mothership taking the IP with it.

It seems that the CEO of the Chinese company managed to retain legal power when sacked by the parent company over questionable ties with another of his ventures, and has thus been able to declare it independent of its now-former parent. It still has the ARM IP up to the moment of detatchment and claims to be developing its own new products, but it seems likely that it won’t receive any new ARM IP.

What will be the effect of this at our level? Perhaps we have already seen it, as more Chinese chips such as the cheaper STM32 clones are likely to get low-end ARM cores as a result. It seems likely that newer ARM IP will remain for now in more expensive non-Chinese chip families, but in the middle of a semiconductor shortage it’s likely that we wouldn’t notice anyway. Where it will have a lasting effect is in future Chinese joint ventures by non-Chinese chip companies. Seeing ARM’s then-owner Softbank getting their fingers burned in such a way is likely to provide a disincentive to other companies considering a similar course. Whether ARM will manage to resolve the impasse remains to be seen, but it can hardly be a help to the rocky progress of their Nvidia merger.

Building A Hundred-Year-Old Radio Transmitter

Our Hackaday team is spread across the world, but remains in easy contact through the magic of the Internet. A number of us hold amateur radio callsigns, so could with a bit of effort and expenditure do the same over the airwaves. A hundred years ago this would have seemed barely conceivable as amateurs were restricted to the then-considered-unusable HF frequencies.

Thus it was that in December 1921 a group of American radio amateurs gathered in a field in Greenwich Connecticut in an attempt to span the Atlantic. Their 1.3 MHz transmitter using the callsign 1BCG seems quaintly low-frequency a hundred years later, but their achievement of securing reception in Ardrossan, Scotland, proved that intercontinental communication on higher frequencies was a practical proposition. A century later a group from the Antique Wireless Association are bringing a replica transmitter to life to recreate the event.

A free-running oscillator is today rarely seen in a radio transmitter, but at the time their single-tube Colpitts oscillator using a UV-204 transmitting tube would have been considered a stable source. That fed a 1KW power amplifier using three more UV-204s in parallel, which in turn fed a Marconi-style T antenna design with an earth counterpoise of multiple radial wires. The replica was originally built for an event in 1996, and substitutes the similar 204A tube for the now unobtainable UV-204. Even then, hundred-year-old tubes are hard to find in 2021, so they could only muster a single working example for the PA.

All in all it’s a very interesting project, and one of which we hope we’ll hear more as the anniversary approaches. If we can get the transmission details we’ll share them with you, and let’s see whether the same distances can be traversed with the more noisy conditions here in 2021.

To demonstrate how advanced this transmitter was for 1921, take a look at the Alexanderson alternator, its mechanical contemporary.