Skip to content

tautology0/spireader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spireader

pre-pre-pre-alpha for a web based spireader designed for a Pi, but should work on a BBB or any Linux with spidev. The path is hardcoded to spidev0.0 at the moment and the speed to 24 MHz.

To start, run start.py which will run flask on 5000/tcp.

To automatically grab the whole chip (similar to flashrom) go to the root page (https://127.0.0.1:5000/spi.html) and click "read it".

For the api:

  • /api/spi/identify, returns a JSON containing the dump of the JEDEC identification of the chip, after a bit of mangulation (e.g. attempt to translate the manufacturer and to return the real capacity instead of the power). Continuation codes haven't been tested yet.
  • /api/spi/read/start/end, reads from start to end. This should buffer it in blocks of 10KB, so shouldn't fall a foul of kernel limitations.

PRs and suggestions welcomed. Including those for a better name.

Plans are to add other modes, such as I2C, one wire, three wire, even a uboot md reader.

About

pre-pre-pre-alpha for a web based spireader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published