Linux & Open Source related information for AT91 Smart ARM Microcontrollers

View   r53  >  r52  >  r51  >  r50  >  r49  ...

U-Boot 53 - 10 Oct 2008 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 38 to 38
 u-boot-1.1.5_atmel_1.7-at91sam9263ek-dataflash.bin |
at91sam9rlek u-boot binary with environment in Dataflash card (SPI 0 CS 0) u-boot-1.1.5_atmel_1.7-at91sam9rlek-dataflash.bin
Added:
>
>
at91sam9g20ek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.7-at91sam9g20ek-dataflash.bin
 

NandFlash

1.1.5 atmel 1.7
Line: 52 to 55
 u-boot-1.1.5_atmel_1.7-at91sam9263ek-nandflash.bin |
at91sam9rlek u-boot binary with environment in NandFlash u-boot-1.1.5_atmel_1.7-at91sam9rlek-nandflash.bin
Added:
>
>
at91sam9g20ek u-boot binary with environment in NandFlash u-boot-1.1.5_atmel_1.7-at91sam9g20ek-nandflash.bin
 
Old binaries u-boot-1.1.5_atmel_1.5 u-boot-1.1.5_atmel_1.6

U-Boot 52 - 25 Jun 2008 - Main.PatriceVilchez
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 18 to 18
 

U-boot pre-built images

A revision of u-boot for AT91 boards is built from the official u-boot website and a patch against this revision of u-boot.

Changed:
<
<
This patch is regularly updated. The _atmel_1.6 suffix indicates the release number of this patch.
>
>
This patch is regularly updated. The _atmel_1.7 suffix indicates the release number of this patch.
 

U-boot environment

The u-boot environment is a little read/write persistent space that stores variables needed by the bootloader to configure itself properly and to adapt to its environment (network configuration, boot arguments, storage location, etc.). It is located in the same media that it has booted from. Check Boot capabilities matrix to know where the u-boot environment is located for the pre-built binary.

U-boot 1.1.5 atmel 1.x binaries

Changed:
<
<
1.1.5 atmel 1.6
>
>

DataFlash

1.1.5 atmel 1.7
 
Board Description Binary
| at91sam9260ek | u-boot binary with environment in Dataflash chip (SPI 0 CS 1) |
Changed:
<
<
u-boot-1.1.5_atmel_1.6_at91sam9260ek.bin |
>
>
u-boot-1.1.5_atmel_1.7-at91sam9260ek-dataflash.bin |
 | at91sam9xeek | u-boot binary with environment in Dataflash chip (SPI 0 CS 1) |
Changed:
<
<
u-boot-1.1.5_atmel_1.6_at91sam9xeek.bin |
>
>
u-boot-1.1.5_atmel_1.7-at91sam9xeek-dataflash.bin |
 | at91sam9261ek | u-boot binary with environment in Dataflash chip (SPI 0 CS 0) |
Changed:
<
<
u-boot-1.1.5_atmel_1.6_at91sam9261ek.bin |
>
>
u-boot-1.1.5_atmel_1.7-at91sam9261ek-dataflash.bin |
 | at91sam9263ek | u-boot binary with environment in Dataflash card (SPI 0 CS 0) |
Changed:
<
<
u-boot-1.1.5_atmel_1.6_at91sam9263ek.bin |
>
>
u-boot-1.1.5_atmel_1.7-at91sam9263ek-dataflash.bin |
 | at91sam9rlek | u-boot binary with environment in Dataflash card (SPI 0 CS 0) |
Changed:
<
<
u-boot-1.1.5_atmel_1.6_at91sam9rlek.bin |
1.1.5 atmel 1.5
>
>
u-boot-1.1.5_atmel_1.7-at91sam9rlek-dataflash.bin |

NandFlash

1.1.5 atmel 1.7
 
