Comments (5)
Did you run sudo apt-get install python-smbus
as described in README.me?
from rtd266xflash.
Yes, I installed the smbus. The error is from converting to python 3
The line
from smbus import SMBus
was converted to
from rtd266x.smbus import SMBus
It should'nt have been converted.
I replaced this line with what it was before the converting to python3 and I managed to read the firmware.
However there is small mistake in the readme.
The command line for reading should be:
python rtd266x_flash.py -i I2CBUS -r 524288 -f out.bin
I managed to read the firmware but wasn't able to flash a new one.
I get this message :
Resetting device...
Entering ISP mode...
Reading chip data...
JEDEC ID: 0xc22013
ID: 0xc212
Status: 0xff9c
Clearing lock bits...
Status: 0xff9e
Writing data from file freesync.bin to offset 0...
Erasing sector at address 0x0
Writing 256 bytes to address 0x0
CRC validation failed! Expected 0x9b, received 0xb2
Error: cannot program flash!
Resetting device...
I guess I'll have to try another method, maybe with windows.
from rtd266xflash.
Thanks, you are right. I fixed the import statement and the readme.
Some EEPROMs are write-protected. The erase and write commands seemingly succeed and the chip does not respond with an error, but they actually do nothing. When you read the EEPROM again, it will be the same data as before.
Some EEPROMs have a pin for write-protection. You can try to lift it off and connect it with either GND or supply voltage (check the datasheet what is required to turn off the write-protection).
from rtd266xflash.
I think that I don't have the right firmware for my board because when I try to flash back the firmware I extarcted, it works fine.
however I was wondering if it there isn't a a problem of erasing the first block and then there is the CRC error that prevent the flashing to continue. This means that the first sector is then erased and thus the board gets bricked.
would it be possible to check the crc before erase a sector ?
from rtd266xflash.
Yes, if you flash back the same firmware you read, the CRC is correct because nothing was changed in the EEPROM.
If you erase the first sector and a following write fails, your board cannot boot. However, in your case, it still seems to work. This is another proof that nothing was actually changed in the EEPROM.
Can you post a picture of your EEPROM? We can check if it has a pin connected for write-protection.
from rtd266xflash.
Related Issues (20)
- Support for Waveshare 4.3" HOT 2
- I get the error "uknown firmware" when trying to load the software through GUI Tool HOT 5
- Update readme because issues HOT 3
- Support for MPI7002 7" HOT 3
- Unknown firmware on latest KeDei KD0350AV02 3.5" TFT HOT 4
- Question: 7" capability ? HOT 2
- New JEDEC id 0x856014 won't flash HOT 5
- Help with flashing HOT 10
- Unknown firmware HOT 4
- Firmware dump for Elecrow RC050 5" display HOT 20
- EEPROM ZB25VQ40ATIG HOT 1
- RTD2556 + EEprom 25Q80DV HOT 2
- PCB80052 firmware unknown HOT 10
- rtd2660 800x480 unknown firmware HOT 1
- composite input option in kedei 3.5" HOT 1
- JEDEC ID: 0x856013 Cannot setup chip commands. The flash chip id is unknown. HOT 11
- I get the error "uknown firmware" when trying to load the software through python HOT 10
- Cannot connect to gui tool HOT 7
- self.i2c = SMBus(interface) IOError: [Errno 2] No such file or directory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtd266xflash.