• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

flashrom: command not found

by Deepika

Flashrom is a free and open-source command-line tool for reading, writing, verifying and erasing flash chips. It is primarily used for firmware updates and BIOS/UEFI replacement on computers and other electronic devices. Flashrom is a low-level tool that can communicate directly with the flash chip on a device’s motherboard, allowing it to read and write the firmware directly. This is useful for updating firmware on devices that do not have a firmware update utility built-in, or for creating backups of firmware before making changes.

Flashrom supports a wide variety of flash chips and is compatible with many different types of devices, including laptops, desktops, servers, and embedded systems. It also support different protocols like LPC, FWH, parallel, and SPI. Flashrom has the ability to detect the type of flash chip in a device and automatically select the correct programmer to use. It also has built-in support for hardware-based flash programmers, which allows it to write to the flash chip at a very high speed, reducing the chance of power interruption during the process. It also allows you to verify and compare the contents of the flash chip with a file, and it can also erase the contents of the flash chip.

If you encounter the below error while running the command deepika:

deepika: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install flashrom
Ubuntu apt-get install flashrom
Alpine apk add flashrom
Arch Linux pacman -S flashrom
Kali Linux apt-get install flashrom
Fedora dnf install flashrom
OS X brew install flashrom
Raspbian apt-get install flashrom

flashrom Command Examples

1. Probe the chip, ensuring the wiring is correct:

# flashrom --programmer programmer

2. Read flash and save it to a file:

# flashrom -p programmer --read path/to/file

3. Write a file to the flash:

# flashrom -p programmer --write path/to/file

4. Verify the flash against a file:

# flashrom -p programmer --verify path/to/file

5. Probe the chip using Raspberry Pi:

# flashrom -p linux_spi:dev=/dev/spidev0.0

Filed Under: Linux

Some more articles you might also be interested in …

  1. blkdiscard: command not found
  2. CentOS / RHEL 5, 6 : how to disable NetworkManager
  3. compsize Command Examples in Linux
  4. man Command Examples in Linux
  5. firewall-offline-cmd Command Examples in Linux
  6. How to re-create the yum cache (force a fetch of the cache data) from enabled repositories in CentOS/RHEL
  7. CentOS / RHEL 7 : Beginners guide to systemd targets (replacement of SysV init run levels)
  8. CentOS / RHEL : How to add, delete and display LVM tags
  9. How to uninstall steam from Ubuntu
  10. Permission Table for a File/Directory And File System Users Types

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright