Talk:Openmoko under QEMU

From Openmoko

Revision as of 22:45, 18 June 2007 by Balrog (Talk | contribs)

Jump to: navigation, search

under Debian Sid. I have to change slightly openmoko/env and openmoko/download.sh to make it run on Linux:

  • in openmoko/env s/make=gmake/make=make/
  • in openmoko/download.sh changed line 34 to: files=`lynx -dump $download_dir | grep http | sed "s,[0-9 \t\.]*$download_dir\([a-zA-Z0-9_\.-]\)[ \t]*,\1,"`

Any Key 14:16, 4 April 2007 (CEST)

Thanks, hopefully should be fixed. make was changed to gmake in the first place to account for BSD.balrog 23:11, 5 April 2007 (CEST)

Gentoo, AMD64

Where can I report bugs in QEMU-Neo1973? It fails to compile:

/server/projects/openmoko/qemu-neo1973/target-arm/op.c: In function 'op_iwmmxt_movq_wRn_M0':
/server/projects/openmoko/qemu-neo1973/target-arm/op.c:1374: error: unable to find a register to spill in class 'GENERAL_REGS'

--Zbraniecki 12:52, 7 April 2007 (CEST)

I assume you're using gcc4 (gcc-config -l). Qemu fails to build if you use gcc4 as it only builds with gcc3 at this time. More information:

http://gentoo-wiki.com/HOWTO:_Qemu

http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244

http://bugs.gentoo.org/show_bug.cgi?id=132667

How to do a downgrade to gcc3 just for Qemu: http://forums.gentoo.org/viewtopic-t-537643-highlight-qemu.html - be aware, though, that the kernel modules may not load if you built the kernel with gcc4, so a kernel recompilation may be in order also. Abraxa 19:38, 7 April 2007 (CEST)

I encountered the same problem, but I still had a gcc3 installed (gcc-3.4.6-r1 in a seperate slot from the system default gcc4, to be exact. This means that if you're using gentoo, you will not need to downgrade your system gcc). I simply added --cc=gcc-3.4.6 to ./configure's switches and make finished without major problems. --LordHelmchen 20:12, 11 April 2007 (CEST)

If you still encounter this problem with gcc3, make sure you don't have -march set anywhere like in CFLAGS (I had -march=athlon-xp). unsetting CFLAGS before re-running the configure script solved the problem for me. --Vegar 22:10, 24 April 2007 (CEST)

Basic question

I am using the emulator after compiling 'make qemu'. The basic gui screen has been created and it asks the following:

'Touch the crosshairs to calibrate the screen'

Unfortunately I do not know how to continue from this stage on... Any mouse click on the crosshairs, or a keyboard touch won't initiate a click...

Does any body know how can I click the emulator screen and continue from this stage? --nighthawk 01:12, 9 April 2007

I use mouse click and it works --Filippo 22:16, 8 April 2007 (CEST)

I find a single click will not register. Which makes sense if you think about a fingerpress on the screen. I hold down the mouse and wiggle it a bit to get the buttons to register. -- DonPark 8Apr07

Still got problem with enabling the mouse. I tried according to the QEMU guide to see which mice are available under what I used. (ALT-CTRL-2, command 'mice info') and there was only the following:

  • Mouse #0: QEMU S3C2410-driven Touchscreen

Does anybody got the same problem as I got? --nighthawk 04:14am, 9 April 2007

Please see http://lists.openmoko.org/pipermail/openmoko-devel/2007-April/000837.html balrog 01:20, 18 April 2007 (CEST)

freebsd and last qemu...

1. Checkout forgotten files (commiters, u can add that files to svn :)

hw/pixel_ops.h

softmmu-semi.h

hw/usb-wacom.c

from:

http://cvs.savannah.gnu.org/viewvc/qemu/qemu/

(good catch! Just added the files, so you can skip this step now. Thanks for reporting. balrog 22:45, 18 June 2007 (CEST))

2. Comment lines 49 and 50 in file gnokiigsm/device.h

//size_t device_read(__ptr_t buf, size_t nbytes, struct gn_statemachine *state);
//size_t device_write(const __ptr_t buf, size_t n, struct gn_statemachine *state);

3. Compile all with gmake

4. ONLY for FreeBSD users (as root):

#kldload aio

5. Have fun :)

