星期三, 12月 29, 2010

MK100 Dev. Env R3

Installing Windows Embedded CE 6.0 – Steps:

1. Visual Studio 2005
2. Visual Studio 2005 SP1
3. Visual Studio 2005 SP1 for Vista
4. Windows Embedded CE 6.0
5. Windows Embedded CE 6.0 SP1
6. Windows Embedded CE 6.0 R2
7. Windows Embedded CE 6.0 R3
8. Install Windows Embedded CE 6.0_Product_Update_Rollup_2009
9. copy C:\Program Files\Common Files\microsoft shared\Windows CE Tools\Platman\target\wce600\armV4i to C:\Program Files\Common Files\microsoft shared\Windows CE Tools\Platman\target\wce600\armV4 (for active-sync)
10. device emulator 2.0
11. .net cf 2.0 sp2
12. install ARM VFPv2 library
13. install WesttekFileViewers6.exe (Office, PDF viewer)

星期一, 12月 27, 2010

Windows CE 6 FTPD, HTTPD related document

FTPD
http://msdn.microsoft.com/en-us/library/ms881874.aspx

HTTPD
http://msdn.microsoft.com/en-us/library/ee498633.aspx

星期一, 12月 20, 2010

network adb in beagleboard

since rowboat gadget driver does not works for me. so i choose use network adbd for my beagleboard-xm.

target:
setprop service.adb.tcp.port 5555
stop adbd
start adbd

windows:
adb connect xxx.xxx.xxx.xxx:5555

done.

Beagle edit boot.scr

Strip the 72byte long uboot header:
dd if=boot.scr of=boot.script bs=1 skip=72

use u-boot mkimage to gen the .scr
mkimage -A arm -T script -C none -n "beaglexm boot script" -d boot.script boot.scr

星期五, 4月 16, 2010

OMAP3 GPIO reset pin

take omap3-evm as reference

1. xxxx.h for mux

MUX_VAL(CP(GPMC_WAIT2), (IEN | PTU | EN | M4)) /*GPIO_64*/\

2. xxx.c for set h-l-h pulse

/* Make GPIO 64 as output pin */
writel(readl(&gpio3_base->oe) & ~(GPIO0), &gpio3_base->oe);

/* Now send a pulse on the GPIO pin */
writel(GPIO0, &gpio3_base->setdataout);
udelay(1);
writel(GPIO0, &gpio3_base->cleardataout);
udelay(1);
writel(GPIO0, &gpio3_base->setdataout);

星期三, 2月 03, 2010

Platform Builder 6 remote tools

C:\Program Files\Common Files\microsoft shared\Windows CE Tools\Platman\target\wce600

copy armv4i to armv4

then VS2005(PB6) remote tools is ready.

星期二, 1月 26, 2010

Enable multi-core compiling with Visual Studio 2005/2008 for Qt

for Visual studio 2005 mkspecs\win32-msvc2005\qmake.conf
for Visual studio 2008 mkspecs\win32-msvc2008\qmake.conf

change
QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t-
to
QMAKE_CFLAGS = -nologo -Zm200 -MP -Zc:wchar_t-

Speeding up Visual C++ Qt Builds (jom)

1. extract jom binary to %QTDIR%\bin
2. run jom instead of nmake

binary stored place: ftp://ftp.qt.nokia.com/jom/

Install Qt 4.5.3 for Windows with VS2005

Install Qt 4.5.3 for Windows with VS2005

1. get qt-win-opensource-src-4.5.3.zip from ftp or file server

2. extract zip file to c:\qt\

3. cd C:\Qt\qt-win-opensource-src-4.5.3 (check the path in your system)

4. C:\Program Files\Microsoft Visual Studio 8\VC\bin\vsvars32.bat

5. configure -platform win32-msvc2005 -no-qt3support

5.1. wait for a while

6. nmake

6.1. wait for a while

7. Add system variable "QTDIR=C:\Qt\qt-win-opensource-src-4.5.3" & "PATH=C:\Qt\qt-win-opensource-src-4.5.3\bin;%PATH%"

MySQL for Qt

1. Install MySQL with development files (%QTDIR% == C:\Qt\qt-win-opensource-src-4.5.3)
2. C:\Program Files\Microsoft Visual Studio 8\VC\bin\vsvars32.bat
3. cd %QTDIR%\src\plugins\sqldrivers\mysql
4. qmake "INCLUDEPATH+='C:\Program Files\MySQL\MySQL Server 5.1\include'" "LIBS+='C:\Program Files\MySQL\MySQL Server 5.1\lib\opt\libmysql.lib'" mysql.pro
5. nmake
6. Check result. (you will see files in %QTDIR%\plugins\sqldrivers)