Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Buildroot 2007-06-04 Released
PostPosted: Mon Jun 04, 2007 10:49 pm 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
#!/bin/bash
# All previous patches was applied to vanilla buildroot from May 31st.
# Most, if not all suggestions from other people have been applied, - thanks!
# Also updated the u-boot-1.2.0-atmel.tar.bz2 so you need to delete this
# from your download directory (default /usr/local/install/downloads)
# --------------
# Updated 2006-06-07: FIx mkimage path problem
# /Ulf

TOPDIR=`pwd`


BUILDROOT=buildroot-atmel
BUILDROOT_VER=2007-06-07

IPADDR=10.175.196.19
SERVERIP=10.175.196.220
GATEWAYIP=10.175.196.1

BUILDROOT_SOURCE=${BUILDROOT}-${BUILDROOT_VER}.cpio.bz2
BUILDROOT_SITE=ftp://at91dist:distrib@81.80.104.162/AT91_Third_Party_Design_Flow/Linux_Host/Source
DL_DIR=${TOPDIR}/Source
UNZIP=bzcat

function prepare_directories()
{
mkdir -p /tftpboot
mkdir -p /usr/local/arm
mkdir -p /usr/local/install/downloads
}

function get_buildroot()
{
if ! [ -d ${BUILDROOT} ] ; then
mkdir -p ${DL_DIR}
wget -P ${DL_DIR} ${BUILDROOT_SITE}/${BUILDROOT_SOURCE}
${UNZIP} ${DL_DIR}/${BUILDROOT_SOURCE} | cpio -idv
fi
}



function set_ipaddresses()
{
cd ${BUILDROOT}
echo "configuring ip addresses"
./netcfg.sh ${IPADDR} ${SERVERIP} ${GATEWAYIP}
cd ${TOPDIR}
}


function make_board()
{
cd ${BUILDROOT}
echo "building board $1"
make B=$1 board
make $2
make saveconfig
cd ${TOPDIR}
}

function make_all_boards()
{
make_board at91rm9200df $1
make_board at91sam9260dfc $1
make_board at91sam9261ek $1
make_board at91sam9263ek $1
}


prepare_directories
get_buildroot
set_ipaddresses
make -C ${BUILDROOT} menuconfig
make_all_boards source
make_all_boards

_________________
Best Regards
Ulf Samuelsson


Last edited by ulf on Thu Jun 07, 2007 11:06 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 3:26 pm 
Offline

Joined: Tue Feb 06, 2007 5:18 pm
Posts: 30
many thanks for this update ulf.

I'm testing this version of the buildroot on a ubuntu 7.04

The make stop with this error:
Code:
make[1]: Leaving directory `/home/davide/buildroot02/buildroot-atmel/target_build_arm_small/at91sam9261ek/linux-2.6.21.1'
touch -c /home/davide/buildroot02/buildroot-atmel/target_build_arm_small/at91sam9261ek/linux- 2.6.21.1/arch/arm/boot/uImage
cp      -dpf /home/davide/buildroot02/buildroot-atmel/target_build_arm_small/at91sam9261ek/linux- 2.6.21.1/arch/arm/boot/uImage  /home/davide/buildroot02/buildroot-atmel/target_build_arm_small/at91sam9261ek/linux-2.6.21.1/uImage
cp: cannot stat `/home/davide/buildroot02/buildroot-atmel/target_build_arm_small/at91sam9261ek/linux- 2.6.21.1/arch/arm/boot/uImage': No such file or directory
make: *** [/home/davide/buildroot02/buildroot-atmel/target_build_arm_small/at91sam9261ek/linux- 2.6.21.1/uImage] Error 1
cp      -f .config      configs/at91sam9261ek-2007-06-06.config


Could someone help me to identify the error?
I'm sorry but I'm a newbie with linux

thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 6:00 pm 
Offline

Joined: Tue Jan 09, 2007 8:33 pm
Posts: 22
Hi david80,

The error happens because the file uImage does not exist. This is typically because buildroot could not find mkimage, which is used to make uImage. If this is the case, it would be listed earlier in the build log.

The solution is to add mkimage to your path. This should already be built by buildroot and located at [buildroot-folder]/build_arm_small/.

To do this I usually copy mkimage to a folder in my path (ex: /usr/bin). You could also add the [buildroot-folder]/build_arm_small/ directory to your path.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 10:19 pm 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
Watch out for bad rootfs locations in bootargs as well
after running

defenv
run config

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 10:55 am 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
samus8zero2x wrote:
Hi david80,

