Closed btodd0013 closed 1 year ago
rkdeveloptool /snap/rkdeveloptool/7/snap/command-chain/snapcraft-runner: 5: exec: /snap/rkdeveloptool/7/usr/bin/rkdeveloptool: Exec format error
i appear to be stuck at the same step setting up my host linux system. fresh kubuntu install. output of the make command here:
ake[1]: Entering directory '/home/REDACTED/Downloads/rkdeveloptool-master'
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 -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
main.cpp: In function ‘bool _Z9mergeBootv.part.0()’:
main.cpp:1493:43: error: ‘%s’ directive output may be truncated writing up to 557 bytes into a region of size 5 [-Werror=format-truncation=]
1493 | snprintf(buffer, sizeof(buffer), "%s", chip);
| ^~
......
1534 | chipType = convertChipType(chip + 2);
| ~~~~~
In file included from /usr/include/stdio.h:894,
from DefineHeader.h:3,
from main.cpp:11:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:35: note: ‘builtin_snprintf’ output between 1 and 558 bytes into a destination of size 5
71 | return _builtinsnprintf_chk (s, n, USE_FORTIFY_LEVEL - 1,
| ~~~~~^~~~~~~~~~~
72 | glibc_objsize (s), fmt,
| ~~~~~~~~~
73 | __va_arg_pack ());
| ~~~~~
cc1plus: all warnings being treated as errors
make[1]: [Makefile:491: main.o] Error 1
make[1]: Leaving directory '/home/REDACTED/Downloads/rkdeveloptool-master'
make: [Makefile:511: all-recursive] Error 1
@btodd0013
The more verbose steps to install rkdeveloptool require you to git clone the repo. So depending on the OS you are using and where you want to clone the repo to, the general steps are:
Sudo apt-get Install libudev-dev libusb-1.0.0-dev dh-autoreconf
Sudo apt-get install pkg-config libusb-1.0
cd ~/Downloads/
mkdir rkdeveloptool
git clone https://github.com/rockchip-linux/rkdeveloptool rkdeveloptool
cd rkdeveloptool
autoreconf -i
./configure
make
sudo cp rkdeveloptool /usr/local/bin/
@mongobit There is a main.cpp file in the rkdirectory. There is a variable currently limited to 5 bites that needs 558. For me I had to edit the section at line 1491 and update the variable from 5 to 558 referenced from this rkdeveloptool Issue Comment
cd rkdeveloptool
vi main.cpp
1491G
- and change size from 5 to 558
done. my helm is converted to Armbian. now to decide what i want to use it for.
Hi @mongobit , mind if I ask how long it took to flash the Armbian image? I've been sitting at the wl command for a couple hours I think.
a few minutes. i had issues getting rkdevelop to actually install but once i googled my way through the errors it took less than 10 minutes till i was logging in and doing the update.
are you sure you are using the right image? i have a helm from the first batch and it worked just fine for me.
Ah yep, my command never went through, just went through all the steps again and noticed the percentage. I am all installed!
congrats. i am now poking around seeing what i can do with this box. trying to get the remote desktop package working. might turn it into a Kalbian box.
@ronnie-coleman2 you're going to have to post more of the output. Those are warnings not showing a failure.
@ronnie-coleman2 have you been able to resolve your issue with compiling rkdeveloptool? If not, post the content of the config.log file.
I get confused at this point can someone tell me how to get to root. ive tried CD: rkdeveloptool i get an error.
2 go into root of rkdeveloptool 3.aclocal 4.autoreconf -i 5.autoheader 5.automake --add-missing 4 ./configure 5 make