Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] build problems
@ 2008-03-05  1:33 Steve Calfee
  2008-03-05  9:20 ` Ulf Samuelsson
  0 siblings, 1 reply; 21+ messages in thread
From: Steve Calfee @ 2008-03-05  1:33 UTC (permalink / raw)
  To: buildroot



----- Original Message ----
> From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
> To: Steve Calfee <nospamcalfee@yahoo.com>
> Sent: Tuesday, March 4, 2008 4:21:09 PM
> Subject: Re: [Buildroot] build problems
> 
> Hi, I am continually having problems building.
> > I have the latest svn sources.
> > 
> > Does anybody know which of the arm926 projects ie xxxx_defconfig currently is 
> buildable. I would like to get an existing build to work before I customize it. 
> I am running on ubuntu Feisty.
> > 
> > As a second question, if I wish to change the package selection, do I need to 
> do a make clean? or will another make only deal with the current package 
> selections? If I do a make menuconfig, does it blitz the existing .config back 
> to defaults, or can I change packages at will starting with whatever prebuilt 
> xxx-defconfig I used?
> > 
> > Thanks, Steve
> > 
> > 
> 
> 
> I think that 
> 
> $ touch .config
> $ make at91sam9260dfc_defconfig
> $ make
> 
> should complete the build, but it was some time
> since I downloaded to a target, so I do not know if it will run.
> 
> I run OpenSuSE 10.2
> 

Thanks for the help. I had tried that before. the file package download site version had changed and I fixed that. Now when I do the build I get:

gzip -d -c /usr/local/install/downloads/libdaemon-0.12.tar.gz | tar -C /home/calfee/buildroot/arm/buildroot/build_arm   -xf -
toolchain/patch-kernel.sh /home/calfee/buildroot/arm/buildroot/build_arm/libdaemon-0.12 package/libdaemon/ \*.patch

Applying libdir-la.patch using plaintext: 
patching file ltmain.sh
Hunk #1 succeeded at 273 (offset 42 lines).
Hunk #2 succeeded at 2408 with fuzz 2 (offset 128 lines).
Hunk #3 succeeded at 2896 (offset 135 lines).
Hunk #4 succeeded at 5623 (offset 465 lines).
Hunk #5 succeeded at 5948 (offset 468 lines).

Applying xcompile-setpgrp.patch using plaintext: 
patching file configure.ac
cp -f package/gnuconfig/config.sub package/gnuconfig/config.guess /home/calfee/buildroot/arm/buildroot/build_arm/libdaemon-0.12
touch /home/calfee/buildroot/arm/buildroot/build_arm/libdaemon-0.12/.unpacked
(cd /home/calfee/buildroot/arm/buildroot/build_arm/libdaemon-0.12 && rm -rf config.cache && autoreconf)
configure.ac:41: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf2.50: /usr/bin/autoconf failed with exit status: 1
make: *** [/home/calfee/buildroot/arm/buildroot/build_arm/libdaemon-0.12/.configured] Error 1
calfee at squiggy-linux:~/buildroot/arm/buildroot$ 


I have tried several other defconfig packages, and they all seem to have their own peculiar failures. This failed after the busybox build, so I guess it is a selected package. I know you don't have time to diagnose my problem, that is why I am looking for someone who has a recent arm926 package building with pure buildroot files. Maybe there isn't any?

Thanks for the suggestion, Steve




      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Buildroot] build problems
@ 2008-03-26 16:09 Tim Barr
  0 siblings, 0 replies; 21+ messages in thread
From: Tim Barr @ 2008-03-26 16:09 UTC (permalink / raw)
  To: buildroot

FYI, when I modified the buildroot config to generate a uImage file, it
could not find the file so it could copy it into the binaries directory.
Looking at the log file, builroot was looking for the uImage file in the
"kernel" root directory instead of the "kernel"/arch/arm/boot directory.
At least I know where to find the uImage file so I can test it.

cp -dpf
/home/falingtrea/buildroot/project_build_arm/SuperModem-2.6.22.1/linux-2
.6.22.1/uImage
/home/falingtrea/buildroot/binaries/SuperModem-2.6.22.1/at91sam9260dfc-l
inux-2.6.22.1-20080326

Should be:

cp -dpf
/home/falingtrea/buildroot/project_build_arm/SuperModem-2.6.22.1/linux-2
.6.22.1/arch/arm/boot/uImage
/home/falingtrea/buildroot/binaries/SuperModem-2.6.22.1/at91sam9260dfc-l
inux-2.6.22.1-20080326


Timothy Barr
Hardware Development Engineer
for Multi-Tech Systems, Inc.
tbarr at multitech.com

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Buildroot] build problems
@ 2008-03-26 12:59 Tim Barr
  2008-03-26 20:50 ` Ulf Samuelsson
  0 siblings, 1 reply; 21+ messages in thread