Board Description Binary
Changed:
<
<
at91sam9260ek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin
at91sam9xeek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin
at91sam9261ek u-boot binary with environment in Dataflash chip (SPI 0 CS 0) u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin
at91sam9263ek u-boot binary with environment in Dataflash card (SPI 0 CS 0) u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin
>
>
at91sam9260ek u-boot binary with environment in NandFlash u-boot-1.1.5_atmel_1.7-at91sam9260ek-nandflash.bin
at91sam9xeek u-boot binary with environment in NandFlash u-boot-1.1.5_atmel_1.7-at91sam9xeek-nandflash.bin
at91sam9261ek u-boot binary with environment in NandFlash u-boot-1.1.5_atmel_1.7-at91sam9261ek-nandflash.bin
at91sam9263ek u-boot binary with environment in NandFlash u-boot-1.1.5_atmel_1.7-at91sam9263ek-nandflash.bin
at91sam9rlek u-boot binary with environment in NandFlash u-boot-1.1.5_atmel_1.7-at91sam9rlek-nandflash.bin
 
Added:
>
>
Old binaries u-boot-1.1.5_atmel_1.5 u-boot-1.1.5_atmel_1.6
 

Load u-boot on AT91 boards

This section describes How to load u-boot into the boot media with SAM-BA.

Line: 228 to 234
 
Description Source Patch
Changed:
<
<
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
u-boot-1.1.5_atmel_1.6.diff
u-boot-1.1.5_atmel_1.5.diff.bz2
>
>
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
u-boot-1.1.5_atmel_1.7.diff
u-boot-1.1.5_atmel_1.6.diff
u-boot-1.1.5_atmel_1.5.diff.bz2
 

U-boot 1.2.0 atmel sources

Line: 244 to 249
 Above, we talked about the location of the u-boot environment. Here is a way to modify it to your needs :
Changed:
<
<
The environment configuration resides in a header file ; you just have to define or undef pre-compilation variables:
>
>
With u-boot-1.1.5_atmel_1.7.diff patch you can choose location of environment variables at configuration step.

To put environment variables in dataflash (default):

   make at91sam9xxxek_dataflash_config
To put environment variables in nandflash:
   make at91sam9xxxek_nandflash_config

With other revision, the environment configuration resides in a header file ; you just have to define or undef pre-compilation variables:

 
Product Config file Piece of code involved

U-Boot 51 - 15 Apr 2008 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 36 to 36
 u-boot-1.1.5_atmel_1.6_at91sam9261ek.bin |
at91sam9263ek u-boot binary with environment in Dataflash card (SPI 0 CS 0) u-boot-1.1.5_atmel_1.6_at91sam9263ek.bin
Added:
>
>
at91sam9rlek u-boot binary with environment in Dataflash card (SPI 0 CS 0) u-boot-1.1.5_atmel_1.6_at91sam9rlek.bin
 
1.1.5 atmel 1.5
Board Description Binary
| at91sam9260ek | u-boot binary with environment in Dataflash chip (SPI 0 CS 1) |

U-Boot 50 - 15 Apr 2008 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 18 to 18
 

U-boot pre-built images

A revision of u-boot for AT91 boards is built from the official u-boot website and a patch against this revision of u-boot.

Changed:
<
<
This patch is regularly updated. The _atmel_1.5 suffix indicates the release number of this patch.
>
>
This patch is regularly updated. The _atmel_1.6 suffix indicates the release number of this patch.
 

U-boot environment

The u-boot environment is a little read/write persistent space that stores variables needed by the bootloader to configure itself properly and to adapt to its environment (network configuration, boot arguments, storage location, etc.). It is located in the same media that it has booted from. Check Boot capabilities matrix to know where the u-boot environment is located for the pre-built binary.

Changed:
<
<

U-boot 1.1.5 atmel 1.5 binaries

>
>

U-boot 1.1.5 atmel 1.x binaries

 
Changed:
<
<
Board Description Binary
>
>
1.1.5 atmel 1.6
Board Description Binary
 | at91sam9260ek | u-boot binary with environment in Dataflash chip (SPI 0 CS 1) |
