* various 300XL AlphaBios boot and other questions
@ 1998-05-04 4:00 Bruce Allen
1998-05-04 4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Allen @ 1998-05-04 4:00 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 4867 bytes --]
DEC 300 XL Boot/Install/Library Questions
Let me start by saying that this is a VERY useful newsgroup. It reminds
me of comp.sys.sun back around 1990 when the signal-to-noise ratio was
still very high.
I have just bought forty-eight 300XL's for a Beowulf system, and have a
few questions for you AXP linux gurus. We are starting off with RedHat
4.2 . If you are interested, here is a detailed description of our
project.
* (1) Does anyone know how to set a DEC DE-500 100-base T card to
run at full duplex and NOT negotiate? I assume this is an ifconfig
control command. Or do more recent versions of the drivers than
those in the 2.0.30 kernel handle negotiation better?
* Our machines have AlphaBios firmware. We are using it to load
linload.exe from a DOS partition on the disk, which then loads
milo from the same, passing it the necessary parameters to either
boot from the network or from a kernel on the disk. The system is
set up with the latter being the "primary" boot choice. If we push
the "soft-reset" button on the front panel, the machine reboots
cleanly, ending with a login: prompt. But there are two annoying
(x48)problems with this:
o We would like root to be able to cleanly reboot from the
command line. But when we issue a "reboot" command as root,
the system halts and does not reboot. Also,the system will not
boot without a keyboard plugged in (AlphaBios complains).
Could anyone suggest a solution for this? Would any of the
following work?
o Idea 1: Use aboot rather than milo?
o Idea 2: I have seen references to loading milo into "flash
memory" . Does this mean replacing AlphaBios with MILO or
something like that? Could someone please post some detailed
directions about how to load milo into "flash memory" on a
300XL
o Idea 3: Would it be hard to write a 10 or 20 line C program
which is executed as the final line of the shutdown script,
and which sends a hardware interrupt to the system, the same
as is generated by pushing the "soft-reboot" button on the
front panel? Does someone know what register to set or what
interrupt or signal to generate?
o Idea 4: Would replacing AlphaBios with SRM solve any either
of these annoying problems?
* We were going to experiment with RedHat 5.0 but the RedHat
installation scripts failed miserably. It complained about the
wrong architecture executables (yes we were using the alpha 5.0
disk from powertools). We now believe that this may be because the
hardware clock appears to be set to 2018, when viewed by linux.
Our theory is that this confuses the rpm package manager. Is this
correct? It is not possible to set the clock so that it appears to
be any earlier than 2002 to linux, unless we set it back to (again
as seen by linux) 1976. So we though that the following might
work:
o Set clock so that linux thinks it is 1976.
o Do a very minimal install of 5.0 (ie, select NO optional
packages)
o Set the date of the system correctly.
o Now install lots of other packages.
So the question is: will this help solve our 5.0 installation
woes? I gather that this clock question has generated lots of
discussion. It's not a problem for us except at installation time
-- after installation we simply get the time from a reliable
time-server at bootup.
* A final question: I would like to use a set of routines from DEC's
optimized "Extended Math Library" (DXML) for AXP/OSF. I know that
I can compile with the non_shared flag on the OSF system, then
simply move the executable and run it on my linux box. I have
tried this and it works fine, but it's inconvenient. Is it
possible to simply move a collection of libraries from OSF to my
linux box and link to those? I tried with just the DXML library,
but it makes use of many other OSF AXP library calls that are not
in the linux libraries, so this failed because of unresolved
symbols. Has anyone sucessfully copied a set of libraries from OSF
AXP onto linux and linked to those with gcc? If so, please could
you post something describing what files did you move, where did
you put them, and how did you link to them?
Thanks in advance for any replies. We have already learned a great deal
from this newsgroup, and hope to contribute something in return -- we
are currently writing a set of web pages which we will post with the
complete instructions for how we built our systems. I hope that this
eventually proves useful for anyone with 300XL boxes.
Cheers,
Bruce Allen
[-- Attachment #2: Type: text/html, Size: 5429 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: various 300XL AlphaBios boot and other questions
1998-05-04 4:00 various 300XL AlphaBios boot and other questions Bruce Allen
@ 1998-05-04 4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
1998-05-06 4:00 ` Bruce Allen
0 siblings, 1 reply; 3+ messages in thread
From: His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated @ 1998-05-04 4:00 UTC (permalink / raw)
I'll warn you now. I've got an AlphaStation at home, not an XL, so
things that work for me might not work for you. If you are using
kernel version 2.0.30, I recommend upgrading to the latest 2.0 kernel
(which is 2.0.33, IIRC). Also, I'm no expert when it comes to kernel
or compiler internals, so take the following with a grain of salt;
most of it is guesswork, especially when I start poking around in
kernel source code, so don't take it for Gospel Truth, OK? My
suggestions are just that. :)
>>>>> "BA" == Bruce Allen <ballen@dirac.phys.uwm.edu> writes:
BA> We would like root to be able to cleanly reboot from the
BA> command line. But when we issue a "reboot" command as root,
BA> the system halts and does not reboot.
Strange. It should reboot. I never use reboot(8); instead, I do
something like "shutdown -r now".
BA> Idea 1: Use aboot rather than milo?
and
BA> Idea 4: Would replacing AlphaBios with SRM solve any either of
BA> these annoying problems?
aboot is used in conjuction with the SRM firmware. aboot is *only* a
bootstrap program (i.e. for passing the Linux kernel special arguments
or for booting from the file system). You can boot Linux under the
SRM firmware without aboot; see the SRM Firmware HOWTO for the gory
details, <http://www.azstarnet.com/~axplinux/srm.html> (both the raw
loader and aboot are described). MILO is firmware; it loads
Linux-specific PALcode into memory in addition to functioning as a
boot loader. On some systems, it can be uploaded into the flash RAM
using the FMU program; see the Alpha Miniloader HOWTO for more info,
<http://www.azstarnet.com/~axplinux/milo.html>.
I use the SRM console to boot my AlphaStation. As I said to Paul
Tomblin in another thread, I use SRM because it simplifies the boot
process (Linux boots directly from the SRM firmware, rather than
swapping firmware and then booting Linux when using ARC/AlphaBIOS and
MILO) and because SRM can be secured (I have yet to find a way
password-protect either ARC or MILO).
BA> Idea 2: I have seen references to loading milo into "flash
BA> memory". Does this mean replacing AlphaBios with MILO or
BA> something like that?
Yes. See the Alpha Miniloader HOWTO (URL above) for more details and
to find out whether MILO in flash RAM is supported on your system.
BA> Does someone know what register to set or what interrupt or
BA> signal to generate?
See reboot(2) for the information on the reboot system call. I don't
know where in the kernel source tree this system call is implemented.
Anyway, this should be necessary as shutdown(8) or init(1) should do
this (e.g. shutdown's "-r" option).
BA> We were going to experiment with RedHat 5.0 but the RedHat
BA> installation scripts failed miserably.
Yeah. Several people (myself included) have had problems installing
Red Hat Linux 5.0. I believe the installer has a bug somewhere in it,
but I have no way to debug it. If you continue to have problems,
especially if the system crashes in the middle of installing RPMs with
signal 11s or segment violations, I recommend installing a bare bones
system (only enough to boot the system and install RPMs), and
installing the desired RPMs by hand later on.
(Note that 'ntsysv' is the text-mode interface to the SysVinit
configuration. 'Xconfigurator' is the X config program.)
BA> We now believe that this may be because the hardware clock
BA> appears to be set to 2018, when viewed by linux. Our theory is
BA> that this confuses the rpm package manager. Is this correct?
I'm not certain, but I can tell you that your RPM database will be
slightly corrupted once the install completes, and the c/a/mtimes on
all your files will be well into the future (which is annoying in the
least, and problematic when interacting with make). Oh, packages and
whatnot will be installed correctly, and you'll be able to install new
packages and upgrade old packages without any problems, but the
installation dates will all be off. For example:
Name : mkdosfs-ygg
Version : 0.3b
Release : 5
Install date: Thu Mar 8 07:51:41 2018
(I did the actual install on March 8, 1998.)
The reason this occurs is that the system clock is set to ARC console
time, which has for its starting epoch 1980. 1998 is therefore 18
years after the epoch. SRM uses an epoch of 1900; 18 years after
epoch is 1918. If I read linux/drivers/char/rtc.c correctly,
get_rtc_time() adjusts the real-time clock output if the year is less
than 69 by adding 100 to the year, so 1918 becomes 2018 if it reads
the RTC clock thinking it's set to the SRM epoch.
Again, if I'm reading the RTC code correctly (and I might not be, so
be forewarned), you should be able to set your clock to 98 years from
the ARC epoch, that is 2078, and the kernel (and the Red Hat
installer) will then correctly compute 1998 when it assumes the SRM
epoch. NOTE that you will ONLY want to do this with 2.0.x kernels.
Recent 2.1.x kernels seem to try to autodetect the starting epoch and
adjust the year accordingly. In 2.0.33, the RTC code does this:
/*
* Account for differences between how the RTC uses the values
* and how they are defined in a struct rtc_time;
*/
if (rtc_tm->tm_year <= 69)
rtc_tm->tm_year += 100;
and in 2.1.98 it does this:
/*
* Account for differences between how the RTC uses the values
* and how they are defined in a struct rtc_time;
*/
if ((rtc_tm->tm_year += (epoch - 1900)) <= 69)
rtc_tm->tm_year += 100;
(taking the starting epoch into account). I'm assuming that if you
use SRM, and set your system clock from SRM, you shouldn't have the
dreaded 2018 problem. Its a rather silly kernel bug; I really don't
understand why it didn't get squashed until 2.1.x.
BA> Do a very minimal install of 5.0 (ie, select NO optional
BA> packages) Set the date of the system correctly. Now install
BA> lots of other packages. So the question is: will this help
BA> solve our 5.0 installation woes?
Good idea. Minimal install; then fix problems, then either re-install
or install the rest by hand. It's what I should have done when I was
struggling with installation three months ago. :)
BA> Is it possible to simply move a collection of libraries from
BA> OSF to my linux box and link to those?
It is of dubious legality, but you can copy all the shared libraries
under /usr/shlib/ (and /sbin/loader, and /etc/svc.conf) on the Digital
UNIX box to the corresponding location on the Linux box. I recommend
using "tar chpsSf dulibs.tgz /usr/shlib" or something similar; that
will dereference any symlinks and store the permissions and ownership
information, among other things. Someone I know managed to tar up the
entire /usr/shlibs/ directory (after looking for a DU box for a
loooong time), only to discover (when he tried to run Netscape and
Maple) that he'd managed to download a directory full of symbolic
links. Heh.
BA> Has anyone sucessfully copied a set of libraries from OSF AXP
BA> onto linux and linked to those with gcc?
That's a completely different story. Digital UNIX uses the ECOFF
executable format, not to mention that it supports dynamic linking of
ECOFF objects when Linux does not. Plus their C libraries are totally
different, as you have found out. I don't know how hard it would be
to get a GCC that understood ECOFF and then convince it to link
against the static Digital UNIX libraries (and use the Digital UNIX
headers during preprocessing). You *might* be able to build a
cross-compiler and do it that way...but that could be a big pain in
the ass. Heck, it might be easier to just copy the Digital C compiler
over to your system and try to get that working. :)
Hope this helps! Good luck!!
--
His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
Discordian Episkopos of Ambidextrous Thinking and Licensed SubGenius Minister
'Salted Litter' of rhit.gas.stations.bigfoot / mhm 21x16 / K-RAD D00D
"I'M SORRY MONKEYBOY, I'M AFRAID YOU CAN'T TOUCH THAT MONOLITH" -MegaHAL
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: various 300XL AlphaBios boot and other questions
1998-05-04 4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
@ 1998-05-06 4:00 ` Bruce Allen
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Allen @ 1998-05-06 4:00 UTC (permalink / raw)
> I'll warn you now. I've got an AlphaStation at home, not an XL, so
> things that work for me might not work for you. If you are using
> kernel version 2.0.30, I recommend upgrading to the latest 2.0 kernel
> (which is 2.0.33, IIRC).
Do I need to upgrade libraries at the same time, or just the kernel?
> >>>>> "BA" == Bruce Allen <ballen@dirac.phys.uwm.edu> writes:
>
> BA> We would like root to be able to cleanly reboot from the
> BA> command line. But when we issue a "reboot" command as root,
> BA> the system halts and does not reboot.
>
> Strange. It should reboot. I never use reboot(8); instead, I do
> something like "shutdown -r now".
>
Yes, when we reboot, the system begins to execute MILO code, then hangs.
I am wondering if it is unhappy with various internal variables and does not
know where to boot. Here is
$ cat /proc/cmdline
bootdevice= bootfile= root=/dev/sda2
Does this look right? System was booted from the AlphaBios console
with:
boot sda2:/boot/vmlinux.gz root=/dev/sda2
Are the variables not getting properly passed or saved?
Bruce
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-05-06 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-04 4:00 various 300XL AlphaBios boot and other questions Bruce Allen
1998-05-04 4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
1998-05-06 4:00 ` Bruce Allen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox