Fix workaround description
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2818 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
e432b89abf
commit
432408f707
|
@ -2746,7 +2746,11 @@ make
|
||||||
<li>
|
<li>
|
||||||
The sim target itself is broken under 64-bit Linux.
|
The sim target itself is broken under 64-bit Linux.
|
||||||
This is because the sim target is based upon some assembly language setjmp/longjmp logic that only works on 32-bit systems.
|
This is because the sim target is based upon some assembly language setjmp/longjmp logic that only works on 32-bit systems.
|
||||||
<p><small><b>NOTE</b>: There is a workaround in this case; you can build for 32-bit execution on a 64-bit machine by adding <code>-m3</code> to the <code>CFLAGS</code> and <code>-m32 -m elf_i38</code> to the <code>LDFLAGS</code>.</small></p>
|
<p><small><b>NOTE</b>: There is a workaround in this case:
|
||||||
|
You can build for 32-bit execution on a 64-bit machine by adding <code>-m3</code> to the <code>CFLAGS</code> and <code>-m32 -m elf_i386</code> to the <code>LDFLAGS</code>.
|
||||||
|
See the patch file <code>0001-Quick-hacks-to-build-sim-nsh-ostest-on-x86_64-as-32-.patch</code>
|
||||||
|
that can be found in NuttX <a href="http://tech.groups.yahoo.com/group/nuttx/files">files</a>.
|
||||||
|
</small></p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
10
TODO
10
TODO
|
@ -584,11 +584,11 @@ o Linux/Cywgin simulation (arch/sim)
|
||||||
Status: Open
|
Status: Open
|
||||||
Priority: Medium and increasing (as 32-bit hosts gradually disappear). NOTE
|
Priority: Medium and increasing (as 32-bit hosts gradually disappear). NOTE
|
||||||
is it possible to work-around this limitation by building the sim
|
is it possible to work-around this limitation by building the sim
|
||||||
target for 32-bit operation on a 64-bit platform. Simply modify the
|
target for 32-bit operation on a 64-bit platform. Modify the
|
||||||
Make.defs file in the appropriate places so that:
|
Make.defs file in the appropriate places so that -m32 is included
|
||||||
|
in the CFLAGS and -m32 and -melf_386 are included in the LDFLAGS.
|
||||||
ARCHCPUFLAGS = -m32 -fno-builtin
|
See the patch 0001-Quick-hacks-to-build-sim-nsh-ostest-on-x86_64-as-32-.patch
|
||||||
LDFLAGS += -m32 -m elf_i386
|
that can be found at http://tech.groups.yahoo.com/group/nuttx/files.
|
||||||
|
|
||||||
Description: I never did get networking to work on the sim target. It tries to
|
Description: I never did get networking to work on the sim target. It tries to
|
||||||
use the tap device (/dev/net/tun) to emulate an Ethernet NIC, but I
|
use the tap device (/dev/net/tun) to emulate an Ethernet NIC, but I
|
||||||
|
|
Loading…
Reference in New Issue