The error happens because the file uImage does not exist. This is typically because buildroot could not find mkimage, which is used to make uImage. If this is the case, it would be listed earlier in the build log.

The solution is to add mkimage to your path. This should already be built by buildroot and located at [buildroot-folder]/build_arm_small/.

To do this I usually copy mkimage to a folder in my path (ex: /usr/bin). You could also add the [buildroot-folder]/build_arm_small/ directory to your path.


U-Boot creates mkimage in build_arm_small, but the kernel does not see that mkimage.
I decided to modify this from
MKIMAGE:=$(BUILD_DIR)/mkimage
to
MKIMAGE:=$(KERNEL_CROSS)mkimage

so now the toolset directory (visible from buildroot) will contain
arm-linux-mkimage

When Linux is called, it will define
make CROSS_COMPILE=$(KERNEL_CROSS) -C $(<kernel>)

and the kernel will use
$(CROSS_COMPILE)mkimage
to create the uImage

I will upload a new buildroot today that fixes this.
WIll also update the script to reflect this.

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 11:23 pm 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
Discovered a problem with U-Boot-1.2.0-atmel.
Think I am overwriting something so "bootargs" is not
initialized preoperly when defenv is run.

Uploaded a new version of u-boot-1.2.0-atmel.tar.bz2 which
fixes this problem on the at91sam9260dfc.
Not tested yet on any other board.
This fix should set the "initrd" to a correct value as well.

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 11:52 pm 
Offline

Joined: Tue Jan 09, 2007 8:33 pm
Posts: 22
Hi ulf,

I noticed that it was not setup for at91sam9261ek either. There is a default bootargs included in the kernel configuration...so if bootargs is not saved by u-boot, the kernel will try whatever it had instead.

Have we had a solution for the RTC problem on 9261ek? I had a similar issue on PowerPC a while back and it was kernel config related...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 7:29 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
Hi,

where is the latest version of the make_board script ?

Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 7:39 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
I have this error also when i try the one from this topic.


fakeroot_1.6.5.tar.gz not found.

this is on the ftp.debian.org

I have to download this manualy on another mirror of debian.

Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 9:18 pm 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
dumarjo wrote:
Hi,

where is the latest version of the make_board script ?

Jonathan

At the top of this thread :lol:

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 9:58 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
I got this error too

Code:
/bin/sh: /usr/local/arm/gcc-4.1.2-uclibc/bin/arm-linux-uclibc-gcc: No such file or directory
make[2]: /usr/local/arm/gcc-4.1.2-uclibc/bin/arm-linux-uclibc-gcc: Command not found
make[2]: /usr/local/arm/gcc-4.1.2-uclibc/bin/arm-linux-uclibc-gcc: Command not found
gcc -I/usr/include/ncurses -DCURSES_LOC="<ncurses>" -DLOCALE  -MM *.c > .depend 2>/dev/null || :
/bin/sh: /usr/local/arm/gcc-4.1.2-uclibc/bin/arm-linux-uclibc-gcc: No such file or directory
make[2]: /usr/local/arm/gcc-4.1.2-uclibc/bin/arm-linux-uclibc-gcc: Command not found
make[2]: /usr/local/arm/gcc-4.1.2-uclibc/bin/arm-linux-uclibc-gcc: Command not found


Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Last edited by dumarjo on Wed Jul 04, 2007 10:00 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 9:59 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
ulf wrote:
dumarjo wrote:
Hi,

where is the latest version of the make_board script ?

Jonathan

At the top of this thread :lol:


thanx

Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject: Re: Buildroot 2007-06-04 Released
PostPosted: Fri Jul 06, 2007 5:22 pm 
Offline

Joined: Fri Jul 06, 2007 11:00 am
Posts: 1
Location: Acme Systems srl - Rome - Italy
Hi Ulf

>BUILDROOT_VER=2007-06-07
...
>BUILDROOT_SOURCE=${BUILDROOT}-${BUILDROOT_VER}.cpio.bz2

I didn't find: http://www.at91.com/repFichier/Project- ... 7.cpio.bz2
as request by this script but just
http://www.at91.com/repFichier/Project- ... 2.cpio.bz2

How can I obtain this file ?

Thanks

Sergio


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 18, 2007 10:38 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
How to add another target.

I would like to add

at91rm9200ek.

regards

Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 20, 2007 12:39 am 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
dumarjo wrote:
How to add another target.

I would like to add

at91rm9200ek.

regards

Jonathan


In "target/device/Atmel" there is an at91rm9200ek directory,
but this has not been tested.
The at91rm9200df = at91rm9200ek running from
a dataflashcard.

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron