Giter VIP home page Giter VIP logo

rtd266x_programmer's Introduction

rtd266x_programmer

Programmer for RTD266X using linux and i2c-dev

This allows you to program these devices just using a VGA cable plugged in to your graphics card (it uses the I2C bus on the DDC pins). No need to buy a programmer!

This is based on the code here (but that code uses an external USB I2C interface and MS windows).

Building

No special requirements except i2c-dev.h, and you probably want i2cdetect from i2c-tools as well. On ubuntu you just need to do sudo apt-get install i2c-tools libi2c-dev and that's it. Then just run make.

Using it

Make sure to modprobe i2c-dev

Then run i2cdetect -l. I get the following output:

i2c-0 i2c i915 gmbus ssc I2C adapter
i2c-1 i2c i915 gmbus vga I2C adapter
i2c-2 i2c i915 gmbus panel I2C adapter
i2c-3 i2c i915 gmbus dpc I2C adapter
i2c-4 i2c i915 gmbus dpb I2C adapter
i2c-5 i2c i915 gmbus dpd I2C adapter
i2c-6 i2c DPDDC-B I2C adapter
i2c-7 i2c DPDDC-C I2C adapter
i2c-8 i2c DPDDC-D I2C adapter

Clearly i2c-1 is the i2c bus connected to the VGA DDC pins. Now I can plug a VGA cable between my laptop and the RTD2660 board and run rtd_prog -d 1 -b backup.bin to backup my firmware.

Usage: rtd_prog -d <device #> [-option[s]]
Options:
-d <device #> : Specify the i2c bus to use, e.g. -d 1 means /dev/i2c-1
-b <file> : Backup the current firmware on the RTD266X to a file
-f <file> : Flash a file to the RTD266X

rtd266x_programmer's People

Contributors

static-void avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rtd266x_programmer's Issues

Device Macronix 0xC22013 not supported

I have just received a PCB800099 v9 board that use an unsupported SPI chip from Macronix.
After read documentation it is look like it is a WindBond W25X40 clone. I have made small modification in the source code and be able to read et flash the chip on the board. May be you can update your source to accept the chip.

Definition of the device :

{"MX25L4005" , 0xC22013, 1024, 256, 64}

Change the mehtod SetupChipCommands to accept Macronix manufacturer via jedec_id C2

Any way, thx a lot for your programmer, it held my a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.