Booting SLES11
Im going to assume you know how to get to the EFI console on an SGI Altix.
Read this if you don't: 007-5640-001: Chapter 2. Software Planning and Installation
Boot from the DVD. Your filesystem device may be different:
fs0:\> efi\boot\bootia64.efi
Arrow key down to rescue system and add the correct boot flags:
boot: console=ttySG0,38400n8
Networking in rescue mode
ifconfig eth0 <ip address> netmask <netmask value>
route add default gw <route value> dev eth0
Edit resolv.conf and add a nameserver if you need DNS.
I mount my NFS server, but you can get the files to the system however you want:
mkdir /nfs
mount -o nolock nfs_server:/nfs /nfs
Partitioning
I only have one disk installed while doing this, so my disk is /dev/sda. Please confirm with lsblk that you are working on the correct disk. I made a 2GB EFI partition and 98GB root. You can change these or add swap if you want. We are going to format root as XFS since SLES11 has XFS support.
Rescue:~ # parted /dev/sda
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
Warning: The existing disk label on /dev/sda will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? yes
(parted) unit GB
(parted) mkpart
Partition name? []?
File system type? [ext2]? fat32
Start? 0
End? 2GB
(parted) mkpart
Partition name? []?
File system type? [ext2]? xfs
Start? 2GB
End? 100GB
(parted) set 1 esp on
(parted) quit
Information: You may need to update /etc/fstab.
Formatting
mkfs.vfat /dev/sda1
mkfs.xfs /dev/sda2
mount
mkdir /mnt/t2
mount /dev/sda2 /mnt/t2
Copying T2 to root disk
Lets extract the T2 root tar into the new disk.
cd /mnt/t2
tar xf /nfs/altix/t2/t2-ia64full.tar
Grab your kernels. I copy the tars in /mnt/t2/root. I'm going to setup both versions.
cd /mnt/t2/root
tar xf linux-4.19.325-NS-SN2-ia64.tar
tar xf linux-4.19.325-NS-SN2-ia64.tar
cp boot/* /mnt/t2/boot
cp -r lib /mnt/t2/
chroot to T2
So I have NFS available in T2:
mkdir /mnt/t2/nfs
mount --bind /nfs /mnt/t2/nfs
mount --make-slave /mnt/t2/nfs
mount --types proc /proc /mnt/t2/proc
mount --rbind /sys /mnt/t2/sys
mount --make-rslave /mnt/t2/sys
mount --rbind /dev /mnt/t2/dev
mount --make-rslave /mnt/t2/dev
mount --bind /run /mnt/t2/run
mount --make-slave /mnt/t2/run
chroot /mnt/t2/ /bin/bash
source /etc/profile
Initial T2 configuration
run passwd to set a root password
edit /etc/resolv.conf and setup DNS
In /etc/inittab, we need to add the SGI ttySG0 device as a console, otherwise, you won't be able to login via the L2 console.
Add this line. I added it around line 62 near the other virtual consoles. Re-number the other virtual consoles if needed.
0:12345:respawn:/sbin/agetty --noclear 38400 ttySG0 linux
My file has this under Virtual Consoles:
0:12345:respawn:/sbin/agetty --noclear 38400 ttySG0 linux
1:12345:respawn:/sbin/agetty -L -J -i -I '\012\015' tty1 linux
2:12345:respawn:/sbin/agetty -f /etc/issue.ansi tty2 linux
3:12345:respawn:/sbin/agetty -f /etc/issue.ansi tty3 linux
4:12345:respawn:/sbin/agetty -f /etc/issue.ansi tty4 linux
5:12345:respawn:/sbin/agetty -f /etc/issue.ansi tty5 linux
6:12345:respawn:/sbin/agetty -f /etc/issue.ansi tty6 linux
EFI elilo setup
I couldn't get grub working, so we'll stay with elilo.
mkdir /boot/efi
mount /dev/sda1 /boot/efi
mkdir /boot/efi/EFI
Download elilo-3.16-all.tar.gz
Extract it, copy elilo-3.16-ia64.efi to /boot/efi/EFI/
We don't have efivars, so we need to manually setup the EFI partition for now.
cd /boot
mkdir /boot/efi/EFI/boot
cp vmlinux-4.19.325-NS-SN2 efi/EFI/boot/
cp vmlinux-3.14.79-NS-SN2 efi/EFI/boot/
vi /boot/efi/EFI/elilo.conf
/boot/efi/elilo.conf:
# boot=/dev/sda1
delay=30
timeout=30
default=t2-419
append="console=ttySG0,38400n8"
relocatable
prompt
image=/EFI/boot/vmlinux-4.19.325-NS-SN2
label=t2-419
root=/dev/sda2
read-only
image=/EFI/boot/vmlinux-3.14.79-NS-SN2
label=t2-314
root=/dev/sda2
read-only
Reboot, we are ready to boot
Exit the chroot, and reboot.
At the efi prompt, boot elilo-3.16-ia64.efi from the disk.
Type t2-314 to boot the older kernel to do initial setup.
You should be booted up! If you see it finish booting but never get a login prompt, check your agetty configuration in /etc/inittab.
You can used stone to do initial setup tasks. After networking is setup, reboot into t2-419 and SSH to the system.
Now we can start installing packages from the t2 sources.
cd /usr/src/t2-src
svn up
t2 install htop
t2 install sudo
Here's the list of packages in T2
Note that not all work on Itanium