I'm trying to run a Linux binary on FreeBSD for the very first time and could use some help.
For those following along at home, I am trying to make use of a SEGGER J-Link adapter for which you can get Linux binaries from here: https://www.segger.com/downloads/jlink/
Note: I'm running FreeBSD 13.0-RELEASE (64-bit) and downloaded the 64-bit Linux binaries.
After loading the
Following the handbook I used
However, this was not very successful. I am still getting an error regarding the ELF binary type although this time showing
Could somebody enlighten me about what I'm missing or doing wrong?
For those following along at home, I am trying to make use of a SEGGER J-Link adapter for which you can get Linux binaries from here: https://www.segger.com/downloads/jlink/
Note: I'm running FreeBSD 13.0-RELEASE (64-bit) and downloaded the 64-bit Linux binaries.
After loading the
linux
kernel module (running kldstat
shows both linux.ko
and linux_common.ko
) I tried to simply execute the binary. I was presented with the following error:
Code:
jbo@fbsd_beefy01 /u/h/j/d/j/JLink_Linux_V756d_x86_64> ./JLinkGDBServer
ELF binary type "0" not known.
Failed to execute process './JLinkGDBServer'. Reason:
exec: Exec format error
The file './JLinkGDBServer' is marked as an executable but could not be run by the operating system.
Following the handbook I used
brandelf
to mark the binary as a Linux binary:
Code:
brandelf -t Linux JLinkGDBServer
However, this was not very successful. I am still getting an error regarding the ELF binary type although this time showing
3
instead of 0
:
Code:
jbo@fbsd_beefy01 /u/h/j/d/j/JLink_Linux_V756d_x86_64> ./JLinkGDBServer
ELF binary type "3" not known.
Failed to execute process './JLinkGDBServer'. Reason:
exec: Exec format error
The file './JLinkGDBServer' is marked as an executable but could not be run by the operating system.
Could somebody enlighten me about what I'm missing or doing wrong?