From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4832731E.5070906@domain.hid> Date: Tue, 20 May 2008 08:43:42 +0200 From: paradoxxa MIME-Version: 1.0 References: <1168701330@domain.hid> <2ff1a98a0805190239x5f8c8445h47d8ca3070dded1c@domain.hid> <4831626B.9080208@domain.hid> <2ff1a98a0805190506g10f8c1bx781434f8bc73d9a1@domain.hid> <48316FCF.3030706@domain.hid> <2ff1a98a0805190536q5bb3be8dg9b35265bc5b1b618@domain.hid> <48317AED.7030507@domain.hid> <2ff1a98a0805190630o6ae730c2mcf624e8feb9649e3@domain.hid> <48318E9F.4060204@domain.hid> <2ff1a98a0805190734o4de187c1rd872c84ccc0f4a92@domain.hid> In-Reply-To: <2ff1a98a0805190734o4de187c1rd872c84ccc0f4a92@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: paradoxxa2001@domain.hid 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: xenomai@xenomai.org Gilles Chanteperdrix schrieb: > On Mon, May 19, 2008 at 4:28 PM, paradoxxa wrote: > >> Gilles Chanteperdrix schrieb: >> >>> On Mon, May 19, 2008 at 3:04 PM, paradoxxa wrote: >>> >>> >>>> Gilles Chanteperdrix schrieb: >>>> >>>> >>>>> On Mon, May 19, 2008 at 2:17 PM, paradoxxa wrote: >>>>> >>>>> >>>>> No, you are talking about CONFIG_DEBUG_LL, I am talking about >>>>> CONFIG_DEBUG_INFO. These are two different options. So, this make at >>>>> least two options that you changed. Could you check if a kernel with >>>>> an unmodified defconfig boots ? >>>>> >>>>> >>>>> >>>>> >>>> The CONFIG_DEBUG_INFO is already set in the defconfig. The >>>> CONFIG_DEBUG_LL i >>>> set manually. >>>> As well I had to changed the AT91 Master Clock Frequency. >>>> >>>> Here are the logs of a unmodified defconfig boot: >>>> >>>> >>> Ok. But this is a boot with your old compiler. Could you try a >>> defconfig build (with I-pipe AT91 master clock frequency modified) >>> with CodeSourcery compiler ? >>> If you can not get CodeSourcery compiler to compile correctly a Linux >>> kernel, I can send you the 2007q3 compiler, or you could try to >>> compile the kernel with your old compiler, and to compile user-space >>> with CodeSourcery compiler. >>> >>> >> I tried it with the both compiler. When i execute /usr/xenomai/bin/latency i >> get the message "sh: /usr/xenomai/bin/latency: not found" >> > > Have you tried running file, ldd, or readelf on the binary to see what > it is made of ? > > >> By the way, how i can figure out if the binary or the compiler is a >> oabi/eabi file/compiler? >> > > codesourcery compiles for eabi by default. So, you have to enable eabi > in kernel configuration to be able to run binaries generated by > codesourcery compiler. > > The eabi was disabled in the kernel configuration. But to enable it make no changes. $ file usr/xenomai/bin/latency usr/xenomai/bin/latency: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped $ ldd usr/xenomai/bin/latency not a dynamic executable $ readelf --sections /usr/xenomai/bin/latency There are 30 section headers, starting at offset 0x42f0: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .interp PROGBITS 08048174 000174 000013 00 A 0 0 1 [ 2] .note.ABI-tag NOTE 08048188 000188 000020 00 A 0 0 4 [ 3] .hash HASH 080481a8 0001a8 000168 04 A 5 0 4 [ 4] .gnu.hash GNU_HASH 08048310 000310 000048 04 A 5 0 4 [ 5] .dynsym DYNSYM 08048358 000358 000330 10 A 6 1 4 [ 6] .dynstr STRTAB 08048688 000688 000266 00 A 0 0 1 [ 7] .gnu.version VERSYM 080488ee 0008ee 000066 02 A 5 0 2 [ 8] .gnu.version_r VERNEED 08048954 000954 000060 00 A 6 3 4 [ 9] .rel.dyn REL 080489b4 0009b4 000020 08 A 5 0 4 [10] .rel.plt REL 080489d4 0009d4 000140 08 A 5 12 4 [11] .init PROGBITS 08048b14 000b14 000017 00 AX 0 0 4 [12] .plt PROGBITS 08048b2c 000b2c 000290 04 AX 0 0 4 [13] .text PROGBITS 08048dc0 000dc0 0018a4 00 AX 0 0 16 [14] .fini PROGBITS 0804a664 002664 00001c 00 AX 0 0 4 [15] .rodata PROGBITS 0804a680 002680 000a54 00 A 0 0 4 [16] .eh_frame_hdr PROGBITS 0804b0d4 0030d4 000014 00 A 0 0 4 [17] .eh_frame PROGBITS 0804b0e8 0030e8 00003c 00 A 0 0 4 [18] .ctors PROGBITS 0804cedc 003edc 000008 00 WA 0 0 4 [19] .dtors PROGBITS 0804cee4 003ee4 000008 00 WA 0 0 4 [20] .jcr PROGBITS 0804ceec 003eec 000004 00 WA 0 0 4 [21] .dynamic DYNAMIC 0804cef0 003ef0 000100 08 WA 6 0 4 [22] .got PROGBITS 0804cff0 003ff0 000004 04 WA 0 0 4 [23] .got.plt PROGBITS 0804cff4 003ff4 0000ac 04 WA 0 0 4 [24] .data PROGBITS 0804d0a0 0040a0 000034 00 WA 0 0 4 [25] .bss NOBITS 0804d0e0 0040d4 0000a0 00 WA 0 0 32 [26] .comment PROGBITS 00000000 0040d4 000130 00 0 0 1 [27] .shstrtab STRTAB 00000000 004204 0000e9 00 0 0 1 [28] .symtab SYMTAB 00000000 0047a0 000910 10 29 46 4 [29] .strtab STRTAB 00000000 0050b0 000645 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific)