rageworx / rkdeveloptool

An utility for flashing RK3399 maskrom mode. Code designing for MinGW-W64, Windows32 base.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rkdeveloptool

This rkdeveloptool is focused on supporting Windows subsystem with libusb-1.0, libusbk or winusb.

Rockchip not open their windows USB writing sources, only supports windows x86.32 with old MSVC.

This version focused to find flashing method on Windows with MinGW-W64 from POSIX.

Supported subsystems

  1. Linux
  2. MacOS X, 11
  3. Windows ( MinGW-W64 )

compile and install

  1. install libusb and libudev (libudev should be skipped for MinGW-W64 and MacOS )
  • linux: sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf
  • MacOS ( with homebrew ): brew install libusb
  • MinGW-W64 ( x86.64 ): pacman -S mingw-w64-x86_64-libusb
  1. go into root of rkdeveloptool
  2. aclocal
  3. autoreconf -i
  4. autoheader
  5. automake --add-missing
  6. ./configure
  7. make

Features

  1. rkdeveloptool usage,input "rkdeveloptool -h" to see example:
  2. download kernel.img on Linux or MacOS:
sudo ./rkdeveloptool db RKXXLoader.bin    //download usbplug to device
sudo ./rkdeveloptool wl 0x8000 kernel.img //0x8000 is base of kernel partition,unit is sector.
sudo ./rkdeveloptool rd                   //reset device

compile error help

if you encounter the error like below:

  • ./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0'
  • ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'

You should install pkg-config libusb-1.0: sudo apt-get install pkg-config libusb-1.0

Static build required for Windows

  • MinGW-W64 may need to build binary as static.
  • There's two ways to solve this,
  • Proceed with export LDFLAGS=-static;./configure at step to doing ./configure.
  • Or,
  • Proceed step to configure, then edit Makefile.
  • Find CXXLINK and CLINK, ( may placed on each 140 and 153 line )
  • insert -static before -o.
  • then build it.

About

An utility for flashing RK3399 maskrom mode. Code designing for MinGW-W64, Windows32 base.

License:GNU General Public License v2.0


Languages

Language:C++ 95.1%Language:C 3.7%Language:CMake 0.6%Language:M4 0.3%Language:Makefile 0.3%