MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18483.51085.934822.624695@domain.hid> Date: Wed, 21 May 2008 08:56:13 +0200 In-Reply-To: <1211352225.29305.15.camel@domain.hid> References: <1168701330@domain.hid> <48318E9F.4060204@domain.hid> <2ff1a98a0805190734o4de187c1rd872c84ccc0f4a92@domain.hid> <4832731E.5070906@domain.hid> <18482.29993.144891.511723@domain.hid> <48328978.8010101@domain.hid> <2ff1a98a0805200120t72863725p221832d01551fb7e@domain.hid> <2ff1a98a0805200122r3e4d26d2kf4e6061b544c033e@domain.hid> <2ff1a98a0805200123m2a6456d8ud384a8b9535818a8@domain.hid> <4832C76D.3040803@domain.hid> <2ff1a98a0805200816t36a5c1b1la37e31fc437bcd3b@domain.hid> <1211352225.29305.15.camel@domain.hid> From: Gilles Chanteperdrix Subject: Re: [Xenomai-help] at91sam9263 and user-space support compile fails List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paradoxxa Cc: "xenomai@xenomai.org" Paradoxxa wrote: > > Am Dienstag, den 20.05.2008, 17:16 +0200 schrieb Gilles Chanteperdrix: > > > > > I would say there is something wrong with your installation: your > > toolchain links with some library which are not present on your target > > system (for instance you have ld-linux.so.2 on your target whereas the > > binaries generated by your toolchain links to ld-linux.so.3). To know > > if this is the case, could you try to compile a simple "hello world" > > program using the same toolchain as the one you use to compile Xenomai > > user-space libraries ? > > > I built the helloworld. The readelf output is: > -------------------------------------------------- > Dynamic section at offset 0x9f8 contains 27 entries: > Tag Type Name/Value > 0x00000001 (NEEDED) Shared library: [libstdc++.so.6] > 0x00000001 (NEEDED) Shared library: [libm.so.6] > 0x00000001 (NEEDED) Shared library: [libgcc_s.so.1] > 0x00000001 (NEEDED) Shared library: [libc.so.6] > 0x0000000c (INIT) 0x84bc > 0x0000000d (FINI) 0x8940 > 0x00000019 (INIT_ARRAY) 0x109e8 > 0x0000001b (INIT_ARRAYSZ) 8 (bytes) > 0x0000001a (FINI_ARRAY) 0x109f0 > 0x0000001c (FINI_ARRAYSZ) 4 (bytes) > 0x00000004 (HASH) 0x8168 > 0x00000005 (STRTAB) 0x8294 > 0x00000006 (SYMTAB) 0x81b4 > 0x0000000a (STRSZ) 339 (bytes) > 0x0000000b (SYMENT) 16 (bytes) > 0x00000015 (DEBUG) 0x0 > 0x00000003 (PLTGOT) 0x10af8 > 0x00000002 (PLTRELSZ) 72 (bytes) > 0x00000014 (PLTREL) REL > 0x00000017 (JMPREL) 0x8474 > 0x00000011 (REL) 0x8464 > 0x00000012 (RELSZ) 16 (bytes) > 0x00000013 (RELENT) 8 (bytes) > 0x6ffffffe (VERNEED) 0x8404 > 0x6fffffff (VERNEEDNUM) 3 > 0x6ffffff0 (VERSYM) 0x83e8 > 0x00000000 (NULL) 0x0 > -------------------------------------------------- > > Additionly i searched for the ld-linux.so*. On the Target is > ld-slinux-so.2 and on the host is ld-linux.so.3 (Sourcery Toolchain). > The rootfs is also distributed from the vendor. I think i should build a > own one. What do you use for building a rootfs? > I built also a own Toolchain with crossdev (ld-linux.so.2) and with it i > seems to work. I can build the kernel and the user-space support an both > of them run on the target. I am afraid these questions are completely out of the scope of Xenomai mailing lists. Personally, I make my rootfs on an NFS shared directory by copying the libc files from the toolchain, just adding a few other programs such as busybox, gdbserver, strace, tcpdump, etc... This is suitable for a test rootfs, but probably not realistic for serious use. -- Gilles.