From e35c47bb98e5a4b0ff4cf13461cb66d58a4886fd Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 30 Jul 2010 12:41:02 +0000 Subject: Fix workaround description git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2818 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/Documentation/NXGraphicsSubsystem.html | 6 +++++- nuttx/TODO | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'nuttx') diff --git a/nuttx/Documentation/NXGraphicsSubsystem.html b/nuttx/Documentation/NXGraphicsSubsystem.html index 55bf92f18..c128c220a 100644 --- a/nuttx/Documentation/NXGraphicsSubsystem.html +++ b/nuttx/Documentation/NXGraphicsSubsystem.html @@ -2746,7 +2746,11 @@ make
  • 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. -

    NOTE: There is a workaround in this case; you can build for 32-bit execution on a 64-bit machine by adding -m3 to the CFLAGS and -m32 -m elf_i38 to the LDFLAGS.

    +

    NOTE: There is a workaround in this case: + You can build for 32-bit execution on a 64-bit machine by adding -m3 to the CFLAGS and -m32 -m elf_i386 to the LDFLAGS. + See the patch file 0001-Quick-hacks-to-build-sim-nsh-ostest-on-x86_64-as-32-.patch + that can be found in NuttX files. +

  • diff --git a/nuttx/TODO b/nuttx/TODO index fdfce942c..9a733f09e 100644 --- a/nuttx/TODO +++ b/nuttx/TODO @@ -584,11 +584,11 @@ o Linux/Cywgin simulation (arch/sim) Status: Open Priority: Medium and increasing (as 32-bit hosts gradually disappear). NOTE 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 - Make.defs file in the appropriate places so that: - - ARCHCPUFLAGS = -m32 -fno-builtin - LDFLAGS += -m32 -m elf_i386 + target for 32-bit operation on a 64-bit platform. Modify the + 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. + See the patch 0001-Quick-hacks-to-build-sim-nsh-ostest-on-x86_64-as-32-.patch + 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 use the tap device (/dev/net/tun) to emulate an Ethernet NIC, but I -- cgit v1.2.3