Boardcon Embedded Design
Http://www.armdesigner.com
EM2440-III
How to Burn the Image
EM2440-III Software Reference Guide
Boardcon Embedded Design
Http://www.armdesigner.com
1. Introduction 1.1. About this Manual This manual is intended to provide the user with an overview of the board and benefits, complete features specifications, and set up procedures. It contains important safety information as well. 1.2. Feedback and Update to this Manual To help our customers make the most of our products, we are continually making additional and updated resources available on the Boardcon website (www.armdesigner.com). These include manuals, application notes, programming examples, and updated software and hardware. Check in periodically to see whats new! When we are prioritizing work on these updated resources, feedback from customers is the number one influence, If you have questions, comments, or concerns about your product or project, please no hesitate to contact us at [email protected]. 1.3. Limited Warranty Boardcon warrants this product to be free of defects in material and workmanship for a period of one year from date of buy. During this warranty period Boardcon will repair or replace the defective unit in accordance with the following process: A copy of the original invoice must be included when returning the defective unit to Boardcon. This limited warranty does not cover damages resulting from lighting or other power surges, misuse, abuse, abnormal conditions of operation, or attempts to alter or modify the function of the product. This warranty is limited to the repair or replacement of the defective unit .In no event shall Boardcon be liable or responsible for any loss or damages, including but not limited to any lost profits, incidental or consequential damages, loss of business, or anticipatory profits arising from the use or inability to use this products. Repairs make after the expiration of the warranty period are subject to a repair charge and the cost of return shipping. Please contact Boardcon to arrange for any repair service and to obtain repair charge information.
EM2440-III Software Reference Guide
Boardcon Embedded Design
Http://www.armdesigner.com
CHAPTER 1 WINDOWS ENVIRONMENT CONFIGURATION ......................................................4 1.1 HYPER-TERMINAL CONFIGURATION .................................................................................................4 1.2. DNW SOFTWARE CONFIGURATION .................................................................................................7 1.3. GIVEIO DRIVER INTALLATION .......................................................................................................9 1.4 USB DOWNLOAD-DRIVER INSTALLATION ......................................................................................16 CHAPTER 2 BURNING U-BOOT BY SJF2440 ...............................................................................25 CHAPTER 3 USING THE U-BOOT TO BURN THE IMAGE .......................................................28 3.1 USING THE U-BOOT TO UPDATE U-BOOT ........................................................................................29 3.2 USING THE U-BOOT TO BURN THE LINUX IMAGE...........................................................................33 3.2.1 Burn the kernel image ...........................................................................................................33 3.2.1 Burn the root file system image .............................................................................................39 3.3 USING THE U-BOOT TO BURN THE WINCE IMAGE ..........................................................................43 3.3.1 Burn the STEPLDR.nb1 and Eboot.nb0 image .....................................................................43 3.3.2 Burn the NK.bin image..........................................................................................................48
EM2440-III Software Reference Guide
Boardcon Embedded Design
Http://www.armdesigner.com
Chapter 1 Windows Environment Configuration
The following captured images might have some difference with the OS you have used in PC.
1.1 Hyper-terminal configuration
We recommend using Window self-carried hyper-terminal for interaction between PC and EM2440-III. Here we introduce the configuration based on Windows XP hyper-terminal. The following diagrams introduce the steps configuring the hyper-terminal: Step 1, open Start->Programs->Accessories->Communications->Hyper Terminal:
A pop-up window Default Telnet Program appears, choose No:
A pop-up window Place message (fill in the blank with your district number, click Yes and continue:
EM2440-III Software Reference Guide
Boardcon Embedded Design
Http://www.armdesigner.com
A dialog box as the following one appears, choose OK:
Step 2, an interface as the following one appears. Name your hyper-terminal and select an icon. Then click OK to continue:
EM2440-III Software Reference Guide
Boardcon Embedded Design
Http://www.armdesigner.com
Step 3, an interface Connect to as the following one appears. Select com* you connected serial interface. * represents the serial port number of PC you are using. The example uses COM1 of PC. Click Yes and continue:
Step 4, an interface COM1 properties appears, setting: Baud rate115200Data bit8Parity No Stop bit1Data flow controlNo, Click OK to continue:
Step 5, the Typer Terminal window appears. Click menu File and select Save to EM2440-III Software Reference Guide
6
Boardcon Embedded Design save your configuration:
Http://www.armdesigner.com
Step 6, in the future use, you can find the saved option HyperTerminal under Start->Programm->Appendix->Communication->HyperTerminal. Click it as follows: (The user can create a shortcut on your desktop for convenience. )
1.2. DNW software configuration
Find DNW software under directory Windows software package\DNW. Double-click to open it:
EM2440-III Software Reference Guide
Boardcon Embedded Design
Http://www.armdesigner.com
Step 1, click Configuration -> Options, the configuration table UART/USB Options appears.
Step 2, choose 115200 of Baud Rate, choose COM1 of COM Port (choose the right one according to actual situation ), fill in 0x32000000 of USB Port, click OK to finish the DNW configuration:
EM2440-III Software Reference Guide
Boardcon Embedded Design
Http://www.armdesigner.com
1.3. GIVEIO driver intallation
If the user wants to burn u-boot with the Jtage software SJF2440.exe, a driver needs to be installed to virtualize parallel port into IO port. Pay attention to the parallel port configuration under BIOS, SPP and EPP mode is recommended, but ECP mode is not recommended. The steps how to install GIVEIO is shown in the following. Step 1, Find giveio driver in the CD under the directory Windows software package\GIVEIO. Copy the file giveio.sys to your system disk, under the directory WINDOWS\system32\drivers
EM2440-III Software Reference Guide
Boardcon Embedded Design
Http://www.armdesigner.com
Step 2, open Control panel on your PC, double-click the icon Add hardware and enter the interface Add hardware, click Next to continue:
EM2440-III Software Reference Guide
10
Boardcon Embedded Design
Http://www.armdesigner.com
Step 3, system will find the hardware automatically. When the search is finished, the next window appears. Select Yes, I have selected the hardware, and click Next to continue:
EM2440-III Software Reference Guide
11
Boardcon Embedded Design
Http://www.armdesigner.com
Step 4, select the option as the following one in the appearing interface and click Next to continue:
Step 5, the interface Installation guidance appears. Select Install the hardware which I selected by hand (advanced) and click Next to continue:
EM2440-III Software Reference Guide
12
Boardcon Embedded Design
Http://www.armdesigner.com
Step 6, select Ports (COM or LPT) among the hardware list and click Next to continue:
Step 7, click Install from Hard-disk and continue:
EM2440-III Software Reference Guide
13
Boardcon Embedded Design
Http://www.armdesigner.com
Step 8, select Browse in Install from Hard-disk interface:
Locate the previous GIVEIO directory. Find the file GIVEIO.inf and click Open to continue:
Back to the interface Install from Harddisk, and click OK to continue:
EM2440-III Software Reference Guide
14
Boardcon Embedded Design
Http://www.armdesigner.com
Step 9, back to the interface concerning installing device drivers. Select giveio device and click Next to continue:
Step 10, This guidance is preparing to install your hardware interface appears. Click Next to continue:
Step 11, click Ok to finish the installation:
EM2440-III Software Reference Guide
15
Boardcon Embedded Design
Http://www.armdesigner.com
Step 12, the newly installed device could be found in Device Manager:
1.4 USB download-driver installation
The following steps introduce how to install USB download-driver. The driver is located under the directory Windows software package\USB driver: EM2440-III Software Reference Guide
16
Boardcon Embedded Design
Http://www.armdesigner.com
Step 1, open hyper-terminal, and link the serial port line and power line; press the space-key of PC and hold, and Switch on the power. The hyper-terminal will display the u-boot console (instruction: USB download-driver needs to be installed in u-boot console. If your board has no u-boot, please burn the u-boot by Jtag firstly ).
Step 2, when linking the USB wire, Windows XP can recognize the new device automatically as the following diagram:
EM2440-III Software Reference Guide
17
Boardcon Embedded Design
Http://www.armdesigner.com
The interface Find a new hardware pops up. Select Yesonly this time and click Next to continue:
Step 3, select From a list or specific location (Advanced) in the next interface and click Next to continue:
Step 4, select Include this location in the search in In these positions to search the best driver menu and click Browse:
EM2440-III Software Reference Guide
18
Boardcon Embedded Design
Http://www.armdesigner.com
Locate the driver and click OK to go back to the upper diagram. Click Next to continue:
EM2440-III Software Reference Guide
19
Boardcon Embedded Design
Http://www.armdesigner.com
Step 5, the installing guide begins to search hardware device:
The following diagram appears. Select SEC SOC Test Board and click Next to continue:
EM2440-III Software Reference Guide
20
Boardcon Embedded Design
Http://www.armdesigner.com
Step 6, the interface Required Documents appears:
Click OK. Then the following interface appears. Click Browse to locate the driver:
Locate the file secbulk.sys, and click Open to continue:
EM2440-III Software Reference Guide
21
Boardcon Embedded Design
Http://www.armdesigner.com
Back to Required Documents interface, click OK to continue:
Step 7, click Ok to finish USB download-driver installation:
EM2440-III Software Reference Guide
22
Boardcon Embedded Design
Http://www.armdesigner.com
Step 8, after the USB download-driver has been installed, open DNW software. The mark [COM:x][USB:OK] could be found on top of the window:
The USB driver installed previously could be found in Device Manager:
EM2440-III Software Reference Guide
23
Boardcon Embedded Design
Http://www.armdesigner.com
Now the user can use USB to download u-boot, operating system and file system.
EM2440-III Software Reference Guide
24
Boardcon Embedded Design
Http://www.armdesigner.com
Chapter 2 Burning U-boot by SJF2440
Notice: Unless you destroy the u-boot in the nor flash and nand flash, you dont have to burn the u-boot by SJF2440. Before use SJF2440, below items must be required. Make sure PC has parallel interface , and set the mode of BIOS of PC as EPP the PC has been installed driver of GIVEIO parallel interface. Via JTAGs 25-pin port Connecting PCs parallel interface with the 10-pin JTAG interface on the board. Power on the board Copy the u-boot image into the directory \Windows software package\SJF2440, and make sure the u-boot image is u-boot.bin. The SJF2440 software is at the place of: EM2440-III_CD\Windows software package\SJF2440. In this case we take 3.5inch TFT LCD as a example, we copy the u-boot image for 3.5 inch into the \Windows software package\SJF2440 directory. Double click SJF2440_uboot.bat to run the software
Burning Image to Nand Flash, continuously select 0, 0, 0, the following diagram shows the steps
EM2440-III Software Reference Guide
25
Boardcon Embedded Design
Http://www.armdesigner.com
Waiting for several minutes, the Image will be burned successfully into Nand Flash
Burning image to Nor Flash, continuously select 2, 0, the following diagram shows the steps. EM2440-III Software Reference Guide
26
Boardcon Embedded Design
Http://www.armdesigner.com
Waiting for several minutes, the Image will be burned successfully into Nor Flash:
EM2440-III Software Reference Guide
27
Boardcon Embedded Design
Http://www.armdesigner.com
Chapter 3 Using the U-boot to Burn the Image
EM2440-III not only supports start from Nor Flash but also supporting start from Nand Flash. When the user erased u-boot in the Nor Flash and Nand Flash, that leading the board can not start from neither Nor Flash nor Nand Flash. In this case the user must use JTAG to burn u-boot to the board. How to judge there isnt u-boot on the Nor Flash and Nand Flash: First, after the board powered on, if four green LEDs dont light on at the same time, means that there are no u-boot on the Nor Flash or Nand Flash. Second, connect with serial cable, and power on the board, and check that are there any following message printed, if no such message that means there are nothing in the Nor Flash or nand flash.
EM2440-III Software Reference Guide
28
Boardcon Embedded Design
Http://www.armdesigner.com
3.1 Using the U-boot to update u-boot
If you erased the u-boot on nand flash, you can burn the u-boot to the nand flash by the u-boot on Nor flash. Of course, you have to burn the u-boot by JTAG if you eased the Nor flash and Nand flash at all. Suppose the u-boot on Nor flash was not erased, We introduce the process of burning the u-boot to nand flash by the u-boot on Nor flash. Step 1: Push the botton to the Nor flash side, select booting from the Nor flash.
Step 2: Power up the board, you can enter into the u-boot menu as follows:
EM2440-III Software Reference Guide
29
Boardcon Embedded Design
Http://www.armdesigner.com
Step 3Input 1and press enter key.:
EM2440-III Software Reference Guide
30
Boardcon Embedded Design
Http://www.armdesigner.com
Step 4: Choose the USB port->transmit:
EM2440-III Software Reference Guide
31
Boardcon Embedded Design
Http://www.armdesigner.com
Step 5: Select the u-boot.bin image you want to burn.
Step 6: You can see the follow message after above steps, and then you have burnt the u-boot to the nand flash.
EM2440-III Software Reference Guide
32
Boardcon Embedded Design
Http://www.armdesigner.com
3.2 Using the U-boot to Burn the Linux Image
If you want to run linux system, you have to boot from nand flash. Linux system includes three parts: u-boot, kernel and root file system. The process of burning u-boot to nand flash is described in the chapter 3.1. Following, we introduce how to burn the kernel and root file system to nand flash. We suppose the u-boot has existed on nand flash. 3.2.1 Burn the kernel image Notice: The steps from 3 to 7 are just used to fomat nand flash and re-burn the u-boot. Only under two conditions, the operations are excuted: 1. The board is running Wince system, and now you want to burn linux kernel image. 2. The linux system cant run properly. Step 1: Push the button to the nand flash side, select booting from nand flash:
EM2440-III Software Reference Guide
33
Boardcon Embedded Design
Http://www.armdesigner.com
Step 2: Power up the board, and press the space key to enter into the u-boot menu.
Step 3: Select 9 to format the nand flash.( you dont have to do it every time, unless your EM2440-III Software Reference Guide
34
Boardcon Embedded Design board is running Wince now or linux cant run properly)
Http://www.armdesigner.com
Step 4: Choose the 1, and erase all blocks of nand flash.
Step 5: Input y, and press enter key.
EM2440-III Software Reference Guide
35
Boardcon Embedded Design
Http://www.armdesigner.com
Step 6: After the erasing, the following show up, select q to quit menu.
Step 7: Choose 1, re-burn the u-boot again, because of above format operation. You can refer to chapter 3.1 for details. Step 8: Choose the 3, and select the USB port->transmit.
EM2440-III Software Reference Guide
36
Boardcon Embedded Design
Http://www.armdesigner.com
Step 9: select the kernel image zImage, and begin to burn.
EM2440-III Software Reference Guide
37
Boardcon Embedded Design
Http://www.armdesigner.com
Step 10: After above steps, you should see the following messeage, and then, you have burnt the kernel image into the nand flash.
EM2440-III Software Reference Guide
38
Boardcon Embedded Design
Http://www.armdesigner.com
3.2.1 Burn the root file system image Step 1: Push the button to the nand flash side, select booting from nand flash:
EM2440-III Software Reference Guide
39
Boardcon Embedded Design
Http://www.armdesigner.com
Step 2: Power up the board, and press the space key to enter into the u-boot menu.
Step 3: Choose the 6, and select the USB port->transmit. EM2440-III Software Reference Guide
40
Boardcon Embedded Design
Http://www.armdesigner.com
Step 4: select the kernel image root_qtopia_2.2.0_2.6.30.4.bin, and begin to burn.
EM2440-III Software Reference Guide
41
Boardcon Embedded Design
Http://www.armdesigner.com
Step 5: After above steps, you should see the following messeage, and then, you have burnt the root file system image into the nand flash.
EM2440-III Software Reference Guide
42
Boardcon Embedded Design
Http://www.armdesigner.com
3.3 Using the U-boot to Burn the Wince Image
If you want to run Wince system, you have to boot from nand flash. Wince system includes three parts: STEPLDR.nb1, EBOOT.nb0 and NK.bin. The process of burning u-boot to nand flash is described in the chapter 3.1. Sowe suppose the u-boot has existed on nand flash. 3.3.1 Burn the STEPLDR.nb1 and Eboot.nb0 image Step 1: Push the button to the nand flash side, select booting from nand flash:
EM2440-III Software Reference Guide
43
Boardcon Embedded Design
Http://www.armdesigner.com
Step 2: Power up the board, and press the space key to enter into the u-boot menu.
Step 3: Choose 1 to burn the STEPLDR.nb1 image, and select the USB port->transmit. EM2440-III Software Reference Guide
44
Boardcon Embedded Design
Http://www.armdesigner.com
Step 4: select the kernel image STEPLDR.nb1image under the /image/wince/ directory, and begin to burn.
EM2440-III Software Reference Guide
45
Boardcon Embedded Design
Http://www.armdesigner.com
Step 5: After above steps, you should see the following messeage, and then, you have burnt the STEPLDR.nb1 image into the nand flash.
Step 6: Choose 2 to burn the Eboot.nb0 image, and select the USB port->transmit.
EM2440-III Software Reference Guide
46
Boardcon Embedded Design
Http://www.armdesigner.com
Step 7: select the Eboot.nb0image under the /image/wince/ directory, and begin to burn.
Step 8: After above steps, you should see the following messeage, and then, you have burnt the EBOOT.nb0 image into the nand flash.
EM2440-III Software Reference Guide
47
Boardcon Embedded Design
Http://www.armdesigner.com
3.3.2 Burn the NK.bin image Step 1: Push the button to the nand flash side, select booting from nand flash:
Step 2: Reset the board, and press the space key to enter into the eboot menu.
EM2440-III Software Reference Guide
48
Boardcon Embedded Design
Http://www.armdesigner.com
Step 3: Choose the 9 to format the Boot Media for BinFS.
Step 4: Choose the F to low-level format the Smart Media card.
EM2440-III Software Reference Guide
49
Boardcon Embedded Design
Http://www.armdesigner.com
Step 5: Choose the U to download the NK.bin image, and select the USB port->transmit
Step 6: select the kernel image NK.binimage under the /image/wince/ directory, and begin to burn.
EM2440-III Software Reference Guide
50
Boardcon Embedded Design
Http://www.armdesigner.com
Step 6: After several minute, the Wince system boot automatically, and you have to reset your board at the first time.
EM2440-III Software Reference Guide
51