Personal tools

under Debian Sid. I have to change slightly openmoko/env and openmoko/download.sh to make it run on Linux:

  • in openmoko/env s/make=gmake/make=make/
  • in openmoko/download.sh changed line 34 to: files=`lynx -dump $download_dir | grep http | sed "s,[0-9 \t\.]*$download_dir\([a-zA-Z0-9_\.-]\)[ \t]*,\1,"`

Any Key 14:16, 4 April 2007 (CEST)

Thanks, hopefully should be fixed. make was changed to gmake in the first place to account for BSD.balrog 23:11, 5 April 2007 (CEST)

Gentoo, AMD64

Where can I report bugs in QEMU-Neo1973? It fails to compile:

/server/projects/openmoko/qemu-neo1973/target-arm/op.c: In function 'op_iwmmxt_movq_wRn_M0':
/server/projects/openmoko/qemu-neo1973/target-arm/op.c:1374: error: unable to find a register to spill in class 'GENERAL_REGS'

--Zbraniecki 12:52, 7 April 2007 (CEST)

I assume you're using gcc4 (gcc-config -l). Qemu fails to build if you use gcc4 as it only builds with gcc3 at this time. More information:

http://gentoo-wiki.com/HOWTO:_Qemu

http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244

http://bugs.gentoo.org/show_bug.cgi?id=132667

How to do a downgrade to gcc3 just for Qemu: http://forums.gentoo.org/viewtopic-t-537643-highlight-qemu.html - be aware, though, that the kernel modules may not load if you built the kernel with gcc4, so a kernel recompilation may be in order also. Abraxa 19:38, 7 April 2007 (CEST)

I encountered the same problem, but I still had a gcc3 installed (gcc-3.4.6-r1 in a seperate slot from the system default gcc4, to be exact. This means that if you're using gentoo, you will not need to downgrade your system gcc). I simply added --cc=gcc-3.4.6 to ./configure's switches and make finished without major problems. --LordHelmchen 20:12, 11 April 2007 (CEST)

If you still encounter this problem with gcc3, make sure you don't have -march set anywhere like in CFLAGS (I had -march=athlon-xp). unsetting CFLAGS before re-running the configure script solved the problem for me. --Vegar 22:10, 24 April 2007 (CEST)

Basic question

I am using the emulator after compiling 'make qemu'. The basic gui screen has been created and it asks the following:

'Touch the crosshairs to calibrate the screen'

Unfortunately I do not know how to continue from this stage on... Any mouse click on the crosshairs, or a keyboard touch won't initiate a click...

Does any body know how can I click the emulator screen and continue from this stage? --nighthawk 01:12, 9 April 2007

I use mouse click and it works --Filippo 22:16, 8 April 2007 (CEST)

I find a single click will not register. Which makes sense if you think about a fingerpress on the screen. I hold down the mouse and wiggle it a bit to get the buttons to register. -- DonPark 8Apr07

Still got problem with enabling the mouse. I tried according to the QEMU guide to see which mice are available under what I used. (ALT-CTRL-2, command 'mice info') and there was only the following:

  • Mouse #0: QEMU S3C2410-driven Touchscreen

Does anybody got the same problem as I got? --nighthawk 04:14am, 9 April 2007

Please see http://lists.openmoko.org/pipermail/openmoko-devel/2007-April/000837.html balrog 01:20, 18 April 2007 (CEST)

freebsd and last qemu...

1. Checkout forgotten files (commiters, u can add that files to svn :)

hw/pixel_ops.h

softmmu-semi.h

hw/usb-wacom.c

from:

http://cvs.savannah.gnu.org/viewvc/qemu/qemu/

(good catch! Just added the files, so you can skip this step now. Thanks for reporting. balrog 22:45, 18 June 2007 (CEST))

2. Comment lines 49 and 50 in file gnokiigsm/device.h

//size_t device_read(__ptr_t buf, size_t nbytes, struct gn_statemachine *state);
//size_t device_write(const __ptr_t buf, size_t n, struct gn_statemachine *state);

3. Compile all with gmake

4. ONLY for FreeBSD users (as root):

#kldload aio

5. Have fun :)