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.
- Linux
- MacOS X, 11
- Windows ( MinGW-W64 )
- 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
- go into root of rkdeveloptool
aclocal
autoreconf -i
autoheader
automake --add-missing
./configure
make
- rkdeveloptool usage,input "rkdeveloptool -h" to see example:
- 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
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
- 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.