【问题标题】:Error on executing lrzsz for sending file through minicom执行 lrzsz 以通过 minicom 发送文件时出错
【发布时间】:2013-08-31 05:26:30
【问题描述】:

我想使用 minicom 通过串口将小目标代码发送到 Ezsdk 6.0 Beagleboard。我找到了 lrzsz (http://ohse.de/uwe/software/lrzsz.html) 并使用 arm-linux-gnueabihf-gcc 进行了交叉编译。 我得到了 lrb、lrx、lrz、lsb、lsx、lsz。但是在船上执行此操作时,它会显示

`root@beagleboard:/usr/bin# ./lrz
-sh: ./lrz: cannot execute binary file `

文件属性

shihab@shihab:/usr/local/bin$ file lrz
lrz: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.31, BuildID[sha1]=0xcf9ce9b23b5a68d2ef6ea3fa695bfe5f7e79d1a5, not stripped

请帮我将 lrzsz 移植到 ezsdk 6.0

谢谢

【问题讨论】:

  • 你能分享它使用的共享库吗?在你的目标中尝试 ldd ./lrz

标签: serial-port cross-compiling embedded-linux beagleboard zmodem


【解决方案1】:

问题在于交叉编译

交叉编译

CC=arm-linux-gnueabihf-gcc  ./configure --target=arm-linux

将 lrz 和 lsz 文件传输到 board 创建符号链接 rz 到 lrz 和 sz 到 lsz

现在可以通过 Ctrl A Z 通过 minicom 发送文件..

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-01-05
    • 1970-01-01
    • 2015-07-24
    • 2013-12-15
    • 1970-01-01
    • 1970-01-01
    • 2014-11-15
    相关资源
    最近更新 更多