AT91Bootstrap

Pre-built Binaries

  SAM9M10 MCU SAM9G45 MCU SAM9X5 MCU
Nandflash Booting bootstrap-3.4-sam9m10-nandboot.bin bootstrap-3.4-sam9g45-nandboot.bin bootstrap-3.4-sam9x5-nandboot.bin
SD Card Booting bootstrap-3.4-sam9m10-sdcardboot.bin bootstrap-3.4-sam9g45-sdcardboot.bin bootstrap-3.4-sam9x5-sdcardboot.bin

Load AT91Bootstrap on SAM9 Boards

This section describes how to load AT91Bootstrap into the boot media with SAM-BA.

  • Connect the USB Device Interface to your host machine using the USB Device Cable
  • Make sure that the chip can execute the bootROM monitor SAM-BA-boot
  • Start SAM-BA GUI Application
  • Select the the board in the drop-down menu and choose the USBSerial connection

    samba-2.11.PNG

  • Click connect to start SAM-BA UI
  • In the main SAM-BA window :

    samba-2.11_9x5_PMECC.PNG

  1. Choose the proper media tab (NandFlash) in the SAM-BA GUI interface
  2. Initialize the media choosing the Enable action in the Scripts rolling menu and press Execute
  3. Choose Enable OS PMECC is only for sam9x5 and the default PMECC parameters shall be kept
  4. Choose Send boot file, press Execute
  5. Select the at91bootstrap binary file and press Open ; the media is written down
  6. Close SAM-BA, remove the USB cable

Build AT91Bootstrap

For SD Card Booting

  1. Get the source code of AT91Bootstrap
     $ wget ftp://ftp.linux4sam.org/pub/Android4SAM/v2.1/patches/at91bootstrap-3.4.tar.gz
  2. Decompress the package
     $ tar zxvf at91bootstrap-3.4.tar.gz && cd at91bootstrap-3.4
  3. Configure AT91Bootstrap
     $ make mrproper && make at91sam9m10g45eksd_android_defconfig

    You may need to run
    make menuconfig

    to configure other parameters such as Linux kernel command line.
  4. Build AT91Bootstrap
     $ make CROSS_COMPILE=(path_to_cross-compiler/cross-compiler-prefix-) 
  5. Format one SD Card to FAT32
    
    
  6. Copy binaries/at91sam9m10g45ek-sdcardboot-linux-3.4.bin to SD card and rename it to boot.bin
Warning, important For the board with AT91SAM9G45 MCU
Using the same file with AT91SAM9M10 MCU

Warning, important For the board with AT91SAM9X5 MCU
step 3 will be

 $ make mrproper && make at91sam9x5edsd_android_defconfig .config
Step 6 will be,
Copy binaries/at91sam9x5ek-sdcardboot-linux-3.4.bin to SD card and rename it to boot.bin

Warning, important In Linux environment, you may need to name the booting image as BOOT.BIN

Warning, important In order to boot from SD card, the MCU ROM code has two assumptions,

  • The first partition of the SD Card is formated with FAT or FAT32
  • The bootstrap file shall be named with "boot.bin" and is copied into the first partition

For NandFlash Booting

  1. Get the source code of AT91Bootstrap
     $ wget ftp://ftp.linux4sam.org/pub/Android4SAM/v2.1/patches/at91bootstrap-3.4.tar.gz
  2. Decompress the package
     $ tar zxvf at91bootstrap-3.4.tar.gz && cd at91bootstrap-3.4
  3. Configure AT91Bootstrap
     $ make mrproper && make at91sam9m10g45eknf_android_defconfig
  4. Build AT91Bootstrap
     $ make CROSS_COMPILE=(path_to_cross-compiler/cross-compiler-prefix-) 
  5. The final image can be found as binaries/at91sam9m10g45ek-nandflashboot-linux-3.4.bin
  6. Flash the final image to your EK board, as mentioned above
Warning, important For the board with AT91SAM9G45 MCU
Using the same file with AT91SAM9M10 MCU

Warning, important For the board with AT91SAM9X5 MCU
step 3 will be

 $ make mrproper && make at91sam9x5eknf_android_defconfig
Step 5 will be,
The final image can be found as binaries/at91sam9x5ek-nandflashboot-linux-3.4.bin
r14 - 05 Aug 2014 - 03:03:06 - VoiceShen
 
Android4SAM

Copyright by the contributing authors. All material on the platform is the property of the contributing authors.

Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions

Atmel and others, are registered trademarks or trademarks of Atmel or its subsidiaries.This site is powered by the TWiki collaboration platform

ARM and others are registered trademarks or trademarks or ARM Ltd. Other terms and product names may be trademarks of others.

Under the terms of the Creative Commons Attribution License

Syndicate this siteRSS ATOM