Changed:
<
<
u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin |
>
>
u-boot-1.1.5_atmel_1.6_at91sam9260ek.bin |
 | at91sam9xeek | u-boot binary with environment in Dataflash chip (SPI 0 CS 1) |
Changed:
<
<
u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin |
>
>
u-boot-1.1.5_atmel_1.6_at91sam9xeek.bin |
 | at91sam9261ek | u-boot binary with environment in Dataflash chip (SPI 0 CS 0) |
Changed:
<
<
u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin |
>
>
u-boot-1.1.5_atmel_1.6_at91sam9261ek.bin |
 | at91sam9263ek | u-boot binary with environment in Dataflash card (SPI 0 CS 0) |
Changed:
<
<
u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin |
>
>
u-boot-1.1.5_atmel_1.6_at91sam9263ek.bin |
1.1.5 atmel 1.5
Board Description Binary
at91sam9260ek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin
at91sam9xeek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin
at91sam9261ek u-boot binary with environment in Dataflash chip (SPI 0 CS 0) u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin
at91sam9263ek u-boot binary with environment in Dataflash card (SPI 0 CS 0) u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin
 

Load u-boot on AT91 boards

Line: 211 to 222
 You will have a fresh source copy of the AT91 u-boot.
Changed:
<
<

U-boot 1.1.5 atmel 1.5 sources

>
>

U-boot 1.1.5 atmel 1.x sources

 
Description Source Patch
Changed:
<
<
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
u-boot-1.1.5_atmel_1.5.diff.bz2
>
>
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
u-boot-1.1.5_atmel_1.6.diff
^ ^ u-boot-1.1.5_atmel_1.5.diff.bz2
 

U-boot 1.2.0 atmel sources

The easiest way to build U-Boot using the more modern 1.2.0 sources
Line: 276 to 289
 
META FILEATTACHMENT attachment="SAM-BA_selectboard.jpg" attr="" comment="SAM-BA select board & connexion" date="1183636222" name="SAM-BA_selectboard.jpg" path="SAM-BA_selectboard.jpg" size="8796" stream="SAM-BA_selectboard.jpg" user="Main.NicolasFerre" version="1"
META FILEATTACHMENT attachment="SAM-BA_mainwin-uboot.png" attr="" comment="SAM-BA main window flashing u-boot" date="1189511124" name="SAM-BA_mainwin-uboot.png" path="SAM-BA_mainwin-uboot.png" size="260013" stream="SAM-BA_mainwin-uboot.png" user="Main.NicolasFerre" version="1"
Deleted:
<
<
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708425" name="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" size="149112" stream="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708494" name="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" size="182208" stream="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708537" name="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" size="182660" stream="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5.diff.bz2" attr="" comment="linux4sam_1.0_20070913" date="1190726747" name="u-boot-1.1.5_atmel_1.5.diff.bz2" path="u-boot-1.1.5_atmel_1.5.diff.bz2" size="164574" stream="u-boot-1.1.5_atmel_1.5.diff.bz2" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin" attr="" comment="" date="1200586637" name="u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin" size="149112" stream="u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin" user="Main.NicolasFerre" version="1"

U-Boot 49 - 17 Jan 2008 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 29 to 29
 
Board Description Binary
at91sam9260ek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin
Added:
>
>
at91sam9xeek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin
 
at91sam9261ek u-boot binary with environment in Dataflash chip (SPI 0 CS 0) u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin
| at91sam9263ek | u-boot binary with environment in Dataflash card (SPI 0 CS 0) |
Line: 53 to 55
 
  1. Choose u-boot.bin binary file and press Open
  2. Enter the proper address on media in the Address text field. You can find a media map for each product in GettingStarted#Linux4SAM_demo_FLASH_memory_map 1
  3. Press Send File button

Notes

1: Is 0x8000 in DataFlash for now : so do not follow what the screenshot displays.
Anyway, It should move to 0x8400 in the future to be aligned on Dataflash page boundaries


