Sunday, June 8, 2008

FreeBSD 7.0 on Thinkpad x60s

Installation (Borrowed/adapted from here).

  1. Grab a boot-only nfs image from here.

  2. Copy the cd contents into the filesystem:

  3. mount -o loop /path/to/7.0-RELEASE-i386-bootonly.iso /mnt
    mkdir /freebsd
    cp -rP /mnt/boot/ /freebsd
    umount /mnt

  4. Edit /freebsd/boot/loader.conf to add:
    vfs.root.mountfrom="ufs:/dev/md0c"
    to use ramdisk root instead of nfs.

  5. Edit /etc/dhcpd.conf to add:

  6. host x60 {
    hardware ethernet xx:xx:xx:xx:xx:xx;
    fixed-address 10.0.0.xx;
    next-server 10.0.0.2;
    filename "pxeboot";
    option root-path "10.0.0.2:/freebsd";
    }

  7. Copy the pxeboot image to your tftp root dir:
    cp /freebsd/boot/pxeboot /var/lib/tftpboot

    NOTE: I had trouble with the 7.0 pxeboot ("Can't work out which disk we are booting from"). Crawling the web indicated that it was a 7.0 pxeboot problem and pulling the boot/pxeboot binary from a 6.3 iso image worked.
  8. I already had a tftp server installed (I use the tftpd-hpa server).

  9. Install an nfs server (temporarily if necessary (apt-get install nfs-kernel-server)).

  10. /etc/exports:
    /freebsd 10.0.0.xx(ro,subtree_check)

At this point, installation worked for me.

Getting the hardware working
  • Wireless

    1. Get the drivers loaded

    2. /boot/loader.conf
      # See man if_wpi if you want to know what you are agreeing to.
      legal.intel_wpi.license_ack=1
      if_wpi_load="YES"
      wpi_load="YES"
      wpi_amrr_load="YES"
      wpifw_load="YES"
      wlan_xauth_load="YES"

    3. WPA:
      /etc/wpa_supplicant.conf
      network={
      ssid="yourssidhere"
      psk="Your clever passphrase with lots of character variation
      }

      /etc/rc.conf
      ifconfig_wpi0="WPA DHCP"
      To start it, you can run /etc/rc.d/netif start

  • Sound

  • /boot/loader.conf
    snd_hda_load="YES"
  • X.org

  • Xorg -configure
    cp /root/xorg.conf.new /etc/X11/xorg.conf

  • Finger Print Reader

  • To be explored.

Miscellany
  • /etc/make.conf
    CPUTYPE?=core

1 comments:

Bind said...

Just for extra: it may happens that afther loading the kernel the installer complain about the root:
Can't work out which disk we are booting from.
In this case, just uncompress msfroot.gz.
(credits, afther 2 days of madness goes to: http://jdc.parodius.com/freebsd/pxeboot_serial_install.html#step7)