Wednesday, June 5, 2013

Freebsd Kernel Modules with asm volatile

Unlike in Linux kernel kernel modules FreeBSD kernel does not support asm volatile ("blah blah");, you have to change the instruction __asm__ ("blash blash"); its two _ not one. Best of luck kernel hackers.

Monday, May 6, 2013

Building GCC 4.1.2

When you build gcc 4.1.2 if you get this error /usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
Create a symlink asm directed to asm-generic
sudo ln -s /usr/include/asm-generic /usr/include/asm
Bingo..

Sunday, May 5, 2013

Raspberri Pi: FreeBSDARM

I recently moved from Debian to FreeBSD on my Raspberry pi. This thread will help you to go easy with raspberry pi. 
Probelm  1:
 /usr/ports missing
you have to run
portsnap fetch
and then portsnap extract
 /usr/ports directories will be created and ready to go.

Friday, April 12, 2013

Miss my home a lot in the Awurudu Season

සත් ගව්වක් සිටියත් මුහුදෙන් එතෙර
සිතිවිලි පොඩිති මතුවේ අවුරුදු ජයට
තෙල් පිටි සුවද නහයට ඇවිදින් වදින
දුවගෙන එන්න හිතෙනව අම්මේ ගෙදර