Cannot launch application with qemu-mips
Hi,
I downloaded MIPS toolchain from Denx website. I compiled a hello world application with the tool chain. When I run this application with qemu-mips, it gives me /lib/ld.so.1: no such file or directory error. I ran this command: qemu-mips -L ./opt/eldk ./test -cpu 4Kc
The ld.so.1 is actually located in ./opt/eldk/mips_4Kc/lib. When I hexdump'ed the application, it is referring to /lib/ld.so.1.
Is this an issue with the toolchain? How do I run this. I want to learn MIPS assembly, I had been using SPIM for now. But I want to get into real syntax of GNU as. So I was trying this.
Please help.
Best Regards
--Himanshu
Quoted 7 lines · Himanshu Singh Chauhan
Hi,
I downloaded MIPS toolchain from Denx website. I compiled a hello world application with the tool chain. When I run this application with qemu-mips, it gives me
/lib/ld.so.1: no such file or directory error. I ran this command: qemu-mips -L ./opt/eldk ./test -cpu 4Kc
Quoted 6 lines
The ld.so.1 is actually located in ./opt/eldk/mips_4Kc/lib. When I hexdump'ed the application, it is referring to
/lib/ld.so.1.Is this an issue with the toolchain? How do I run this. I want to learn MIPS assembly, I had been using SPIM for now. But I want to get into real syntax of GNU as. So I was trying this.
you should try with -L ./opt/eldk/mips_4Kc.
Laurent
Quoted 9 lines · Laurent Desnogues
Quoted 7 lines · Himanshu Singh Chauhan
Hi,
I downloaded MIPS toolchain from Denx website. I compiled a hello world application with the tool chain. When I run this application with qemu-mips, it gives me
/lib/ld.so.1: no such file or directory error. I ran this command: qemu-mips -L ./opt/eldk ./test -cpu 4Kc
Quoted 9 lines
Quoted 6 lines
The ld.so.1 is actually located in ./opt/eldk/mips_4Kc/lib. When I hexdump'ed the application, it is referring to
/lib/ld.so.1.Is this an issue with the toolchain? How do I run this. I want to learn MIPS assembly, I had been using SPIM for now. But I want to get into real syntax of GNU as. So I was trying this.
you should try with -L ./opt/eldk/mips_4Kc.
I tried running with this. But qemu terminates with error:
qemu: uncaught target signal 4 (Illegal Instruction) - exiting
--Himanshu
Quoted 14 lines · Himanshu Singh Chauhan
Quoted 12 lines · Laurent Desnogues
Quoted 10 lines · Himanshu Singh Chauhan
Hi,
I downloaded MIPS toolchain from Denx website. I compiled a hello world application with the tool chain. When I run this application with qemu-mips, it gives me
/lib/ld.so.1: no such file or directory error. I ran this command: qemu-mips -L ./opt/eldk ./test -cpu 4KcThe ld.so.1 is actually located in ./opt/eldk/mips_4Kc/lib. When I hexdump'ed the application, it is referring to
/lib/ld.so.1.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Is this an issue with the toolchain? How do I run this. I want to learn MIPS assembly, I had been using SPIM for now. But I want to get into real syntax of GNU as. So I was trying this.
you should try with -L ./opt/eldk/mips_4Kc.
I tried running with this. But qemu terminates with error:
qemu: uncaught target signal 4 (Illegal Instruction) - exiting
The application runs fine when statically linked.
Quoted 4 lines · Himanshu Singh Chauhan
Quoted 2 lines
you should try with -L ./opt/eldk/mips_4Kc.
I tried running with this. But qemu terminates with error:
qemu: uncaught target signal 4 (Illegal Instruction) - exiting
Try to select the correct CPU when running qemu. Look at -cpu option (to get a list of supported MIPS CPU, '-cpu ?').
Laurent