XMLTagsEditHistoryDiscussion

How to build u-boot.

You need to use the latest darrell-loader.

Download U-boot 1.1.6.

 wget http://svn.arhuaco.org/svn/src/emqbit/ECB_AT91_V2/u-boot/u-boot-1.1.6-ecbat91.patch
 tar xjf u-boot-1.1.6.tar.bz2
 cd u-boot-1.1.6

And then apply the patch.

 $ cat ../u-boot-1.1.6-ecbat91.patch | patch -p1

Now let's configure and build the tools.

 $ make ecb_at91_config
 Configuring for ecb_at91 board...
 $ make tools

If everything goes as expected, you'll end up with some binaries, ready to be used. tools/mkimage, for instance, is used to update the kernel of the ecb_at91.

Now let's compile u-boot. You'll need a cross-compiler thus you'll need to know how to cross-compile for the arm. There we explain how to set up the crossmake alias.

 $ crossmake 

And you should end up with an u-boot binary named u-boot.bin.

If you already have the Darrell's loader in the board, you can use it to upload u-boot, using the option 3.

Darrell's loader - Thanks to the u-boot project
Version 1.0
RAM:32MB

1: Upload Darrell's loader to Dataflash
2: Upload u-boot to Dataflash
3: Upload Kernel to Dataflash
4: Start u-boot
5: Upload Filesystem image
6: Memory test

We use Minicom to transfer the file. Hint : Ctrl+a s. If it works, you'll get the new U-boot.

U-Boot 1.1.6 (Jun 11 2007 - 20:06:23)
  
DRAM:  32 MB
Atmel: Flash:  0 kB
DataFlash:AT45DB161
Nb pages:   4096
Page Size:    528
Size= 2162688 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C000317F (RO) Darrell loader
Area 1: C0003180 to C001F73F (RO) U-boot
Area 2: C001F740 to C002183F      Environment
Area 3: C0021840 to C01ACFFF      Kernel
Area 4: C01AD000 to C020FFFF (RO) Filesystem
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0 

You might want the check the manual.

Last update: 2007-06-12 (Rev 346)

svnwiki $Rev: 12966 $