Re: debian on the XServ
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Dienstag, März 4, 2003, at 08:00 Uhr, Adam Done wrote:
Greetings,
I have just acquired an xserv and have been trying to put Linux on the
server and to no avail, nothing works. I have used all the install24
options when at the boot prompt. For the most part when i boot using
install24-safe, it takes a quite a long time to start after loading.
I get a blank white screen after the kernel is loaded and info is
scrolled on the screen. If i leave this for a while the install
program eventually starts but the bad part is that i don't have any
control of the keyboard or mouse. I have plugged the keyboard in both
usb slots and still nothing happens. The same happens when i tried to
use yellowdog newest ISO and the 2.4.19 kernel. i really want Debian
GNU/Linux on the server but have tried every thing.
I have even compiled a kernel for the xserv on another box and put it
on a standard HFS partition to load with..
image=/dev/hde2/vmlinux-2.4.20
and still nothing happens. i am totally at a lost and have tried so
many diff. ways to get the kernel and install program to run.
Can some one shed some new light on my dark foreboding situation
here? Thank you in advanced.
Hello Adam,
i set up Debian on an Xserve just a few months ago. Here's some little
Documentation i wrote and translated from German to English on the
hurry.
Note that you need another Mac with FireWire capabilities for my way of
setting it up.
Hope it helps,
Daniel
XServe Documentation
First, made a new kernel from the development sources of benh
(http://penguinppc.org/dev/kernel.shtml, Tree linux_2_4_benh).
The kernel was compiled with make-kpgk kernel_image, so that it can
easily be installed later.
XServe set to Target-Disk-Mode (hold down t during boot) and then
connected via firewire to my powerbook.
Only the first disk of the XServe ist available from the Powerbook. I
have partitioned it like this:
/dev/hde1 Apple_partition_map Apple 63 @ 1
( 31.5k) Partition map
/dev/hde2 Apple_Bootstrap bootstrap 1600 @ 64
(800.0k) NewWorld bootblock
/dev/hde3 Apple_UNIX_SVR2 boot 65536 @ 1664
( 32.0M) Linux native
/dev/hde4 Apple_UNIX_SVR2 swap 8388608 @ 67200
( 4.0G) Linux swap
/dev/hde5 Apple_UNIX_SVR2 root 41943040 @
8455808 ( 20.0G) Linux native
/dev/hde6 Apple_UNIX_SVR2 rootbackup 4194304 @
50398848 ( 2.0G) Linux native
/dev/hde7 Apple_UNIX_SVR2 space 65510048 @
54593152 ( 31.2G) Linux native
Following commands on the powerbook (Xserve disk is available as sda):
mkfs.reiserfs /dev/sda6
mkfs.ext2 /dev/sda3
mount /dev/sda6 /mnt
mkdir /mnt/boot
mount /dev/sda3 /mnt/boot
Debian basic install with debootstrap:
debootstrap woody /mnt http://ftp.de.debian.org/debian
(yes, it takes a long time)
chroot /mnt
base-config
(in dselect, i selected additionally: raidtools2, mc, joe, mdadm)
dpkg -i our-kernel-package
in /etc/apt/sources.list unstable deb-srcs addedd (we need the newes
yaboot, because the yaboot of woody can't find the xserve disks in
OpenFirmware (for example: ofpath /dev/hde2 doesn't work (unsupported
device))).
falballa:~# cat /etc/apt/sources.list
deb http://debian.tu-bs.de/debian/ stable main non-free contrib
deb-src http://debian.tu-bs.de/debian/ stable main non-free contrib
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib
non-free
deb-src http://non-us.debian.org/debian-non-US stable/non-US main
contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://debian.tu-bs.de/debian/ unstable main non-free contrib
deb-src http://non-us.debian.org/debian-non-US unstable/non-US main
contrib non-free
We compile yaboot ourselves because we don't want to lift the whole
system to unstable:
apt-get -t unstable build-dep yaboot
apt-get -b -t unstable source yaboot
dpkg -i <selfcompiled-yaboot-package>
exit (to leave chroot)
All ieee1394-Module on the Powerbook rmmodded (otherwise it crashes),
disconnect Xserve.
XServe booted with our own netinstall CD (with selfmade kernel and
pointing to the new root) - as starting point i took the images of
LordSnutch.
yaboot has to be installed locally now (without RAID, root:/dev/hde6),
so:
yabootconfig
falballa:~# cat /etc/yaboot.conf
boot=/dev/hde2
device=/pci@f2000000/AppleKiwi@15/@0/disk@0:
partition=3
root=/dev/hde6
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
image=/vmlinux-2.4.20-ben1
label=Linux
read-only
append="video=ofonly keyboard_sends_linux_keycodes=1"
then:
ybin -v
reboot
(XServe should now start from hda6)
/etc/fstab changed by hand:
falballa:~# cat /etc/fstab
proc /proc proc defaults 0 0
/dev/hde6 / reiserfs defaults 0 1
/dev/hde3 /boot ext2 defaults 0 1
for security:
reboot
now, we do the raid array, create /etc/raidtab:
falballa:~# cat /etc/raidtab
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hdg5
raid-disk 0
device /dev/hde5
raid-disk 1
then:
mkraid /dev/md0
(Resync is now running in the background - Status can be seen via cat
/proc/mdstat)
/etc/init.d/raid2 start
mkfs.ext3 /dev/md0
mount /dev/md0 /mnt
Then copy our root to the new array (see RAID-HOWTO in
/usr/share/doc/raidtools2/)
The old root, we hold as a backup in case the Software RAID fails.
cd /
find . -xdev | cpio -pm /mnt
Change /etc/fstab and /etc/yaboot.conf:
falballa:~# cat /etc/fstab
proc /proc proc defaults 0 0
/dev/md0 / ext3 defaults 0 1
/dev/hde3 /boot ext2 defaults 0 1
falballa:~# cat /etc/yaboot.conf
boot=/dev/hde2
device=/pci@f2000000/AppleKiwi@15/@0/disk@0:
partition=3
root=/dev/md0
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
image=/vmlinux-2.4.20-ben1
label=Linux
read-only
append="video=ofonly keyboard_sends_linux_keycodes=1
root=/dev/md0
md=0,/dev/ide/host2/bus1/target0/lun0/part5,/dev/ide/host2/bus0/
target0/lun0/part5"
dann:
ybin -v
reboot
(Now, we should have been booted on RAID, check with mount)
Now you can firstly configure the network as usual
(/etc/network/interfaces, /etc/resolv.conf)
Swap-Space:
mkswap /dev/hde4
mkswap /dev/hdg4
/etc/fstab changed with some new entries:
proc /proc proc defaults 0 0
/dev/md0 / ext3 defaults 0 1
/dev/hde3 /boot ext2 defaults 0 1
/dev/hde4 none swap sw 0 0
/dev/hdg4 none swap sw 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
swapon -a
falballa:/dev# ln -s hda cdrom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
iD8DBQE+ZRPHnqIBIo4jYbARAmeyAJ4s9uWK0jrz/hmiy5Qc1vaZP5cmHgCffA57
fA8Os4XHpI4qZVupz2O3Vw0=
=MzlG
-----END PGP SIGNATURE-----
Reply to: