Phytec phyCORE-iMX35/ATK/u-boot

Use the Freescale Advanced ToolKit to program u-boot to the flash.

The Advanced ToolKit is used to program u-boot to the flash via the serial port. This is achieved by booting the board in serial boot mode and download an application to the RAM.

Install unzip
Emerge the tool to extract files from ZIP archives

Install wine
You can run the AdvancedToolKit in the wine environment on a x86 Linux system

Install it and get accustomed to it. You can find further information in the documentation of wine.

By default the wine data folder is. You can change it by setting WINEPREFIX.

Set the variable MY_WINE to the wine data folder.

Configure Wine to use the serial port as

You can find further information in http://www.winehq.org/docs/wineusr-guide/misc-things-to-configure#AEN406

Download Software and Docs
Download the Advanced ToolKit.

Download Quick Start Instructions Linux-Kit phyCORE-i.MX35

Download the u-boot image

Install Advanced ToolKit
Check the contents of the archive

Archive: ADS_ToolKit_imx35.zip Length     Date    Time    Name - -- -                                                                                  353  12-09-2009 08:02   ADSToolkit.cfg 2210115 07-28-2009 07:09   FSL_ATK_TOOL_WINS_STD_INSTLL_1_60.exe 24740 11-06-2009 09:07   mx35_nor_intel_cfi.bin 52176 12-09-2009 03:58   PHYTEC_mx35_nand.bin -                    ---  2287384                     4 files Extract the archive

Install the Advanced ToolKit

Set the variable MY_WINE_ATK to the install folder of the application

Copy config file

Copy flash definition

Workaround missing DLLs
When you start the Advanced ToolKit

and some DLL is missing, you get the error message

err:module:import_dll Library which shows you the name of the missing DLL.

Usally copy the missing DLL into the folder folder.

Or you can use the shell script winetricks to install missing DLLs. Find further information in http://wiki.winehq.org/winetricks.

Now you should be able to start the Advanced ToolKit.

Program u-boot to flash
Read the manual

In the Quickstart Manual on PDF page 93 or document page 89 there is the chapter "Installing the Boot Loader"  which describes in detail how to set up the board and use the Advanced ToolKit.

The image which should be written to the target is.

Connect the serial cable to the top serial port. Make sure that no application is occupying the serial port on the host.

Use the serial download boot mode of the i.MX35 CPU.

Set switch S5 on the board: 5 to ON, others OFF

Press the Reset button on the board.

Start the Advanced ToolKit

Configure the Advanced Toolkit

Press button: Next

Press button: Flash Tool

Press button: Go

Test at first if the connection is working. Try to dump the content of the flash.

Press button: Execute

You should see the message: Flash dump successful!

Erase the old version of u-boot in flash.

Press button: Erase

You should get the message: Flash erase successful!

Program the new image of u-boot to the flash.

Press button: Program

You should get the message: Flash program successful!

Leave the application

Press button: Exit

Change the settings to boot from flash.

Set switch S5 on the board: all OFF

Start your favorite terminal application like minicom or cu

Press the Reset button on the board.

The board should start with the message

U-Boot 2.0.0-rc10-ptx-pcm043-1 (Sep 17 2010 - 09:47:03)