Linux & Open Source related information for AT91 Smart ARM Microcontrollers

View   r13  >  r12  >  r11  >  r10  >  r9  ...

BuildRoot 13 - 28 Nov 2007 - Main.UlfSamuelsson
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->

Buildroot

Changed:
<
<
Buildroot is a preconfigured collection of scripts which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system based on uClibc C library.
>
>
Buildroot is a configurable Makefile which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system based on uClibc C library.

It uses the Linux KConfig configuration system, allowing easy selection of root fs contents. The Makefile will include the ".config" file generated by KConfig, and the contents of this file will determine what should be built, and which version should be used.

 It is relatively easy to go from there to adding your own programs and such to it so your entire build process is automated.
Line: 35 to 39
 $ svn co svn://uclibc.org/trunk/buildroot
Changed:
<
<
The Original buildroot for AT91 as published on www.at91.com, is now
>
>
The original buildroot for AT91 as published on www.at91.com, is now
 considered deprecated, and will not be maintained.
Added:
>
>
Still it is available for download by the script at the end of this page.
 Most, if not all functionality of this, has been transferred to the main trunk above.
Deleted:
<
<
The script at the end will download the original Buildroot for AT91.
 

Buildroot Documentation

You should read the documentation in the doc/Buildroot.html file.
Line: 128 to 132
 retrieved by
Changed:
<
<
$ make B= getconfig
>
>
$ make BOARD= getconfig
 

BuildRoot 12 - 27 Nov 2007 - Main.UlfSamuelsson
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->
Added:
>
>

Buildroot

 Buildroot is a preconfigured collection of scripts which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system based on uClibc C library.

BuildRoot 11 - 27 Nov 2007 - Main.UlfSamuelsson
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->
Line: 6 to 6
 It is relatively easy to go from there to adding your own programs and such to it so your entire build process is automated.
Changed:
<
<
The script at the end will download the original Buildroot for AT91. This is to be considered deprecated, since most, if not all of the contents has been transferred to the main buildroot trunk which resides at:
>
>
Home website : http://buildroot.uclibc.org/
 
Added:
>
>
Buildroot will not run on Cygwin. You need a proper Linux installation. If you have Windows, you should consider installing a VMWare allowing you to run Linux on top of Windows.

The Buildroot for AT91 can build

  • Cross-compiler
  • AT91Bootstrap
  • U-Boot
  • U-Boot configuration scripts
  • Linux
  • Root file systems of different types
 
Changed:
<
<
Home website : http://buildroot.uclibc.org/
>
>
It will take 3-4 hours to run on a P4-3.6 GHz.

Downloading Buildroot

 
Changed:
<
<
To access the latest trunk, create a subdirectory and run the command:
>
>
To access the latest trunk, you need to have "subversion" installed on your machine.
 
Added:
>
>
Create a subdirectory and run the command:
 $ svn co svn://uclibc.org/trunk/buildroot
Added:
>
>
 
Changed:
<
<
Once you have downloaded, you could try out building for the AT91SAM9260? by running the following commands.
>
>
The Original buildroot for AT91 as published on www.at91.com, is now considered deprecated, and will not be maintained. Most, if not all functionality of this, has been transferred to the main trunk above.

The script at the end will download the original Buildroot for AT91.

 
Added:
>
>

Buildroot Documentation

You should read the documentation in the doc/Buildroot.html file.

Configuring the Buildroot Download location.

Before running buildroot, you should consider adding a default path for Buildroot downloads. We will use "/usr/local/install/downloads" in this example.

sudo mkdir -p /usr/local/install/downloads

Then you should add the following line to your ~/.bashrc

export BUILDROOT_DL_DIR=/usr/local/install/downloads

Configuring Buildroot

Buildroot uses the Linux KConfig configuration system. By running
$ make menuconfig
you will compile KConfig and start a menu based configurator. You should always run menuconfig at least once, before trying any "make ". If you plan to run a "make <*>_defconfig" command then you can exit and save immediately.