Changed:
<
<
  1. On AT91SAM9260-EK, If you ran the AT91SAM9260EKSamBaRecovery, do not forget to replace AT91Bootstrap in your booting media
>
>
  1. On AT91SAM9260-EK or AT91SAM9XE-EK, If you have erased the booting media, do not forget to replace AT91Bootstrap in it
 
  1. Close SAM-BA, remove the USB cable

Ok, now you must have a running u-boot flashed on your board. To check, you can have a look at the DBGU serial interface once you have reset the board.

Line: 278 to 280
 
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708494" name="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" size="182208" stream="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708537" name="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" size="182660" stream="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5.diff.bz2" attr="" comment="linux4sam_1.0_20070913" date="1190726747" name="u-boot-1.1.5_atmel_1.5.diff.bz2" path="u-boot-1.1.5_atmel_1.5.diff.bz2" size="164574" stream="u-boot-1.1.5_atmel_1.5.diff.bz2" user="Main.RfoLnx4sam" version="1"
Added:
>
>
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin" attr="" comment="" date="1200586637" name="u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin" size="149112" stream="u-boot-1.1.5_atmel_1.5_at91sam9xeek.bin" user="Main.NicolasFerre" version="1"

U-Boot 48 - 14 Jan 2008 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 130 to 130
 mkimage comes in source code with U-Boot distribution and it is built during U-Boot compilation (u-boot-source-dir/tools/mkimage), we provide also pre-built static version.
Changed:
<
<
See U-Boot README file for more informations.
>
>
See U-Boot README file for more information.
 Command to generate an uncompressed uImage file :
Line: 213 to 213
 
Description Source Patch
Changed:
<
<
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
u-boot-1.1.5_atmel_1.5.diff.bz2
>
>
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
u-boot-1.1.5_atmel_1.5.diff.bz2
 

U-boot 1.2.0 atmel sources

The easiest way to build U-Boot using the more modern 1.2.0 sources
Line: 247 to 247
 hand Note that CFG_ENV_IS_IN_FLASH means environment in NOR FLASH. This option is not supported "out of the box" for all products but certainly can be implemented.
Changed:
<
<
Additional informations about those variables are availlable in the u-boot README (search "- CFG_ENV_IS_IN_FLASH").
>
>
Additional information about those variables are availlable in the u-boot README (search "- CFG_ENV_IS_IN_FLASH").
 

Cross-compiling u-boot

Once the AT91 u-boot sources available, cross-compile u-boot is made in two steps : configuration and compiling. Check the Configuration chapter in u-boot reference manual.


U-Boot 47 - 27 Nov 2007 - Main.UlfSamuelsson
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 215 to 215
 
Description Source Patch
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
u-boot-1.1.5_atmel_1.5.diff.bz2
Added:
>
>

U-boot 1.2.0 atmel sources

The easiest way to build U-Boot using the more modern 1.2.0 sources is to download the latest Buildroot from buildroot.uclibc.org.

U-boot 1.3.0 atmel sources

U-Boot 1.3.0 has just been released and is not yet ported to the AT91.
 

Choosing where the u-boot environment resides

Above, we talked about the location of the u-boot environment. Here is a way to modify it to your needs :

Line: 239 to 247
 hand Note that CFG_ENV_IS_IN_FLASH means environment in NOR FLASH. This option is not supported "out of the box" for all products but certainly can be implemented.
Changed:
<
<
Additionnal informations about those variables are availlable in the u-boot README (search "- CFG_ENV_IS_IN_FLASH").
>
>
Additional informations about those variables are availlable in the u-boot README (search "- CFG_ENV_IS_IN_FLASH").
 

Cross-compiling u-boot

Once the AT91 u-boot sources available, cross-compile u-boot is made in two steps : configuration and compiling. Check the Configuration chapter in u-boot reference manual.


U-Boot 46 - 19 Nov 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 30 to 30
 
