mirror of
https://github.com/sharkcz/rkdeveloptool.git
synced 2024-11-22 14:06:47 +01:00
c49bf47e08
g++ -DHAVE_CONFIG_H -I. -I./cfg -Wall -Werror -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -I/usr/include/libusb-1.0 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o main.o main.cpp main.cpp: In function 'bool unpackBoot(char*)': main.cpp:1734:11: error: array subscript 20 is outside array bounds of 'char [20]' [-Werror=array-bounds]1734 | str[len] = 0;| ~~~~~~~~~^~~ main.cpp:1772:7: note: while referencing 'name'1772 | char name[MAX_NAME_LEN];| ^~~~ cc1plus: all warnings being treated as errors make[1]: *** [Makefile:475: main.o] Error 1 Reported-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> |
||
---|---|---|
cfg | ||
.gitignore | ||
99-rk-rockusb.rules | ||
boot_merger.h | ||
CMakeLists.txt | ||
config.h.in | ||
config.ini | ||
configure.ac | ||
crc.cpp | ||
DefineHeader.h | ||
Endian.h | ||
gpt.h | ||
license.txt | ||
main.cpp | ||
Makefile.am | ||
parameter_gpt.txt | ||
Property.hpp | ||
Readme.txt | ||
RKBoot.cpp | ||
RKBoot.h | ||
RKComm.cpp | ||
RKComm.h | ||
RKDevice.cpp | ||
RKDevice.h | ||
RKImage.cpp | ||
RKImage.h | ||
RKLog.cpp | ||
RKLog.h | ||
RKScan.cpp | ||
RKScan.h |
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 autoreconf -i 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