Galland / rkflashtool_rk3066

rkflashtool with RK3066 and RK3188 support. To backup the system and flash images from Linux
29 stars 24 forks source link

RK3128 #2

Open jonsmirl opened 9 years ago

jonsmirl commented 9 years ago

I needed to add the USB ID for the RK3128

ID 2207:310c

Galland commented 1 year ago

Your device pid (310c) is unknown to this tool. It was tested against these pids: 0x290a, 0x281a, 0x300a, and 0x310b

In any case, if you know that your device uses the same RK protocol, you can make the tool support it. You simply need to add a new line after this one: https://github.com/Galland/rkflashtool_rk3066/blob/b92f18baf3f9693c706cdce5a71fc6a00d1c02da/rkflashtool.c#L157

for "RK3128" like:

       if (!(h = libusb_open_device_with_vid_pid(c, 0x2207, 0x310b))) //RK3188
           if (!(h = libusb_open_device_with_vid_pid(c, 0x2207, 0x310c))) //RK3128
            fatal("cannot open device\n");

Test at your own risk, and please share your results