at91sam9260ek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin
| at91sam9261ek | u-boot binary with environment in Dataflash chip (SPI 0 CS 0) |
Changed:
<
<
u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin |
>
>
u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin |
 | at91sam9263ek | u-boot binary with environment in Dataflash card (SPI 0 CS 0) |
Changed:
<
<
u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin |
>
>
u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin |
 

Load u-boot on AT91 boards


U-Boot 45 - 16 Nov 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 246 to 246
 Note that both arm-elf- and arm-linux- ARM GCC cross-compiler types are suitable for u-boot building.
Added:
>
>
warning Some newer version of make produce errors while compiling this u-boot. We advice you to use an older make executable: check the SoftwareTools page.
 Here are the building steps for the AT91sam9263ek board:

U-Boot 44 - 30 Oct 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 162 to 162
 
  1. download the Linux uImage and the root file system to a ram location using the u-boot tftp command (Cf. U-Boot script capability chapter).
  2. launch Linux issuing a bootm or boot command.
Added:
>
>
 

Build u-boot from sources

To build the binary found above, you will have to go through the following steps.


U-Boot 43 - 15 Oct 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 137 to 137
 mkimage -A arm -O linux -C none -T kernel -a 20008000 -e 20008000 -n linux-2.6 -d arch/arm/boot/Image uImage
Changed:
<
<
Commands to generate an uncompressed uImage file :
>
>
Commands to generate a compressed uImage file :
 
mkimage -A arm -O linux -C none -T kernel -a 20008000 -e 20008000 -n linux-2.6 -d arch/arm/boot/zImage uImage

U-Boot 42 - 12 Oct 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 117 to 117
 

Boot pre-defined variables and command:

bootcmd when set, this variable content is executed automatically after the boot delay. It enables the u-boot autoboot mode

Changed:
<
<
bootargs this variable it used as an exchange area to pass informations to the main application started by u-boot (Linux kernel for instance)
>
>
bootargs this variable it used as an exchange area to pass information to the main application started by u-boot (Linux kernel for instance)
 bootm this command executes an application generated by the mkimage tool

Load Linux with u-boot on AT91 boards


U-Boot 41 - 11 Oct 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Deleted:
<
<
 

U-Boot


U-Boot 40 - 10 Oct 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 185 to 185
 Dedicated page on u-boot wiki : http://www.denx.de/wiki/UBoot/SourceCode
Added:
>
>
 To get the u-boot bootloader sources for AT91 product you have to go through the following steps (note that x.x.x and y.y must be replace by the corresponding revision numbers) :

  • download the u-boot sources from the link in the first column below and extract it:
Line: 205 to 206
 

You will have a fresh source copy of the AT91 u-boot.

Changed:
<
<
>
>
 

U-boot 1.1.5 atmel 1.5 sources

Line: 238 to 239
 Additionnal informations about those variables are availlable in the u-boot README (search "- CFG_ENV_IS_IN_FLASH").

Cross-compiling u-boot

Changed:
<
<
>
>
 Once the AT91 u-boot sources available, cross-compile u-boot is made in two steps : configuration and compiling. Check the Configuration chapter in u-boot reference manual.

Note that both arm-elf- and arm-linux- ARM GCC cross-compiler types are suitable for u-boot building.

Line: 257 to 258
 The result of these operations is a fresh u-boot binary called u-boot.bin corresponding to the binary ELF file u-boot.
  • u-boot.bin is the file you should store on the board
  • u-boot is the ELF format binary file you may use to debug u-boot through a JTag link for instance.
Changed:
<
<
>
>
 

META FILEATTACHMENT attachment="SAM-BA_selectboard.jpg" attr="" comment="SAM-BA select board & connexion" date="1183636222" name="SAM-BA_selectboard.jpg" path="SAM-BA_selectboard.jpg" size="8796" stream="SAM-BA_selectboard.jpg" user="Main.NicolasFerre" version="1"

U-Boot 39 - 03 Oct 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 135 to 135
 Command to generate an uncompressed uImage file :
Changed:
<
<
# mkimage -A arm -O linux -C none -T kernel -a 20008000 -e 20008000 -n linux-2.6 -d arch/arm/boot/Image uImage
>
>
mkimage -A arm -O linux -C none -T kernel -a 20008000 -e 20008000 -n linux-2.6 -d arch/arm/boot/Image uImage
 

Commands to generate an uncompressed uImage file :

Changed:
<
<
# mkimage -A arm -O linux -C none -T kernel -a 20008000 -e 20008000 -n linux-2.6 -d arch/arm/boot/zImage uImage
>
>
mkimage -A arm -O linux -C none -T kernel -a 20008000 -e 20008000 -n linux-2.6 -d arch/arm/boot/zImage uImage
 

Loading through network

Line: 189 to 189
 
  • download the u-boot sources from the link in the first column below and extract it:

Changed:
<
<
# wget ftp://ftp.denx.de/pub/u-boot/u-boot-x.x.x.tar.bz2 # tar xvjf u-boot-x.x.x.tar.bz2 # cd u-boot-x.x.x
>
>
wget ftp://ftp.denx.de/pub/u-boot/u-boot-x.x.x.tar.bz2 tar xvjf u-boot-x.x.x.tar.bz2 cd u-boot-x.x.x
 

  • take the corresponding AT91 u-boot patch set (second column):

Changed:
<
<
# wget http://www.linux4sam.org/twiki/pub/Linux4SAM/U-Boot/u-boot-x.x.x_atmel_y.y.diff.bz2
>
>
wget http://www.linux4sam.org/twiki/pub/Linux4SAM/U-Boot/u-boot-x.x.x_atmel_y.y.diff.bz2
 

  • apply it on top of the original u-boot:

Changed:
<
<
# bzcat u-boot-x.x.x_atmel_y.y.diff.bz2 | patch -p1
>
>
bzcat u-boot-x.x.x_atmel_y.y.diff.bz2 | patch -p1
 

You will have a fresh source copy of the AT91 u-boot.


U-Boot 38 - 25 Sep 2007 - Main.RfoLnx4sam
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 196 to 196
 
  • take the corresponding AT91 u-boot patch set (second column):

Changed:
<
<
# wget http://www.at91.com/repFichier/Project-218/u-boot-x.x.x_atmel_y.y.diff.bz2
>
>
# wget http://www.linux4sam.org/twiki/pub/Linux4SAM/U-Boot/u-boot-x.x.x_atmel_y.y.diff.bz2
 

  • apply it on top of the original u-boot:
Line: 210 to 210
 
Description Source Patch
Changed:
<
<
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
TODO
>
>
Add AT91 board support in u-boot u-boot 1.1.5 archive
u-boot 1.1.5 git tree
u-boot-1.1.5_atmel_1.5.diff.bz2
 

Choosing where the u-boot environment resides

Line: 265 to 265
 
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708425" name="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" size="149112" stream="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708494" name="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" size="182208" stream="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708537" name="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" size="182660" stream="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" user="Main.RfoLnx4sam" version="1"
Added:
>
>
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5.diff.bz2" attr="" comment="linux4sam_1.0_20070913" date="1190726747" name="u-boot-1.1.5_atmel_1.5.diff.bz2" path="u-boot-1.1.5_atmel_1.5.diff.bz2" size="164574" stream="u-boot-1.1.5_atmel_1.5.diff.bz2" user="Main.RfoLnx4sam" version="1"

U-Boot 37 - 25 Sep 2007 - Main.RfoLnx4sam
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 9 to 9
 Das U-Boot - the Universal Boot Loader wiki website is the main entry point for this bootloader / debugging tool available on several processors. It is of course available for AT91 ARM processors.
Changed:
<
<
U-boot documentation is very rich ; in addition to the official u-boot website, several other are dealing with u-boot getting started or configuration. An article from http://www.linuxdevices.com also gives a good introduction to u-boot. Note however that a detailed documentation is simply available in the source code package as the README file. Thematic documentation is also available in the doc/ directory.
>
>
U-boot documentation is very rich ; in addition to the official u-boot website, several others are dealing with u-boot getting started or configuration. An article from http://www.linuxdevices.com also gives a good introduction to u-boot. Note however that a detailed documentation is simply available in the source code package as the README file. Thematic documentation is also available in the doc/ directory.
 U-boot takes place in the Linux demo as a second stage bootloader. It is responsible of configuring main interfaces and launching a Linux system. Note however that it is possible to avoid this step and to directly boot Linux from AT91Bootstrap, in a production phase for instance.
Line: 19 to 19
 

U-boot pre-built images

A revision of u-boot for AT91 boards is built from the official u-boot website and a patch against this revision of u-boot.

Changed:
<
<
This patch is regularly updated. The _atmel_1_4 suffix indicates the release number of this patch.
>
>
This patch is regularly updated. The _atmel_1.5 suffix indicates the release number of this patch.
 

U-boot environment

The u-boot environment is a little read/write persistent space that stores variables needed by the bootloader to configure itself properly and to adapt to its environment (network configuration, boot arguments, storage location, etc.). It is located in the same media that it has booted from. Check Boot capabilities matrix to know where the u-boot environment is located for the pre-built binary.

Changed:
<
<

U-boot 1.1.5 atmel 1.4 binaries

>
>

U-boot 1.1.5 atmel 1.5 binaries

 
Board Description Binary
Changed:
<
<
at91sam9260ek u-boot binary with environment in Dataflash chip (SPI 0 CS 1)  
at91sam9261ek u-boot binary with environment in Dataflash chip (SPI 0 CS 0)  
at91sam9263ek u-boot binary with environment in Dataflash card (SPI 0 CS 0)  
>
>
at91sam9260ek u-boot binary with environment in Dataflash chip (SPI 0 CS 1) u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin
at91sam9261ek u-boot binary with environment in Dataflash chip (SPI 0 CS 0) u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin
at91sam9263ek u-boot binary with environment in Dataflash card (SPI 0 CS 0) u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin
 

Load u-boot on AT91 boards

Line: 204 to 206
 You will have a fresh source copy of the AT91 u-boot.
Changed:
<
<

U-boot 1.1.5 atmel 1.4 sources

>
>

U-boot 1.1.5 atmel 1.5 sources

 
Description Source Patch
Line: 260 to 262
 
META FILEATTACHMENT attachment="SAM-BA_selectboard.jpg" attr="" comment="SAM-BA select board & connexion" date="1183636222" name="SAM-BA_selectboard.jpg" path="SAM-BA_selectboard.jpg" size="8796" stream="SAM-BA_selectboard.jpg" user="Main.NicolasFerre" version="1"
META FILEATTACHMENT attachment="SAM-BA_mainwin-uboot.png" attr="" comment="SAM-BA main window flashing u-boot" date="1189511124" name="SAM-BA_mainwin-uboot.png" path="SAM-BA_mainwin-uboot.png" size="260013" stream="SAM-BA_mainwin-uboot.png" user="Main.NicolasFerre" version="1"
Added:
>
>
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708425" name="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" size="149112" stream="u-boot-1.1.5_atmel_1.5_at91sam9260ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708494" name="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" size="182208" stream="u-boot-1.1.5_atmel_1.5_at91sam9261ek.bin" user="Main.RfoLnx4sam" version="1"
META FILEATTACHMENT attachment="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" attr="" comment="linux4sam_1.0_20070913" date="1190708537" name="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" path="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" size="182660" stream="u-boot-1.1.5_atmel_1.5_at91sam9263ek.bin" user="Main.RfoLnx4sam" version="1"

U-Boot 36 - 19 Sep 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 37 to 37
 This section describes How to load u-boot into the boot media with SAM-BA.
