Build the wince platform and create a kernel Image

Source: Internet
Author: User

Author:Sun Xiaoming, a lecturer at Huaqing vision embedded College.

1. Install the loopback network (this loopback network must be configured if you do not have a network)

1. Install the Loop Network, control panel-> Add hardware, "Yes, I have connected this hardware (y)", next step

2. Select "Add new hardware device" and click Next.

3. Select manual. Next Step

4. Select the network adapter and click Next.

5. Vendor-> Microsoft, nic-> Microsoft loopback adapter, next step

6. Configure the IP address under the network neighbor and set a URL at will.

Ii. Install the wince Platform

1. Install Net Framework 1.1
2. Install the wince platform. The selected drive letter should preferably be greater than 10 Gb.
(Note: The error code internal error 5.0 is prompted during the installation of Wince 2738. solution:
VBScript modules are required for the installation program interface, but Vista and some XP modules are not loaded by themselves. Solution: Enter regsvr32 VBScript. dll in the command line)

Iii. Run wince on the board

1. Put the smdk2410 given by the instructor in the wince420/platform directory and remove the read-only attribute. If the directory already contains a directory named smdk2410, change it to the smdk2410_old name for backup.
2. Open Platform Builder 5.0, select File-> Manage catalog items, and remove the original smdk2410.cec-> Import smdk2410 (the directory is the directory of the previous step)
3. Now create a platform, file-> new platform, get the project name, next step, next step
4. Select Samsung smdk2410: armv4i and click Next.

5. Select mobile handheld. Next, continue to Finis.

6. Use Samsung smdk2410: armv4i_release. If Samsung smdk2410: armv4i_debug is used, an error occurs.
7. Set platform-> setting-> build options and only enable eboot space in memory (imgeboot = 1)
8. To support Chinese, choose platform> Settings> locale> Chinese (China) and platform> Settings> locale> default custom Aage> Chinese (China)
9. We need to support the mouse, add three modules, in the catalog
1) Core OS-> core OS services-> USB Host Support-> USB human input device (HID) class driver-> USB hid mouse only (right-click Add to OS design)
2) BSPs-> Samsung smdk2410: armv4i-> USB function bus drivers-> s32410 USB device
3) USB Host-> USB Host controllers-> s32410 USB host device (OHCI)
10. Generate NK (Windows images include kernels, file systems, applications, etc.) and generate directories.
D:/wince5/wince500/pbworkspaces/XXX/reldir/smdk2410_armv4i_release (xxx name of your project)
(Note: The directory contains NK. Bin and NK. nb0. The former needs to be decompressed, and the latter does not need to be decompressed)

11. put the generated NK. nb0 (because NK. bin cannot be decompressed by itself. If you want to decompress the package, we need to decompress the package and relocate the package.) use the U-boot-> 0 or tramsmit of nor flash to select the NK to be written. nb0 (indicates whether to select
No), burn NK. nb0 into the memory

Figure 1

 
Figure 2

12. Select 2: Write NAND Flash with download file, and then select the third partition [wince].
13. Select 7: Set autoboot partameter, 1: Linux 2: Wince-> 2
14. insert and reset the mouse
(Note: If the screen is incorrect, modify vbpd = 18 and hbpd = 40 in D:/wince5/wince500/platform/smdk2410/INC/s2410.h to apply to some boards)
15 to change the boot logo, modify D:/wince5/wince500/platform/smdk2410/kernel/hal/
Samsung. C. Modify D:/wince5/wince500/platform/smdk2410/kernel/hal/According to the array name of the file/
The external array declaration (27 rows and 1318 rows) corresponding to CFW. C ).

4. Simulator
1. Now create a platform, file-> new platform, get a project name, next step, next step
2. Select emulator: x86. Next Step

3. Select mobile handheld. Next, continue to finish.

4. To support Chinese, choose platform-> Settings-> locale-> Chinese (China) and platform-> Settings-> locale-> default rule Aage-> Chinese (China)
5. Set platform-> setting-> build options to only enable eboot space in memory (imgeboot = 1)
6. Add MFC, catalog-> core OS-> Windows CE devices-> applications and services development->
Microsoft Foundation Classes (MFC) (why can I run the following Program-Hello world without MFC)
7. bulid OS-> sysgen
8. Generate SDK
1) Create an SDK. Choose platform> SDK> New SDK.

Next step: Net compace framework must be selected

2) configure the SDK, platform-> SDK-> Configure SDK, and select emulation to configure according to the diagram.

3) generate the SDK, platform-> SDK-> bulid SDK, done
9. After completing the preceding steps, the libra_sdk.msi executable file will be generated in your directory to run the installation
(Note: it is best to keep the EVC installed later in a drive letter)
10. Install EVC in the same directory as the installed SDK.
11. Create a project under EVC, select project> wce application, and enter the project name.

12. Next, select "Hello World !"
13. Run. The path of the program in the simulator is a *. EXE file in "My devices ".

14. Use Remote Control in tools in EVC. For example, you can use remote process viewer to display the processes running on the simulator (you can terminate the processes), or use remote zoomin.

5. Use USB/net to allow access between wince and the Board
1. Install the USB _ wince driver
2. Install activesync3.7/4.1 (for synchronization) to transfer files with the host.
3. Generate the SDK, configure the SDK (the CPU has a type at this time), and Bulid the SDK.
4. Open EVC, create a project, or select Hello world.
5. compile the project to generate an executable file under your project directory.
/Common/EVC/myprojects/s3c2410_pro/armv4idbg. If it is released, it will be in armv4irel ).
6. Use ActiveSync to copy the executable file generated in the previous step to the board and run it.
7. Use the debugging program (three methods)
1) using net and ActiveSync for debugging. This method requires support for the network port and USB, which is the best of the three methods.

2) use ActiveSync/ActiveSync for debugging, as long as there is a USB port, if the project is very large debugging is very slow (often blue screen)

3) you only need to have a network port, but it is troublesome. To start the cesh service every time you connect, you need to enter the IP address and port once,
(Note: cesh Server is a network service that has been in the kernel and started during connection)

6. Modify BIOS startup logo
1. convert an image into a. c file
2. Modify the value of farsight_logo.c in BMP in the s3c2410_bios directory and replace it
3. Click the red icon below to set target settings panels-> arm fromelf-> output file name (You must select another one)
4. If you use ads to re-compile (Operation: Ctrl + '-',), the following results are displayed, as shown in the yellow circle.

5. Click the Blue Circle for compilation.
6. A *. binfile will be generated in the directory specified in step 3.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.