Hello,
I've never programmed in C languages before, but it seemed easy to me since the only difference between ch341a and ch341b is that ch341b no longer needs an external crystal https://www.wch-ic.com/downloads/file/16.html (Chapter 3., Note). I therefore changed the PID in line 90 of ch341a_spi.c from 5512 to 5523 and added an entry for the ch341b in flashrom_udev.rules :
# Winchiphead (WCH) CH341b based programmer ATTRS{idVendor}==“1a86”, ATTRS{idProduct}==“5523”, MODE=“664”, GROUP="plugdev”
The result is that the flashrom call only shows a few programmers, I can no longer select the ch341:
flashrom v1.5.0 on Linux 6.8.0-49-generic (x86_64) flashrom is free software, get the source code at https://flashrom.org Please select a programmer with the --programmer parameter. Valid choices are: dummy, serprog, buspirate_spi, rayer_spi, pony_spi, linux_mtd, linux_spi.
flashrom 1.2 is delivered with Ubuntu, more programmers are offered:
flashrom v1.2 on Linux 6.8.0-49-generic (x86_64) flashrom is free software, get the source code at https://flashrom.org Please select a programmer with the --programmer parameter. 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, developerbox, rayer_spi, pony_spi, nicintel, nicintel_spi, nicintel_eeprom, ogp_spi, satamv, linux_mtd, linux_spi, usbblaster_spi, pickit2_spi, ch341a_spi, digilent_spi, stlinkv3_spi.
Regards Stephan
Am 09.12.24 um 01:11 schrieb Anastasia Klimchuk:
Hello Stephan,
It's so good that you are trying to do things by yourself!
I understand you have written some code locally, which you are now trying to make work. Would you be comfortable to share this as a patch? This way people can look and perhaps give advice.
The instructions how to send a patch are here: https://flashrom.org/dev_guide/development_guide.html
You can add in the commit title "WIP", "doesn't work yet", or something like this. And post the link to the patch in this thread. Thank you!
On Sun, Dec 8, 2024 at 12:14 AM S. bcs@uxdx.net wrote:
Next errormessage, now he likes the VID 5523:
flashrom v1.5.0 on Linux 6.8.0-49-generic (x86_64) flashrom is free software, get the source code at https://flashrom.org
Using default 2000kHz clock. Use 'spispeed' parameter to override. linux_spi_init: failed to set speed to 2000000Hz: Inappropriate ioctl for device Error: Programmer initialization failed.
Stephan
Am 07.12.24 um 13:58 schrieb S.:
Hello, now I have tried it myself, the only difference I know between ch341a and ch341b is PID:VID 1A86:5523 (instead of 1A86:5512). So I changed the VID in ch341a_spi.c and flashrom_udev.rules. But unfortunately this does not help, I get the error message “Couldn't open device 1a86:5512” when starting flashrom, although in the source code PID:VID is now set to 1a86:5523. Strange. Stephan
Am 25.10.24 um 15:36 schrieb S.:
flashrom supports only programmers with ch341a, but many programmers sold now have ch341b onboard, pid:vid is then 1a86:5523
tnx in advance Stephan _______________________________________________ flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org
flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org
flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org