Deleted:
<
<
  • Make sure that the chip can execute the bootROM monitor SAM-BA-boot.
    Indeed, the chip must not find an executable code on any boot media, otherwise it will execute it instead of giving access to SAM-BA.
    TODO link to AT91Bootstrap for explaining how (or the boot_strategies document from FredOBoYeR? )
  • Reset the board
 
  • Connect the USB Device Interface to your host machine using the USB Device Cable
Added:
>
>
  • Make sure that the chip can execute the bootROM monitor SAM-BA-boot :

AT91SAM9260-EK AT91SAM9261-EK AT91SAM9263-EK (RevA)
  • J7 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • follow the AT91SAM9260EKSamBaRecovery recovery method, if needed
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • J4 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash Jumper (J21)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • plug DataFlash Jumper (J21) back in position 1-2
  • J5-6 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash Card (J9)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • reinsert the DataFlash Card in J9
AT91SAM9XE-EK AT91SAM9RL-EK AT91SAM9263-EK (RevB)
  • erase the content of the internal FLASH by putting the J7 jumper in position 1-2
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • open now J7 (or put in position 2-3), to boot in normal operating mode
  • J11 must be on 1-2 position (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash and NAND Flash Jumpers (J12 & J13)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • close DataFlash and NAND Flash Jumpers (J12 & J13)
  • J5-6 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash Card (J9)
  • remove NAND Flash Jumpers (J29)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • reinsert the DataFlash Card in J9 (only for DataFlash demo)
  • close NAND Flash Jumper (J29)
AT91SAMG20-EK    
  • J7 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash and NAND Flash Jumpers (J33 & J34)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • close DataFlash and NAND Flash Jumpers (J33 & J34)
   
 
  • Start SAM-BA GUI Application
  • Select the the board in the drop-down menu and choose the USB Connection
SAM-BA_selectboard.jpg
Line: 52 to 50
 
  1. Initialize the media choosing the Enable action in the Scripts rolling menu and press Execute
  2. Press on Send File Name Browse button
  3. Choose u-boot.bin binary file and press Open
Changed:
<
<
  1. Enter the proper address on media in the Address text field. You can find a media map for each product in AT91Bootstrap TODO find chapter in page AT91Bootstrap
>
>
  1. Enter the proper address on media in the Address text field. You can find a media map for each product in GettingStarted#Linux4SAM_demo_FLASH_memory_map 1
 
  1. Press Send File button
Added:
>
>
  1. On AT91SAM9260-EK, If you ran the AT91SAM9260EKSamBaRecovery, do not forget to replace AT91Bootstrap in your booting media
 
  1. Close SAM-BA, remove the USB cable

Ok, now you must have a running u-boot flashed on your board. To check, you can have a look at the DBGU serial interface once you have reset the board.

Line: 245 to 244
 Here are the building steps for the AT91sam9263ek board:
Changed:
<
<
# make distclean # make at91sam9263ek_config # make CROSS_COMPILE=<path_to_cross-compiler/cross-compiler-prefix->
>
>
make distclean make at91sam9263ek_config make CROSS_COMPILE=<path_to_cross-compiler/cross-compiler-prefix->
 
Added:
>
>
path_to_cross-compiler is only needed if it is not in your PATH.
 Usually cross-compiler-prefix- looks like arm-linux- or arm-elf-

The result of these operations is a fresh u-boot binary called u-boot.bin corresponding to the binary ELF file u-boot.


U-Boot 35 - 18 Sep 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot

Line: 62 to 62
 

Use u-boot

Using a terminal software on your host system, you can connect to u-boot through the DBGU serial interface.

Changed:
<
<
Check you serial communication parameters 115200 8-N-1 :
>
>
Serial communication parameters 115200 8-N-1 :
 
Baud rate 115200
Data 8 bits
Parity None
Stop 1 bit
Flow control None
Changed:
<
<
>
>
 

U-boot Main Commands

setenv this command is used to set variables


U-Boot 34 - 17 Sep 2007 - Main.NicolasFerre
Line: 1 to 1
 
META TOPICPARENT name="WebHome"

U-Boot