From: Tim Barr @ 2008-03-26 12:59 UTC (permalink / raw)
  To: buildroot

> -----Original Message-----
> From: Ulf Samuelsson [mailto:ulf.samuelsson at atmel.com] 
> Sent: Tuesday, March 25, 2008 5:42 PM
> To: Tim Barr; Buildroot List
> Subject: Re: [Buildroot] build problems
> 
> 
> Yes, but your development would be much easier if you got 
> a few free samples of an AT45DCB008D Dataflashcard.
> 
Only one possible problem I see with this. Looking at the 9260EK board,
there is a 0 ohm resistor(R42) connecting SPI0_CLK and MCCLK. I am
assuming this is there so that a DataFlash Card can be read from the SD
card slot. This also means that SPI0 has to be disabled after boot if
you want to use the SD card slot for SD cards. So if I want to be able
to us the SPI port for other devices, I have to remove that resistor
which makes the DataFlash card interface useless.

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Buildroot] build problems
@ 2008-03-25 21:43 Tim Barr
  2008-03-25 22:41 ` Ulf Samuelsson
  0 siblings, 1 reply; 21+ messages in thread
From: Tim Barr @ 2008-03-25 21:43 UTC (permalink / raw)
  To: buildroot

Well, I guess part of the problem is that there is no at91sam9260ek
directory in the target/device/atmel directory, even though there is a
at91sam9260ek target board selection in the buildroot .config file. The
two target directories available are at91sam9260dfc and at91sam9260pf. I
am not sure if the dfc means DataFlash card or chip, but the board could
use either I think. The card interface is CS_0 and the on-board chip is
CS_1. The board I have did not come with a DataFlash card so it has been
booting off of the on-board chip. So I assume I can use the dfc
defconfig but make sure the boot memory parameter in the config files is
set to CS_1. 

Also, when I run it right now and try to do a "make configured", I get
an error because it can't copy busybox-1.9.2.config. It looks like
busybox has been updated, but a new config file has not been put into
the target/device/atmel/at91sam9260dfc directory. So do I rename the
busybox-1.9.1.config file to busybox-1.9.2.config? Also, if I run "make
menuconfig" from the buildroot directory and look at the package
selection, busybox-1.9.x is selected. But the parameter 'busybox
configuration file to use' has '/package/busybox/busybox-1.6.0.config"
in it. Really confusing.

Some possibly good news, though. Using the at91sam9260dfc defconfig and
renaming the "busybox-1.9.1.config" file to "busybox-1.9.2.config" it
seems I finally completed a build. There are files in the binaries
directory of my project now. The linux kernel is 4mb so I assume it is
not a uImage, and I need to find where that setting is. Then I need to
see if it actually runs without panicking.

But, if I understand things correctly, the uboot and boot.bin files in
the binaries directory are for a EK board with a DataFlash card in the
SD slot, and would not work for the DataFlash chip on the board. I
wonder if I replaced the kernel and rfs files in the prebuilt binary
package I downloaded from Linux4Sam, I could get it to work? I will try
that when I get a chance.

Timothy Barr
Hardware Development Engineer
for Multi-Tech Systems, Inc.
tbarr at multitech.com 

-----Original Message-----
From: buildroot-bounces@uclibc.org [mailto:buildroot-bounces at uclibc.org]
On Behalf Of John Voltz
Sent: Monday, March 24, 2008 7:52 AM
To: Buildroot List
Subject: Re: [Buildroot] build problems


Timothy,

What type of problems are you having with buildroot? What's failing for
you?

John Voltz


On Mon, Mar 24, 2008 at 8:45 AM, Tim Barr <tbarr@multitech.com> wrote:

I have had a similar problem, Steve. I wonder if any of the maintainers
has tried running buildroot after a dirclean recently? Or cleared out
the download directory to see if any package download interfaces have
changed? I have been trying to get a successful buildroot process (for
an AT91SAM9260EK) to complete for over 3 months now with no luck
whatsoever. I ended up having to buy a Timesys linuxlink license in
order to move forward.

Timothy Barr
Hardware Development Engineer
for Multi-Tech Systems, Inc.
tbarr at multitech.com



> -----Original Message-----
> From: buildroot-bounces at uclibc.org
> [mailto:buildroot-bounces at uclibc.org] On Behalf Of Steve Calfee
> Sent: Sunday, March 23, 2008 10:51 AM
> To: buildroot at uclibc.org
> Subject: Re: [Buildroot] build problems
>
>
> Hi All,
>
> I used buildroot a couple of years ago successfully with a
> samsung 2410 soc.
>
> I am now trying to use it for a new project. My problem is I
> cannot get any build to work.
>
> Has anyone done a svn update and select a default config and
> have it build? I want to build an arm system, but first I
> would like some default config to build. I am using ubuntu
> feisty and think I have installed all the required tools. The
> mailing list seems to be quite active, but things seem to be
> in chaos. Can anyone tell me a starting place that is known to work?
>
> Thanks, Steve
>

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Buildroot] build problems
@ 2008-03-25  2:37 Steve Calfee
  0 siblings, 0 replies; 21+ messages in thread
From: Steve Calfee @ 2008-03-25  2:37 UTC (permalink / raw)
  To: buildroot

Hi John,

I can't speak for Tim. My problems are that stuff I don't know about and don't know how to change - entirely unrelated to embedded kernel issues cause my build to break. I have a newly svn update'd source tree. I would just once like to build a default config before I start customizing. I cannot get through a make. Thats why I keep asking if anyone has a default config (for an arm926) that will build with the current (or any previously tagged) svn tree. I run Ubuntu feisy and think I have all the necessary host tools.

This sequence was copied from the http://www.linux4sam.org/twiki/bin/view/Linux4SAM/BuildRoot website where I do:

$ make menuconfig
$ make at91sam9260dfc_defconfig
$ make > at91sam9260dfc.log 2>&1

and here is a snip of the log file:

cp /home/calfee/buildroot/arm/buildroot/toolchain_build_arm/ccache-2.4/ccache /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin
# Keep the actual toolchain binaries in a directory at the same level.
# Otherwise, relative paths for include dirs break.
mkdir -p /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin-ccache
(cd /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin-ccache; \
                ln -fs arm-linux-uclibc-gcc arm-linux-gcc; \
                ln -fs arm-linux-uclibc-gcc arm-linux-cc; \
                ln -fs arm-linux-uclibc-gcc arm-linux-uclibc-cc; \
        )
[ -f /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc ] && \
                mv /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc \
                        /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin-ccache/
(cd /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin; \
                ln -fs ccache arm-linux-cc; \
                ln -fs ccache arm-linux-gcc; \
                ln -fs ccache arm-linux-uclibc-cc; \
                ln -fs ccache arm-linux-uclibc-gcc; \
        )
[ -f /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-c++ ] && \
                mv /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-c++ \
                        /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin-ccache/
[ -f /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-g++ ] && \
                mv /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-g++ \
                        /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin-ccache/
(cd /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin; \
                ln -fs ccache arm-linux-c++; \
                ln -fs ccache arm-linux-g++;\
                ln -fs ccache arm-linux-uclibc-c++; \
                ln -fs ccache arm-linux-uclibc-g++; \
        )
(cd /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin-ccache; \
                ln -fs arm-linux-uclibc-c++ arm-linux-c++; \
                ln -fs arm-linux-uclibc-g++ arm-linux-g++; \
        )
mkdir -p /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/arm-linux-uclibc/bin
/usr/bin/gcc -g -O2 .//toolchain/sstrip/sstrip.c -o /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-sstrip
ln -snf ../../bin/arm-linux-uclibc-sstrip \
                /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/arm-linux-uclibc/bin/sstrip
ln -snf arm-linux-uclibc-sstrip \
                /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-sstrip
/home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc -O2  -I/home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/include -I/home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/include --sysroot=/home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/ -isysroot /home/calfee/buildroot/arm/buildroot/build_arm/staging_dir .//toolchain/sstrip/sstrip.c -o /home/calfee/buildroot/arm/buildroot/project_build_arm/at91sam9260dfc/root/usr/bin/sstrip
/home/calfee/buildroot/arm/buildroot/build_arm/staging_dir/usr/bin-ccache/../lib/gcc/arm-linux-uclibc/4.2.1/../../../../arm-linux-uclibc/bin/ld: cannot open output file /home/calfee/buildroot/arm/buildroot/project_build_arm/at91sam9260dfc/root/usr/bin/sstrip: No such file or directory
collect2: ld returned 1 exit status
make: *** [/home/calfee/buildroot/arm/buildroot/project_build_arm/at91sam9260dfc/root/usr/bin/sstrip] Error 1
[1]+  Exit 2                  make > at91sam9260dfc.log 2>&1

 
 Then I checked to see if sstrip exists:
 
 calfee at squiggy-linux:~/buildroot/arm/buildroot$ find . -name sstrip
./build_arm/staging_dir/usr/arm-linux-uclibc/bin/sstrip
./toolchain/sstrip

calfee at squiggy-linux:~/buildroot/arm/buildroot$ ./build_arm/staging_dir/usr/arm-linux-uclibc/bin/sstrip
Usage: sstrip FILE...
sstrip discards all nonessential bytes from an executable.


And it does, so the path in the makefile must be wrong.

Indeed:
calfee at squiggy-linux:~/buildroot/arm/buildroot$ /home/calfee/buildroot/arm/buildroot/project_build_arm/at91sam9260dfc/root/usr/bin/sstrip
bash: /home/calfee/buildroot/arm/buildroot/project_build_arm/at91sam9260dfc/root/usr/bin/sstrip: No such file or directory

So in this case it seems something has changed in directory naming and somewhere the makefiles are broken. I don't think I have any changed files in my source tree.

As one new to the current buildroot system, I have no idea how to proceed.

Regards, Steve






      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Buildroot] build problems
@ 2008-03-24 12:45 Tim Barr
  2008-03-24 12:52 ` John Voltz
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Tim Barr @ 2008-03-24 12:45 UTC (permalink / raw)
  To: buildroot

