Ubuntu 17.10 上的软件安装(CoreBoot flashrom)

Ubuntu 17.10 上的软件安装(CoreBoot flashrom)

我开始学习刷 rom。从这里下载了“flashrom.tar.gz”https://review.coreboot.org/cgit/flashrom.git/snapshot/flashrom-p1.0.tar.gz。无法理解如何安装此包。如能提供任何帮助,我将不胜感激。

答案1

您应该使用以下命令安装 build-essential 及其依赖项:

sudo apt-get install build-essential libpci-dev libusb-dev libusb-1.0-0-dev \ 
libftdi-dev linux-headers-generic

然后下载、提取并编译你的应用程序:

cd ~/Downloads
wget https://review.coreboot.org/cgit/flashrom.git/snapshot/flashrom-p1.0.tar.gz
tar -xf flashrom-p1.0.tar.gz
cd flashrom-p1.0/
make

编译后,您将flashrom在当前目录中找到可执行文件,它会产生以下输出:

$./flashrom 
flashrom  on Linux 4.15.0-20-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Please select a programmer with the --programmer parameter.
Previously this was not necessary because there was a default set.
To choose the mainboard of this computer use 'internal'. Valid choices are:
internal, dummy, nic3com, nicrealtek, gfxnvidia, drkaiser, satasii, atavia,
it8212, ft2232_spi, serprog, buspirate_spi, dediprog, rayer_spi, pony_spi,
nicintel, nicintel_spi, nicintel_eeprom, ogp_spi, satamv, linux_spi,
usbblaster_spi, pickit2_spi, ch341a_spi.

相关内容