[問題] openmoko on winxp

9 views
Skip to first unread message

更紗

unread,
Apr 14, 2007, 9:16:38 PM4/14/07
to Open RazzmatazZ Laboratory (OrzLab)
大家好,

== 前言 ==
我在 winxp 下用 mingw+msys 編譯了 SDL-1.2.11
然後編譯了 Jserv 改的 openmoko-emulator-20070406.tar.bz2
其中遇到一次要不到 gmtime_r 跟 localtime_r 的問題(cannot reference to xxx)
我參考這個 ftp://sourceware.org/pub/pthreads-win32/sources/pthreads-w32-2-8-0-release/pthread.h
在 vl.h 加入
#define gmtime_r( _clock, _result ) \
( *(_result) = *gmtime( (_clock) ), \
(_result) )

#define localtime_r( _clock, _result ) \
( *(_result) = *localtime( (_clock) ), \
(_result) )
這兩段 code,make clean 後再重新 make 就可以通過編譯了

在執行到 ./openmoko/run.sh 時,發生下列錯誤
希望大家指點一下

$ ./openmoko/run.sh

This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.
qemu: fatal: Trying to execute code outside RAM or ROM at 0x38000000

R00=00000000 R01=00000000 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=38000000
PSR=400001d3 -Z-- A svc32 77c2fcc0
s00=00000000( 0) s01=00000000( 0)
d00=0000000000000000( 0)
s02=00000000( 0) s03=00000000( 0)
d01=0000000000000000( 0)
s04=00000000( 0) s05=00000000( 0)
d02=0000000000000000( 0)
s06=00000000( 0) s07=00000000( 0)
d03=0000000000000000( 0)
s08=00000000( 0) s09=00000000( 0)
d04=0000000000000000( 0)
s10=00000000( 0) s11=00000000( 0)
d05=0000000000000000( 0)
s12=00000000( 0) s13=00000000( 0)
d06=0000000000000000( 0)
s14=00000000( 0) s15=00000000( 0)
d07=0000000000000000( 0)
s16=00000000( 0) s17=00000000( 0)
d08=0000000000000000( 0)
s18=00000000( 0) s19=00000000( 0)
d09=0000000000000000( 0)
s20=00000000( 0) s21=00000000( 0)
d10=0000000000000000( 0)
s22=00000000( 0) s23=00000000( 0)
d11=0000000000000000( 0)
s24=00000000( 0) s25=00000000( 0)
d12=0000000000000000( 0)
s26=00000000( 0) s27=00000000( 0)
d13=0000000000000000( 0)
s28=00000000( 0) s29=00000000( 0)
d14=0000000000000000( 0)
s30=00000000( 0) s31=00000000( 0)
d15=0000000000000000( 0)
FPSCR: 00000000

$ cat ./openmoko/run.sh
#!/bin/sh
arm-softmmu/qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-
flash.image -kernel openmoko/uImage-2.6-moko9-r0_0_1754_0-fic-
gta01.bin -usb -show-cursor

jserv

unread,
Apr 16, 2007, 3:35:09 AM4/16/07
to Open RazzmatazZ Laboratory (OrzLab)
On 4月15日, 上午9時16分, "更紗" <bli...@gmail.com> wrote:
> 大家好,

您好,

> 我在 winxp 下用 mingw+msys 編譯了 SDL-1.2.11
> 然後編譯了 Jserv 改的 openmoko-emulator-20070406.tar.bz2

[...]


> 在執行到 ./openmoko/run.sh 時,發生下列錯誤
> 希望大家指點一下

看來是沒找到 U-Boot image,請 ln -s openmoko/u-boot-*.bin <QEMU_ROOT_DIR>,這樣應該就
正常了。

感謝您的提醒,我剛剛也在 MS-Windows XP 透過 MinGW 建構了 openmoko-emulator,請見「OpenMoko/
Neo1973硬體模擬::Win32平台」:
http://orzlab.blogspot.com/2007/04/openmokoneo1973win32.html

相關檔案: http://mdk.linux.org.tw/~jserv/openmoko/

Regards,
-jserv

Reply all
Reply to author
Forward
0 new messages