I have had a similar problem, Steve. I wonder if any of the maintainers
has tried running buildroot after a dirclean recently? Or cleared out
the download directory to see if any package download interfaces have
changed? I have been trying to get a successful buildroot process (for
an AT91SAM9260EK) to complete for over 3 months now with no luck
whatsoever. I ended up having to buy a Timesys linuxlink license in
order to move forward.

Timothy Barr
Hardware Development Engineer
for Multi-Tech Systems, Inc.
tbarr at multitech.com



> -----Original Message-----
> From: buildroot-bounces at uclibc.org 
> [mailto:buildroot-bounces at uclibc.org] On Behalf Of Steve Calfee
> Sent: Sunday, March 23, 2008 10:51 AM
> To: buildroot at uclibc.org
> Subject: Re: [Buildroot] build problems
> 
> 
> Hi All,
> 
> I used buildroot a couple of years ago successfully with a 
> samsung 2410 soc.
> 
> I am now trying to use it for a new project. My problem is I 
> cannot get any build to work.
>  
> Has anyone done a svn update and select a default config and 
> have it build? I want to build an arm system, but first I 
> would like some default config to build. I am using ubuntu 
> feisty and think I have installed all the required tools. The 
> mailing list seems to be quite active, but things seem to be 
> in chaos. Can anyone tell me a starting place that is known to work?
> 
> Thanks, Steve
> 
> 
> 
>       
> ______________________________________________________________
> ______________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org http://busybox.net/mailman/listinfo/buildroot
> 

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Buildroot] build problems
@ 2008-03-23 15:51 Steve Calfee
  2008-03-25 10:10 ` Ulf Samuelsson
  0 siblings, 1 reply; 21+ messages in thread
From: Steve Calfee @ 2008-03-23 15:51 UTC (permalink / raw)
  To: buildroot

Hi All,

I used buildroot a couple of years ago successfully with a samsung 2410 soc.

I am now trying to use it for a new project. My problem is I cannot get any build to work.
 
Has anyone done a svn update and select a default config and have it build? I want to build an arm system, but first I would like some default config to build. I am using ubuntu feisty and think I have installed all the required tools. The mailing list seems to be quite active, but things seem to be in chaos. Can anyone tell me a starting place that is known to work?

Thanks, Steve



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Buildroot] build problems
@ 2008-03-04 22:19 Steve Calfee
  0 siblings, 0 replies; 21+ messages in thread
From: Steve Calfee @ 2008-03-04 22:19 UTC (permalink / raw)
  To: buildroot

Hi, I am continually having problems building.
I have the latest svn sources.

Does anybody know which of the arm926 projects ie xxxx_defconfig currently is buildable. I would like to get an existing build to work before I customize it. I am running on ubuntu Feisty.

As a second question, if I wish to change the package selection, do I need to do a make clean? or will another make only deal with the current package selections? If I do a make menuconfig, does it blitz the existing .config back to defaults, or can I change packages at will starting with whatever prebuilt xxx-defconfig I used?

Thanks, Steve









      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-03-27 11:24 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-05  1:33 [Buildroot] build problems Steve Calfee
2008-03-05  9:20 ` Ulf Samuelsson
  -- strict thread matches above, loose matches on Subject: below --
2008-03-26 16:09 Tim Barr
2008-03-26 12:59 Tim Barr
2008-03-26 20:50 ` Ulf Samuelsson
2008-03-25 21:43 Tim Barr
2008-03-25 22:41 ` Ulf Samuelsson
2008-03-26 11:11   ` Peter Korsgaard
2008-03-26 17:17     ` Bernhard Fischer
2008-03-26 22:39       ` Peter Korsgaard
2008-03-27 11:24         ` Bernhard Fischer
2008-03-26 21:15     ` Ulf Samuelsson
2008-03-26 21:34       ` Peter Korsgaard
2008-03-25  2:37 Steve Calfee
2008-03-24 12:45 Tim Barr
2008-03-24 12:52 ` John Voltz
2008-03-24 21:12 ` Lucian Lazarescu
2008-03-25 10:08 ` Ulf Samuelsson
2008-03-23 15:51 Steve Calfee
2008-03-25 10:10 ` Ulf Samuelsson
2008-03-04 22:19 Steve Calfee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox