|
发表于 2005-6-17 10:03:20
|
显示全部楼层
1 操作系统及网络环境
win2000+pb4.2 ip 192.168.0.1
colinux(虚拟网卡为tap)+Debian ip 192.168.0.40
skyeye ip 192.168.0.40
虚拟lubbock ip 192.168.0.201
所需工具
iproute
bootp
udp-broadcast-relay-0.3
运行EBOOT步骤
1 运行PB,可以先基于XSC1BD新建平台,编译
2 修改skyeye.conf中file为EBOOT.nb0,运行skyeye,tar s
3 运行命令,使win2000能访问虚拟lubbock
ip route del 192.168.0.0/24 dev tap0
ip route add 192.168.0.201 dev tap0
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp
echo 1 > /proc/sys/net/ipv4/ip_forward
4 添加
wince:ha=08003E21C7F7:ht=ether:ip=192.168.0.201:
到/etc/bootptab,运行bootpd
5 运行命令(需要修改命令路径),使EBOOT发送的UDP广播报能广播到PB
/udp-broadcast-relay -d 1 980 eth0
6 打开PB /target /Configure remote Connection /services /download /configure
7 在skyeye中run.等屏幕上打印出 ..send bootme...时,PB中应该可以看到模拟板的名称
8 打开PB /target /Download initialize,重新run skyeye,之后会自动开始下载内核(下载完写到flash时会报错)
运行NK.nb0步骤(Tiny Kernel)
1 修改skyeye.conf file=NK.nb0,运行skyeye,tar s
2 同上3,4
3 运行/udp-broadcast-relay -d 1 981 eth0
4 PB /target /connect
5 在skyeye中run,控制台、PB debug窗口都会有信息输出
经过漫长的等待,直到PB debug窗口显示
Welcome to the Windows CE Shell. Type ? for help.
这时,kernel已经加载完毕,打开 pb \target \CE Target Control窗口,就可以输入shell命令了
......
PB debug窗口完整的输出,供参考,免得等的失去信息:)
Kernel debugger is waiting to connect with target.
0 PID:0 TID:0 Booting Windows CE version 4.20 for (ARM)
0 PID:0 TID:0 &pTOC = 9838bb8c, pTOC = 9852b594, pTOC->ulRamFree = 82155000, MemForPT = 00000000
0 PID:0 TID:0
Old or invalid version stamp in kernel structures - starting clean!
0 PID:0 TID:0 Configuring: Primary pages: 7008, Secondary pages: 0, Filesystem pages = 3504
0 PID:0 TID:0
Booting kernel with clean memory configuration:
0 PID:0 TID:0 Memory Sections:
0 PID:0 TID:0 [0] : start: 82156000, extension: 00002000, length: 01b60000
0 PID:0 TID:0 Sp=ffffc7cc
2 PID:0 TID:0 Windows CE KernelInit
4294767297 PID:3cb7002 TID:3cb7262 Updated eptr->e32_vsize to = 000b3000
4294767303 PID:3cb7002 TID:3cb7262 Scheduling the first thread.
4294767309 PID:3cb7002 TID:3cb7262 0x83cb7024: KernelInit2: pCurThread=83cb7024 hCurThread=03cb7262 hCurProc=03cb7002, KernelInit = 983a563c
4294767312 PID:3cb7002 TID:3cb7262 0x83cb7024: Detecting VFP...
Kernel debugger connected (KDBG stream opened).
Kernel Version 1169 loaded at 0x98380000, data relocated at 0x820c6000
Debugger connection established (Target CPU is ARM).
4294767315 PID:3cb7002 TID:3cb7262 0x83cb7024: VFP Not Found!
4294767318 PID:3cb7002 TID:3cb7262 0x83cb7024: Updated eptr->e32_vsize to = 00016000
4294767326 PID:3cb7002 TID:3cb7262 0x83cb7024: >>> Loading module NK.EXE at address 0x98380000-0x98433000 (RW data at 0x820C6000-0x82134B8B)
Loaded 'NK.EXE', no matching symbolic information found.
Loaded 'kd.dll', no matching symbolic information found.
Finished re-loading kernel modules.
4294767338 PID:3cb7002 TID:3cb7262 0x83cb7024: Updated eptr->e32_vsize to = 00005000
4294767342 PID:3cb7002 TID:3cb7262 0x83cb7024: >>> Loading module celog.dll at address 0x9844D000-0x98452000 (RW data at 0x8213B310-0x8213B850)
Loaded 'celog.dll', no matching symbolic information found.
4294767350 PID:3cb7002 TID:3cb7262 0x83cb7024: CeLogInit
Loaded 'coredll.dll', no matching symbolic information found.
4294767353 PID:3cb7002 TID:3cb7262 0x83cb7024: CeLog: Large buffer size unspecified, using default size
4294767356 PID:3cb7002 TID:3cb7262 0x83cb7024: CeLog: Small buffer size invalid or unspecified, using default size
4294767358 PID:3cb7002 TID:3cb7262 0x83cb7024: CeLog: Large buffer size = 131072
4294767361 PID:3cb7002 TID:3cb7262 0x83cb7024: CeLog: Small buffer size = 4096
4294767449 PID:3cb7002 TID:3cb7262 0x83cb7024: -CeLogInit
4294767452 PID:3cb7002 TID:3cb7262 0x83cb7024: CeLog Zones : CE = 0xFFBFFFFF, User = 0xFFBFFFFF, Proc = 0xFFFFFFFF
4294767455 PID:3cb7002 TID:3cb7262 0x83cb7024: CeLog is now live!
4294767469 PID:3cb7002 TID:3cb7262 0x83cb7024: first = 01ff0000, last = 02000000, SharedDllBase = 03f30000
4294767758 PID:3cb7002 TID:3cb7262 0x83cb7024: >>> Loading module coredll.dll at address 0x03F70000-0x03FF2000 (RW data at 0x01FFF000-0x01FFF850)
4294768045 PID:23c80cba TID:23c80c96 0x83c80a58: >>> Loading module filesys.exe at address 0x04010000-0x0405E000
Loaded 'filesys.exe', no matching symbolic information found.
4294768153 PID:23c80cba TID:23c80c96 0x83c80a58: FileSystem Starting - starting with clean file system
4294775119 PID:23c80cba TID:23c80c96 0x83c80a58: >>> Loading module fsdmgr.dll at address 0x03F30000-0x03F4C000 (RW data at 0x01FF9000-0x01FF9754)
Loaded 'fsdmgr.dll', no matching symbolic information found.
4294775647 PID:23c80cba TID:23c80c96 0x83c80a58: InitSharedHeap: 42100000 10000 c
4294775676 PID:23c80cba TID:23c80c96 0x83c80a58: InitSharedHeap: return 42100050
4294776361 PID:23c80cba TID:23c80c96 0x83c80a58: >>> Loading module relfsd.dll at address 0x03F60000-0x03F6B000 (RW data at 0x01FFD000-0x01FFDABC)
Loaded 'relfsd.dll', no matching symbolic information found.
4294777093 PID:23c80cba TID:3c659d6 0x83c83d20: Mounted ReleaseFSD volume '\Release'
4294781075 PID:23c80cba TID:23c80c96 0x83c80a58: FSREG: Logging in default user.
4294781115 PID:23c80cba TID:23c80c96 0x83c80a58: SetCurrentUser: Logging out (nobody), logging in default
4294781118 PID:23c80cba TID:23c80c96 0x83c80a58: FS: Using default path "\profiles\"
4294781416 PID:23c80cba TID:23c80c96 0x83c80a58: SetCurrentUser: User hives not supported -- using same registry for all users
4294781448 PID:23c80cba TID:23c80c96 0x83c80a58: FS: Using default path "Windows\"
4294848106 PID:23c80cba TID:23c80c96 0x83c80a58: FS: Using default path "Windows\"
4294848776 PID:23c80cba TID:23c80c96 0x83c80a58: Filesystem initialized!
4294848806 PID:3cb7002 TID:c3c83f5e 0x83c80400: InitializeJit
4294848813 PID:3cb7002 TID:c3c83f5e 0x83c80400: InitMUI: DISABLED (-1039664356)
4294849486 PID:43c80a36 TID:43c808c2 0x83c5e340: InitSharedHeap: 42100000 0 c
4294849489 PID:43c80a36 TID:43c808c2 0x83c5e340: InitSharedHeap: return 42100050
4294849650 PID:43c80a36 TID:43c808c2 0x83c5e340: >>> Loading module toolhelp.dll at address 0x03F50000-0x03F56000 (RW data at 0x01FFB000-0x01FFB05
Loaded 'toolhelp.dll', no matching symbolic information found.
4294849711 PID:43c80a36 TID:43c808c2 0x83c5e340: >>> Loading module shell.exe at address 0x06010000-0x06027000
Loaded 'shell.exe', no matching symbolic information found.
Welcome to the Windows CE Shell. Type ? for help.
4294850910 PID:43c80a36 TID:43c808c2 0x83c5e340: Shell: No extension DLLs found |
|