Configuring Buildroot for the AT91SAM9260? running from a dataflashcard.

 $ make menuconfig $ make at91sam9260dfc_defconfig $ make > at91sam9260dfc.log 2>&1
Added:
>
>
 
Changed:
<
<
The first command will start the buildroot configuration menu. It is neccessary to run this due to a minor bug in the Makefile, and you can exit this immediately. The only effect is that it will create a valid ".config" file.
>
>
The first command will create the initial ".config" file
 The second command will copy a valid buildroot configuration to the ".config" file.

The third command will build everything.

Deleted:
<
<
Buildroot can build * Cross-compiler * Bootstrap * U-Boot * Linux * Root file system
 
Changed:
<
<
It will take 3-4 hours to run on a P4-3.6 GHz.
>
>

Making a custom project

 If you want to create your own board support package, you start by using one of the basic boards.
Line: 52 to 95
 Once the config file is OK, you could type:
Added:
>
>
 $ make configured
Added:
>
>
 This will unpack linux and busybox in the "project_build_dir/" directory and uclibc in the "toolchain/uClibc-" directory.
Line: 60 to 105
 reconfigure the package.

I.E: In linux the

Added:
>
>
 $ make ARCH=arm xconfig
Added:
>
>
 command would do the trick.
Changed:
<
<
When you do
>
>
Define a PROJECT name in the buildroot configurator by:
 $ make menuconfig
Changed:
<
<
from the top directory of buildroot, you can define a PROJECT name somewhere, and this will be used for many things.
>
>
from the top directory of buildroot. The "project name" can be configured from the "Target options" submenu
 By doing
Added:
>
>
 $ make saveconfig
Added:
>
>
 you will save the configuration of busybox, uclibc and linux in the "local/" directory, and this can be retrieved by
Added:
>
>
 $ make B= getconfig
Added:
>
>
 
Line: 83 to 136
 Check http://www.at91.com/phpbb/viewtopic.php?t=3193
Changed:
<
<
>
>

Deprecated AT91 Buildroot

 
#!/bin/bash
# All previous patches was applied to vanilla buildroot from May 31st.

BuildRoot 10 - 26 Nov 2007 - Main.UlfSamuelsson
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->
Line: 6 to 6
 It is relatively easy to go from there to adding your own programs and such to it so your entire build process is automated.
Added:
>
>
The script at the end will download the original Buildroot for AT91. This is to be considered deprecated, since most, if not all of the contents has been transferred to the main buildroot trunk which resides at:
 Home website : http://buildroot.uclibc.org/
Added:
>
>
To access the latest trunk, create a subdirectory and run the command:

$ svn co svn://uclibc.org/trunk/buildroot

Once you have downloaded, you could try out building for the AT91SAM9260? by running the following commands.

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

The first command will start the buildroot configuration menu. It is neccessary to run this due to a minor bug in the Makefile, and you can exit this immediately. The only effect is that it will create a valid ".config" file.

The second command will copy a valid buildroot configuration to the ".config" file.

The third command will build everything.

Buildroot can build * Cross-compiler * Bootstrap * U-Boot * Linux * Root file system

It will take 3-4 hours to run on a P4-3.6 GHz.

If you want to create your own board support package, you start by using one of the basic boards. (Look in "target/device/Atmel/*" for "<*>_defconfig" files)

make at91sam9260dfc_defconfig will configure to use the AT91SAM9260? running from the dataflashcard.

Once the config file is OK, you could type:

$ make configured

This will unpack linux and busybox in the "project_build_dir/" directory and uclibc in the "toolchain/uClibc-" directory. You can by entering this directory and typing the appropriate command reconfigure the package.

I.E: In linux the $ make ARCH=arm xconfig command would do the trick.

When you do $ make menuconfig from the top directory of buildroot, you can define a PROJECT name somewhere, and this will be used for many things.

By doing $ make saveconfig

you will save the configuration of busybox, uclibc and linux in the "local/" directory, and this can be retrieved by

$ make B= getconfig

 
<-- suit it to your needs -->

