Monday, January 29, 2007

NetBSD network stack

I'm playing with network stack in NetBSD and as a product I've released nettest – the test LKM to get familiarized with the stack. It's simple, it receives packets from userspace and sends them to the another interface and bpf listeners (tcpdump for instance). Everything is on my homepage.

It also contains examples of list queues use and deferred work. Everything in one short file.

Saturday, January 20, 2007

Qemu is nice

Finally I've time to try it out. It works just fine, especially with kqemu – a kernel module for speedup.

I tried 3 systems till now: Windows XP 32bit, Netbsd 3.1 and Solaris 9. No problem with installing Solaris and Windows. The NetBSD dislikes kqemu module – it spits out a 'Warning: no /dev/console' and hangs when trying to boot installation iso. The (simple) solution is to add -no-kqemu to the qemu command-line (even for standard booting of installed system, otherwise it won't boot with no warning).

Going to test it all harder :). First thing I took a note is the processor load; it's low, at least I expected it to be more hardware exacring.

Sunday, January 07, 2007


Rodiče dřou děti sportem a muzikou, matematiku považují za týrání.
-- Jaroslav Král (origin, probably not the author)

(Sth. like parents force children to do sports and music, maths is considered as torture.)

Set it in stone :).

Thursday, January 04, 2007

ALSA stoop

I finally got my 5.1 speakers work in linux properly with this asoundrc file:

pcm.p6 {
type route
slave.pcm surround51
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.4
ttable.1.4 0.4
ttable.0.5 0.2
ttable.1.5 0.2
And then for example aplay -D plug:p6 <soundfile> plays the sound in all speakers. In xine I have settings which produces original AC3 sound into all speakers by default (I've set nothing) if available.

I had no idea about how asoundrc files works, I needed to study it and went through /etc/alsa stuff to understand it. Now, the life with ALSA is easier :). Let me note, that I have an emu10k1 card (creative sb live!) with analog genius speakers.