This tutorial teaches how to flash bootloader using ATK. To flash kernel and root file system, follow the instructions in the document i.MX31 PDK NAND Flashing RedBoot.
ATK (Advanced Toolkit)
ATK (Advanced Toolkit) is a Windows software for programming the flash memory of i.MX boards. It can be downloaded here.
This section will describe the procedure to erase the flash memory and program the bootloader.
1 - Connect a serial cable between PC and i.MX board.
2 - Some hardware configurations (switches) must be done to flash the board.
Set red and cream switches as below: Switch SW5 -> 00000 Switch SW4 -> 10000001
PS: On SW5 and SW4, "1" means the keys selected towards the edge of the board.
3 - Run ATK going to Start -> Programs -> AdvancedToolKit -> AdvancedToolKit
Set the options: Device memory -> DDR; Custom Initial File -> (keep it unmarked) Communication Channel -> Serial Port (Usually COM1)
4 - Click on Flash Tools to erase, program or dump the the flash memory and click GO
1 - To erase Flash memory, select the parameters as shown in the figure below
2 - Turn on the board and press Erase.
3 - ATK shows this message when flash is erased
The next step is to program the bootloader image into the board's Flash following the steps below.
1 - Select the parameters as shown in the figure below and press Program.
The bootloader binary image file can be found in your Board Support Package (click here to download) Set Program, NAND K9K2G08R0A, Address: 0x00000000, Size: 0x10000000
2 - Add it on Image File field and press Program.
3 - Close ATK, turn off the board and set switch back as shown in the picture below.
Installing ATK on Linux
# unzip ATK_1_41_STD_installer.zip
Execute the default install process:
# wine SETUP.EXE
Get mfc42.dll and msvcp60.dll from a Windows Machine (C:\Windows\System32) and copy to wine system32 (/root/.wine/drive_c/windows/system32)
# wine ADSToolkit_std.exe
To flash kernel and root file system, follow the instructions in the document IMX31 PDK NAND Flashing RedBoot.