sudo apt install make cmake libusb-1.0-0-dev gcc build-essential
sudo apt install libusb-1.0-0-dev libhidapi-dev libhidapi-libusb0 libftdi-dev libtool automake pkg-configĪlthough we can do nearly everything we need to with STM32 processors using OpenOCD, some scripts and tutorials use ST-Link instead. Packaged versions tend to be old and not support all the tools. OpenOCD is used to interact with devices using JTAG and SWD. Installation is easy: sudo apt install build-essential libpci-dev libusb-dev libusb-1.0-0-dev libftdi-dev linux-headers-generic I often find that I need to tweak how Flashrom interacts with chips, especially with the proliferation of cloned devices that misreport JEDEC IDs. Note that if you are going to use an ARM-based SBC, you should compile the tool on the device rather than try and cross-compile in on your Intel machine. You can use many USB adapters like the CH431A and FT2232H, or a single-board computer (SBC) like the Raspberry Pi or Beaglebone Black. Flashromįlashrom is a tool used to interact with SPI flash chips. This is around 350MByte of downloads, so be prepared to wait a bit.Īnswer “Yes” to Ubuntu 18 being detected.įinally run: sudo python3 setup.py installīinwalk should now be installed in the path. The deps.sh script will install the packages required, downloads some repositories, build and install them. Installation is easy: sudo apt install python Crucially, it will not unpack JFFS2 filesystems, which are incredibly common. The one installed using the package manager in Ubuntu and Kali is out-of-date and missing dependencies that are essential. Binwalkīinwalk is a tool used to examine embedded filesystems and extract them for analysis. Not everything is installed into the path, and this helps keep everything neat. I tend to keep all of my tools in a subdirectory called “tools”. You can modify them and rebuild them if need be.There are several tools that are better to be installed from source, for a few reasons: In the last post, we setup an Ubuntu 18.04 system for hardware hacking, and used the built-in package manager to install some software we will use.