background image

5.2

Windows CE

14

5.2

Windows CE

As mentioned earlier, the Neon

R

board ships with a runnable Windows CE

5.0 image on MMC card. A

Board Support Package

is also available and

necessary to tailor the operating system for a given application.

The following sections describe the process of producing an image match-

ing the one shipped with the Neon

R

board.

5.2.1

Prerequisites and components

Most of the tools needed to create a bootable Windows CE 5

R

application

for the Neon

R

board are provided by Microsoft. The following is a complete

list of components and where they may be obtained.

Windows CE 5

R

Microsoft

Embedded Visual C++ 4.0

Microsoft

Embedded Visual C++ Service Pack

Microsoft

Neon

R

Board Support Package

Boundary Devices

5.2.2

BSP Installation

The Neon BSP is made available as a Windows installer file on the

Boundary Devices

website. This file defines a single BSP for the BD2003 and SM501-supporting
variants. Installation consists of running the

.msi

file.

c:\> wget http://www.boundarydevices.com/bsp20050413.msi
c:\> .\bsp20050413.msi

Please check the

Documentation

page for details about the latest revision

of the Windows CE BSP.

As a reference tool for the content of the BSP, you should consider using

MSI2XML

to view the content.

December 28, 2005

Revision 2.8

Summary of Contents for Boundary Devices Neon Board 2.8

Page 1: ...1 User s Manual for the Boundary Devices NeonR board December 28 2005 December 28 2005 Revision 2 8...

Page 2: ...ector pin outs Figure 2 2005 07 23 2 2 Updated U Boot version 2005 08 09 2 3 Added notes on mac address command 2005 09 15 2 4 Bumped BSP revision 2005 10 21 2 5 Bumped U Boot revision 2005 11 07 2 6...

Page 3: ...Script 13 5 2 Windows CE 14 5 2 1 Prerequisites and components 14 5 2 2 BSP Installation 14 5 2 3 Building the demo 15 5 3 Linux Support 16 5 3 1 Crosstool Linux Toolchain 16 5 3 2 Crosstool Embedded...

Page 4: ...es 34 7 1 Display configuration 34 7 1 1 What display is currently selected 35 7 1 2 What displays are supported 36 7 1 3 Select a supported display 38 7 1 4 Define and test a new display 39 7 1 5 Sav...

Page 5: ...ive LCD Display Support 4 or 5 Wire Resistive Touch Screen Support 44KHz Stereo 16 Bit Audio Output for Headphones or Speakers 44KHz Monaural Audio Input microphone 1 RS 232 or TTL Serial Port 1 USB 1...

Page 6: ...h edge in each of the four corners and the holes are 1 8 in diameter 4 3 Connector reference The following is a list of all connector part numbers used on the NeonR platform for use in identifying mat...

Page 7: ...UART 1 PIN2 NO CONNECT PIN3 GROUND PIN4 DATA OUT PIN5 DATA IN PIN6 CLEAR TO SEND PIN1 REQUEST TO SEND UART2 PIN 1 POWER PIN2 DATA OUT PIN3 DATA IN PIN4 GROUND HD15 R G B ANALOG CONNECTOR J16 AND J16...

Page 8: ...KS 001 BNW I2C FCI 68897 001 Ethernet Halo HFJ11 2450E Stereo Audio Singatron 2SJ 43723N13 Backlight inverter Molex 53048 0210 MMC SD AVX 14 5638 009 511 862 TFT Display Touch Screen Molex 52207 0590...

Page 9: ...r building 5 1 1 Requirements for building under Linux Since the Das U Boot project uses GNU tools most of the required compo nents will generally be available on a GNU Linux system The three pieces w...

Page 10: ...y type DA640X240 DA320X240 DA800X480 DA640X480 DA240X320 DA1024X768 DA1024X768 answer Choose hardware type NEONB NEON BD2003 NEON answer Choose software type WINCE LINUX WINCE answer Include minidebug...

Page 11: ...operating system image from a file named nk nb0 to RAM address 0xa0030000 and executes it Both of these are defined by the lines which resemble this define CONFIG_BOOTCOMMAND mmcinit fatload mmc 0 a0...

Page 12: ...High 0xA1FFFFFF Extra space between Das U Boot and 32MB boundary Tail of 32MB 0xA1F00000 0xA1F00000 The Das U Boot image is loaded 1MB below the 32MB boundary Das U Boot image 0xA1EFFFFF 0xA1EFFFFF T...

Page 13: ...AUTOEXEC BAT The sample script is defined in u boot 1 1 2 board neon init script and performs the following steps 1 Loads and displays a logo The script looks for an image file named logo bmp on the M...

Page 14: ...te list of components and where they may be obtained Windows CE 5R Microsoft Embedded Visual C 4 0 Microsoft Embedded Visual C Service Pack Microsoft NeonR Board Support Package Boundary Devices 5 2 2...

Page 15: ...wget http boundarydevices com bdWeb pbxml 17 37 40 http boundarydevices com bdWeb pbxml bdWeb pbxml Resolving boundarydevices com 66 113 228 134 Connecting to boundarydevices com 66 113 228 134 80 con...

Page 16: ...ed in the crosstool Quick Start guide the next step is to choose a starting point with one of the demo build scripts We re currently using demo arm xscale sh with the following settings GCC 3 4 3 with...

Page 17: ...18 20 48 arm linux ranlib rwxr xr x 1 username cvsd 429743 Jul 18 20 48 arm linux readelf rwxr xr x 1 username cvsd 1806673 Jul 18 20 48 arm linux size rwxr xr x 1 username cvsd 1780595 Jul 18 20 48...

