wince guide for embest sbc2440-i single board...

30
- 1 - Wince Guide for Embest SBC2440-I Single Board Computer V1.0 Shenzhen Embest Info&Tech Co.,LTD. All rights reserved. Tel: +86-755-25635626/25631365 Fax: +86-755-25616057 Room 509, Luohu Science&Technology Building, #85 Taining Road, Shenzhen, Guangdong, China E-mail: [email protected] http://www.embedinfo.com

Upload: others

Post on 15-Nov-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 1 -

Wince Guide for Embest SBC2440-I Single Board Computer

V1.0

Shenzhen Embest Info&Tech Co.,LTD. All rights reserved.

Tel: +86-755-25635626/25631365 Fax: +86-755-25616057

Room 509, Luohu Science&Technology Building,

#85 Taining Road, Shenzhen, Guangdong, China

E-mail: [email protected]

http://www.embedinfo.com

Page 2: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 2 -

Contents CHAPTER 1 INSTALL WINCE DEVELOPMENT ENVIRONMENT ........................................................................... 3

1.1 Install Windows CE.NET........................................................................................................................ 3 1. 2 Steps to Install SMDK2440 BSP............................................................................................................ 7

CHAPTER 2 CUSTOMIZE WINCE IMAGE ..........................................................................................................11 CHAPTER 3 HOW TO BURN WINCE IMAGE INTO NAND FLASH ...................................................................... 19

3.1 Install USB driver................................................................................................................................. 21 3.2 Burn wince image via USB................................................................................................................... 27

Page 3: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 3 -

Chapter 1 Install Wince Development Environment

This chapter introduce how to install Wince Development Enviroment Microsoft Windows CE.NET 4.2.

1.1 Install Windows CE.NET

The below install steps are under Windows 2000. 1.Open WindowsCE install CD,find and double-click the install excutable file Microsoft Windows CE.NET 4.2.exe to begin installing .

2.Pop up “Welcome” dialog ,click “Next”

Page 4: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 4 -

3.Pop up "License Agreement" dialog,select “I accept the terms in the license agreement “,click “Next”

4.Enter the product key and click “Next”

Page 5: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 5 -

5.Select setup type ,the default option is “customer”, click “Next”

6.Select install directory,click “Next” to continue

Page 6: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 6 -

7.Select the development system platform, for S3C2440 CPU, please select the “ARMV4” and “ARMV4I”, click “Next” to continue.

Then the installing begins.

Page 7: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 7 -

8.Click “Finish” to exit setup wizard.

1. 2 Steps to Install SMDK2440 BSP

Here are the steps to install the SMDK2440 BSP. 1. Create SMDK2440 directory under WINCE420\PLATFORM.Make sure the BSP directory name is

“SMDK2440”. If you have the BSP with same name, then you must back up the old bsp.

Page 8: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 8 -

2. Copy all the files in directory CD_ROM\Wince\BSP_samsung3.5\SMDK2440 to directory

WINCE420\PUBLIC\COMMON\CESYSGEN 3. Remove the SMDK2440 folder’s files read-only attributes, including the sub folder. 4. copy the “Makefile” in “SMDK2440\__for_Public\Common\CESYSGEN” folder,to

“WINCE420\PUBLIC\COMMON\CESYSGEN”.

Page 9: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 9 -

5. If the BSP of SMDK2440 have been used ,remove the CS8900 driver if this driver have been added to the

directory WINCE420\PUBLIC\COMMON\OAK\DRIVERS\NETCARD, resume the file dirs, other it will lead to building errors

6. The SMDK2440.cec file was located in SMDK2440 directory. 7. About CS8900 network device driver source, it is placed at “SMDK2440\__for_Public” folder.Copy the

“CS8900R” directory in “SMDK2440\__for_Public\oak\drivers\NETCARD” folder to “WINCE420\PUBLIC\COMMON\OAK\DRIVERS\NETCARD”.

8. Start Platform builder 4.2 , Start>Programs>Microsoft Windows CE. NET 4.2>Platform builder 4.2 9. Go to File->Manage Catalog Features.

Page 10: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 10 -

10.Select “Import”button�Choose the “SMDK2440.CEC” file in the “SMDK2440.ece” BSP directory

11. Import the BSP smdk2440.cec. 12. You can see the “Samsung SMDK2440:ARMV4”, “Samsung SMDK2440:ARMV4I” field on catalog viewer.

Page 11: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 11 -

13.Click on Refresh.Finish installing BSP.

Chapter 2 Customize WinCE image

This chapter will introduce how to customize ,configure and build Wince image(NK.bin). Note: Below steps 11/12/13 add USB mouse,USB keyboard and net device(CS8900) drivers separately.

1. Select File->New Platform.

Page 12: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 12 -

2.Then you can see “New Platform Wizard – Step 1”. Press “Next” button.

3. Then you can see “New Platform Wizard – Step 2”.Select “SAMSUNG SMDK2440:ARMV4I” in the available BSPs list , Press “Next” button.

Page 13: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 13 -

4.Please choose configuration what you want in the “Available configurations” list,here are“Mobile Handheld”,enter platform name ,here are SBC2440I, click “Next”

5.Select the “Application & Media” what you want, on “New Platform Wizard – Step 4.

Page 14: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 14 -

6. Select the “Networking & Communications” what you want, on “New Platform Wizard – Step 5”.Click “Next”

7.Click “Next”

