私はこれが初めてで、少し混乱しています:
ルーターに展開するために MIPS 用の netcat ソース コードをコンパイルしようとしています。
mips のツールチェーンをダウンロードします: mips-linux-gcc
netcat ソースをダウンロードし、フォルダーに展開します。
cd path/to/netcatsource
Execute:
CC=path/to/compiler/mips-linux-gcc ./configure --host=mips-linux
make
make コマンドは正常に動作し、コンパイルされた netcat ファイルに対して file コマンドを実行すると、次のように表示されます。
file netcat
OUTPUT: ELF 32-bit MSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), not stripped
私にとってはすべて問題ないようですが、ubuntu ボックスで ./netcat を実行すると動作し、ルーターにアップロードすると次のエラーが表示されます。
# ./netcat
Segmentation fault
これはルーターの /proc/cpuinfo です。
# cat /proc/cpuinfo
system type : 963281T_TEF
processor : 0
cpu model : Broadcom4350 V7.5
BogoMIPS : 319.48
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : no
hardware watchpoint : no
ASEs implemented :
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available
unaligned exceptions : 1395
誰でもこれで私を助けることができますか?よろしく