DigiPro Home

Technical_Services
Business_Planning
Projects_Portfolio



Back to Papers & Notes



Compiling kernel on a Sun Sparc

cd /usr/src/
[download the source]
/usr/src/linux-2.2.17.tar.gz
tar -xvzf ./linux-2.2.17.tar.gz

This should yield:
/usr/src/linux-2.2.17/

ln -sf ./linux-2.2.17 ./linux

If there is already a /usr/src/linux/, move it out of the way. Using the old kernel version (`uname -r`) in filenaming is a good practice, so:

mv ./linux ./linux-2.2.14

ln -sf ./linux-2.2.17 ./linux

cd /usr/src/linux
make menuconfig
make dep
make clean
make vmlinux
make modules
make modules_install


# cd /boot/ and rename vmlinux to vmlinux.old

cp /usr/src/linux/vmlinux /boot/vmlinux-2.2.17
chmod 755 /boot/vmlinux-2.2.17
ln -sf /boot/vmlinux-2.2.17 /boot/vmlinux

# gzip the kernel image:
gzip -c vmlinux-2.2.17 > vmlinuz-2.2.17
ln -sf /boot/vmlinuz-2.2.17 /boot/vmlinuz

cp /usr/src/linux/System.map /boot/System.map-2.2.17
chmod 755 /boot/System.map-2.2.17
ln -sf /boot/System.map-2.2.17 /boot/System.map

module-info -> module-info-2.2.14-5.0
points to latest file from modutils-[2.3.9-6]


vi /etc/silo.conf

partition=1
timeout=50
root=/dev/sda1
read-only
default=linux
image=/boot/vmlinuz
label=linux
image=/boot/vmlinuz-2.2.17
label=linux2217
image=/boot/vmlinuz-2.2.16
label=linux2216
image=/boot/vmlinuz-2.2.14-5.0
label=linux2214


Unlike the x86 LILO, you do _not_ need to run silo to install boot loader. SILO parses silo.conf for instructions itself at boot time.

reboot or init 6




 
Page URI:   http://www.digipro.com/Papers/sparc_kernel.shtml
Last Changed:   14:59 Saturday, September 16th, 2000

Copyright, "DigiPro Digital Productions, 1993-2008"
DigiPro is a federally registered trademark of DigiPro Digital Productions