* error in crosscompiling autoboot for MIPS
@ 2007-07-06 9:05 saravanan
2007-07-06 9:27 ` Manuel Lauss
0 siblings, 1 reply; 5+ messages in thread
From: saravanan @ 2007-07-06 9:05 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 3468 bytes --]
hi,
i download(au1xxx-booter-src-1.0-r000007.tar.gz ) an tried to cross compile for MIPS DBAU1200 board, but was nto succesfull. i used to toolchain created using buildroot. the following is the error message i got:
Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/sd.o
Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/booter.o
Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec
/home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: section .data [000000009fd08778 -> 000000009fd08807] overlaps section .MIPS.stubs [000000009fd08778 -> 000000009fd08787]
/home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec.elf: The first section in the PT_DYNAMIC segment is not the .dynamic section
/home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: final link failed: Bad value
make[3]: *** [/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec] Error 1
rm /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/fat.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/flash.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/booter.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/partition.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/filesystem.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/sd.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/srec.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/bin.o
/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/elf.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/util.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/functions.o
make[3]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications'
make[1]: *** [apps] Error 2
make[1]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07'
make: *** [all] Error 2
linux:/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07 # ..
linux:/home/LINUXAU1200/autobootloader #
i think there is memory range overlapping between the two sections.
can anyone suggest me any solution or suggestion for this ?
thanks in advance,
saravanan.
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
[-- Attachment #2: Type: text/html, Size: 3609 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error in crosscompiling autoboot for MIPS
2007-07-06 9:05 error in crosscompiling autoboot for MIPS saravanan
@ 2007-07-06 9:27 ` Manuel Lauss
2007-07-06 9:44 ` Manuel Lauss
2007-07-06 11:48 ` Ralf Baechle
0 siblings, 2 replies; 5+ messages in thread
From: Manuel Lauss @ 2007-07-06 9:27 UTC (permalink / raw)
To: saravanan; +Cc: linux-mips
On Fri, Jul 06, 2007 at 10:05:41AM +0100, saravanan wrote:
> hi,
>
> i download(au1xxx-booter-src-1.0-r000007.tar.gz ) an tried to cross compile for MIPS DBAU1200 board, but was nto succesfull. i used to toolchain created using buildroot. the following is the error message i got:
>
> Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/sd.o
> Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/booter.o
> Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec
> /home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: section .data [000000009fd08778 -> 000000009fd08807] overlaps section .MIPS.stubs [000000009fd08778 -> 000000009fd08787]
> /home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec.elf: The first section in the PT_DYNAMIC segment is not the .dynamic section
> /home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: final link failed: Bad value
> make[3]: *** [/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec] Error 1
> rm /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/fat.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/flash.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/booter.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/partition.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/filesystem.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/sd.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/srec.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/bin.o
> /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/elf.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/util.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/functions.o
> make[3]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications'
> make[1]: *** [apps] Error 2
> make[1]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07'
> make: *** [all] Error 2
> linux:/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07 # ..
> linux:/home/LINUXAU1200/autobootloader #
>
>
> i think there is memory range overlapping between the two sections.
>
> can anyone suggest me any solution or suggestion for this ?
That codebase can _only_ be compiled with AMD's gcc-3.4.3 for cygwin (can be
found on the CD you get with the DB1200 board). It does not work with any
other toolchain, unfortunately (yes, I tried a few, from 3.3.0 to 4.1.2
with binutils from 2.15 to 2.17)
--
ml.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error in crosscompiling autoboot for MIPS
2007-07-06 9:27 ` Manuel Lauss
@ 2007-07-06 9:44 ` Manuel Lauss
2007-07-07 4:15 ` saravanan
2007-07-06 11:48 ` Ralf Baechle
1 sibling, 1 reply; 5+ messages in thread
From: Manuel Lauss @ 2007-07-06 9:44 UTC (permalink / raw)
To: saravanan; +Cc: linux-mips
On Fri, Jul 06, 2007 at 11:27:18AM +0200, Manuel Lauss wrote:
> On Fri, Jul 06, 2007 at 10:05:41AM +0100, saravanan wrote:
> > hi,
> >
> > i download(au1xxx-booter-src-1.0-r000007.tar.gz ) an tried to cross compile for MIPS DBAU1200 board, but was nto succesfull. i used to toolchain created using buildroot. the following is the error message i got:
> >
> > Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/sd.o
> > Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/booter.o
> > Building /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec
> > /home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: section .data [000000009fd08778 -> 000000009fd08807] overlaps section .MIPS.stubs [000000009fd08778 -> 000000009fd08787]
> > /home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec.elf: The first section in the PT_DYNAMIC segment is not the .dynamic section
> > /home/LINUXAU1200/oldbuildroot/secondbuild/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-ld: final link failed: Bad value
> > make[3]: *** [/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/DB1200_booter.rec] Error 1
> > rm /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/fat.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/flash.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/booter.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/partition.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/filesystem.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/sd.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/srec.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/bin.o
> > /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/elf.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/util.o /home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter/obj/DB1200/EL/booter/functions.o
> > make[3]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications/booter'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07/applications'
> > make[1]: *** [apps] Error 2
> > make[1]: Leaving directory `/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07'
> > make: *** [all] Error 2
> > linux:/home/LINUXAU1200/autobootloader/Booter_Common_Au1xxx_00.00.07 # ..
> > linux:/home/LINUXAU1200/autobootloader #
> >
> >
> > i think there is memory range overlapping between the two sections.
> >
> > can anyone suggest me any solution or suggestion for this ?
>
> That codebase can _only_ be compiled with AMD's gcc-3.4.3 for cygwin (can be
> found on the CD you get with the DB1200 board). It does not work with any
> other toolchain, unfortunately (yes, I tried a few, from 3.3.0 to 4.1.2
> with binutils from 2.15 to 2.17)
Please disregard the above and try this updated linkscript
(applications/booter/booter.ld). With this the booter source
builds fine here:
<<< -- snip -- >>>
INPUT(-lau1x00)
OUTPUT_ARCH(mips)
ENTRY(start)
/**** Start point ****/
SECTIONS
{
.text 0x9FD00000 :
{
*(.init)
*(.text)
_ecode = ABSOLUTE(.) ; /* End of code */
*(.rodata)
*(.rodata.str1.4)
*(.rodata.cst8)
*(.rodata.cst4)
. = ALIGN(8);
_etext = ABSOLUTE(.); /* End of code and read-only data */
}
/**** Initialised data ****/
.data 0x81000000 :
AT ( ADDR(.text) + SIZEOF(.text) )
{
_data = ABSOLUTE(.); /* Start of initialised data */
_data_actual = ADDR(.text) + SIZEOF(.text); /* Actual location of data segment */
*(.data)
*(.data.rel.local)
*(.data.rel.ro.local)
*(.data.rel)
. = ALIGN(8);
_gp = ABSOLUTE(. + 0x7ff0); /* point at middle (32Kbytes) of 64Kbyte initialized data */
*(.lit8)
*(.lit4)
*(.sdata)
. = ALIGN(8);
_edata = ABSOLUTE(.); /* End of initialised data */
}
/**** Uninitialised data ****/
_fbss = .; /* Start of unitialised data */
.sbss :
{
*(.sbss)
*(.scommon)
}
.bss :
{
*(.bss)
*(COMMON)
}
_end = . ; /* End of unitialised data */
.gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
.gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
/DISCARD/ :
{
*(.reginfo)
}
PROVIDE(etext = _etext);
PROVIDE (edata = .);
PROVIDE (end = .);
/* PROVIDE (__stacktop = 0x80100000);*/
PROVIDE (__stacktop = _end + 0x010000);
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error in crosscompiling autoboot for MIPS
2007-07-06 9:27 ` Manuel Lauss
2007-07-06 9:44 ` Manuel Lauss
@ 2007-07-06 11:48 ` Ralf Baechle
1 sibling, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2007-07-06 11:48 UTC (permalink / raw)
To: Manuel Lauss; +Cc: saravanan, linux-mips
On Fri, Jul 06, 2007 at 11:27:18AM +0200, Manuel Lauss wrote:
> That codebase can _only_ be compiled with AMD's gcc-3.4.3 for cygwin (can be
> found on the CD you get with the DB1200 board). It does not work with any
> other toolchain, unfortunately (yes, I tried a few, from 3.3.0 to 4.1.2
> with binutils from 2.15 to 2.17)
The differences between the mips*-linux targets and other MIPS ELF targets
are fairly small these days, typically stuff like cpp predefines and
similar. So rewriting the code rarely is hard - unless of course
libraries are involved.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error in crosscompiling autoboot for MIPS
2007-07-06 9:44 ` Manuel Lauss
@ 2007-07-07 4:15 ` saravanan
0 siblings, 0 replies; 5+ messages in thread
From: saravanan @ 2007-07-07 4:15 UTC (permalink / raw)
To: mano; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 732 bytes --]
hi ,
using the updated script you sent .but still the error persists. th efollowing are the steps i followed.
1) Untarred the source au1xxx-booter-src-1.0-r000007.tar.gz.
2) Edit the make.rules to inlude the buildroot toolchain and the path to that.
3) configured the package by entering make menuconfig and selecting the following options:
Platform --> DB1200 platform.
Application --> Au1xxx Autoboot --> AutoBoot (YAMON assist).
4). Edit the applications/booter/booter.ld to include the script you sent.
5). entered make.
Are these steps correct ? or Am i missing something ?
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
[-- Attachment #2: Type: text/html, Size: 812 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-07 4:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-06 9:05 error in crosscompiling autoboot for MIPS saravanan
2007-07-06 9:27 ` Manuel Lauss
2007-07-06 9:44 ` Manuel Lauss
2007-07-07 4:15 ` saravanan
2007-07-06 11:48 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox