source $HOME/bin/bootloader_cross_compile.sourceme
Configure at91bootstrap for SAM9-L9261
make sam9_l9261_defconfig
Compile:
make
The resulting binary is created in:
binaries/sam9_l9261-dataflashboot-2.4.bin
WARNING: Due to AT91SAM9261 chip errata booting from NAND flash is
not supported.
U-BOOT
The used U-Boot is a GIT pull from Oct 13 2008, along with minor
modifications to add support for SAM9-L9261. In order to compile from
sources:
Extract the sources:
tar xzf u-boot-git20081013-olimex.tgz
cd u-boot
Setup the environment:
source $HOME/bin/bootloader_cross_compile.sourceme
Configure at91bootstrap for SAM9-L9261:
make sam9_l9261_config
Compile:
make
The resulting binary is created in the main sources directory:
./u-boot.bin
WARNING: The needed image is "u-boot.bin". The "u-boot" file is an ELF file
that cannot be directly written into dataflash!
LINUX KERNEL
The used kernel is a mainstream 2.6.27.4 slightly modified to include
support for the SAM9-L9261 board. As with the bootloaders, the
modifications were based on the source files for Atmel's AT91SAM9261EK
board.
In order to compile the kernel its sources must be extracted first:
tar xzf linux-2.6.27.4-olimex.tgz
Then setup the needed environment variables:
source $HOME/bin/linux_cross_compile.sourceme
Go to the source directory:
cd linux-2.6.27.4-olimex
Load the default configuration for the SAM9-L9261 board:
make sam9_l9261_defconfig
Optionally, you can tweak the kernel compile-time configuration:
make xconfig
And finally you can compile it:
make uImage
If compilation is successful, the resulting kernel image can be found in:
linux-2.6.27.4-olimex/arch/arm/boot/uImage
NOTE: The linux-2.6.27.4-olimex.tgz archive is pre-patched and ready for
compilation. The file linux-2.6.27.4-olimex.patch.gz, found in the src