* [Qemu-devel] Cannot launch application with qemu-mips
@ 2008-12-02 10:12 Himanshu Singh Chauhan
2008-12-02 10:22 ` Laurent Desnogues
0 siblings, 1 reply; 5+ messages in thread
From: Himanshu Singh Chauhan @ 2008-12-02 10:12 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Cannot launch application with qemu-mips
2008-12-02 10:12 [Qemu-devel] Cannot launch application with qemu-mips Himanshu Singh Chauhan
@ 2008-12-02 10:22 ` Laurent Desnogues
2008-12-02 11:17 ` Himanshu Singh Chauhan
0 siblings, 1 reply; 5+ messages in thread
From: Laurent Desnogues @ 2008-12-02 10:22 UTC (permalink / raw)
To: qemu-devel
On Tue, Dec 2, 2008 at 11:12 AM, Himanshu Singh Chauhan
<chauhan.jpr@gmail.com> wrote:
> 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.
you should try with -L ./opt/eldk/mips_4Kc.
Laurent
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Cannot launch application with qemu-mips
2008-12-02 10:22 ` Laurent Desnogues
@ 2008-12-02 11:17 ` Himanshu Singh Chauhan
2008-12-02 11:23 ` Himanshu Singh Chauhan
2008-12-02 11:38 ` Laurent Desnogues
0 siblings, 2 replies; 5+ messages in thread
From: Himanshu Singh Chauhan @ 2008-12-02 11:17 UTC (permalink / raw)
To: qemu-devel
On Tue, Dec 2, 2008 at 3:52 PM, Laurent Desnogues
<laurent.desnogues@gmail.com> wrote:
> On Tue, Dec 2, 2008 at 11:12 AM, Himanshu Singh Chauhan
> <chauhan.jpr@gmail.com> wrote:
>> 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.
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Cannot launch application with qemu-mips
2008-12-02 11:17 ` Himanshu Singh Chauhan
@ 2008-12-02 11:23 ` Himanshu Singh Chauhan
2008-12-02 11:38 ` Laurent Desnogues
1 sibling, 0 replies; 5+ messages in thread
From: Himanshu Singh Chauhan @ 2008-12-02 11:23 UTC (permalink / raw)
To: qemu-devel
On Tue, Dec 2, 2008 at 4:47 PM, Himanshu Singh Chauhan
<chauhan.jpr@gmail.com> wrote:
> On Tue, Dec 2, 2008 at 3:52 PM, Laurent Desnogues
> <laurent.desnogues@gmail.com> wrote:
>> On Tue, Dec 2, 2008 at 11:12 AM, Himanshu Singh Chauhan
>> <chauhan.jpr@gmail.com> wrote:
>>> 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.
>>
>> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Cannot launch application with qemu-mips
2008-12-02 11:17 ` Himanshu Singh Chauhan
2008-12-02 11:23 ` Himanshu Singh Chauhan
@ 2008-12-02 11:38 ` Laurent Desnogues
1 sibling, 0 replies; 5+ messages in thread
From: Laurent Desnogues @ 2008-12-02 11:38 UTC (permalink / raw)
To: qemu-devel
On Tue, Dec 2, 2008 at 12:17 PM, Himanshu Singh Chauhan
<chauhan.jpr@gmail.com> wrote:
>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-02 11:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 10:12 [Qemu-devel] Cannot launch application with qemu-mips Himanshu Singh Chauhan
2008-12-02 10:22 ` Laurent Desnogues
2008-12-02 11:17 ` Himanshu Singh Chauhan
2008-12-02 11:23 ` Himanshu Singh Chauhan
2008-12-02 11:38 ` Laurent Desnogues
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).