Wednesday, April 22, 2009

FreeBSD Google Summer of Code


Hi,

Just a little post to tell you that I will participate in the fifth google Summer of Code for the FreeBSD project. My work will focus on USB.

If you want some news on my subject you can find them on the FreeBSD wiki :

This project will probably freeze the current PMBSD development and all my other little projects during the summer time.

I will try to put news of the google Summer of Code on this blog when I have the time during the Summer.

Cheers,

Monday, April 6, 2009

FreeBSD current Xorg and hp2133


Hi,

I've had some difficulties with xorg installation on the hp2133. This installation is not trivial so if you don't manage to do it, you can follow this howto :)

You need to have an updated ports source tree. If you don't have any /usr/ports directory you need to do that :


cd /usr/


cvs -danoncvs@anoncvs.fr.freebsd.org:/home/ncvs checkout -P ports.


you already have an /usr/ports dir you only need to update :

cd /usr/ports cvs update -Pd

Now let's compile Xorg :

cd /usr/ports/x11/xorg
make && make install.

You can have some problem to compile it with randr, to fix it you can do this:

cd /usr/ports/x11/randrproto/ make && make deinstall && make install
cd /usr/ports/x11/libXrandr/
make && make deinstall && make install
cd /usr/ports/x11/xrandr/
make && make deinstall && make install
cd /usr/ports/x11/xorg/
make && make install

Now you have xorg installed, but if you try to launch it with a startx your laptop hangs. You need to update the openchrome driver from the openchrome directory:

cd ~/
make code
cd code
svn co http://svn.openchrome.org/svn/trunk/
cd trunk/
./autogen.sh --prefix=/usr/X11R6
make && make install

Now you have a working X but the mouse and the keyboard don't respond... You need to enable in your rc.conf the dbus and hal:

echo hald_enable=YES >> /etc/rc.conf
echo dbus_enable=YES >> /etc/rc.conf

Now averything works fine.

HTH,

Install FreeBSD current on hp2133

Hi,

Last week, I tried to install FreeBSD current on my hp2133. I had some problems to install it so here is how I did it.

First this laptop has no cdrom, so I installed FreeBSD on it with an usbkey. You need to take another laptop with a FreeBSD and checkout the sources :

cd /usr


cvs -danoncvs@anoncvs.fr.freebsd.org:/home/ncvs checkout -P src


After that you have to build the system for the usb key:

make buildworld
make buildkernel KERNCONF="GENERIC"

When the userland and the kernel are compiled you need to prepare the usb disk :

fsdisk -I /dev/da0
fdisk -B /dev/da0
bsdlabel -w /dev/da0s1a auto
bsdlabel -B /dev/da0s1a
newfs /dev/da0s1a
mount /dev/da0s1a /mnt

Now the disk is mounted & you need to install the binaries on it:

make installworld DESTDIR=/mnt
make installkernel DESTDIR=/mnt KERNCONF="GENERIC"
make distrib-dirs DESTDIR=/mnt
make distribution DESTDIR=/mnt
echo /dev/da0s1a / ufs rw 1 1 > /mnt/etc/fstab
echo hostname="myname" > /mnt/rc.conf
cp -fr /usr/src /mnt/usr/.

Now you can boot with the usb key on the hp2133. Warning: during the bootloader you must boot in failsafe mode, because there are an apic problem on current with the laptop...

When you have booted you can log with the root account without password. Now you need to recompile the userland and the kernel but instead installing it on da you can do it on ad (your disk drive) :

make buildworld

make buildkernel KERNCONF="GENERIC"
fsdisk -I /dev/ad0
fdisk -B /dev/ad0
bsdlabel -w /dev/ad0s1a auto
bsdlabel -B /dev/ad0s1a
newfs /dev/ad0s1a
mount /dev/ad0s1a /mnt
make installworld DESTDIR=/mnt
make installkernel DESTDIR=/mnt KERNCONF="GENERIC"
make distrib-dirs DESTDIR=/mnt
make distribution DESTDIR=/mnt
cp /etc/rc.conf /etc/fstab /mnt/etc

Now you can remove your usb key and boot on your hp2133 drive :)

HTH