Bonum Certa Men Certa

How To Deal With Your Raspberry Spy -- Part II: Introduction

By Gavin L. Rebeiro

Contents



Cover

Copyright

1 Acknowledgements

2 YOU ARE HERE ☞ Introduction

2.1 Prerequisite Knowledge 2.2 Apparatus

3 Fundamentals

3.1 Communication 3.2 Kernel Ring Buffer 3.3 Drivers 3.4 Operating Systems 3.5 Special Files

4 Doing The Task

4.1 Preparing The Boot Media 4.2 Connecting Physical Components 4.3 Using Picocom 4.4 OS Installation

5 Thanks

6 OpenPGP Key

A Malicious Hardware

B Linux Kernel Source Tree Analysis

C Digital Multimeter Tests

Summary: Following Part I, published a few hours ago, let's examine what happened from a technical perspective and what can be done about it technically

We don’t want to be spied on; what happens when we’re faced with an operating system that spies on people? We throw it in the trash where it belongs! I am boycotting the Raspberry Spy myself (you’re free to join me in doing so) but I don’t want people to waste hardware that they already have. So we’re going to walk through an interesting path of installing a different operating system on the Raspberry Spy; I want to show you a few things that will empower you to take greater control over your computing.



We’ll gently walk through and explore the following: how to install an operating system on an embedded device (a Raspberry Spy, in this case) over a USB-to-UART bridge (UTUB). This is the main project we’ve got on our hands. Don’t worry if you’ve never touched embedded systems before; everything here is accessible to people with a modest set of prerequisite knowledge and some basic apparatus.

We’ll delve into things with more depth as we move forward with our project; if you don’t understand something when you first encounter it, just keep reading.

2.1 Prerequisite Knowledge

There’s not much prerequisite knowledge required. Here’s what you need to know:

● A basic grasp of how to operate a shell on a GNU/Linux system. GNU Bash is an example. You don’t need to know how to write shell scripts. Knowledge of how to use the shell interactively will suffice.

That’s it. Really. Anything else you need you will pick up on the way.

2.2 Apparatus

You will need the following apparatus:

● A Raspberry Spy. I’ve got the Raspberry Spy Model 3 B+ so that’s what I’ll be using in this project.

● A working Internet connection.

● A USB thumb drive (used as boot media) for the Raspberry Spy.1

● A power supply for the Raspberry Spy.

● A USB-to-UART bridge (UTUB). I’ve got a CP2104 from Silicon Labs; this is widely available and you can pick it up from an online retailer. You want a module that has all the necessary pins and peripherals already packaged into one, neat, unit. I believe the specific module I have is by WINGONEER.

● 3 female-to-female jump wires.

● A computer with any recent GNU/Linux installed on it. The computer needs to have a working USB port.

● A generic microSD card reader/writer. I have an Anker AR200.

It’s likely that you already have the apparatus to operate your Raspberry Spy. Just acquire the additional bits that you don’t already have. The list here is just for completeness.

Here’s some extra equipment that will make your life easier:

● When you’re dealing with electronics, you should heed the old idiom of “two is one and one is none”. Get spares of whatever you can, as a rule.

● A digital multimeter (DMM) with spare fuses for the multimeter. Being able to do some quality control (QC) before you hook up your UTUB to your hardware is going to give you peace of mind. Don’t skimp on the spare fuses for the DMM; it’s easy to forget how much current you’ve got flowing through a circuit and fry the DMM’s fuse by accident2.

● A 2M or longer USB extension cable. Male-to-female is what you want here. You plug in the male part to your computer and the female part is open for receiving the UTUB. This makes life a lot easier (and safer).

● Nitrile gloves. Helps keep you safe.

● Safety goggles. Again, doesn’t hurt to be careful.

You should now have everything you need to get started! _____ 1 If you’ve got a Raspberry Spy that can only accept an SD card as boot media, you don’t need to fret too much. The procedure is the same; you just write the OS image to an SD card instead of a USB thumb drive. Fixing quirks of SD card installations are, however, out of scope of this project; you should refer to the relevant documentation, IRC chats, and mailing lists. I will provide links to boot-media-specific information, when we discuss boot media; this should give you a starting point to troubleshoot issues. 2 Real fuses were harmed during the making of this document.

Recent Techrights' Posts

Later on Elon Musk Wonders Why Large Nations Block His Pet 'Social Control Media' (Incitement/Radicalisation) Platform...
This isn't a question of "censorship" because there's a call to kill
Science and Academia Under Attack, Imposters Inheriting or Aggressively Seizing the Top Roles
Academia has turned into a bad place
 