BuildRoot 9 - 05 Nov 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->
Line: 13 to 13
 Check http://www.at91.com/phpbb/viewtopic.php?t=3193
Deleted:
<
<
test 3
 
#!/bin/bash

BuildRoot 8 - 05 Nov 2007 - Main.RfoLnx4sam
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->
Line: 13 to 13
 Check http://www.at91.com/phpbb/viewtopic.php?t=3193
Changed:
<
<
test
>
>
test 3
 
#!/bin/bash

BuildRoot 7 - 05 Nov 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->
Line: 13 to 13
 Check http://www.at91.com/phpbb/viewtopic.php?t=3193
Added:
>
>
test
 
#!/bin/bash

BuildRoot 6 - 05 Nov 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->
Line: 10 to 10
 

<-- suit it to your needs -->
\ No newline at end of file
Added:
>
>
Check http://www.at91.com/phpbb/viewtopic.php?t=3193

#!/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 2007-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

BuildRoot 5 - 09 Oct 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->
Changed:
<
<
Buildroot is a preconfigured collection of scripts which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system.
>
>
Buildroot is a preconfigured collection of scripts which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system based on uClibc C library.
 It is relatively easy to go from there to adding your own programs and such to it so your entire build process is automated.
Added:
>
>
Home website : http://buildroot.uclibc.org/
 
<-- suit it to your needs -->
\ No newline at end of file

BuildRoot 4 - 01 Oct 2007 - Main.RfoLnx4sam
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
<-- A short intro taken on the AT91 Forum, can be erased -->

BuildRoot 3 - 01 Oct 2007 - Main.UlfSamuelsson
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Added:
>
>
<-- A short intro taken on the AT91 Forum, can be erased -->
 Buildroot is a preconfigured collection of scripts which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system.

It is relatively easy to go from there to adding your own programs and such to it so your entire build process is automated. \ No newline at end of file

Added:
>
>
<-- suit it to your needs -->
 \ No newline at end of file

BuildRoot 2 - 27 Sep 2007 - Main.RfoLnx4sam
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Deleted:
<
<
 Buildroot is a preconfigured collection of scripts which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system.

It is relatively easy to go from there to adding your own programs and such to it so your entire build process is automated.

Line: 5 to 4
 Buildroot is a preconfigured collection of scripts which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system.

It is relatively easy to go from there to adding your own programs and such to it so your entire build process is automated.

Deleted:
<
<

(from sam-protal forum)


BuildRoot 1 - 04 Jul 2007 - Main.NicolasFerre
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Buildroot is a preconfigured collection of scripts which downloads, configures, and builds cross compilers, the kernel, busybox, and most of the other stuff needed for a simple, small complete linux distribution and root file system.

It is relatively easy to go from there to adding your own programs and such to it so your entire build process is automated.

(from sam-protal forum)


Revision 13r13 - 28 Nov 2007 - 00:34:57 - UlfSamuelsson
Revision 12r12 - 27 Nov 2007 - 11:23:44 - UlfSamuelsson
Revision 11r11 - 27 Nov 2007 - 06:34:26 - UlfSamuelsson
Revision 10r10 - 26 Nov 2007 - 23:57:05 - UlfSamuelsson
Revision 9r9 - 05 Nov 2007 - 15:55:14 - NicolasFerre
Revision 8r8 - 05 Nov 2007 - 15:47:13 - RfoLnx4sam
Revision 7r7 - 05 Nov 2007 - 15:39:08 - NicolasFerre
Revision 6r6 - 05 Nov 2007 - 10:45:05 - NicolasFerre
Revision 5r5 - 09 Oct 2007 - 08:16:45 - NicolasFerre
Revision 4r4 - 01 Oct 2007 - 08:30:16 - RfoLnx4sam
Revision 3r3 - 01 Oct 2007 - 08:29:37 - UlfSamuelsson
Revision 2r2 - 27 Sep 2007 - 15:51:07 - RfoLnx4sam
Revision 1r1 - 04 Jul 2007 - 09:11:32 - NicolasFerre
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel® and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
ARM® and others are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.
Syndicate this site RSSATOM