Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


1 2 >

mercredi 28 octobre 2015

Technical documentation for HP Compaq 7900 Serie

Have a look at http://www.hp.com/ctg/Manual/c01549447.pdf

dimanche 18 octobre 2015

ReactOS on real hardware - HP Compaq 7900 Ultra-Slim Desktop (Test 1)

I bought this PC (HP Compaq 7900 on ebay this week). Machine was received on Saturday, 18-Sept-2015. I spent all my time this Saturday on getting ReactOS to run on this PC. Its specs are almost the same as the specs I saw on youtube for a Dell Inspiron 530s. So it should work (Or not? Or how to waste your own money? That is the question...).

The first good new was that I was able to install ReactOS. Issue was: no network. So I spent all my Saturday afternoon on finding the right driver. That was pretty a lot of works to do :(

Finally it works :). I found the right driver for network interface

In the future I plan to use this workstation on ReactOS for reading my mails (through ThunderBird...). I already have my own Linux workstation to test video games on Wine :)

mercredi 7 octobre 2015

ReactOS 0.4 svn - Qemu 2.4.0.1 + KVM (Tests: Sound AC97 / SMPlayer / Firefox / Opera)

Youtube video

Referring to ReactOS SVN repository I used revision = 69458 for this VM. As quoted from ReactOS Wiki, sound can work only once :(. But at least I can play one video

Script used for this VM

number=69458	
#number=69461

#version=dbg
version=rel

driver="ac97"
#driver="es1370"

# For ES1370
[ "${driver}" = "es1370" ] && {
	echo "AUDIO DRIVER = ${driver}";
	export QEMU_AUDIO_DRV=alsa;
	export QEMU_AUDIO_TIMER_PERIOD=0;
	export QEMU_AUDIO_DAC_FIXED_CHANNELS=2;
	export QEMU_ALSA_DAC_SIZE_IN_USEC=1;
	export QEMU_ALSA_ADC_SIZE_IN_USEC=1;
	export QEMU_ALSA_ADC_BUFFER_SIZE=2176;
}

# For AC97
[ "${driver}" = "ac97" ] && {
	echo "AUDIO DRIVER = ${driver}";
	export QEMU_AUDIO_DRV=alsa;
	export QEMU_ALSA_DAC_SIZE_IN_USEC=1;
	export QEMU_ALSA_DAC_BUFFER_SIZE=4353 ;
	export QEMU_AUDIO_TIMER_PERIOD=100;  
	export QEMU_AUDIO_DAC_FIXED_CHANNELS=1; 
}



/opt/qemu/2.4.0.1/bin/qemu-system-i386  --enable-kvm  \
	-cpu host -m 2047 -smp  4,sockets=1,cores=4,threads=1 \
	-drive file=/dev/xen-vg/React_OS,if=ide,index=0,media=disk,format=raw,cache=writeback \
        --cdrom /opt/CD_DVD_ISO/ReactOS/bootcd-${number}-${version}.iso  \
	-boot order=cd -vga std -global VGA.vgamem_mb=32 -localtime   \
	-net nic,model=rtl8139 -net bridge,br=br0,helper=/opt/qemu/2.4.0.1/libexec/qemu-bridge-helper \
	-soundhw ${driver}  \
	-writeconfig /root/qemu-2.4.0.1_reactos.conf

Options I used for Qemu 2.4.0.1

I wrote this post so I remember which options I used for Qemu.

Options to build

./configure --prefix=/opt/qemu/2.4.0.1/ --sysconfdir=/opt/qemu/2.4.0.1/etc/ --target-list=arm-softmmu,i386-softmmu,x86_64-softmmu \
--enable-kvm --enable-uuid --enable-virtfs --enable-libnfs --enable-libusb --enable-lzo --enable-bzip2 --enable-libiscsi --enable-attr --enable-libssh2 \
--enable-numa --enable-system --enable-guest-base --enable-guest-agent --audio-drv-list=alsa,pa,sdl --enable-cap-ng --enable-modules --enable-netmap \
--enable-user --enable-linux-user --extra-cflags=-I/opt/Sources/QEMU/netmap/sys/ --enable-tcmalloc --enable-gcov --enable-usb-redir --enable-tcg-interpreter \
--enable-xfsctl --enable-gprof --enable-profiler

Network (bridge mode)

I had to add this paramter to /etc/sysctl.conf file (Allow the host system to forward IP packets)
echo "# Require for QEMU/KVM" >> /etc/sysctl.conf
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
To take into account this parameter above without rebooting
sudo sysctl -p
Here is my /etc/network/interfaces file
root@amdgaming:~# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual


#################
# bridge + dhcp #
#################
auto br0
iface br0 inet dhcp
	bridge_ports eth0
        bridge_stp off
        bridge_fd off
        bridge_maxwait 0
After that
mkdir -pv /opt/qemu/2.4.0.1/etc/qemu/
echo "allow br0" > /opt/qemu/2.4.0.1/etc/qemu/bridge.conf