building jornada_config _armboot_start undeclared (first use in this function)
Greetings,
Getting this when trying to build (using same toolchain which has worked before). Someone else must have hit this, so before I start bugtracking.
Best wishes
Kristoffer Ericson
arm-linux-ar crv libsa1100.a cpu.o timer.o
r - cpu.o
r - timer.o
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/cpu/sa1100' make -C arch/arm/lib/
make[1]: Entering directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xC1F00000 -I/home/kristoffer/work/projects/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5/include -pipe -DCONFIG_SYS_ARM_WITHOUT_RELOC -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes \
-o board.o board.c -cboard.c: In function `start_armboot':
board.c:293: error: `_armboot_start' undeclared (first use in this function) board.c:293: error: (Each undeclared identifier is reported only once board.c:293: error: for each function it appears in.)
board.c:303: error: `_bss_start' undeclared (first use in this function) make[1]: *** [board.o] Fel 1
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
make: *** [arch/arm/lib/libarm.a] Fel 2
[kristoffer at boggieman u-boot.git]$
Le 22/10/2010 15:07, Kristoffer Ericson a ?crit :
Quoted 17 lines
Greetings,
Getting this when trying to build (using same toolchain which has worked before). Someone else must have hit this, so before I start bugtracking.
Best wishes
Kristoffer Ericsonarm-linux-ar crv libsa1100.a cpu.o timer.o
r - cpu.o
r - timer.o
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/cpu/sa1100' make -Carch/arm/lib/
make[1]: Entering directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xC1F00000 -I/home/kristoffer/work/projects/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5/include-pipe -DCONFIG_SYS_ARM_WITHOUT_RELOC -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes \
-o board.oboard.c-cboard.c: In function `start_armboot':
Quoted 8 lines
board.c:293: error: `_armboot_start' undeclared (first use in this function) board.c:293: error: (Each undeclared identifier is reported only once board.c:293: error: for each function it appears in.)
board.c:303: error: `_bss_start' undeclared (first use in this function) make[1]: *** [board.o] Fel 1
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
make: *** [arch/arm/lib/libarm.a] Fel 2
[kristoffer at boggieman u-boot.git]$
Which branch do you build? If this has ELF relocations (elf_reloc of mainline u-boot repo), the board you're compiling probably misses support for ELF relocations.
Amicalement,
Signature · 1 line
Albert.
Quoted 27 lines · Albert ARIBAUD
Le 22/10/2010 15:07, Kristoffer Ericson a ?crit :
Quoted 17 lines
Greetings,
Getting this when trying to build (using same toolchain which has worked before). Someone else must have hit this, so before I start bugtracking.
Best wishes
Kristoffer Ericsonarm-linux-ar crv libsa1100.a cpu.o timer.o
r - cpu.o
r - timer.o
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/cpu/sa1100' make -Carch/arm/lib/
make[1]: Entering directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xC1F00000 -I/home/kristoffer/work/projects/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5/include-pipe -DCONFIG_SYS_ARM_WITHOUT_RELOC -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes \
-o board.oboard.c-cboard.c: In function `start_armboot':Quoted 8 lines
board.c:293: error: `_armboot_start' undeclared (first use in this function) board.c:293: error: (Each undeclared identifier is reported only once board.c:293: error: for each function it appears in.)
board.c:303: error: `_bss_start' undeclared (first use in this function) make[1]: *** [board.o] Fel 1
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
make: *** [arch/arm/lib/libarm.a] Fel 2
[kristoffer at boggieman u-boot.git]$
Quoted 3 lines
Which branch do you build? If this has ELF relocations (
elf_relocof mainline u-boot repo), the board you're compiling probably misses support for ELF relocations.
master branch, and this got applied recently (1-2 weeks)? Ill look into it, thanks!
Quoted 8 lines
Amicalement,
Signature · 5 lines
Albert. _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Quoted 27 lines · Albert ARIBAUD
Le 22/10/2010 15:07, Kristoffer Ericson a ?crit :
Quoted 17 lines
Greetings,
Getting this when trying to build (using same toolchain which has worked before). Someone else must have hit this, so before I start bugtracking.
Best wishes
Kristoffer Ericsonarm-linux-ar crv libsa1100.a cpu.o timer.o
r - cpu.o
r - timer.o
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/cpu/sa1100' make -Carch/arm/lib/
make[1]: Entering directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xC1F00000 -I/home/kristoffer/work/projects/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5/include-pipe -DCONFIG_SYS_ARM_WITHOUT_RELOC -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes \
-o board.oboard.c-cboard.c: In function `start_armboot':Quoted 8 lines
board.c:293: error: `_armboot_start' undeclared (first use in this function) board.c:293: error: (Each undeclared identifier is reported only once board.c:293: error: for each function it appears in.)
board.c:303: error: `_bss_start' undeclared (first use in this function) make[1]: *** [board.o] Fel 1
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
make: *** [arch/arm/lib/libarm.a] Fel 2
[kristoffer at boggieman u-boot.git]$
Quoted 3 lines
Which branch do you build? If this has ELF relocations (
elf_relocof mainline u-boot repo), the board you're compiling probably misses support for ELF relocations.
Forgot that im setting without relocation in the config. Its really weird, both those (_armboot_start/_bss_start) are declared within arch/cpu/sa1100/start.S but for some reason doesnt get grabbed/builtin and therefore believed to be undeclared.
Quoted 8 lines
Amicalement,
Signature · 5 lines
Albert. _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Le 22/10/2010 17:01, Kristoffer Ericson a ?crit :
Quoted 28 lines · Albert ARIBAUD
Quoted 27 lines
Le 22/10/2010 15:07, Kristoffer Ericson a ?crit :
Quoted 25 lines
Greetings,
Getting this when trying to build (using same toolchain which has worked before). Someone else must have hit this, so before I start bugtracking.
Best wishes
Kristoffer Ericsonarm-linux-ar crv libsa1100.a cpu.o timer.o
r - cpu.o
r - timer.o
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/cpu/sa1100' make -Carch/arm/lib/
make[1]: Entering directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xC1F00000 -I/home/kristoffer/work/projects/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5/include-pipe -DCONFIG_SYS_ARM_WITHOUT_RELOC -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes \
-o board.oboard.c-cboard.c: In function `start_armboot':
board.c:293: error: `_armboot_start' undeclared (first use in this function) board.c:293: error: (Each undeclared identifier is reported only once board.c:293: error: for each function it appears in.)
board.c:303: error: `_bss_start' undeclared (first use in this function) make[1]: *** [board.o] Fel 1
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
make: *** [arch/arm/lib/libarm.a] Fel 2
[kristoffer at boggieman u-boot.git]$
Quoted 7 lines
Quoted 3 lines
Which branch do you build? If this has ELF relocations (
elf_relocof mainline u-boot repo), the board you're compiling probably misses support for ELF relocations.Forgot that im setting without relocation in the config. Its really weird, both those (_armboot_start/_bss_start) are declared within
arch/cpu/sa1100/start.Sbut for some reason doesnt get grabbed/builtin and therefore believed to be undeclared.
For board.c to see them as declared, you have to have them in a header file, namely arch/arm/include/asm/u-boot-arm.h, regardless of whether they are defined in start.S. What does your u-boot-arm.h say about them?
Amicalement,
Signature · 1 line
Albert.
Quoted 33 lines · Albert ARIBAUD
Le 22/10/2010 17:01, Kristoffer Ericson a ?crit :
Quoted 32 lines · Albert ARIBAUD
Quoted 30 lines
Le 22/10/2010 15:07, Kristoffer Ericson a ?crit :
Quoted 17 lines
Greetings,
Getting this when trying to build (using same toolchain which has worked before). Someone else must have hit this, so before I start bugtracking.
Best wishes
Kristoffer Ericsonarm-linux-ar crv libsa1100.a cpu.o timer.o
r - cpu.o
r - timer.o
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/cpu/sa1100' make -Carch/arm/lib/
make[1]: Entering directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xC1F00000 -I/home/kristoffer/work/projects/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5/include-pipe -DCONFIG_SYS_ARM_WITHOUT_RELOC -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes \
-o board.oboard.c-cboard.c: In function `start_armboot':Quoted 8 lines
board.c:293: error: `_armboot_start' undeclared (first use in this function) board.c:293: error: (Each undeclared identifier is reported only once board.c:293: error: for each function it appears in.)
board.c:303: error: `_bss_start' undeclared (first use in this function) make[1]: *** [board.o] Fel 1
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
make: *** [arch/arm/lib/libarm.a] Fel 2
[kristoffer at boggieman u-boot.git]$Which branch do you build? If this has ELF relocations (
elf_relocof mainline u-boot repo), the board you're compiling probably misses support for ELF relocations.
Quoted 8 lines
Quoted 3 lines
Forgot that im setting without relocation in the config. Its really weird, both those (_armboot_start/_bss_start) are declared within
arch/cpu/sa1100/start.Sbut for some reason doesnt get grabbed/builtin and therefore believed to be undeclared.For
board.cto see them as declared, you have to have them in a header file, namelyarch/arm/include/asm/u-boot-arm.h, regardless of whether they are defined instart.S. What does youru-boot-arm.hsay about them?
They are not included in arch/arm/include/asm/u-boot-arm.h. However _bss_start_ofs / _armboot_start_ofs are, not sure if its a misspell.
Adding _bss_start + _armboot_start into u-boot-arm.h makes it
compile nicely :) Big thanks.
Still cant understand why it showed up now and
not in my e79f48393dd919079b34f37957c933f8e75c164d revision(from 13th of october).
And also why people with arm boards arent hitting this all the time, or is everyone running with relocation already?
Anyhow, the quick fix in case someone needs it:
arch/arm/include/asm/u-boot-arm.h +2 -0
@@ -32,10 +32,12 @@/* for the following variables, see start.S */ extern ulong _bss_start_ofs;/* BSS start relative to _start */ extern ulong _bss_end_ofs;/* BSS end relative to _start */ +extern ulong _bss_start;extern ulong IRQ_STACK_START ;/* top of IRQ stack */ extern ulong FIQ_STACK_START ;/* top of FIQ stack */ #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC )extern ulong _armboot_start_ofs;/* code start */ +extern ulong _armboot_start;#else extern ulong _TEXT_BASE;/* code start */ extern ulong _datarel_start_ofs;
Quoted 4 lines
Amicalement,
Signature · 1 line
Albert.
Le 22/10/2010 20:38, Kristoffer Ericson a ?crit :
Quoted 38 lines · Albert ARIBAUD
Quoted 37 lines
Le 22/10/2010 17:01, Kristoffer Ericson a ?crit :
Quoted 35 lines · Albert ARIBAUD
Quoted 27 lines
Le 22/10/2010 15:07, Kristoffer Ericson a ?crit :
Quoted 17 lines
Greetings,
Getting this when trying to build (using same toolchain which has worked before). Someone else must have hit this, so before I start bugtracking.
Best wishes
Kristoffer Ericsonarm-linux-ar crv libsa1100.a cpu.o timer.o
r - cpu.o
r - timer.o
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/cpu/sa1100' make -Carch/arm/lib/
make[1]: Entering directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xC1F00000 -I/home/kristoffer/work/projects/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5/include-pipe -DCONFIG_SYS_ARM_WITHOUT_RELOC -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes \
-o board.oboard.c-cboard.c: In function `start_armboot':Quoted 8 lines
board.c:293: error: `_armboot_start' undeclared (first use in this function) board.c:293: error: (Each undeclared identifier is reported only once board.c:293: error: for each function it appears in.)
board.c:303: error: `_bss_start' undeclared (first use in this function) make[1]: *** [board.o] Fel 1
make[1]: Leaving directory `/home/kristoffer/work/projects/u-boot.git/arch/arm/lib'
make: *** [arch/arm/lib/libarm.a] Fel 2
[kristoffer at boggieman u-boot.git]$Quoted 3 lines
Which branch do you build? If this has ELF relocations (
elf_relocof mainline u-boot repo), the board you're compiling probably misses support for ELF relocations.Forgot that im setting without relocation in the config. Its really weird, both those (_armboot_start/_bss_start) are declared within
arch/cpu/sa1100/start.Sbut for some reason doesnt get grabbed/builtin and therefore believed to be undeclared.
Quoted 8 lines
Quoted 4 lines
For
board.cto see them as declared, you have to have them in a header file, namelyarch/arm/include/asm/u-boot-arm.h, regardless of whether they are defined instart.S. What does youru-boot-arm.hsay about them?They are not included in
arch/arm/include/asm/u-boot-arm.h. However_bss_start_ofs/_armboot_start_ofsare, not sure if its a misspell.
Not exactly misspelled... I renamed them myself in the ELF relocation patch -- which means your arch/arm/include/asm/u-boot-arm.h is that of the elf_reloc branch -- which means your board.c is not up to date.
Quoted 5 lines
Adding
_bss_start+_armboot_startintou-boot-arm.hmakes it
compile nicely :) Big thanks.
Still cant understand why it showed up now and
not in mye79f48393dd919079b34f37957c933f8e75c164drevision(from 13th of october).
And also why people with arm boards arent hitting this all the time, or is everyone running with relocation already?
Everyone should be. Now is a transition period where ARM board owners must support (ELF) relocation or else the boards are going to be removed, IIUC.
Quoted 1 line
Anyhow, the quick fix in case someone needs it:
This is not a quick fix; this is a workaround to a weird source tree issue.
Either you should build on the master branch (and then your .h file should already have _bss_start and _armboot_start or you build on the elf_reloc branch and should not refer to _bss_start and _armboot_start but to their _ofs counterparts throughout the code; you can look up how this is done on arm926ejs.
Amicalement,
Signature · 1 line
Albert.
Dear Albert ARIBAUD,
Quoted 6 lines · In message <[email protected]> you wrote:
Either you should build on the master branch (and then your .h file should already have
_bss_startand_armboot_startor you build on theelf_relocbranch and should not refer to_bss_startand_armboot_startbut to their_ofscounterparts throughout the code; you can look up how this is done on arm926ejs.
The elf_reloc has been merged into the master branch a couple of days ago. As such, it is only of historic interest.
All work should be based on the current master branch.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I think there's a world market for about five computers.
-- attr. Thomas J. Watson (Chairman of the Board, IBM), 1943Le 22/10/2010 22:47, Wolfgang Denk a ?crit :
Quoted 2 lines
The
elf_relochas been merged into the master branch a couple of days ago. As such, it is only of historic interest.
Sorry. I've obviously missed it; I've been rather busy this week. :/
Quoted 1 line
All work should be based on the current master branch.
Then there is no choice but to add full relocation support to the jornada board; reintroducing the _armboot_start and _bss_start symbols will only make things worse.
Quoted 3 lines
Best regards,
Wolfgang Denk
Amicalement,
Signature · 1 line
Albert.
Quoted 5 lines · Albert ARIBAUD
Le 22/10/2010 22:47, Wolfgang Denk a ?crit :
Quoted 2 lines
The
elf_relochas been merged into the master branch a couple of days ago. As such, it is only of historic interest.
Quoted 7 lines
Sorry. I've obviously missed it; I've been rather busy this week. :/
Quoted 1 line
All work should be based on the current master branch.
Then there is no choice but to add full relocation support to the jornada board; reintroducing the
_armboot_startand_bss_startsymbols will only make things worse.
Roger then I know my approach, thanks.
Quoted 8 lines
Quoted 4 lines
Best regards,
Wolfgang Denk
Amicalement,
Signature · 1 line
Albert.