SD Card Hack Shows Flash Storage Is Programmable: Unreliable Memory

Ever wonder why SD cards are dirt cheap? At the 2013 Chaos Computer Congress, a hacker going by the moniker Bunnie recently revealed part of the reason: “In reality, all flash memory is riddled with defects — without exception.” But that tidbit is nothing compared to the point of his presentation, in which he and fellow hacker Xobs revealed that SD cards and other flash storage formats contain programmable computers.

sd card hack by bunnie and xobs 620x345magnify

Bunnie also summarized his presentation in a relatively easy to understand post on his blog. The images I’m sharing here are from the slides (pdf) that he and Xobs used in their 30C3 talk. Here’s the full paragraph where Bunnie claims that flash memory is cheap because they’re unreliable: “Flash memory is really cheap. So cheap, in fact, that it’s too good to be true. In reality, all flash memory is riddled with defects — without exception. The illusion of a contiguous, reliable storage media is crafted through sophisticated error correction and bad block management functions…”

sd card hack by bunnie and xobs 2 620x464magnify

“…This is the result of a constant arms race between the engineers and mother nature; with every fabrication process shrink, memory becomes cheaper but more unreliable. Likewise, with every generation, the engineers come up with more sophisticated and complicated algorithms to compensate for mother nature’s propensity for entropy and randomness at the atomic scale.”

sd card hack by bunnie and xobs 3 620x464magnify

Simply put, Bunnie claims that flash storage is cheap (partly) because all chips made are used, regardless of their quality. But how do flash storage makers deal with faulty hardware? With software.

Apparently flash storage manufacturers use firmware to manage how data is stored as well as to obscure the chip’s shortcomings. For instance, Bunnie claims that some 16GB chips are so damaged upon manufacture that only 2GB worth of data can be stored on them. But instead of being thrashed, they’re turned into 2GB cards instead. In order to obscure things like that – as well as to handle the aforementioned increasingly complex data abstraction – SD cards are loaded with firmware.

sd card hack by bunnie and xobs 4 620x464magnify

And where does that firmware reside? In a microcontroller, i.e. a very tiny computer. The microcontroller is packed inside a memory card along with the actual chips that store the data. Bunnie and Xobs then proved that it’s possible to hack the microcontroller and make it run unofficial programs. Depending on how cynical you are, that finding is either good news or bad news.

sd card hack by bunnie and xobs 5 620x464magnify

For their talk, Bunnie and Xobs hacked into two SD card models from a relatively small company called AppoTech. I wish I could say more about their process, but you can read about it on Bunnie’s blog

sd card hack by bunnie and xobs 6 620x464magnify

…or you can watch their entire presentation in the video below:

Long story short, Bunnie and Xobs found out that the microcontrollers in SD cards can be used to deploy a variety of programs – both good and bad – or at least tweak the card’s original firmware. For instance, while researching in China, Bunnie found SD cards in some electronics shops that had their firmware modified. The vendors “load a firmware that reports the capacity of a card is much larger than the actual available storage.” The fact that those cards were modified supports Bunnie and Xobs’ claim: that other people besides manufacturers can manipulate the firmware in SD cards.

sd card hack by bunnie and xobs 7 620x464magnify

The slide above outlines the other ways a memory card’s microcontroller can be abused. Malware can be inserted into memory cards to discreetly open files, make data impossible to erase (short of destroying the card itself) and even discreetly scan and replace data. On the other hand, Bunnie and Xobs note that this revelation opens up a new platform for tinkerers and developers. If a memory card is both a storage device and a computer, then it may be powerful enough to control another device on its own.

It’s worth noting that this particular investigation had an extremely small sample size. That being said, Bunnie believes that this vulnerability exists in “the whole family of “managed flash” devices, including microSD, SD, MMC as well as the eMMC and iNAND devices typically soldered onto the mainboards of smartphones and used to store the OS and other private user data. We also note that similar classes of vulnerabilities exist in related devices, such as USB flash drives and SSDs.”

Turns out the memories of our computers are as unreliable as ours.

[via Bunnie via BGR]

Olympia Circuits’ Arno Shield lets Arduino newcomers bring their own board

Olympia Circuits' Arno Shield lets Arduino newcomers bring their own board

While there have certainly been attempts at easing the Arduino learning curve, many of these still demand a new board or simplify just one aspect of a much larger universe. Olympia Circuits’ new Arno Shield could help strike a better balance between starting fresh and diving into the deep end. It includes all the buttons, lights and sensors needed for 40-plus educational projects, but grafts on to existing boards such as the company’s LeOlympia or an Arduino Uno. Owners don’t have to add parts or wires; they just remove the shield once they’ve learned enough to create their own masterworks. The shield kit won’t be cheap when it arrives on May 2nd for $60, but it may prove the real bargain for tinkerers who want a full-fledged Arduino board as soon as the training wheels come off.

Filed under:

Comments

Source: Olympia Circuits

Pebble 1.9.1 firmware update arrives to resolve shutdown woes

Pebble update resolves shutdown woes

Some Pebble owners were understandably perturbed when their smartwatches seemingly went dead after a shutdown — that’s not the best first impression of an emerging technology. Some credit is due for a rapid turnaround, however, as the Pebble team just delivered a 1.9.1 firmware upgrade that should tackle the problem. It fixes a bug that occasionally prevented the microcontroller from reconfiguring itself before the watch went dark, leaving the buttons unresponsive on wake and the Pebble more of a paperweight. You’ll still have to swap out for a replacement if your watch has already fallen ill and won’t recover, but the experience should be more reliable for already functional watches from here on out. Let fellow owners know how well the upgrade worked in the comments.

[Thanks, Daniel]

Filed under: ,

Comments

Source: Pebble

RFduino Coin-Sized Arduino Microcontroller with Bluetooth 4.0: Small Size, Long Reach

Arduino microcontrollers are beloved by students and hobbyists because they’re affordable, small and versatile. Those are the same exact traits that the RFduino microcontroller possesses. In addition, it has one thing that other Arduino boards don’t have: built-in Bluetooth connectivity.

rfduino arduino microcontroller with bluetooth

The RFduino was developed by Open Source RF, an electronics shop that makes Arduino-compatible peripherals and modules. The shop’s tiny invention makes it possible for people to make small gadgets and sensors that can be controlled or monitored wirelessly using a smartphone. You’ll have to buy and then fit a separate wireless shield to an Arduino board to achieve the same functionality.

Speaking of shields, the RFduino also has compatible shields that extend its functionality, including one with a USB-port and another with a coin cell battery slot. It also runs code written in the Arduino programming language, which should really make it an enticing platform for Arduino users. Check out the video below to see how the RFduino can be used:

They should have called it the Fleaduino – a small board with mad reach. Build a Pledge-Bot and pay at least $19 (USD) on the RFduino Kickstarter by April 4, 2013 to reserve your own unit.

Insert Coin: Arduino-compatible Pinoccio microcontroller sports battery, WiFi

In Insert Coin, we look at an exciting new tech project that requires funding before it can hit production. If you’d like to pitch a project, please send us a tip with “Insert Coin” as the subject line.

Insert Coin Arduinocompatible Pinoccio microcontroller serves up Internet of Things in bite-size chunk

It’s been said that imitation is the sincerest form of flattery. Improving on a good idea, however, is truly the ultimate homage, according to the makers of the new Pinoccio microcontroller. Inspired by the Arduino, the brain trust behind the Pinoccio decided to take the stuff they liked about the popular platform — ease of programming and low cost — and add some features to make it even better. These include a rechargeable battery, a temperature sensor and a built-in radio that allows one Pinoccio with a WiFi shield to communicate wirelessly with other Pinoccios. The microcontroller also delivers performance that stacks up well with an Arduino Mega but at a smaller size — the Pinoccio only measures a couple of inches long and an inch wide. The project is currently trying to raise $60,000 at Indiegogo, with supporters netting the standard Pinoccio by pledging $49 and a microcontroller with a WiFi shield for $99. For more details, feel free to check out the video after the break or peruse the project’s Indiegogo page by clicking at the source link.

Previous project update: The Lomography Smartphone Film Scanner was apparently ready for its closeup. The Kickstarter project more than tripled its $50,000 goal with two more weeks to go.

Filed under:

Comments

Source: Indiegogo

Arduino Launches Tiny New Arduino Micro Board

If you’re the sort of DIY tinkerer that likes to fiddle about with Arduino-based projects, you’ll be glad to hear that the Arduino project has officially launched a new version of the powerful little microcontroller. The new product is called the Arduino Micro board, and it is based on the technology behind the Leonardo board. The main feature of the device is its small size, measuring just 1.9″ x 0.7″.

arduino micro

The new Micro board packs an ATmega32U4 controller, and all the power and performance of that Leonardo board in a significantly smaller package. Arduino says the new smaller form-factor makes it easy or for enthusiasts to embed the technology inside of even smaller projects. The Arduino Micro board can be used on a breadboard or soldered to a custom-designed PCB.

The Micro was developed in conjunction with Adafruit Industries. Adafruit is also creating a series of accessories to go along with the new Micro board. The new Micro board will be available exclusively online through Adafruit and in Radio Shack retail stores. The version with headers will sell for €21 (~$27 USD) and version without headers go for €18 ($23 USD). It will be available for pre-order starting next week, and shipments start on November 26th.


Netduino Plus 2 offers four times the speed, full round of futureproofing (video)

Netduino Plus 2 offers four times the speed, full round of futureproofing video

