Changeset 693 for trunk/flashrom.8


Ignore:
Timestamp:
08/19/09 17:03:28 (3 years ago)
Author:
hailfinger
Message:

Current programmer parameter syntax is
-p programmer=parameter
Unfortunately, many parameters are of the form variable=val, so we get
commandlines like this:
flashrom -p it87spi=port=0x820
and this looks horrible.

Using : instead of = would make such parameters look better:
flashrom -p it87spi:port=0x820

As a side benefit, this patch mentions the programmer name in the error
message if it is unknown.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: Stefan Reinauer <stepan@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/flashrom.8

    r689 r693  
    151151The dummy programmer has an optional parameter specifying the bus types it 
    152152should support. For that you have to use the 
    153 .B "flashrom -p dummy=type" 
     153.B "flashrom -p dummy:type" 
    154154syntax where 
    155155.B type 
     
    159159.sp 
    160160Example: 
    161 .B "flashrom -p dummy=lpc,fwh" 
     161.B "flashrom -p dummy:lpc,fwh" 
    162162.sp 
    163163If you have multiple supported PCI cards which can program flash chips 
    164164(NICs, SATA/IDE controllers, etc.) in your system, you must use the 
    165 .B "flashrom -p xxxx=bb:dd.f" 
     165.B "flashrom -p xxxx:bb:dd.f" 
    166166syntax to explicitly select one of them, where 
    167167.B xxxx 
     
    175175.sp 
    176176Example: 
    177 .B "flashrom -p nic3com=05:04.0" 
     177.B "flashrom -p nic3com:05:04.0" 
    178178.sp 
    179179Currently the following programmers support this mechanism: 
     
    184184port of the IT87* SPI controller interface to the port specified in the 
    185185parameter. For that you have to use the 
    186 .B "flashrom -p it87spi=port=portnum" 
     186.B "flashrom -p it87spi:port=portnum" 
    187187syntax where 
    188188.B portnum 
     
    191191The ft2232spi programmer has an optional parameter specifying the controller 
    192192type and interface/port it should support. For that you have to use the 
    193 .B "flashrom -p ft2232spi=model,port=interface" 
     193.B "flashrom -p ft2232spi:model,port=interface" 
    194194syntax where 
    195195.B model 
     
    209209device/baud combination or an IP/port combination for communication with the 
    210210programmer. For serial, you have to use the 
    211 .B "flashrom -p serprog=/dev/device:baud" 
     211.B "flashrom -p serprog:/dev/device:baud" 
    212212syntax and for IP, you have to use 
    213 .B "flashrom -p serprog=ip:port" 
     213.B "flashrom -p serprog:ip:port" 
    214214instead. More information about serprog is available in serprog-protocol.txt in 
    215215the source distribution. 
Note: See TracChangeset for help on using the changeset viewer.