This section describes how to create an SL4 root file system for the SBC. In the examples a root file system is created on the SBC boot/nfs server under /sbcroot/pixelsbc1. The server needs to run SL4.
In the example the root file system is created in /sbcroot/pixelsbc1 on the file server. The following instructions are for csh.
Set installation and create directory
Additional packages can be installed/updated using the above method. Maintenance of the SBC root file system can be exclusively done on the nfs server.
Additional configuration steps
Create devices
a useful script to create linux devices can be found here:
* makedev.sh: shell script to create devices
> cd $INSTDIR/dev
> sh makedev.sh
Enable serial console:
Edit the gettys section in $INSTDIR/etc/inittab. Add the line
s0:2345:respawn:/sbin/mingetty --noclear ttyS0
Add nfs mounts to $INSTDIR/etc/fstab. For example:
Configure kernel parameters.This is optional. Edit $INSTDIR/etc/rc.local and add
echo 1 >> /proc/sys/kernel/sysrq
# enable system request ; send brk + b from serial line reboots
echo 0 >> /proc/sys/vm/overcommit_memory
# no overcommit of memory
echo /tmp/core > /proc/sys/kernel/core_pattern
# where of dump core files
Creating a network bootable kernel image for the SBC
The SBC VME driver requires a kernel with big physical memory area support, which is already patched into the CERN SL4 kernel. This sections describes how to obtain a network bootable kernel image, that works with the VME drivers shipping with tdaq-01-09-00. The kernel version currently used at SLAC is 2.6.9-67.0.7.EL.cern.
Download the kernel source from CERN and install it
cd $INSTDIR/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9
To boot the SBC from the network the kernel needs to be recompiled with kernel autoconfiguration and NFS root file system support. The e100 drivers needs to be included into the kernel.
Enable the kernel autoconfiguration support in the kernel configuration file. Edit the file .config
Next step is to install the SBC root filesystem. Simply run
> install-slc4
This will create a bootable .nbi kernel image.
The SBC should boot with ssh already enabled.
Login to the SBC as root (empty password) from the serial console and change the root password.
The TDAQ directory should also be already mounted.
To install TDAQ run
> install-tdaq
To install additional packages on the SBC run (Important: this needs to run on the boot server not the SBC)
> remote-yum install <packages>
All the scripts above run on the boot server. The only script that needs to be executed on the SBC
is the script to install the VME drivers.
To install the VME drivers run
> install-vme
Now configure the VME (select option 15 for defaults)
> cd /lib/modules/daq
> vmeconfig -i vmetab
> reboot