From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1489 invoked from network); 11 Oct 1999 12:50:37 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 11 Oct 1999 12:50:37 -0000 Received: from pioushqmailweb.pios.com (psesr1.pios.com [199.33.129.3]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id IAA15955 for ; Mon, 11 Oct 1999 08:50:36 -0400 Received: FROM pioushqmailbh.pios.com BY pioushqmailweb.pios.com ; Mon Oct 11 08:50:35 1999 -0400 Received: by pioushqmailbh.pios.com with Internet Mail Service (5.5.2448.0) id ; Mon, 11 Oct 1999 08:50:34 -0400 Message-ID: <07E164D341EED111ADCD0000F8662F4A07221B8A@pioushqntmail2.pios.com> From: "Vanco, Donald" To: "'axp-list@redhat.com'" Subject: Installing RH6.0 on DS20 (long) Date: Mon, 11 Oct 1999 08:50:31 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" If anyone cares - here's what I went through on my first DS20 install. This was documented for internal use here at my company, so it's winded & full of opinion. Feel free to comment on my process - I need all the help I can get..... really. Don ____________________________________________________________ Caveats: 1) I am not an Alpha person. This is the first box I have ever laid hands on - so this is in excruciating detail. I had the Red Hat Alpha book and an 11 month old doc from Compaq. This was likely my first mistake - looking at documents from 2 sources. I will tell you that the Compaq doc is too slim on detail for the newbie (lots of "how" but little "why") and the Red Hat doc was full of blatant misinformation. The results you see here are from 2 days of trial & (t)error - but I'm not too stubborn to ask for help! BTW1 - new docs are on the way from Red Hat (per Red Hat support) and Compaq would not let me speak to anyone who had Alpha knowledge, nor did they have any updated documentation to offer. After nearly 1.5 hours on the phone with Compaq while they searched to see if they were, in fact, allowed to answer my 5 minute question I slammed the phone down and resolved it the best possible way - with the help of the Linux community at large. 2) Some Alpha systems are "MILO" friendly (the Alpha version of "LILO") and the install (and subsequent boots) can be done from the ARC/AlphaBIOS and the system will play nice with "DOS-style" partitioning table and is probably no more of an issue than an x86 install. Sadly, the DS10/10 & ES40 are NOT in that category - there is no MILO compatibility and it requires BSD style partition tables. More on this in the partitioning section, including my (subdued) rant on Compaq's inaccuracies. ARC was created for the weaknesses of the WindozeNT user anyway..... System detail: Basic "DN-55NJA-DA" which appears to sort of match Compaq's "linux ready" DJ-55NJA-DA - Dual 500MHz CPUs - 128 MB RAM (installed in seeming random location) - 9.1 GB SCSI (sole device on bus 1) - SCSI controller w/Tulip based Ethernet card (in slot 4) - CD-ROM (sole device, bus 0) - floppy - (old) Cirrus Logic GD5429 based video card (in slot 1) There is only one "Compaq supported" video card for Linux on DS10/20 - it's the Elsa Gloria which uses the Generic SVGA Xserver. As of this writing TAC (the artist formerly known as PEC) did not have one available and was not overly anxious to provide one, so we're in the process of sourcing one. I've little concern regarding it's functionality, but will update as needed. (I have since gotten the ELSA Gloria card & it works fine) Notes on installing Red Hat 6.0 (Alpha version) on a DS20 install. - SMP kernel 2.2.12 used for boot floppy - OS install loads a non-SMP kernel (2.2.5-16), you need to build an SMP kernel (see NOTES below) - I was to find out post-install that there are current boot/root images at: ftp://ftp.rge.com/pub/systems/linux/redhat/updates/6.0/images/alpha/ - however, on later tests I was not able to get this kernel to boot. I was also not able to get the 2.2.3 boot floppy to work. Both would halt - either just after the SCSI / Partition check or just after inserting the ramdisk. I've no idea what the errors were from, but they are decidedly repeatable while the 2.2.12 kernel boots every time. My feeing is that it has something to do with the SCSI/Ethernet card and SMP -vs- non-SMP kernels - it would "feel" the SCSI controllers OK, but when it would start to try to look at the Ethernet controller it would hork. Perhaps someone more intimate with the multiprocessor world could enlighten me. It's my understanding that an SMP kernel will support (i.e. run on) a machine with a single CPU, perhaps, or rather it appears that the vice-versa is not true. I have been told the installation will be the same for the DS10 and the ES40. It should be noted that any "popular" PCI video card will likely work. There are known issues with the S3 Virge DX/GX chipsets that should be taken into consideration. It should also be noted that the author had NO success in finding an Xserver build to support the PowerStorm (3DLabs/Permedia2) video cards. The Compaq doc stated that a build needed to be made, but apparently it wasn't a big enough concern for them to see that it got done (as of Xfree86 3.3.5). There is a company selling an Xserver (http://www.xi-graphics.com/) for $100.00 - but Alpha support is only in their 4.1 release - and you can only purchase 5.0. (duh?) SuSE showed one (free??) with chipset caveats that I could not verify without a board for comparison. Metrolink has one for "some" Permedia2 cards for $40 (http://www.metrolink.com/) Load details: Doc from Compaq said to be on the latest SRM/ARC, so that was step one..... - AT A MINIMUM be on a rev higher than (SRM) 5.4.4 Go into ARC/AlphaBIOS -> CMOS Set Up -> Advanced -> Console Selection and set to UNIX Console (F10 x2 to save!) - I also used the Hard Drive Setup utility to delete, re-create, and format partitioning (small ~25 MB) -I wanted the drive clean - NO boot records Upgrade SRM to current rev (NT=5.7 SRM=5.5-82) - Easiest from SRM - type "lfu" and follow prompts (ignoring errors on verify - quality...) - Compaq site has images for ARC or SRM (and oddly enough labels them as "disk 1" and "disk 2" even though they are autonomous) BTW2 - this process, in whatever form, updates both SRM & ARC Now it's time to do a few things from the system console. I found that typos here were catastrophic (if you see HALT CODE 5 you've likely typo'd). I found that it was best to clear options or set them to "" and start fresh. DO NOT backspace in the midst of the option line & correct - clear the line, hit return, and start fresh. Using "show boot*" may return output that looks correct, but a space at the end of the line can be fatal - and I've got the bald patch to prove it. from P00>>> : show device -make note of CD-ROM (DKA500 on my box) and HD (DKB0 on mine) and insure that DVA0 (floppy) is present set bootdef_dev dva0 - sets default boot device to floppy set boot_file vmlinux.gz - the kernel image on the floppy set boot_osflags "root=/dev/fd0 load_ramdisk=1 bootdevice=/dev/fd0" - I found the bootdevice statement superfluous You may also want to set boot_reset ON - it will allow Linux to reboot the system (with somewhat ambiguous success during setup and also subsequently with init0 & reboot) Type show boot* once more to VERIFY your entries. NOTE: You can also do ALL of this from a prompt by typing: boot dva0 -fi vmliux.gz -fl "root=/dev/fd0 load_ramdisk=1 bootdevice=/dev/fd0" HOWEVER - I found that if I had ANYTHING contrary set in SRM it would barf a HALT CODE 5 on one or both processors. It may have been stupid user error somewhere (feel free to enlighten me), but...... Caveat Emptor. BTW3 - I was NOT able to boot from CD by altering the above info to match what was on the CD - I kept getting SCSI timeouts. Again feel free to clue me in if I'm missing something here...... I've a feeling it was the Ethernet "port" and the generic kernel image issue again. Insert the boot floppy; type "boot"; enter - boot process proceeds, you should get prompted for ramdisk - errors here (during kernel load) usually pointed to typos in "set" options above, or trying to boot with non-SMP kernel image Select "Custom Install" (the default) - you will not be able to anything but custom since the hard disk require BSD-style labeling & the "workstation" and "server" options rely on a "DOS-style" partition table. It has been my experience that these cookie-cuter loads tend to add too much and install too little if you know what I mean. If you don't don't worry about it and just do a custom install..... Select "fdisk" as the partitioning tool of choice (the following ASSUMES the drive currently contains "NT partitioning" from the ARC/AlphaBIOS!!!) - delete all existing partitions - you need to set BSD labels - select b, answer yes to the prompt to create a disklabel! BTW4 - be aware: selecting b takes you into the BSD version of fdisk THIS IS WHERE THE COMPAQ DOC IS WRONG WRONG WRONG! - DO delete the "Entire Disk Label" c that appears in the table - it is not necessary for the function of the system at boot time HOWEVER......... - you need to assign a partition type to the "free cylinders" at the beginning of the drive for the boot partition (the document fails to mention this) DO NOT LEAVE THESE CYLINDERS UNASSIGNED! - MAKE SURE your first "active" (i.e. root) partition starts at something a little higher than 1 - you need to leave sectors at the start of the drive for boot info!! I started at 5.... - create a boot partition of ~3 MB and set it to type "d" (boot) - create whatever partitions you need, including a swap = RAMx2 (type 1) (I did / ~500MB; /usr {balance less swap} type 8) - w and q - use the menu to create mount points for the mountable partitions Eventually, you get to the point where packages get installed and the system then finds your mouse. It is at this point (AFTER the package install) that I choose to set up the miniloader in the boot sectors. This is documented in both the Compaq guide and the Red Hat book - but both were a bit vague/inadequate/incorrect. Here's what I did: - Ctrl-Alt-F2 (to virtual console) - /mnt/bin/bash (get decent shell env) - Following Red Hat's instruction to type "chroot /mnt /bash" does not get you nice environment variables HINT: Typing "mount" here will allow you to see "what is where" and allow you to find bootlx & the kernel that will be used at boot - write secondary SRM bootloader (AND kernel if you so desire*) to unallocated space with: swriteboot -v /mnt/dev/sda /mnt/boot/bootlx KERNEL_NAME -f1 - this assumes "sda" is you hard drive, alter accordingly DO NOT USE A PARTITION IDENTIFIER like "sda1" - the -v gives a little verbose feedback - bootlx is the "aboot" file - the -f1 forces the write to ignore the BSD label on partition 1 - "KERNEL_NAME" is the name of the ".gz"-style kernel in your boot directory *NOTE: Installing the kernel in the boot sector did nothing to improve performance, and could make more of a maintenance hassle than anything else, possibly even cripple a system if not updated when the kernel is - I supply it here simply for your personal edification.... I also found out that the install will generate both an SMP and non-SMP kernels and place them in /boot. By default, it will install the symbolic link "vmlinuz" to point to the non-SMP kernel - and System.map and modules.info links as well. I cannot speak for other systems, but my multi-processor system would not boot a non-SMP kernel (it would hang on the SCSI/Ethernet probe ??) email me for error details. What does this mean? Well, you've got to do a bit of work to move some symbolic links. cd to /mnt/boot and see what's there (a good time to use 'ls -a --color') BACK UP KERNEL IMAGES & SUPPORT FILES! (see "BTW5" below) Delete vmliuz and re-create it to point to the SMP kernel image - this may be superfluous since I could not get my machine to boot with a symbolic link - I always had to point it to the "hard" file (vmlinux-2.2.5-16smp) in the SRM "boot_file" option. I did try a sym link to vmlinux-XX - nada. - NOTE: Per Red Hat: Alphas will not boot files in the "vmlinuz" compression format - they will only boot those kernels with the "vmlinux" format. I am not aware of the differences in the compression (perhaps gz -vs- bz??) but apparently it's true since I could not boot from vmlinuz-XXXX only from vmlinux-XXXX. Since the output of "make boot" generates kernels in this format (gz) it seems OK. Delete System.map and re-create it to point at the SMP System.map Delete modules.info and re-create it to point to the SMP modules.info BTW5 - I am in the habit of creating a directory off of /boot for kernel images & their support files. They take up little space, and it can really save your bacon if you install a new kernel and botch something in the process. After this you can Ctrl-Alt-F1 and complete the install. Select an Xserver based on the vid card you have or use the Generic SVGA. Reboot. Now that you've re-booted you should be back at the SRM prompt - time to make a few changes and boot off the hard drive: set bootdef_dev dkb0 - again, dkb0 happened to be my drive set boot_file boot/vmlinux-2.2.5-16smp - CAN'T FOLLOW SYM LINK! (in my experience) set boot_osflags "root=/dev/sda2 bootdevice=sr0" - my root partition is sda2 - alter this line according to your partition table type boot & you should be off & running. I've no real comments on the system after that. I did note that the "supplied" SMP kernel did not play nice with my Tulip based Ethernet/SCSI device, but I was able to build a new kernel with Tulip & DHCP support and it came up immediately. I'd welcome comments, and encourage each of you to load a DS10/20 at your leisure! Don