Slackware 13.37

Some notes on how to prepare the latest slackware distributions for use with the Bifferboard.

The easiest approach is to obtain the USB boot image and perform a network install direct from a slackware mirror using a Qemu virtual machine.

First create a target image to install packages to:

# qemu-img create install.img 1G

Then get the usb install image:

# wget http://www.mirrorservice.org/sites/ftp.slackware.com/pub/slackware/slackware-13.37/usb-and-pxe-installers/usbboot.img -O boot.img

Now run qemu:

# qemu -m 256 -hda boot.img -net nic -net user -usb -usbdevice install.img

At this point /dev/sda is your boot partition and /dev/sdb should be the usb disk.

Setup your swap and root partitions on /dev/sdb using fdisk and save them.

Run setup, set the keymap, setup target partitions and swap. Format /dev/sdb2 with ext3. You can use ext4 but the kernel driver consumes more RAM, so EXT3 is best for embedded systems.

Set the install source as FTP/HTTP. For the server name, you can give http://www.mirrorservice.org

Tor the path to the install files you can give /sites/ftp.slackware.com/pub/slackware/slackware-13.37/slackware/

The installer will download the package list, this takes a long time!

Select package sets to install.

* Edit /etc/securetty to include ttyS0 (comment it in), comment in the

other consoles.

* edit /etc/inittab to include a serial logon, like this:

# Local serial lines:

s1:12345:respawn:/sbin/agetty -L ttyS0 115200 vt100

#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100

* Put this in place of hwclock stuff in /etc/rc.d/rc.S

/usr/bin/date -s "$(/sbin/dumpe2fs -h /dev/sda1 | grep "Last mount time:" | sed s/"Last mount time: *"//)"

* Disable udevd (chmod 644 /etc/rc.d/rc.udevd)

Now build a kernel:

TODO:

Now run qemu with serial console only to ensure the USB disk doesn't need the display:

# qemu -m 256 -hda boot.img -net nic -net user -usb -usbdevice install.img