* 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