Installing Jackass! on Acer TravelMate 4151LMi
# fdisk /dev/hdc
  • Here's my partition table:

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device  Boot  Start  End  Blocks  Id  System
/dev/hdc1    1  255  2048256  12  Compaq diagnostics
/dev/hdc2  *  256  2548  18418522+  7  HPFS/NTFS
/dev/hdc3    2549  4864  18603270  7  HPFS/NTFS
/dev/hdc4    4865  12161  58613152+  5  Extended
/dev/hdc5  *  4865  4987  987966  83  Linux
/dev/hdc6    4988  5110  987966  82  Linux swap / Solaris
/dev/hdc7    5111  6327  9775521  83  Linux
/dev/hdc8    6328  7544  9775521  83  Linux
/dev/hdc9    7545  8761  9775521  83  Linux
/dev/hdc10    8762  12161  27310468+  83  Linux
  • Copied the Windows XP partitions from the original drives to the new one

# dd bs=32768 if=/dev/sda1 of=/dev/hdc1
# dd bs=32768 if=/dev/sda2 of=/dev/hdc2
# dd bs=32768 if=/dev/sda3 of=/dev/hdc3
(Took about 15hrs total using a USB2 enclosure...)
  • Made the files systems

# mke2fs -L boot /dev/hdc5
# mkswap /dev/hdc6
# mkreiserfs -l root /dev/hdc7
# mkreiserfs -l usr /dev/hdc8
# mkreiserfs -l media /dev/hdc9
# mkreiserfs -l home /dev/hdc10
  • Downloaded JackAss2006.2 and the lastest portage snapshot (20060912), and untared

# mkdir /mnt/jackass
# mount -t reiserfs /dev/hdc7 /mnt/jackass
# mount -t ext2 /dev/hdc5 /mnt/jackass/boot
# mount -t reiserfs /dev/hdc8 /mnt/jackass/usr
# mount -t reiserfs /dev/hdc10 /mnt/jackass/home
# cd /mnt/jackass
# tar jxvpf jackass.tar.bz2
# tar jxvf portage-snapshot-20060912.tar.bz2
  • Now Knoppix3.4 only has kernel 2.6.5 - too old to chroot into the Jackass environment.
  • So I took the HDD out and put it on the USB2 enclosure and plugged into an old computer running Gentoo, but with kernel 2.6.17-r8
  • Chrooted into the new Jackass enviroment

# mount -t proc none /mnt/jackass/proc
# mount -o bind /dev /mnt/jackass/dev
# chroot /mnt/jackass /bin/bash
# env-update
# source /etc/profile
  • Also, advantage of putting the HDD into another box is that I could not get networking to work yet - Jackass and Knoppix3.4 failed to detect either the Broadcom gigabit ethernet or the Intel wireless cards.
  • Emerged some essential packages:

# emerge reiserfsprogs
# emerge wireless-tools
# emerge pciutils
# emerge ipw2200
  • The last package fails due to some kernel configurations.
  • Recompiled the kernel. I'm using 2.6.17-gentoo-r8. Make sure you include these options:
    • Include IDE/ATA-2 DISK support (CONFIG_BLK_DEV_IDEDISK=y)
    • generic default IDE chipset support (CONFIG_IDE_GENERIC=y)
    • Generic PCI IDE Chipset support (BLK_DEV_GENERIC=y)
    in Device Drivers → ATA/ATAPI/MFM/RLL support
    or the damned thing won't boot - fails with a "VFS: Unable to mount root fs on ..."
  • Also include the ethernet driver:
    • Broadcom 4400 ethernet support (EXPERIMENTAL)
    in Device Drivers → Network device support → Ethernet (10 or 100Mbit)
  • For the wireless you need some other options disabled and the ipw2200 package.
    • Michael MIC keyed digest algorithm (CONFIG_CRYPTO_MICHAEL_MIC=y)
    in Cryptographic options, and disable the inbuilt IEEE802.11 support
    • Generic IEEE 802.11 Networking Stack (CONFIG_IEEE80211=n)
    in Networking, uncheck all options under the Generic 802.11 one. Disable in inbuilt Intel wireless drivers:
    • Intel PRO/Wireless 2200BG and 2915ABG Network Connection (CONFIG_IPW2200=n)
    in Device Drivers → Network device support → Wireless LAN (non-hamradio), but do check the
    • Wireless LAN (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO=y)
    option. These later options are to get the ipw2200 package to work
  • The sound card is an Intel 82801 AC '97 controller, so you need to compile in the:
    • Intel/SiS/nVidia/AMD/ALi AC97 Controller (CONFIG_SND_INTEL8X0=y)
    • Intel/SiS/nVidia/AMD MC97 Modem (EXPERIMENTAL) (CONFIG_SND_INTEL8X0M=y)
    in Device → Sound → Advance Linux Sound Architecture → PCI Device
  • Install grub:

# grub
grub> root (hd0,4)
grub> setup (hd0)
grub> quit
  • Add the new kernel to grub and reboot

# nano /boot/grub/grub.conf
# reboot
  • Here's my grub configuration:
