rkdeveloptool error "cannot execute binary file" on MacOS M1

userHead danito 2023-10-19 17:18:33 2723 Views3 Replies

I have downloaded rkdeveloptool file (https://dfimg.dfrobot.com/64228321aa9508d63a42c28b/wikien/8c8439a830949744ac108b7e2717911b.zip) from https://www.unihiker.com/wiki/burner_command_line

 

But when I run a command as directed:

 

./rkdeveloptool ld

 

error → zsh: exec format error: ./rkdeveloptool

 

or

 

sudo ./rkdeveloptool

 

error → cannot execute binary file

 

 

I think the binary executable file for the Apple M1 is different from the Intel version.

Can someone help me provide a link to the rkdeveloptool binary executable file for the Apple M1 version?

 

Thank You in advance

 

2023-11-24 22:28:13

I've identified the issue you were experiencing with the unihiker development board. It turns out that the documentation and files were outdated. The relevant materials have now been updated on the official website. Please download the latest versions of the files and follow the updated instructions to see if that resolves your problem. You can find the updated documentation and files here: [https://www.unihiker.com/wiki/burner_command_line](https://www.unihiker.com/wiki/burner_command_line)

 

userHeadPic LL
LL wrote:
2023-11-24 22:41:12
1 Replies
2023-11-24 19:26:50

angelo@Angelos-Mini burner_mac % angelo@Angelos-Mini burner_mac % ls -latotal 12572320drwxrwxrwx@  8 angelo  staff         256 Nov  7 16:36 .drwx------+ 10 angelo  staff         320 Nov 22 18:48 ..-rwxrwxrwx@  1 angelo  staff        6148 Nov  7 16:36 .DS_Store-rwxrwxrwx@  1 angelo  staff         292 Aug 29 15:51 burner.shdrwxrwxrwx   4 angelo  staff         128 Nov 22 20:03 log-rwxrwxrwx@  1 angelo  staff      280910 May 27  2022 rk3308_bs_loader_uart0_m0_emmc_port_support_sd_20220516.bin-rwxrwxrwx@  1 angelo  staff     1636520 Jun 20 18:16 rkdeveloptool-rwxrwxrwx@  1 angelo  staff  6435094016 Apr 11  2023 unihiker_v0.3.5.md5.9acbf38210ef954d5e9a0c1389830732.imgangelo@Angelos-Mini burner_mac % file rkdeveloptool rkdeveloptool: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=67559ea3e573e54277cea0f4041c3dacd465beab, for GNU/Linux 3.2.0, with debug_info, not strippedangelo@Angelos-Mini burner_mac % uname -aDarwin Angelos-Mini.lan 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64angelo@Angelos-Mini burner_mac % md5 rkdeveloptool MD5 (rkdeveloptool) = c613cfac8a38323c28ad9b61c44d8a4fangelo@Angelos-Mini burner_mac % rkdeveloptool

---------------------Tool Usage ---------------------Help:   -h or --helpVersion:  -v or --versionListDevice:  ldDownloadBoot:  db <Loader>UpgradeLoader:  ul <Loader>ReadLBA:  rl  <BeginSec> <SectorLen> <File>WriteLBA:  wl  <BeginSec> <File>WriteLBA:  wlx  <PartitionName> <File>WriteGPT:  gpt <gpt partition table>WriteParameter:  prm <parameter>PrintPartition:  ppt EraseFlash:  ef TestDevice:  tdResetDevice:  rd [subcode]ReadFlashID:  ridReadFlashInfo:  rfiReadChipInfo:  rciReadCapability:  rcbPackBootLoader:  packUnpackBootLoader: unpack <boot loader>TagSPL:   tagspl <tag> <U-Boot SPL>-------------------------------------------------------

angelo@Angelos-Mini

userHeadPic JaneYu
2023-11-24 19:22:22

test

test

test

userHeadPic JaneYu
2023-11-24 19:21:29

angelo@Angelos-Mini burner_mac % angelo@Angelos-Mini burner_mac % ls -latotal 12572320drwxrwxrwx@  8 angelo  staff         256 Nov  7 16:36 .drwx------+ 10 angelo  staff         320 Nov 22 18:48 ..-rwxrwxrwx@  1 angelo  staff        6148 Nov  7 16:36 .DS_Store-rwxrwxrwx@  1 angelo  staff         292 Aug 29 15:51 burner.shdrwxrwxrwx   4 angelo  staff         128 Nov 22 20:03 log-rwxrwxrwx@  1 angelo  staff      280910 May 27  2022 rk3308_bs_loader_uart0_m0_emmc_port_support_sd_20220516.bin-rwxrwxrwx@  1 angelo  staff     1636520 Jun 20 18:16 rkdeveloptool-rwxrwxrwx@  1 angelo  staff  6435094016 Apr 11  2023 unihiker_v0.3.5.md5.9acbf38210ef954d5e9a0c1389830732.imgangelo@Angelos-Mini burner_mac % file rkdeveloptool rkdeveloptool: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=67559ea3e573e54277cea0f4041c3dacd465beab, for GNU/Linux 3.2.0, with debug_info, not strippedangelo@Angelos-Mini burner_mac % uname -aDarwin Angelos-Mini.lan 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64angelo@Angelos-Mini burner_mac % md5 rkdeveloptool MD5 (rkdeveloptool) = c613cfac8a38323c28ad9b61c44d8a4fangelo@Angelos-Mini burner_mac % rkdeveloptool

---------------------Tool Usage ---------------------Help:   -h or --helpVersion:  -v or --versionListDevice:  ldDownloadBoot:  db <Loader>UpgradeLoader:  ul <Loader>ReadLBA:  rl  <BeginSec> <SectorLen> <File>WriteLBA:  wl  <BeginSec> <File>WriteLBA:  wlx  <PartitionName> <File>WriteGPT:  gpt <gpt partition table>WriteParameter:  prm <parameter>PrintPartition:  ppt EraseFlash:  ef TestDevice:  tdResetDevice:  rd [subcode]ReadFlashID:  ridReadFlashInfo:  rfiReadChipInfo:  rciReadCapability:  rcbPackBootLoader:  packUnpackBootLoader: unpack <boot loader>TagSPL:   tagspl <tag> <U-Boot SPL>-------------------------------------------------------

angelo@Angelos-Mini

userHeadPic JaneYu
2023-11-02 08:54:34

the command file shows that the link to macos binary is wrong.

 

(base) ➜  unihiker file burner_mac/rkdeveloptool burner_mac/rkdeveloptool: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=67559ea3e573e54277cea0f4041c3dacd465beab, for GNU/Linux 3.2.0, with debug_info, not stripped

userHeadPic titimoby