Thread: Tools DIY - KeK
View Single Post
Old 07-15-2012, 12:58 PM   #85
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,020
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
QEMU-1.1.1

I foresee difficulties here, with each developer using what their Linux distribution **thinks** they should have (usually qemu-kvm, not qemu).

Let us see if we can out-smart the distribution planners ...
How I built the current release:
Spoiler:

core2quad BLDS $ wget http://wiki.qemu.org/download/qemu-1.1.1.tar.bz2
core2quad BLDS $ tar --extract --file=qemu-1.1.1.tar.bz2
core2quad BLDS $ cd qemu-1.1.1

(grep DESTDIR Makefile -- yes, it uses it)
(./configure --help -- default is build everything)
(yes -- it supports out-of-tree builds)

core2quad qemu-1.1.1 $ cd ..
core2quad BLDS $ mkdir qemu111 qemubld
core2quad BLDS $ cd qemubld
core2quad qemubld $ ../qemu-1.1.1/configure --prefix=/opt/qemu111 --audio-drv-list="oss alsa" --audio-card-list="ac97 ex1370 sb16 cs4231a adlib gus hda" --target-list="arm-softmmu arm-linux-user armeb-linux-user"
core2quad qemubld $ make
core2quad qemubld $ DESTDIR=/home/mszick/BLDS/qemu111 make install

core2quad qemu111 $ pwd
/home/mszick/BLDS/qemu111
core2quad qemu111 $ sudo chown -R root:root opt
core2quad qemu111 $ cd opt
core2quad opt $ sudo tar --create --gzip --file=../qemu-1.1.1-arm.tar.gz *


Download the attached tar-ball.

Installation:
core2quad ~ $ sudo tar -C /opt --extract --file=qemu-1.1.1-arm.tar.gz
core2quad ~ $ /opt/qemu111/bin/qemu-system-arm --version
QEMU emulator version 1.1.1, Copyright (c) 2003-2008 Fabrice Bellard

To activate:
core2quad ~ $ export PATH=/opt/qemu111/bin:$PATH
core2quad ~ $ qemu-system-arm --help
- - - lots of output snipped away - - -

Test run:
Spoiler:

core2quad ~ $ cd ~/BLDS/system-image-armv6l
core2quad system-image-armv6l $ ./dev-environment.sh
No distccd in $PATH, acceleration disabled.
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
(Makes note: need to put that into the HOST file system.)
audio: Failed to create voice `lm4549.out'
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
* * * *
Type exit when done.
(armv6l:1) /home # (Enter: ctrl-a c)
(armv6l:1) /home # QEMU 1.1.1 monitor - type 'help' for more information
(qemu) info version
1.1.1
(qemu) info roms
addr=00000000 size=0x00001c mem=ram name="bootloader"
addr=00010000 size=0x15ee58 mem=ram name="zImage"
(qemu) info chardev
parallel0: filename=null
serial0: filename=stdio
serial0-base: filename=stdio
(qemu) info status
VM status: running
(qemu) (Enter ctrl-a c) (Enter 'return key' to get prompt back)
(armv6l:1) /home # exit
Restarting system.
core2quad system-image-armv6l $

NOTE: If your host filesystem does not have a /dev/dsp device:
sudo mknod /dev/dsp c 14 3
But since most /dev file trees are now on tmpfs, this will go away with the next reboot.
It will probably vary from distribution to distribution how best to make this device always present. For now, left as a: "student exercise".

I would like to hear some feedback from others on this build, but it ran well enough for me to create the following static linked applications.
Only: IWFM isn't strong enough to be publicizing it yet.
Attached Files
File Type: gz qemu-1.1.1-arm.tar.gz (5.48 MB, 62 views)

Last edited by knc1; 07-16-2012 at 08:04 AM.
knc1 is offline   Reply With Quote