Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4757 → Rev 4758

/branches/network/contrib/conf/qemu.sh
1,8 → 1,9
#!/bin/sh
 
arguments="-vga std -M isapc -net nic,model=ne2k_isa -net user -boot d -cdrom image.iso -redir udp:8080::8080 -redir udp:8081::8081 -redir tcp:8080::8080 -redir tcp:8081::8081"
arguments="-vga std -M isapc -net nic,model=ne2k_isa -net user -boot d -redir udp:8080::8080 -redir udp:8081::8081 -redir tcp:8080::8080 -redir tcp:8081::8081 -cdrom image.iso"
 
#qemu 0.10.2 only (NOT qemu 0.9.1!)
#qemu 0.10.2 and later 0.10.*:
#qemu $@ -no-kqemu $arguments
#qemu 0.11
 
#qemu 0.11:
qemu $@ $arguments
/branches/network/contrib/conf/qemu.bat
0,0 → 1,26
REM Start qemu on windows.
REM tested with qemu-0.10.6-windows
 
@ECHO OFF
 
REM SDL_VIDEODRIVER=directx is faster than windib. But keyboard cannot work well.
SET SDL_VIDEODRIVER=windib
 
REM SDL_AUDIODRIVER=waveout or dsound can be used. Only if QEMU_AUDIO_DRV=sdl.
SET SDL_AUDIODRIVER=dsound
 
REM QEMU_AUDIO_DRV=dsound or fmod or sdl or none can be used. See qemu -audio-help.
SET QEMU_AUDIO_DRV=dsound
 
REM QEMU_AUDIO_LOG_TO_MONITOR=1 displays log messages in QEMU monitor.
SET QEMU_AUDIO_LOG_TO_MONITOR=0
 
REM PCI-based PC(default): -M pc
REM ISA-based PC : -M isapc
REM -M isapc is added for NE2000 ISA card.
 
REM the -L argument should point to the qemu libraries
 
set arguments=-L . -vga std -no-kqemu -M isapc -net nic,model=ne2k_isa -net user -redir udp:8080::8080 -redir udp:8081::8081 -boot d -cdrom image.iso
 
qemu.exe %* %arguments%