mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
Man page fixes
- Finish dummy programmer description - Add satamv programmer - Merge it87spi programmer into internal section - Cosmetics Corresponding to flashrom svn r1383. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
parent
b86e118c07
commit
9321f06fe8
106
flashrom.8
106
flashrom.8
@ -168,7 +168,7 @@ Specify the programmer device. Currently supported are:
|
|||||||
.sp
|
.sp
|
||||||
.BR "* internal" " (default, for in-system flashing in the mainboard)"
|
.BR "* internal" " (default, for in-system flashing in the mainboard)"
|
||||||
.sp
|
.sp
|
||||||
.BR "* dummy" " (just prints all operations and accesses)"
|
.BR "* dummy" " (virtual programmer for testing flashrom)"
|
||||||
.sp
|
.sp
|
||||||
.BR "* nic3com" " (for flash ROMs on 3COM network cards)"
|
.BR "* nic3com" " (for flash ROMs on 3COM network cards)"
|
||||||
.sp
|
.sp
|
||||||
@ -192,9 +192,6 @@ network cards)
|
|||||||
.sp
|
.sp
|
||||||
.BR "* atahpt" " (for flash ROMs on Highpoint ATA/RAID controllers)"
|
.BR "* atahpt" " (for flash ROMs on Highpoint ATA/RAID controllers)"
|
||||||
.sp
|
.sp
|
||||||
.BR "* it87spi" " (for flash ROMs behind an ITE IT87xx Super I/O LPC/SPI \
|
|
||||||
translation unit)"
|
|
||||||
.sp
|
|
||||||
.BR "* ft2232_spi" " (for SPI flash ROMs attached to an FT2232/FT4232H family \
|
.BR "* ft2232_spi" " (for SPI flash ROMs attached to an FT2232/FT4232H family \
|
||||||
based USB SPI programmer)"
|
based USB SPI programmer)"
|
||||||
.sp
|
.sp
|
||||||
@ -286,17 +283,17 @@ do not match, it will refuse to write the image unless you specify
|
|||||||
.B " flashrom \-p internal:boardmismatch=force"
|
.B " flashrom \-p internal:boardmismatch=force"
|
||||||
.sp
|
.sp
|
||||||
If your mainboard uses an ITE IT87 series Super I/O for LPC<->SPI flash bus
|
If your mainboard uses an ITE IT87 series Super I/O for LPC<->SPI flash bus
|
||||||
translation, flashrom should autodetect that configuration. You can use the
|
translation, flashrom should autodetect that configuration. If you want to
|
||||||
|
set the I/O base port of the IT87 series SPI controller manually instead of
|
||||||
|
using the value provided by the BIOS, use the
|
||||||
.sp
|
.sp
|
||||||
.B " flashrom \-p internal:it87spiport=portnum"
|
.B " flashrom \-p internal:it87spiport=portnum"
|
||||||
.sp
|
.sp
|
||||||
syntax as explained in the
|
syntax where
|
||||||
.B it87spi
|
.B portnum
|
||||||
programmer section to use a non-default port for controlling the IT87 series
|
is the I/O port number (must be a multiple of 8). In the unlikely case
|
||||||
Super I/O. In the unlikely case flashrom doesn't detect an active
|
flashrom doesn't detect an active IT87 LPC<->SPI bridge, please send a bug
|
||||||
IT87 LPC<->SPI bridge, you can try to force recognition by using the
|
report so we can diagnose the problem.
|
||||||
.B it87spi
|
|
||||||
programmer.
|
|
||||||
.sp
|
.sp
|
||||||
Using flashrom on laptops is dangerous and may easily make your hardware
|
Using flashrom on laptops is dangerous and may easily make your hardware
|
||||||
unusable (see also the
|
unusable (see also the
|
||||||
@ -320,9 +317,18 @@ We will not help you if you force flashing on a laptop because this is a really
|
|||||||
dumb idea.
|
dumb idea.
|
||||||
.TP
|
.TP
|
||||||
.BR "dummy " programmer
|
.BR "dummy " programmer
|
||||||
|
The dummy programmer operates on a buffer in memory only. It provides a safe
|
||||||
|
and fast way to test various aspects of flashrom and is mainly used in
|
||||||
|
development and while debugging.
|
||||||
|
.sp
|
||||||
|
It is able to emulate some chips to a certain degree (basic
|
||||||
|
identify/read/erase/write operations work).
|
||||||
|
.sp
|
||||||
An optional parameter specifies the bus types it
|
An optional parameter specifies the bus types it
|
||||||
should support. For that you have to use the
|
should support. For that you have to use the
|
||||||
.B "flashrom \-p dummy:bus=[type[+type[+type]]]"
|
.sp
|
||||||
|
.B " flashrom \-p dummy:bus=[type[+type[+type]]]"
|
||||||
|
.sp
|
||||||
syntax where
|
syntax where
|
||||||
.B type
|
.B type
|
||||||
can be
|
can be
|
||||||
@ -332,6 +338,52 @@ If you do not specify bus, all buses will be enabled.
|
|||||||
.sp
|
.sp
|
||||||
Example:
|
Example:
|
||||||
.B "flashrom \-p dummy:bus=lpc+fwh"
|
.B "flashrom \-p dummy:bus=lpc+fwh"
|
||||||
|
.sp
|
||||||
|
The dummy programmer supports flash chip emulation for automated self-tests
|
||||||
|
without hardware access. If you want to emulate a flash chip, use the
|
||||||
|
.sp
|
||||||
|
.B " flashrom \-p dummy:emulate=chip"
|
||||||
|
.sp
|
||||||
|
syntax where
|
||||||
|
.B chip
|
||||||
|
is one of the following chips (please specify only the chip name, not the
|
||||||
|
vendor):
|
||||||
|
.sp
|
||||||
|
.RB "* ST " M25P10.RES " SPI flash chip (RES, page write)"
|
||||||
|
.sp
|
||||||
|
.RB "* SST " SST25VF040.REMS " SPI flash chip (REMS, byte write)"
|
||||||
|
.sp
|
||||||
|
.RB "* SST " SST25VF032B " SPI flash chip (RDID, AAI write)"
|
||||||
|
.sp
|
||||||
|
Example:
|
||||||
|
.B "flashrom -p dummy:emulate=SST25VF040.REMS"
|
||||||
|
.sp
|
||||||
|
If you use flash chip emulation, flash image persistence is available as well
|
||||||
|
by using the
|
||||||
|
.sp
|
||||||
|
.B " flashrom \-p dummy:emulate=chip,image=image.rom"
|
||||||
|
.sp
|
||||||
|
syntax where
|
||||||
|
.B image.rom
|
||||||
|
is the file where the simulated chip contents are read on flashrom startup and
|
||||||
|
where the chip contents on flashrom shutdown are written to.
|
||||||
|
.sp
|
||||||
|
Example:
|
||||||
|
.B "flashrom -p dummy:emulate=M25P10.RES,image=dummy.bin"
|
||||||
|
.sp
|
||||||
|
If you use SPI flash chip emulation for a chip which supports SPI page write
|
||||||
|
with the default opcode, you can set the maximum allowed write chunk size with
|
||||||
|
the
|
||||||
|
.sp
|
||||||
|
.B " flashrom \-p dummy:emulate=chip,spi_write_256_chunksize=size"
|
||||||
|
.sp
|
||||||
|
syntax where
|
||||||
|
.B size
|
||||||
|
is the number of bytes (min. 1, max. 256).
|
||||||
|
.sp
|
||||||
|
Example:
|
||||||
|
.sp
|
||||||
|
.B " flashrom -p dummy:emulate=M25P10.RES,spi_write_256_chunksize=5"
|
||||||
.TP
|
.TP
|
||||||
.BR "nic3com" , " nicrealtek" , " nicsmc1211" , " nicnatsemi" , " nicintel\
|
.BR "nic3com" , " nicrealtek" , " nicsmc1211" , " nicnatsemi" , " nicintel\
|
||||||
" , " nicintel_spi" , " gfxnvidia" , " ogp_spi" , " drkaiser" , " satasii\
|
" , " nicintel_spi" , " gfxnvidia" , " ogp_spi" , " drkaiser" , " satasii\
|
||||||
@ -339,7 +391,9 @@ Example:
|
|||||||
These programmers have an option to specify the PCI address of the card
|
These programmers have an option to specify the PCI address of the card
|
||||||
your want to use, which must be specified if more than one card supported
|
your want to use, which must be specified if more than one card supported
|
||||||
by the selected programmer is installed in your system. The syntax is
|
by the selected programmer is installed in your system. The syntax is
|
||||||
.BR "flashrom \-p xxxx:pci=bb:dd.f" ,
|
.sp
|
||||||
|
.BR " flashrom \-p xxxx:pci=bb:dd.f" ,
|
||||||
|
.sp
|
||||||
where
|
where
|
||||||
.B xxxx
|
.B xxxx
|
||||||
is the name of the programmer
|
is the name of the programmer
|
||||||
@ -353,19 +407,6 @@ is the PCI function number of the desired device.
|
|||||||
Example:
|
Example:
|
||||||
.B "flashrom \-p nic3com:pci=05:04.0"
|
.B "flashrom \-p nic3com:pci=05:04.0"
|
||||||
.TP
|
.TP
|
||||||
.BR "it87spi " programmer
|
|
||||||
An optional
|
|
||||||
.B it87spiport
|
|
||||||
parameter sets the I/O base port of the IT87 series SPI controller
|
|
||||||
interface to the port specified in the parameter instead of using the port
|
|
||||||
address set by the BIOS. For that you have to use the
|
|
||||||
.sp
|
|
||||||
.B " flashrom \-p it87spi:it87spiport=portnum"
|
|
||||||
.sp
|
|
||||||
syntax where
|
|
||||||
.B portnum
|
|
||||||
is an I/O port number which must be a multiple of 8.
|
|
||||||
.TP
|
|
||||||
.BR "ft2232_spi " programmer
|
.BR "ft2232_spi " programmer
|
||||||
An optional parameter specifies the controller
|
An optional parameter specifies the controller
|
||||||
type and interface/port it should support. For that you have to use the
|
type and interface/port it should support. For that you have to use the
|
||||||
@ -487,9 +528,6 @@ flashrom needs different access permissions for different programmers.
|
|||||||
needs raw memory access, PCI configuration space access, raw I/O port
|
needs raw memory access, PCI configuration space access, raw I/O port
|
||||||
access (x86) and MSR access (x86).
|
access (x86) and MSR access (x86).
|
||||||
.sp
|
.sp
|
||||||
.B it87spi
|
|
||||||
needs raw I/O port access (x86).
|
|
||||||
.sp
|
|
||||||
.BR nic3com ", " nicrealtek ", " nicsmc1211 " and " nicnatsemi "
|
.BR nic3com ", " nicrealtek ", " nicsmc1211 " and " nicnatsemi "
|
||||||
need PCI configuration space read access and raw I/O port access.
|
need PCI configuration space read access and raw I/O port access.
|
||||||
.sp
|
.sp
|
||||||
@ -505,6 +543,10 @@ needs raw I/O port access.
|
|||||||
.B satasii
|
.B satasii
|
||||||
needs PCI configuration space read access and raw memory access.
|
needs PCI configuration space read access and raw memory access.
|
||||||
.sp
|
.sp
|
||||||
|
.B satamv
|
||||||
|
needs PCI configuration space read access, raw I/O port access and raw memory
|
||||||
|
access.
|
||||||
|
.sp
|
||||||
.B serprog
|
.B serprog
|
||||||
needs TCP access to the network or userspace access to a serial port.
|
needs TCP access to the network or userspace access to a serial port.
|
||||||
.sp
|
.sp
|
||||||
@ -517,8 +559,8 @@ need access to the USB device via libusb.
|
|||||||
.B dummy
|
.B dummy
|
||||||
needs no access permissions at all.
|
needs no access permissions at all.
|
||||||
.sp
|
.sp
|
||||||
.BR internal ", " it87spi ", " nic3com ", " nicrealtek ", " nicsmc1211 ", "
|
.BR internal ", " nic3com ", " nicrealtek ", " nicsmc1211 ", " nicnatsemi ", "
|
||||||
.BR nicnatsemi ", " "gfxnvidia" ", " drkaiser ", " satasii " and " atahpt
|
.BR gfxnvidia ", " drkaiser ", " satasii ", " satamv " and " atahpt
|
||||||
have to be run as superuser/root, and need additional raw access permission.
|
have to be run as superuser/root, and need additional raw access permission.
|
||||||
.sp
|
.sp
|
||||||
.BR serprog ", " buspirate_spi ", " dediprog " and " ft2232_spi
|
.BR serprog ", " buspirate_spi ", " dediprog " and " ft2232_spi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user