Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface to flashrom #29

Open
carlosmaid opened this issue Aug 23, 2018 · 5 comments
Open

Interface to flashrom #29

carlosmaid opened this issue Aug 23, 2018 · 5 comments

Comments

@carlosmaid
Copy link

carlosmaid commented Aug 23, 2018

Hi!
For a long time I thought about decompiling the client software minipro to see how it worked and trying to patch in some way so that it works with the chip kb9012 / kb9022

Among the loose ideas I had, I always liked having some open source programmer client to add new modules created by me or by other people in the community, and expand the list of ICs that can work with this programmer.

with this open firmware, it would be possible to make the tl866-a/cs compatible with https://www.flashrom.org/Flashrom ??
In my case, for example, the tl866 does not directly record internal flash of chip KB9022 (electronically it has no impediments other than making an adapter, and on the software side it does not have any impediments either, only that the manufacturer does not do it, and with a new tl866II-plus programmer, so we do not expect new updates of chips for the old a/cs model) It would be interesting to be able to make the flashrom.com tool compatible with this firmware and have access to the amount of chips that flashrom tool can handle.

In addition, I would be interested in actively helping, I am electronic and have knowledge of c/c# and pic microcontrollers 16/18 projects
Excuse my weird English, it's not my native language

@JohnDMcMaster
Copy link
Owner

Cool project, had not heard of it before. A few quick observations:

  • C based but designed for desktop, code probably won't fit on the TL866
  • GPL licensed, which means we probably don't want to link against it, although it can link against us
  • Provides a bitbang API (see bitbang_spi_master_type in programmer.h)

What would probably make sense to start with is to add TL866 bitbang using the USB API. Note both the vendor and open firmware supports bit-banging. However, we will also have to set supply voltages, which they aren't tracking today. Speed would be pretty low, but maybe this would be fine for rare use (ie the poor soul that bricked their BIOS as opposed to factory floor).

We'd love to have you contribute! The easiest way to reach us is via freenode IRC channel #proghq. Alternatively we can chat via github messages

@PeterBortas
Copy link
Contributor

Just as an aside, for KB9012 in particular this guide on how to flash it with the Bus Pirate might be of interest: http://dangerousprototypes.com/docs/Flashing_KB9012_with_Bus_Pirate

@eloydegen
Copy link

I thought about this as well. However, Flashrom has a database of chips combined with data how they can be flashed with all of the programmers they support too, as long as they support the same protocol. This is different compared to the TL866, because this database contains data that is only useful for the TL866 itself. If Flashrom would add support for this programmer we would add a quite large database that's only useful for this single programmer. In other words, it could work but I'm not sure if the Flashrom team is happy with this.

@JohnDMcMaster JohnDMcMaster changed the title some ideas Interface to flashrom Sep 12, 2018
@TrumanHW
Copy link

TrumanHW commented Apr 9, 2022

Wouldn't it be easier to just add functionality to the FlashROM application ...
And create wrappers with wine or whatever for MacOS and whichever distros you wanted to support ..?

Obviously I'm here bc I searched to see if the TL866 II was ... secretly compatible with FlashROM.
Maybe I don't thoroughly understand the efficacy of editing the TL866 ROM.
Anyway, hoping. you've been secretly working on it and to my surprise, tomorrow they're will be an awesome update. :)

@mrbrandao
Copy link

mrbrandao commented Feb 18, 2024

I've also landed here while searching if TL866 would be compatible with flashrom. If we can have it as compatible as a ch341 would be awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants