Scriba is a version of SNANDer that doesn't include any code that isn't used in Linux. It has been reorganized and streamlined to serve one sole purpose: to work with flash chips in IP cameras that are used with the Thingino project.
Scriba works well with the first generation of CH341A programmers that have been modified to work at 3.3 volts. You can find more information about the necessary change at https://github.com/themactep/thingino-firmware/wiki/CH341A-Programmer.
- GCC compiler
- libusb-1.0 development files
- make
make
make static
sudo make install
The udev rule 40-persistent-ch341a.rules
grants access to CH341A USB devices.
scriba [options]
Automation:
-R <file> Read chip (read twice and compare)
-W <file> Write chip (erase + write + verify)
Single operations:
-i Read chip ID
-e Erase chip
-r <file> Read chip to file
-w <file> Write file to chip
-v Verify after write
Granularity:
-a <address> Set address
-l <bytes> Set length
SPI NAND:
-d Disable internal ECC
-o <bytes> Set OOB size
-I Ignore ECC errors
-k Skip BAD pages
EEPROM:
-E <chip> Select EEPROM type
-8 Set 8-bit organization
-f <bits> Set address size
-s <bytes> Set page size
General:
-h Display help
-L List supported chips
scriba -i
scriba -r output.bin
scriba -w data.bin -v
scriba -W firmware.bin
scriba -R verified_backup.bin
scriba -E 93c46 -r eeprom.bin
Original code by McMCC, modified by Droid-MAX, modified by Paul Philippov.