# README-SAM-BA-pm9g45.ronetix # How to set SAM-BA CDC v2.10 for pm9g45 board. # for AT91SAM9G45 based board PM9G45. # # Ronetix GmbH # www.ronetix.at # October, 2011 # 1. Get SAM-BA v2.10 and install it 2. Set SAM-BA for pm9g45. 3. Using SAM-BA with pm9g45 4. Building EXTRAM and NAND ISP projects. Note: In SAM-BA the pm9g45 board is named as pm9m10 and at91sam9m10pm9m10 depending when it is reffed. Note: The code for pm9g45 board is based on at91sam9m10 chip code, not on at91sam9g45 chip code! 1. Get SAM-BA v2.10 and install it http://www.atmel.com/dyn/resources/prod_documents/sam-ba_v2.10.zip http://download.ronetix.info/boards/tools/linux/sam-ba_v2.10/sam-ba_2.10.zip 2. Set SAM-BA for pm9g45. $ unzip sam-ba_2.10.zip $ wget http://download.ronetix.info/boards/tools/linux/sam-ba_v2.10/sam-ba_2.10-pm9g45-patches.tar.bz2 $ tar xjf sam-ba_2.10-pm9g45-patches.tar.bz2 $ cd sam-ba_cdc_linux $ git init $ git add * $ git commit -m "after extracting sam-ba_2.10.zip" $ for P in ../sam-ba_2.10-pm9g45-patches/*.patch ;do git am --ignore-whitespace ${P} ; done $ wget http://download.ronetix.info/boards/tools/linux/sam-ba_v2.10/isp-extram-at91sam9m10.bin -O tcl_lib/pm9m10/isp-extram-at91sam9m10.bin $ wget http://download.ronetix.info/boards/tools/linux/sam-ba_v2.10/isp-nandflash-at91sam9m10.bin -O tcl_lib/pm9m10/isp-nandflash-at91sam9m10.bin $ chmod u+x USB_init 3. Using SAM-BA with pm9g45 To install the USB serial driver for at91sam9g45 chip, run the USB_init scrip each time before you connect the USB cable to the board. Refer to http://download.ronetix.info/boards/README/README-programming.ronetix . 4. Building EXTRAM and NAND ISP projects. No building is required. Build only if customization is needed. The build is suitable to be done in GNU/Linux. If you have applied the patches from Ronetix download site, the preparation for building is done. 4.1 EXTRAM This ISP only enables DDR2 RAM on pm9g45 board. The initialization of DDR2 RAM is made when the SAM-BA connects to the board, so DO NOT initialize DDR2 for second time from SAM-BA! Initializing DDR2 form SAM-BA leads to board hangs, then reboot is needed. Got to "applets/isp-project/extram", edit the Makefile and check if the variables are as set follows: CHIP = at91sam9m10 BOARD = pm9m10 #RUNAT = DDR RUNAT = SRAM To build the toolchain have to be selected like this: $ export CROSS_COMPILE=/usr/cross/arm-elf-4.4.1/bin/arm-elf- $ export ARCH=arm $ make After successful building the resulted ISP is copied to ../../../tcl_lib/pm9m10/isp-extram-at91sam9m10.bin by the make. 4.2 NAND Got to "applets/isp-project/nandflash", edit the Makefile and check if the variables are as set follows: CHIP = at91sam9m10 BOARD = pm9m10 RUNAT = DDR #RUNAT = SRAM To build and the toolchain have to be selected like this: $ export CROSS_COMPILE=/usr/cross/arm-elf-4.4.1/bin/arm-elf- $ export ARCH=arm $ make After successful building the resulted ISP is copied to ../../../tcl_lib/pm9m10/isp-nandflash-at91sam9m10.bin by the make.