The original Netduino Plus was a welcome alternative for Arduino developers that had its limits — even networking was almost a step too far. Secret Labs doesn’t want any of us to bump our heads on the ceiling with its just-launched Netduino Plus 2. The networkable, .NET-friendly developer board runs a four times faster 168MHz processor with double the RAM (over 100KB) and six times as much code space (384KB) as its two-year-old ancestor. Having so much headroom lets the team build common OneWire and Time Server code into the firmware; Secret Labs reckons that there’s enough space that the Plus 2 can easily grow over time. The ports are just as ready for the future with four serial ports, software control of any add-on shields (including Rev C Arduino shields) and a new header that lets programmers debug both managed and truly native code at once. If the upgrade is sufficiently tempting, project builders just need to spend $60 today to enjoy some newfound freedom.

Continue reading Netduino Plus 2 offers four times the speed, full round of futureproofing (video)

Filed under:

Netduino Plus 2 offers four times the speed, full round of futureproofing (video) originally appeared on Engadget on Thu, 08 Nov 2012 20:48:00 EDT. Please see our terms for use of feeds.

Permalink Netduino Forums  |  sourceNetduino  | Email this | Comments

Arduino Micro shrinks your favorite DIY platform down to ridiculous proportions

Arduino Micro shrinks your favorite DIY platform down to ridiculous proportions

With the Arduino Leonardo, everyone’s favorite hackable microcontroller turned a new page. Now it’s time to bring that simplified design and slightly expanded feature set to the rest of the family, including the itty-bitty Arduino Micro. The tiny, embed-friendly board was designed with help from Adafruit Industries, one of the biggest players in the DIY market. At the heart of the Micro is the same 16MHz ATmega32u4 chip that powers the Leonardo, which means all the necessary USB controls are baked into the processor. Obviously, the layout here is different, so you wont be mounting the Micro to any shields, but with 20 digital I/O pins, 12 analog input channels and seven PWM channels, there’s plenty of room for wiring up your own expansions. Amazingly it crams all that capability in a package just 48mm long and 18mm wide. The Arduino Micro will be available exclusively through Radio Shack and Adafruit first before becoming more widely available next month. The board is available with headers for €21 (roughly $27) and without headers for €18 (about $23). For more, check out the PR after the break.

Continue reading Arduino Micro shrinks your favorite DIY platform down to ridiculous proportions

Filed under:

Arduino Micro shrinks your favorite DIY platform down to ridiculous proportions originally appeared on Engadget on Thu, 08 Nov 2012 20:08:00 EDT. Please see our terms for use of feeds.

Permalink   |   | Email this | Comments

Butlers, lunar rovers, snakes and airboats: the best of Carnegie Mellon’s Robotics Institute

Butlers, lunar rovers, snakes and airboats the best Carnegie Mellon's Robotics Institute

How was your week? We got to spend a couple of days trekking around the Carnegie Mellon campus in Pittsburgh, PA to check out some of the latest projects from the school’s world renowned Robotics Institute — a trip that culminated with the bi-annual induction ceremony from the CMU-sponsored Robot Hall of Fame. Given all the craziness of the past seven days, you might have missed some of the awesomeness, but fear not, we’ve got it all for you here in one handy place — plus a couple of videos from the trip that we haven’t shown you yet. Join us after the break to catch up.

Continue reading Butlers, lunar rovers, snakes and airboats: the best of Carnegie Mellon’s Robotics Institute

Butlers, lunar rovers, snakes and airboats: the best of Carnegie Mellon’s Robotics Institute originally appeared on Engadget on Sat, 27 Oct 2012 12:45:00 EDT. Please see our terms for use of feeds.

Permalink   |   | Email this | Comments

Hummingbird is a ‘pre-Arduino’ for kids (video)

Humminbird is a 'preArduino' for kids video

It’s an Arduino — you know, for kids. Or, as BirdBrain Technologies’ chief robot design Tom Lauwers put it, a “pre-Arduino.” It’s never too early to get kids into robot building — or so goes the thought process behind this nectar-loving kit. At its center is a custom controller that can be used to manipulate a slew of different sensors, motors and lights, a number of which are included in the box. Getting started is extremely simple — don’t believe us? Check the video after the break, in which Lauwers connects two wires to get the whole process underway.

The kit’s also reasonably priced at $199 a piece. On top of the controller, you get a handful of LEDs, two vibration motors, four servos and light, temperature, distance and sound sensors. The kits are currently available through the company’s site (click on that source link). Lauwers tells us that his company (which you may remember from last year’s MakerFaire NYC) is working on a slightly more affordable option priced at around $130, which scales back a bit on the in-box components.

Check out a conversation with Lauwers — and a pretty awesome cardboard dragon — below.

Continue reading Hummingbird is a ‘pre-Arduino’ for kids (video)

Filed under:

Hummingbird is a ‘pre-Arduino’ for kids (video) originally appeared on Engadget on Wed, 24 Oct 2012 12:54:00 EDT. Please see our terms for use of feeds.

Permalink   |  sourceHummingbird Kit  | Email this | Comments