This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Latest redboot for PC - how to build?


Jifl,

Thank you very much for your help!

export solved problem with --srcdir!

But link problem remains... :(

Here is ld's output:
==
[rdim@localhost bin]$ pwd
/tools/H-i686-pc-linux-gnu/i386-elf/bin
[rdim@localhost bin]$ ld -v
GNU ld version 011013 20011013
[rdim@localhost bin]$
==

May be I have to use another ld, for instance located here?

==
[rdim@localhost bin]$ pwd
/tools/H-i686-pc-linux-gnu/bin
[rdim@localhost bin]$ ls -l
ΙΤΟΗΟ 15796
-rwxr-xr-x š š1 root š š root š š š 199880 Oct 13 23:54 cpp
-rwxr-xr-x š š1 root š š root š š š1192417 Oct 13 23:36 i386-elf-addr2line
-rwxr-xr-x š š2 root š š root š š š1077307 Oct 13 23:36 i386-elf-ar
-rwxr-xr-x š š2 root š š root š š š1624608 Oct 13 23:36 i386-elf-as
-rwxr-xr-x š š2 root š š root š š š 199863 Oct 13 23:54 i386-elf-c++
-rwxr-xr-x š š1 root š š root š š š š99010 Oct 13 23:54 i386-elf-c++filt
-rwxr-xr-x š š2 root š š root š š š 199863 Oct 13 23:54 i386-elf-g++
-rwxr-xr-x š š1 root š š root š š š 211727 Oct 13 23:36 i386-elf-gasp
-rwxr-xr-x š š1 root š š root š š š 196549 Oct 13 23:54 i386-elf-gcc
-rwxr-xr-x š š2 root š š root š š š1574433 Oct 13 23:36 i386-elf-ld
-rwxr-xr-x š š2 root š š root š š š1175486 Oct 13 23:36 i386-elf-nm
-rwxr-xr-x š š1 root š š root š š š1531850 Oct 13 23:36 i386-elf-objcopy
-rwxr-xr-x š š1 root š š root š š š1678241 Oct 13 23:36 i386-elf-objdump
-rwxr-xr-x š š2 root š š root š š š1078574 Oct 13 23:36 i386-elf-ranlib
-rwxr-xr-x š š1 root š š root š š š 456693 Oct 13 23:36 i386-elf-readelf
-rwxr-xr-x š š1 root š š root š š š1021890 Oct 13 23:36 i386-elf-size
-rwxr-xr-x š š1 root š š root š š š1020909 Oct 13 23:36 i386-elf-strings
-rwxr-xr-x š š2 root š š root š š š1531849 Oct 13 23:36 i386-elf-strip
==

Thank you very much for your help!

>šDmitry Ryzhkov wrote:
>š> Actions:
>š> ssssssss 1. ecosconfig --srcdir=${ECOS_REPOSITORY} new pc redboot
>š> ssssssss 2. ecosconfig --srcdir=${ECOS_REPOSITORY} import
>š> ${ECOS_REPOSITORY}/hal/i386/pc/current/misc/redboot_FLOPPY.ecm
>š> ssssssss 3. ecosconfig --srcdir=${ECOS_REPOSITORY} tree
>š> ssssssss 4. ecosconfig --srcdir=${ECOS_REPOSITORY} check
>š> ssssssss 5. make
>š>
>š> Problems/Questions:
>š>
>š> a) I'm forced to specify srcdir, but as I understood from redboot's doc
>š> (User Guide 3.1.1.1) I wouldn't need to do that. Without this it says it
>š> can't find ecos.db in .../packages/redboot directory. Is there any other
>š> workaround?
>
>šI've never seen that. I know no reason it should look in the redboot
>šsubdirectory. Are you using an absolute path for ECOS_REPOSITORY? Are you
>šexporting it (assuming you're using the bash shell)?
>
>šAll your other concerns are alright. But this one is new.
>
>š> and 2nd kind, concering ld:
>š>
>š> /tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: warning: no memory region
>š> specified for section `.rel.text'
>š> /tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: warning: no memory region
>š> specified for section `.rel.text.udelay'
>š> /tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: warning: no memory region
>š> specified for section `.rel.text.i82559_init'
>š> /tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: warning: no memory region
>š> specified for section `.rel.text.i82559_start'
>š> /tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: warning: no memory region
>š> specified for section `.rel.text.PacketRxReady'
>š> /tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: warning: no memory region
>š> specified for section `.rel.text.i82559_recv'
>š> /tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: warning: no memory region
>š> specified for section `.rel.text.i82559_can_send'
>š> /tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: warning: no memory region
>š> specified for section `.rel.text.i82559_send'
>š> ..
>š> and so on.
>
>šThat's odd. What binutils version?
>
>šJifl


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]