diff --git a/README.md b/README.md new file mode 100644 index 0000000..0455d41 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# rkdeveloptool + +`rkdeveloptool` gives you a simple way to read/write rockusb devices. + +## Compile and install + +1. Install the necessary packages: +```bash +sudo apt-get install pkg-config autoconf libudev-dev libusb-1.0-0-dev +``` +2. `cd` into the root folder of rkdeveloptool +3. `./autogen.sh` +4. `./configure` +5. `make` + +## Usage + +Run `rkdeveloptool -h` for the full list of commands. + +Example of downloading `kernel.img`: +```bash +sudo ./rkdeveloptool db RKXXLoader.bin # Download usbplug to device +sudo ./rkdeveloptool wl 0x8000 kernel.img # 0x8000 is base of the kernel partition, unit is in sectors +sudo ./rkdeveloptool rd # Reset device +``` diff --git a/Readme.txt b/Readme.txt deleted file mode 100644 index 2561f1e..0000000 --- a/Readme.txt +++ /dev/null @@ -1,25 +0,0 @@ -rkdeveloptool gives you a simple way to read/write rockusb device.let's start. - -compile and install -1. install libusb and libudev - sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf -2. go into root of rkdeveloptool -3. ./autogen.sh -4. ./configure -5. make - -rkdeveloptool usage,input "rkdeveloptool -h" to see - -example: -1.download kernel.img -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