Booting PC/104 Boards

This section will guide you through step-by-step how to take the image that buildroot makes for you and boot-up a new node with it.

First, create a linux partition on your flash disk and make it bootable with cfdisk (as root):

# cfdisk /dev/sdc

Format the new partition:

# mkfs.ext3 /dev/sdc1

Configure grub. If you are using TFTP to boot you will need to configure your node's IP address and gateway.

# mount /dev/sdc1 /mnt
# mkdir -p /mnt/boot/grub
# cp fs/skeleton/boot/grub/menu.lst /mnt/boot/grub
# nano /mnt/boot/grub/menu.lst

Install GRUB with grub-install (--recheck instructs grub-install to rebuild it's device map before installing):

# grub-install /dev/sdc --recheck --root-directory=/mnt

Copy your kernel image:

# cp output/images/bzImage /mnt/boot

Configure your node-specific files:

# mkdir -p /mnt/etc
# mkdir -p /mnt/etc/network
# mkdir -p /mnt/usr/local/products/data
# nano /mnt/etc/hostname
# nano /mnt/etc/hosts
# nano /mnt/etc/network/interfaces

Un-mount and boot up:

# umount /dev/sdc1

The first time you bootup, sshd will generate a set of host keys for itself. This should only happen once. Request host kerberos principals from the helpdesk for your new node. The request is usually processed the same day. One you have your key (password) from the helpdesk you can create a host principal:

# kadmin -p host/ -q "ktadd host/" 
(enter password from helpdesk e-mail)
# kadmin -p ftp/ -q "ktadd ftp/" 
(enter password from helpdesk e-mail)