分享

烧写at91sam7s64软件SAM-BA的linux版本

 weison86 2011-09-17


SAM-BA

The SAM Boot Assistant (SAM-BA) comes with the AT91 In-system Programmer (ISP). It allows to program flash media through RS232, USB or Jtag SAM-ICE link. SAM-BA only runs on Windows.

Description Binary FAQ applicable
SAM Boot Assistant (SAM-BA) on http://www. AT91 In-system Programmer (ISP) for at91sam9xe (SAM-BA 2.8),
for at91sam9g20 (SAM-BA 2.8),
for at91sam9263 (SAM-BA 2.7)

SAM-BA Linux initiative

A revision of SAM-BA is ported to Linux. It is at the side of the official SAM-BA ISP revision.

SAM-BA Linux uses the USB connexion through CDC usbserial driver to communicate with the device.

USB CDC Serial driver mount procedure :

  • Login with administrator rights

  • Unload usbserial module if it is already running
rmmod usbserial

  • Load usbserial kernel module
modprobe usbserial vendor=0x03eb product=0x6124

  • Verify that the USB connection is established
lsusb -d 03eb:6124
Bus 004 Device 006: ID 03eb:6124 Atmel Corp

  • Know which USB connection is established
dmesg
...
kernel: usb 4-2: new full speed USB device using uhci_hcd and address 5
kernel: usb 4-2: configuration #1 chosen from 1 choice
kernel: usbserial_generic 4-2:1.0: generic converter detected
kernel: usbserial_generic: probe of 4-2:1.0 failed with error -5
kernel: usbserial_generic 4-2:1.1: generic converter detected
kernel: usb 4-2: generic converter now attached to ttyUSBx

=> you will have to use /dev/ttyUSBx instead of \usb\ARM0 to connect to your board

info You can also use .tcl scripts from this flavor of SAM-BA. This is useful if you want to run GettingStarted#DemoArchiveBinaries demos.

Description Binary FAQ applicable
SAM Boot Assistant (SAM-BA 2.9) Linux port initiative using CDC sam-ba_2.9_cdc_linux.zip  
SAM Boot Assistant (SAM-BA 2.8) Linux port initiative using CDC sam-ba_cdc_2.8.linux_01.zip for at91sam9xe, for at91sam9g20
SAM Boot Assistant (SAM-BA 2.7) Linux port initiative using CDC sam-ba_cdc_2.7.linux_01.zip for at91sam9263

Cross Toolchain

CodeSourcery provides regular, validated releases of the GNU Toolchain for arm processor.
This document refers to arm2007q1-10 version of CodeSourcery toolchain.

Features in this release include:

  • Based on GCC 4.2
  • Support EABI
  • Support for uClinux
  • Support for Cortex-M1 (ARMV6-M) CPUs
  • Improved code generation for Cortex-A8 and Cortex-R4 CPUs
  • Thumb-2 GLIBC binaries

Links:

Description Binary
CodeSourcery GNU cross-toolchain for ARM arm-2007q1-10-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

mkimage (U-Boot)

The mkimage U-Boot tool is used to convert a standard kernel image into uImage format needed by bootm U-Boot command.

Description Sources Binary
Pre-built static version of the u-boot mkimage tool u-boot sources directory mkimage

Make

warning Not needed for newer U-Boot.

Some newer version of make produce errors while compiling some older revision of U-Boot. The compiling of this old code has been validated with make-3.80 : Take it and compile it on your host machine (pace in /usr/local directory for example). You can use it calling the right binary while issuing the cross-compile command:

/usr/local/bin/make-3.80 CROSS_COMPILE=<path_to_cross-compiler/cross-compiler-prefix->

Description Sources Binary
Pre-built static version of the make tool make sources directory make-3.80

  Attachment Action Size Date Who Comment
else make-3.80.bin props, move 931.9 K 16 Nov 2007 - 10:10 NicolasFerre  
else mkimage.bin props, move 460.7 K 17 Jul 2007 - 13:11 PatriceVilchez  
r24 - 23 Jul 2009 - 12:38:30 - NicolasFerre

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多