'Open'AI Looks Like a Company Headed Towards Bankruptcy, Not IPO, Losses Grew Almost Tenfold in a Year (Yes, it's Just a Bubble Facilitated by Artificial Hype)
This isn't going to end well, especially not for Microsoft
Apple is Canceling Products, Services, Even Lays Off Staff in Large Numbers Every Few Months
Apple cancelling some more things
Microsoft: Layoffs Are Growth
Orwell would have loved this newspeak
Links 16/09/2024: Verizon Layoffs, 'Tram Driver Olympics', and Anniversary of Mahsa Amini's Death
Links for the day
Gemini Links 16/09/2024: ROOPHLOCH and MyGemini.Space
Links for the day
Invidious Instances Explain What Google/YouTube (Alphabet/Pentagon) Did To Them This Past Week
They're unambiguous about this
Dr. Richard M. Stallman (RMS) on How to Make People Care About Free Software and Why Prohibiting Proprietary Software Would Not Work
"maybe a similar general approach could work with non-Free software as a way of discouraging it from being a successful business."
Please Quit Uploading Event Talks (Especially of Free Software) to YouTube
This is enshittification
Links 16/09/2024: Shrinking Economy, Climate Issues, Soaring Energy Costs
Links for the day
'Former' Microsofter Jason Perlow Left Linux Foundation
The "communication" people from the Linux Foundation are basically scammers
MyGem Launched to Make Adoption of Gemini Protocol (With Gemini Hosting) a Lot Easier
a new week and also a new capsule
Disregard for History is Disregard for (Computer) Science
They're killing the real entrepreneurs and innovators
Dr. Richard M. Stallman (RMS) on His Hobbies and Health
Answering a question from the audience in Germany
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, September 15, 2024
IRC logs for Sunday, September 15, 2024
Gemini Links 16/09/2024: billsmugs.com Becomes rainywhile.net, Zaurus on Internet
Links for the day
[Meme] Wrong Priorities at Universities
Because what matters isn't expertise
Microsoft and the Sunk Cost Fallacy
"Microsoft aims for the sunk cost fallacy"
Turning Away Unwanted and/or Predatory Bots
If no human will ever read it, what's the point serving?
Links 15/09/2024: Complicated Music Licensing Schemes and Dangers of Sleep Deprivation
Links for the day
Links 15/09/2024: Sci-fi London 2024 and Outsourcing to Proton Mail
Links for the day
Links 15/09/2024: French Teachers Quit in Droves, Why 'eSports' are Not Sports
Links for the day
[Meme] Red Hat Staff Must Learn IBM's Dark History (IBM Still Boosts Donald Trump, So No Lessons Learned)
This isn't a subject for humour
Don't Fall for Reputation Laundering and Whitewashing
Remember history, don't pay attention to PR and charm offensives
[Meme] Microsoft as a Joke That Writes Itself
"Microsoft confesses its recent security updates…broke Windows 10 security patches"
GNU Turns 41 in Just 12 Days
Can truth and science be resuscitated, please?
[Meme] Large Language Models (LLMs) Destroy the Web With an Ocean of Disinformation and Misinformation, Falsely Promoted as "Intelligence" by Microsoft et al
"Microsoft bribes the media to say 'Microsoft loves Linux'"
Dr. Richard M. Stallman (RMS) Asks People to Stop Calling Large Language Models (LLMs) "Artificial Intelligence" (AI)
"I think that the first step is stop calling them AI"
Even Microsoft Boosters Think XBox is Doomed
"Reports Say Morale At Xbox Is “Very Low”"... a Microsoft booster cited by them
Dr. Richard M. Stallman (RMS): "There are still people who make it their business to try to stop me from getting invited to speak, and it's a slow process working back from that"
From the talk he gave last month
Very Few Invidious Instances Still Work (for Video Playback)
Google has sabotaged Invidious
Sites Writing Fake News About Linux Using LLMs (Microsoft Hype That Promotes Misinformation)
RMS recently called these "bullshit machines"
Gemini Links 15/09/2024: MINIbase and Pocket Reform Experience
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, September 14, 2024
IRC logs for Saturday, September 14, 2024
[Meme] The Prosecutor and Prosecuted, the Community and Businessmen (Red Hat)
"Social justice is not a corporate slogan or identity politics"
Pushing Nonsense Using the Brand "Linux"
the trademark "Linux" might already lack potency
In China, statCounter Seeing Windows Vista 11 as Falling 2.5% This Month Relative to Other Versions of Windows (Vista 7 Grows Its Gap Over "11")
Vista 7 is bigger!
Dr. Richard M. Stallman (RMS) Explains Why So-called 'Cryptocurrencies' Suck and Why GNU Taler is Better
"I've never used cryptocurrency. There were things I found disappointing and worrisome..."
Links 14/09/2024: Verizon's 5,000 Layoffs and China's 'Runaway' Pension Age
Links for the day
Gemini Links 14/09/2024: Comparing Costs and Being "Tamed"
Links for the day
Wine Took the Bait (Mono), Soon Starts the Microsoft Circus With the Banhammer
large companies are exercising more control over the thing/s they claim to "donate" to
Links 14/09/2024: Science, War, and Politics
Links for the day
Transcript (and Correction) of Dirk Hohndel's Interview With Linus Torvalds in 2014
A lot of things have deteriorated since then
Microsoft Asia President Ahmed Mazhari Leaves the Company
Even everything they say about Mazhari is just "prepared" quotes from Microsoft itself
This is Not a Sustainable Way to Run Microsoft
This is a downward spiral
Contrary to What Microsoft Claims, Teams Were Cut Yesterday, XBox Sales Have Collapsed, Layoffs Announced at 3AM (in the Morning)
There is actually a lot of media coverage about this, unlike prior waves of layoffs at Microsoft
Last Month Dr. Richard M. Stallman (RMS) Explained Why You Should Delete GitHub
RMS explained why
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, September 13, 2024
IRC logs for Friday, September 13, 2024
Gemini Links 14/09/2024: LoRa, ROOPHLOCH, and Crafting a Programming Language
Links for the day