Page 15: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 15 -

8.You can see the “Congratulations!” dialog box. All of the sequence to create new platform is done. Press the “Finish” button.

9.Select platform SBC2440I ,right-click to select the settings of platform

Page 16: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 16 -

10�On the Build Options page,configure the build options as below: [Enable CE Target Control Support] -> Unchecked [Enable KITL] -> Unchecked

11.Support USB mouse and keyboard. Select Catalog->Core OS->Display based devices->Core OS Service->USB Host Support->USB Human Input Device (HID) Class Driver right-click select “Add to Platform”.

Page 17: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 17 -

12.Support USB storage device(USB disk,protable –disk), Select Catalog->Core OS->Display based devices->Core OS Service->USB Host Support->USBStorage Class Drive�right-click select “Add to Platform”.

Page 18: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 18 -

13. Edit platform register file to modify net parameter such as IP address,DNS,net gate etc,shown as below:

14.Select menu Build->Build Platform to begin building

Page 19: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 19 -

15. After finish building successfully ,platform building will create nk.bin and nk.nb0 under directory

C:\WINCE420\PUBLIC\SBC2440I\RelDir\SAMSUNG_SMDK2

Chapter 3 How to burn Wince image into NAND

Flash

You must prepare the following development tools for below operations of this document: PC recommended configuration: 2G CPU or above, 256M memory or above, 1G HD or above, 1 serial port,

1 parallel port, 1 USB port. Windows 98, XP,Windows 2000 or NT operating system SBC2440 –I Single Board Serial Cable USB Cable JTAG Cable Hyper terminal DNW.exe

This section introduce how to burn wince image to Nand Flash,it include bellows steps: Burn ViVi to nandflash with SJF2440.exe and Jtag Cable.ViVi has preloaded in S3C2440-I single

board.This step can be skipped if vivi work normal. Install USB driver.This step can be skipped if USB driver has been installed in PC. Wince Image install and update

Page 20: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 20 -

3.1 Burn ViVi to Nandflash with SJF2440.exe and Jtag

Cable

The vivi supplied by Embest support yaffs and wince.There are below three ways to burn vivi to the SBC2440-I single board. 1.Use SJF2440.exe and Jtag cable to burn vivi to block 0 of Nand flash 2.Use command “load flash vivi u” to download vivi to nandflash via USB 3.Use command “load flash vivi x” to download vivi to nandflash via serial port. Below introduce how to burn vivi to nandflash using SJF2440.exe and Jtag cable in detail. Step1: Refer document sjf2440_v4.pdf to install GIVEIO driver Step2: Connect JTAG cable to SBC2440-I single board, power on SBC2440-I . Step3: In the DOS command window on PC,change the current directory to the one containing SJF2440.exe and sbc_vivi .Run SJF2440.exe as following: SJF2440.exe /f:sbc_vivi Enter ‘0’, detect flash type.

Enter ‘0’, select the program function

Enter ‘0’, set the program start block number

After finish burning, Enter ‘2’, exit

Shows as follow:

Page 21: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 21 -

Power off and move the JTAG cable away form the SBC2440-I single board.

3.2 Install USB driver

The USB driver is supplied by Samsung Company. Recommend installing USB driver under windows 98, XP or NT operating system. Run dnw.exe and select configuration/option menu and set UART/USB Options

Page 22: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 22 -

You must set serial part as [COM1, 115200bps]

Select Serial Port/Connect menu.

Power on SBC2440-I single board while press the PC SPACE key and enter vivi mode, show as below:

Page 23: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 23 -

Then you can see “Found New Hardware Wizard”, press “Next” button

Select “Display a list of the known drivers for this device so that I can choose a specific driver”, Press “Next” button.

Page 24: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 24 -

Select “Specify a location”, press “Next”.

Locate usb_driver directory by “Browse”

Page 25: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 25 -

Press “Next”

Press “Finish” button.

Page 26: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 26 -

Now the USB driver is installed on PC successfully

Page 27: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 27 -

3.3 Burn wince image via USB

Use the serial port cable supplied with single board; connect serial port of single board with PC.

Use the USB cable connect PC USB host and single board device.

Run DNW.exe and configure it as [COM1,115200].

Power on SBC2440-I while press the SPACE key on PC; vivi output information is displayed

Be sure you have entered ViVi mode, shows as below:

.

Execute command to partition the Nandflash block

bon part 0 320k 2368k

Page 28: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 28 -

After finish partitioning, excute command to burn vivi again, using u parameter

Load flash vivi u Select DNW/Transmit menu

Locate sbc_vivi directory in Browse

Finish burning sbc_viv, then you can use command “ load flash eboot u “ to burn EBOOT.NB0 into Nandflash via USB

Page 29: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 29 -

Select DNW/Transmit menu

Locate EBOOT.nb0 directory in Browse

Finish burning EBOOT.nb0, then you can use command “ load flash wince u ” to download and burn NK.bin into

Nandflash via USB

Select DNW/Transmit menu

Locate NK.bin directory in Browse

Please wait a few minutes, until display the output information.

Power off and power on SBC2440-I board , the LCD display panel will display wince user interface, shown as below:

Page 30: Wince Guide for Embest SBC2440-I Single Board Computerread.pudn.com/downloads160/ebook/722794/SBC2440I_wince user … · - 9 - 5. If the BSP of SMDK2440 have been used ,remove the

- 30 -