I have a renesas v3h ARM v8 processor on an embedded platform. The yocto Linux on it doesnt have support for
sshd so I was trying to install the binary in the rootfs. I downloaded the binary from here and copied it in the rootfs. When I try to run it, I get this error
root@v3h:/usr/bin# sshd -sh: /usr/bin/sshd: cannot execute binary file: Exec format error
To be sure that the binary is infact for an arm64, I did this -
readelf -h sshd
and the output is this -
ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Shared object file) Machine: AArch64
Here are the permissions for ssh and sshd.
ssh btw works fine.
lrwxrwxrwx 1 1000 1000 23 Jan 28 11:27 ssh -> /usr/sbin/dropbearmulti -rwxrwxr-x 1 1000 1000 2734032 Apr 2 2019 sshd
How do I resolve this?
root@v3h:/usr/bin# uname -a Linux v3h-p708 4.9.0-yocto-standard #7 SMP PREEMPT Mon Jan 28 13:14:31 MSK 2019 aarch64 GNU/Linux