Page 18: ...n t need to run as root mkdir p RESULT_TOP Build the toolchain Takes a couple hours and a couple gigabytes eval cat arm elf newlib 1 12 0 dat sh all newlib sh notest echo Done Next edit the contrib ne...

Page 19: ...6 11 11 tar bz2 tar xvf wget http boundarydevices com boundary 2 6 11 11 2005 11 17 patch bz2 cd linux 2 6 11 11 bzcat boundary 2 6 11 11 2005 11 25 patch bz2 patch p1 cp arch arm configs neon_config...

Page 20: ...is process will fail If you do you may see a password prompt very near the end of the build process while installing tinylogin into the root filesystem To avoid this you can either set your sudo timeo...

Page 21: ...structions make The install target can be used to simply build the components with out making a root filesystem 4 Install libraries into install This mingling of various libraries is done to allow sim...

Page 22: ...e flash GPL d Flash Library Swift Tools freetype FreeType Text Rendering The FreeType Project jpeg JPEG image library Independent JPEG Group Javascript Javascript library Mozilla Project ID3 Tag Libra...

Page 23: ...ernel Miscellaneous Filesystems Journalling Flash File System v2 3 mmcinitrd mmcinitrd u boot Creates a single file as a read write uncompressed image of a filesystem tree suitable for use as an initi...

Page 24: ...tem within it Both the initrd and cramfs images may be used in this fashion as shown in the following examples Mount a cramfs file by far the simplest case sudo mount o loop t cramfs cramfs img mnt cr...

Page 25: ...to the root of the SD card Furthermore it presumes the existence of a script or executable named linux init in the root directory of the SD card This is done both as an example and as a useful way of...

Page 26: ...ger on the attached system The following is a list of commands that can be issued at the dot prompt Note that this list can also be retrieved through minidebug by entering a question mark command para...

Page 27: ...00 LR A0008000 PC A0008000 CPSR 600000D3 FP0 0000000000 dlw a0008000 Boundary Devices 1 SMC91C11xFD s PHY LAN83C183 LAN91C111 Internal s PHY remote fault detected s Ethernet Link Detected s PHY 100Bas...

Page 28: ...al and parallel ports Note that after the cygwin package is installed you still need to enable the driver through the use of the ioperm executable For the cmd exe inclined c c cygwin bin ioperm exe v...

Page 29: ...d option is used to load minidebug The d option just loads minidebug The x option then proceed to dowload a file over the serial port using xmodem The e option dowloads a file using ethernet wireless...

Page 30: ...bugger cd jtag d ioport 3bc wrote 5d read ff using printer port at 378 IDCODE 69264013 0110 1001001001100100 00000001001 1 Halt released Waiting for stub LDIC finished This uses the program minidebug...

Page 31: ...use ctrl C dl a1f00000 CCCCCCCCCCCCCC enter binary file name u boot bin CCCCCCCCCCCCCCCC 81292 bytes 80 packets 0 retrys OK A1F00000 A1F14000 To burn a range of data from RAM to the start of flash us...

Page 32: ...Does not require Cygwin and ioperm Because it s a WindowsR graphical application it s a bit simpler to use and has a file chooser dialog The drawback is that it does not support the jtag hardware con...

Page 33: ...oot files The second thing to note in the example is the use of the serverip environment variable This variable defines the IP address of the TFTP server in this case 192 168 0 26 If your DHCP server...

Page 34: ...can be saved in the environment as well as described below Name Resolution Description qvga portrait 240 x 320 Hitachi Quarter VGA 3 5 panel hitachi qvga 320 x 240 Hitachi High Brightness Quarter VGA...

Page 35: ...1 2 common lcd_panels c To allow the testing of these settings and the use of a different display without re compiling the lcdp boot loader command is available It may be used in one of the following...

Page 36: ...followed by a question mark will list the currently sup ported displays As shown in the following example the list is extensive and extensible as we ll show later lcdp name hitachi_qvga pixclock 0 xre...

Page 37: ...ync_len 20 upper_margin 8 lower_margin 3 active 1 name sharp_vga pixclock 1 xres 640 yres 480 act_high 1 hsync_len 64 left_margin 60 right_margin 60 vsync_len 20 upper_margin 34 lower_margin 3 active...

Page 38: ...a pixclock 1 xres 800 yres 480 act_high 1 hsync_len 64 left_margin 1 right_margin 39 vsync_len 20 upper_margin 8 lower_margin 3 active 1 The selection takes place immediately so if you have a panel co...

Page 39: ...F20500 BSS A1F54520 RAM Configuration Bank 0 a0000000 64 MB Flash 32 MB panel hitachi_wvga found 800 x 480 7 1 4 Define and test a new display If you add a plus sign to the lcdp command line you ll be...

Page 40: ...to Flash EEPROM All of the descriptions above are useful but don t address the issue of persis tence That is performed through the use of the panel environment variable and the saveenv Das U Boot com...

Page 41: ...zero If you have a new Das U Boot image typically u boot bin on an SD MMC card you can upgrade it by first unprotecting and erasing the first sector of flash then copying the new image to address zero...

Page 42: ...ch screen calibration settings If you re using bdScript startup code the cali bration routine will launch upon first boot if not defined Under Windows CE the touch screen settings are stored on the MM...

Page 43: ...mac command as shown below Invoked without an argument the command will display the current MAC address Used with a single parameter MAC address with colons separating each pair of hex digits the comm...

Reviews: