[okl4-developer] port iguana to new board
Carl van Schaik
carl at ok-labs.com
Tue May 29 15:05:09 EST 2007
Hi Seung-Ho,
It seems your compiler's default linker script is adding the
PT_ARM_EXIDX segment (LOPROC+1 in the dump).
The simplest solution is to setup a new compiler. You can get one from:
http://www.ertos.nicta.com.au/software/prebuilt/
In the next release we will support providing your own linkerscript to
override the compiler's default, but that may be at least a month away.
regards,
Carl
Seung-Ho Lim wrote:
> Hi Carl,
>
> elf headers of files are as follows;
>
> -->build/pistachio/bin/l4kernel
>
> [root at localhost okl4_release_1.4.1.1]# arm-linux-readelf -l build/pistachio/bin/l4kernel
>
> Elf file type is EXEC (Executable file)
> Entry point 0xf0000000
> There are 2 program headers, starting at offset 52
>
> Program Headers:
> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
> LOAD 0x008000 0xf0000000 0xf0000000 0x1a4c0 0x1ca0c RWE 0x8000
> LOAD 0x028000 0xf0020000 0xf0020000 0x06000 0x06000 RW 0x8000
>
> Section to Segment mapping:
> Segment Sections...
> 00 .text .rodata .kdebug .init .data .kdebug-data .bss
> 01 .kspace .kip .traps
>
> -->build/iguana_server/bin/ig_server
>
> [root at localhost okl4_release_1.4.1.1]# arm-linux-readelf -l build/iguana_server/bin/ig_server
>
> Elf file type is EXEC (Executable file)
> Entry point 0x100000
> There are 3 program headers, starting at offset 52
>
> Program Headers:
> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
> LOPROC+1 0x01611c 0x0010e11c 0x0010e11c 0x00010 0x00010 R 0x4
> LOAD 0x008000 0x00100000 0x00100000 0x0e12c 0x0e12c R E 0x8000
> LOAD 0x01612c 0x0011612c 0x0011612c 0x00210 0x12ed4 RW 0x8000
>
> Section to Segment mapping:
> Segment Sections...
> 00 .ARM.exidx
> 01 .text .rodata .ARM.exidx
> 02 .got .data .bss
>
>
> -->build/iguana/bin/ig_naming
>
> [root at localhost okl4_release_1.4.1.1]# arm-linux-readelf -l build/iguana/bin/ig_naming
>
> Elf file type is EXEC (Executable file)
> Entry point 0x200000
> There are 3 program headers, starting at offset 52
>
> Program Headers:
> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
> LOPROC+1 0x00fa3c 0x00207a3c 0x00207a3c 0x00010 0x00010 R 0x4
> LOAD 0x008000 0x00200000 0x00200000 0x07a4c 0x07a4c R E 0x8000
> LOAD 0x00fa4c 0x0020fa4c 0x0020fa4c 0x000e4 0x001cc RW 0x8000
>
> Section to Segment mapping:
> Segment Sections...
> 00 .ARM.exidx
> 01 .text .rodata .ARM.exidx
> 02 .got .data .bss
>
>
> -->build/iguana/bin/ig_timer
>
> [root at localhost okl4_release_1.4.1.1]# arm-linux-readelf -l build/iguana/bin/ig_timer
>
> Elf file type is EXEC (Executable file)
> Entry point 0x300000
> There are 3 program headers, starting at offset 52
>
> Program Headers:
> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
> LOPROC+1 0x010644 0x00308644 0x00308644 0x00010 0x00010 R 0x4
> LOAD 0x008000 0x00300000 0x00300000 0x08654 0x08654 R E 0x8000
> LOAD 0x010654 0x00310654 0x00310654 0x0010c 0x0021c RW 0x8000
>
> Section to Segment mapping:
> Segment Sections...
> 00 .ARM.exidx
> 01 .text .rodata .ARM.exidx
> 02 .got .data .bss
>
> -->build/iguana/bin/ig_serial
>
> [root at localhost okl4_release_1.4.1.1]# arm-linux-readelf -l build/iguana/bin/ig_serial
>
> Elf file type is EXEC (Executable file)
> Entry point 0x400000
> There are 3 program headers, starting at offset 52
>
> Program Headers:
> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
> LOPROC+1 0x010548 0x00408548 0x00408548 0x00010 0x00010 R 0x4
> LOAD 0x008000 0x00400000 0x00400000 0x08558 0x08558 R E 0x8000
> LOAD 0x010558 0x00410558 0x00410558 0x00110 0x00218 RW 0x8000
>
> Section to Segment mapping:
> Segment Sections...
> 00 .ARM.exidx
> 01 .text .rodata .ARM.exidx
> 02 .got .data .bss
>
>
> Thanks.
> Seung-Ho
>
>
> ----- Original Message -----
> From: "Carl van Schaik" <carl at ok-labs.com>
> To: "Seung-Ho Lim" <shlim at core.kaist.ac.kr>
> Cc: <developer at okl4.org>
> Sent: Tuesday, May 29, 2007 1:31 PM
> Subject: Re: [okl4-developer] port iguana to new board
>
>
>
>> Hi Seung-Ho,
>>
>> It looks like your compiler is generating an ELF file somewhere that has
>> type 0x70000001. This is a processor specific segment type, but is not
>> listed in the ARM ELF specification.
>>
>> What compiler are you using?
>>
>> Can you send me the elf header for all the program elf files?
>> eg: arm-linux-readelf -l build/iguana_server/bin/iguana_server
>> ...
>> Program Headers:
>> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
>> LOAD 0x008000 0x80000000 0x80000000 0x0da63 0x0da63 R E 0x8000
>> LOAD 0x015a68 0x80015a68 0x80015a68 0x00218 0x12598 RW 0x8000
>> ...
>>
>> from your output, it looks like the files are:
>> build/pistachio/bin/l4kernel
>> build/iguana_server/bin/ig_server
>> build/iguana/bin/ig_naming
>> build/iguana/bin/ig_timer
>> build/iguana/bin/ig_serial
>>
>> regards,
>> Carl
>>
>> Seung-Ho Lim wrote:
>>
>>> Hi okl4.org
>>> I am trying to port l4 to my own board, arm926ejs-based, using vast
>>> platform.
>>> I added required files and compiled.
>>> Currently, Almost compilation is done, but I have problems with making
>>> image file in the last step.
>>> Here is a message
>>> [root at localhost okl4_release_1.4.1.1]# ./tools/build.py
>>> machine=vast926e_x1 project=iguana wombat=False
>>> scons: Reading SConscript files ...
>>> scons: done reading SConscript files.
>>> scons: Building targets ...
>>> [PHYS] build/pistachio/bin/l4kernel.physaddresses
>>> [PHYS] build/iguana_server/bin/ig_server.physaddresses
>>> [PHYS] build/iguana/bin/ig_naming.physaddresses
>>> [PHYS] build/iguana/bin/ig_timer.physaddresses
>>> [PHYS] build/iguana/bin/ig_serial.physaddresses
>>> [PHYS] build/iguana/bin/bootinfo.physaddresses
>>> [ELF ] build/image.elf
>>> Heap address: 30100000-30500000
>>> Unable to handle segments that aren't of type LOAD (type 70000001).
>>> scons: *** [build/image.elf] Error 1
>>> scons: building terminated because of errors.
>>> Would you tell me how to solve this problem?
>>> Best Regards.
>>> Seung-Ho
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Developer mailing list
>>> Developer at okl4.org
>>> https://lists.okl4.org/mailman/listinfo/developer
>>>
>>>
> >
More information about the Developer
mailing list