Hi again,
This need email since look like "behaviour change" , but we just entered 1.8.0.
Here is the context:
flashrom supports default_programmer_name for users who always use the same
programmer. (it also a compile time default, not available in distro).
That's not my workflow. I rotate between multiple USB programmers depending on
signal quality or sockets i have handy.
When flashrom is invoked without --programmer and no default is configured, it
exits and lists all compiled programmers.
That is correct when there is ambiguity.
However, in many practical cases there isn't:
• Exactly one supported USB programmer is physically connected.
• Its VID/PID is known.
• flashrom already has the identification logic inside each programmer driver.
Yet the user must still specify -p.
The proposal , and i already have the patch ready.
When invoked without --programmer, flashrom should:
1. Enumerate connected USB devices.
2. Match them against the known programmer VID/PID entries.
3. If exactly one supported programmer is detected:
• Auto-select it.
• Print a clear informational message.
• Proceed normally.
This will ignore the internal programmer (we don't want read the bios of the
host machine).. it will also not work for programmers like serprog or
programmers that are compatible with others protocol (example hydrabus).
Flashrom will become frictionless in that part:
```
$ flashrom -r dump.bin
Detected programmer "ch341a_spi"
```
Manual override still works (to apply speed and other settings).
Overall this approach could be wrong, because i did not try it with every
programmer in the list + i could be missing some important details.
Looking forward to get feed back so i open or no a gerrit patch.
Regards
Abdelkader
_______________________________________________
flashrom mailing list -- [email protected]
To unsubscribe send an email to [email protected]