default 0 # Default listing - 0 is first, 1 is second etc.
timeout 30 # Timeout in seconds
splashimage=(hd0,4)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.17-r8 Generic IDE
root (hd0,4)
kernel /bzImage-2.6.17-gentoo-r8IDE root=/dev/hdc7 ide1=dma video=intelfb:1024x768-32@60

title=Gentoo Linux 2.6.17-r8 SCSI-SATA
root (hd0,4)
kernel /bzImage-2.6.17-gentoo-r8SCSI root=/dev/sda7 video=intelfb:1024x768-32@60

title=Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1

title=Hitachi Feature Tool 2.03 Floppy
kernel /memdisk
initrd /ftool_203_install.IMG
  • * Emerging ipw2200 still gives an error, and suggests doing:

# /bin/sh /usr/portage/net-wireless/ieee80211/files/remove-old /usr/src/linux
# emerge ipw2200
  • Sucess!! Setup wireless and wired networking in the usual way:

# ln -s net.lo /etc/init.d/net.eth1
# nano /etc/conf.d/net
# modprobe ipw2200
# /etc/init.d/net.eth0 restart
# /etc/init.d/net.eth1 restart

# rc-update -a net.eth0 default
# rc-update -a net.eth1 default

# make && make modules_install
# cp arch/i386/boot/bzImage /boot/bzImage-2.6.17-gentoo-r8
# cp .config /boot/config-2.6.17-gentoo-r8
# cp System.map /boot/System.map-2.6.17-gentoo-r8
  • Now for some useful stuff:

# emerge vim
# emerge vim-spell-en
# emerge mirrorselect
# emerge ethtool
# emerge alsa-utils

# emerge syslinux
# cp /usr/lib/syslinux/memdisk /boot
# vi /boot/grub/grub.conf
# reboot
  • Still doesn't work: it's because I've used the generic IDE driver, instead of the Intel one...
  • The IDE controller is an SATA ICH6 chip, so we need the PIIXn driver in the kernel:
    • SCSI Disk support (CONFIG_BLK_DEV_SD=y)
    • SCSI CDROM support (CONFIG_BLK_DEV_SR=y)
  • in Device Drivers → SCSI Device support
    • Serial ATA (SATA) support (CONFIG_SCSI_SATA=y)
    • Intel PIIX/ICH SATA support (CONFIG_SCSI_ATA_PIIX=y)
  • in Device Drivers → SCSI Device support → SCSI low-level drivers
  • Then disable the IDE subsystem:
    • PCI IDE chipset support (CONFIG_BLK_DEV_IDEPCI=n)
  • in Device Drivers → ATA/ATAPI/MFM/RLL support
  • Now modify fstab to point all entries to hdc → sda and hdd → sdb
  • I wanted to have the option to use both the generic IDE and SCSI SATA system.
  • So I compiled two kernels, and put them into GRUB. But: need to modify the fstab file each time I wanted to change.
  • So I ...
  • Reference: http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux
  • To stop annoying message about System.map not found (/sbin/modules-update looks in /usr/src/linux, which [/usr] had not been mounted yet, changed /sbin/modules-update to point to /boot/System.map)
  • Added to /etc/portage/package.use:
# echo www-client/links gpm ssl unicode fbcon jpeg javascript png tiff X >> /etc/portage/package.use
# echo virtual/x11 dri >> /etc/portage/package.use
# echo media-video/mplayer aac dts mad matroska real theora vorbis win32codecs xvid aalib alsa arts esd fbcon gif jpeg libcaca nas openal opengl png xv X cdparanoia dvb dvd dvdread i8x0 mmx sse sse2 encode ipv6 truetype >> /etc/portage/package.use

# echo www-client/links ~x86 >> /etc/portage/package.keywords
# emerge --update --newuse --deep x11 links mplayer
  • Plugged in ethernet at work. Doesn't seem to work: gives a "resource temporarily unavailable" error. Changed wireless to eth0 and wired to eth1, and recompiled b44 as module. Fixed /etc/conf.d/net. Works fine now.

# emerge syslog-ng vixie-cron slocate dhcpcd
  • Add gpm to rc to use mouse on the console:

# rc-update -a gpm default
  • Add default user to video group to use framebuffer; and other groups

# usermod -G users,audio,cdrom,games,portage,usb,video,wheel
  • Changed the localisation:

# vi /etc/locale.gen # locale-gen
  • Changed the keymaps

# vi /etc/conf.d/keymaps
  • Install some games:

# emerge cavezofphear
# emerge nibbles
# emerge ninvaders
# emerge seatris
# emerge alienwave
  • Ran xorgconfig - chose i810 graphics card and enabled DRI and GLX - get 250fps with GLXgears (bit pitiful really)

# xorgconfig
# emerge fluxbox
# echo exec fluxbox >> ~/.xinitrc
# echo www-client/mozilla-firefox ipv6 java >> /etc/portage/package.use
# echo dev-java/blackdown-jdk X mozilla >> /etc/portage/package.use
# emerge mozilla-firefox
# emerge nmap
# emerge telnet-bsd
# emerge aterm rxvt dos2unix

~/mdl/linux/tm4150