* Re: first linux/alpha questions
@ 1996-04-04 6:54 David Mosberger-Tang
1996-04-04 8:03 ` Harald Koenig
0 siblings, 1 reply; 11+ messages in thread
From: David Mosberger-Tang @ 1996-04-04 6:54 UTC (permalink / raw)
>>>>> On Wed, 3 Apr 1996 23:28:27 +0200 (MET DST), koenig@tat.physik.uni-tuebingen.de (Harald Koenig) said:
Harald> - is it possible (using software) to find out there is a
Harald> 21064 or 21164 CPU in a machine ? /proc/cpuinfo for my
Harald> XL266 only says
Harald> cpu : Alpha
Harald> cpu model : Unknown
Harald> cpu variation : 0 cpu
The kernel prints whatever it finds in the so-called "hardware restart
parameter block". That block is setup by the firmware (MILO, SRM, or
ARC) and is documented in the 2nd edition of the Alpha Architecture
reference manual. MILO does not currently initialize the "cpu model"
field. E.g., on my MILO-booted Cabrio at home I get "cpu model:
Unknown" but on the SRM-booted Cabrios at work I get "cpu model: EV45"
(which translates into 21064A). Adding the missing code to MILO would
be trivial *provided* you know how to find out what CPU you're dealing
with (short of hardcoding it). Neal, if you're listening: in the ev56
announcement I saw mention of an IMPLVERS instruction or some such
that allegedly allows to determine the CPU type (and/or its features).
Is this implemented in all CPUs and documented some place? It would
be handy, occasionally.
--david
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: first linux/alpha questions
1996-04-04 6:54 first linux/alpha questions David Mosberger-Tang
@ 1996-04-04 8:03 ` Harald Koenig
0 siblings, 0 replies; 11+ messages in thread
From: Harald Koenig @ 1996-04-04 8:03 UTC (permalink / raw)
> The kernel prints whatever it finds in the so-called "hardware restart
> parameter block". That block is setup by the firmware (MILO, SRM, or
> ARC) and is documented in the 2nd edition of the Alpha Architecture
> reference manual.
which other documentations might be useful to browse (prefer printed;
what docs are available online?). so far I only have to 21[01]64
hardware reference manual which too low level at least for now.
where can I learn something about the differences in platforms
(cabriolet, noname, EB66*, etc.) and esp. about the implications
for X server support; e.g. why does the Jensen and EB164 boxes need
a special S3 sever as I can read in the Red Hat 2.1/AXP installation
instructions v1.0 ?
Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <Pine.LNX.3.91.960403165726.7085C-100000@elroy.redhat.com>]
* Re: first linux/alpha questions
[not found] <Pine.LNX.3.91.960403165726.7085C-100000@elroy.redhat.com>
@ 1996-04-04 10:10 ` Richard Henderson
1996-04-12 13:36 ` Harald Koenig
1 sibling, 0 replies; 11+ messages in thread
From: Richard Henderson @ 1996-04-04 10:10 UTC (permalink / raw)
On Wed, 3 Apr 1996, Erik Troan wrote:
> No - we're *still* waiting on draft ELF specs from Digital (maddog?).
Currently the job of tracking down those that cloister the ELF spec belongs
to Laurie Hunter <hunter@amt.tay1.dec.com>, with whom I've had brief
communication. There is no word, as of yet.
However, work is going on. I've re-written the nastiness that was the
old alpha assembler backend. (It correctly assembles both itself and
the kernel, but is really Complete in the Capital C sense. Parties
interested in alpha testing should contact me.) This in preparation for
the changes that will be required to support ELF.
> No. gcc-2.7.2 has bugs buuilding kernels.
Um, well, I'm guessing that the bug was related to the combine bug. At
least the test case that David Mosberger provided me does not fail. If
the unpatched gcc was aborting at sched.c:2728 or sched.c:3968, then it
is likely fixed. If there is some other problem, and someone can provide
a test case, I'll be happy to look into it.
r~
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: first linux/alpha questions
[not found] <Pine.LNX.3.91.960403165726.7085C-100000@elroy.redhat.com>
1996-04-04 10:10 ` Richard Henderson
@ 1996-04-12 13:36 ` Harald Koenig
1996-04-15 8:36 ` Fred Roy
1 sibling, 1 reply; 11+ messages in thread
From: Harald Koenig @ 1996-04-12 13:36 UTC (permalink / raw)
> > - does anyone have a working implementation of /usr/bin/time ?
> > the Red Hat binary doesn't show reasobale user/system nor elapsed time:-(
> > the time in tcsh works fine though.
>
> Get a new time RPM from:
>
> ftp.redhat.com:/pub/devel/axp/RedHat/RPMS
>
> that should work fine.
didn't help. I got
-rw-r--r-- 1 root root 45152 Apr 5 17:25 time-1.6-4.axp.rpm
which installed
# file /usr/bin/time
/usr/bin/time: ECOFF alpha demand paged stripped - version 2817.
# ll /usr/bin/time
-rwxr-xr-x 1 root root 98304 Apr 5 19:24 /usr/bin/time
# time sleep 2
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
# time tex texbook
This is TeX, Version 3.14159 (C version 6.1)
[ ... ]
3.82user 0.08system 0:00.04elapsed 9551%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
instead of "37.943u 0.445s 0:39.68 96.7% 0+0k 0+0io 83pf+0w"
from the builtin time from tcsh.
# uname -a
Linux alpha 1.3.86 #29 Thu Apr 11 13:57:32 MET DST alpha alpha
Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: first linux/alpha questions
1996-04-12 13:36 ` Harald Koenig
@ 1996-04-15 8:36 ` Fred Roy
0 siblings, 0 replies; 11+ messages in thread
From: Fred Roy @ 1996-04-15 8:36 UTC (permalink / raw)
I had a similar problem some weeks ago with the time(1) command from
the BLADE_0.3 distribution. I suspected the times(2) library function,
that used to return an incorrect value, and I mailed what I found to the
linux-alpha@vger(..) and @redhat.com.
David M. proposed a fix in source form to the libc:
David > PS: All it should take is to replace libc/sysdeps/linux/alpha/times.c
David > with times.S containing the following lines (and updating the
David > Makefile).
David >
David > #include <sysdep.h>
David > SYSCALL__ (times, 1)
David > RETSYS(__times)
I did not experiment this fix, because I had already written a workaround in
the source code for time(1): I changed some of the calls to times(2) by calls
to time(2); while it gives an accuracy of 1 second (yes, dear), the command
line:
/usr/local/bin/time sleep 2
gives now a not silly value for the elapsed time. So you have now several
means
to fix the time(1) problem. Good luck!
fred
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: first linux/alpha questions
@ 1996-04-04 7:50 Ka'plaagh 04-Apr-1996 0953 +0100
1996-04-04 11:33 ` Matti E Aarnio
0 siblings, 1 reply; 11+ messages in thread
From: Ka'plaagh 04-Apr-1996 0953 +0100 @ 1996-04-04 7:50 UTC (permalink / raw)
Milo doesn't initialise that much of the HWRPB, just enough to fool
linux (or to put it another way, to allow linux to tell what system
resources it should use). I'm happy to add in more stuff so long
as I can deterministically find it out or hardcode it. Folks are
welcome to send me patches to hwrpb.c.
As for generic linux kernels. In the old days we had several
generic kernels (one per PCI/memory support chipset) and used the
HWRPB to differentiate between them. This gave an overhead to
all interrupt handling (each interrupt causes some decision to
be made) but not much else apart from image size. By the way, the
kernel is larger now than it was then but it's still not out of
hand. I have been kicking around an idea which goes along the lines
of this:
Milo would load a system specific interrupt "module" into a known
location,
This would handle all of the interrupt stuff, including request_irq
and so on. All this stuff is currently table driven and
so there is no extra overhead to receiving interrupts, just
to asking for them, disabling them and so on. That would
have to go through a jump table or some such.
This is not a burden for Milo - Milo _has_ to be system specific.
The result would be a set of system specific Milos and 3 or
so "generic" kernels (21066, 21064+Apecs, 21164+Alcor, Jensen).
Now that I've done the PCI-PCI bridge support maybe I'll spend some
time on this...
Dave
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: first linux/alpha questions
1996-04-04 7:50 Ka'plaagh 04-Apr-1996 0953 +0100
@ 1996-04-04 11:33 ` Matti E Aarnio
0 siblings, 0 replies; 11+ messages in thread
From: Matti E Aarnio @ 1996-04-04 11:33 UTC (permalink / raw)
> Milo doesn't initialise that much of the HWRPB, just enough to fool
> linux (or to put it another way, to allow linux to tell what system
> resources it should use). I'm happy to add in more stuff so long
> as I can deterministically find it out or hardcode it. Folks are
> welcome to send me patches to hwrpb.c.
I have been hard-coding some cases into hwrpb.c, but
then I thought: "this can't be the right way"...
Actually deep browsing of palcode source does indicate to me,
that the information is presumed to be stored into "Impure
PAL Area" at the boot. The question being, can it be found
at ARC booted MILO, or should MILO be flashed in ?
I guess it should be findable, but one never knows...
... or is there (gasp!) a difference in ARC and OSF/LINUX/SRM
impure area structures ? What is its physical address anyway ?
I had some deep thinking while looking at the comments in
front of pal_reset stuff at the osfpal.S. It looks like
the SROM stores important stuff into several registers, and
then jumps to the pal_reset, doesn't it ?
...
> Dave
/Matti Aarnio
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Upgrading to RPM 2.0
@ 1996-04-02 22:11 Matti E Aarnio
1996-04-03 21:28 ` first linux/alpha questions Harald Koenig
0 siblings, 1 reply; 11+ messages in thread
From: Matti E Aarnio @ 1996-04-02 22:11 UTC (permalink / raw)
> Ok, how do you do it...
>
> Following the instructions in the README in the rpm/update directory just
> yealds 'error Package x is version 2, this RPM is version 1', at the first
> step. ( Upgrade the old rpm package ).
ftp.redhat.com/pub/code/rpm/update/ ...
I had this same problem, and asked tech-sup@redhat.com about it.
I still think it is illogical not to have even a rpm.README at
the 2.1/axp/update/ -directory...
> --
> Matthew Geier, | Australian Public Access Network Association
> matthew@sleeper.apana.org.au | (+61) 2 588 4615 (Data) 587 9773 (voice)
> matthew@law.usyd.edu.au | An APANA Sydney hub. 018 977356 (mobile)
/Matti Aarnio <mea@utu.fi>
^ permalink raw reply [flat|nested] 11+ messages in thread
* first linux/alpha questions
1996-04-02 22:11 Upgrading to RPM 2.0 Matti E Aarnio
@ 1996-04-03 21:28 ` Harald Koenig
1996-04-03 22:00 ` Erik Troan
1996-04-03 22:18 ` Thomas Bogendoerfer
0 siblings, 2 replies; 11+ messages in thread
From: Harald Koenig @ 1996-04-03 21:28 UTC (permalink / raw)
Hi,
just making my first steps on Linux AXP (Red Hat 2.1) on a DEC XL266
and here are a first few questions:
- is there a version of "strace" for linux-alpha or any other tool
to monitor system calls?
- does anyone have a working implementation of /usr/bin/time ?
the Red Hat binary doesn't show reasobale user/system nor elapsed time:-(
the time in tcsh works fine though.
- is there a linux tool to view/change the (ARC?) console boot loader
parameters? I'd like to specify another kernel image and/or options
(OSLOADOPTIONS parameter) but I can't the cursor keys of my keyboard
in this boot menu (they work fine in linux afterwards; this is a
pretty old DEC LK250 keyboard for PCs).
any idea or hint where I should start looking for the problems with
my cursor keys in this boot loader ? any chance
- is a version of f2c available somewhere for AXP ?
- is it possible (using software) to find out there is a 21064 or 21164 CPU
in a machine ? /proc/cpuinfo for my XL266 only says
cpu : Alpha
cpu model : Unknown
cpu variation : 0
cpu revision : 0
cpu serial number : Linux_is_Great!
system type : Mustang
where can I find the most recent version of tools like time etc.
and where is the most recent version of libc available ?
any idea when a first alpha version of shared libs might be available?
right now there is gcc-2.7.1 on this machine.
is it wise to get gcc-2.7.2 or any other alpha test version ?
are there known problems with networking in genel or with the DE434/5 card
(DEC DC21040 rev 34 chip according to /proc/pci) ?
I get lots of "timeouts" (waiting several 0.1-5 seconds) and complete lockups
with telnet and ftp to a linux box using either TP (null-modem-TP) or thinwire
with both 1.3.74 and 1.3.82.
AXP network adapter initialisation:
eth0: DE434/5 at 10000 (PCI bus 0, device 12), h/w address 08:00:2b:e2:1c:14,
and requires IRQ9 (provided by PCI BIOS).
de4x5.c:v0.41 96/3/21 davies@wanton.lkg.dec.com
i486-Linux network adaptor:
lance.c: PCI bios is present, checking for devices...
eth0: PCnet/ISA 79C960 at 0x300, 02 07 01 16 f9 a3, probed IRQ 9, DMA 5.
lance.c:v1.08.02 Mar 17 1996 tsbogend@bigbug.franken.de
but this might be a problem with the lance network adapter in the 486 box too
since I never used this card in my PC before (but tested it in our institute).
Thanks,
Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: first linux/alpha questions
1996-04-03 21:28 ` first linux/alpha questions Harald Koenig
@ 1996-04-03 22:00 ` Erik Troan
1996-04-03 22:18 ` Thomas Bogendoerfer
1 sibling, 0 replies; 11+ messages in thread
From: Erik Troan @ 1996-04-03 22:00 UTC (permalink / raw)
On Wed, 3 Apr 1996, Harald Koenig wrote:
> - is there a version of "strace" for linux-alpha or any other tool
> to monitor system calls?
No.
> - does anyone have a working implementation of /usr/bin/time ?
> the Red Hat binary doesn't show reasobale user/system nor elapsed time:-(
> the time in tcsh works fine though.
Get a new time RPM from:
ftp.redhat.com:/pub/devel/axp/RedHat/RPMS
that should work fine.
> - is there a linux tool to view/change the (ARC?) console boot loader
> parameters? I'd like to specify another kernel image and/or options
> (OSLOADOPTIONS parameter) but I can't the cursor keys of my keyboard
> in this boot menu (they work fine in linux afterwards; this is a
> pretty old DEC LK250 keyboard for PCs).
Nope.
> - is a version of f2c available somewhere for AXP ?
The latest f2c RPMs seem to work fine.
> - is it possible (using software) to find out there is a 21064 or 21164 CPU
> in a machine ? /proc/cpuinfo for my XL266 only says
Afaik, "Mustang" means 21064.
> where can I find the most recent version of tools like time etc.
> and where is the most recent version of libc available ?
In the Red Hat devel tree. Upgrading your libc would be a good idea.
> any idea when a first alpha version of shared libs might be available?
No - we're *still* waiting on draft ELF specs from Digital (maddog?).
> right now there is gcc-2.7.1 on this machine.
> is it wise to get gcc-2.7.2 or any other alpha test version ?
No. gcc-2.7.2 has bugs buuilding kernels.
> are there known problems with networking in genel or with the DE434/5 card
> (DEC DC21040 rev 34 chip according to /proc/pci) ?
bootp, talk didn't work with Red Hat 2.1 - replacements are in the devel tree
Welcome aboard!
Erik
-------------------------------------------------------------------------------
Always hoped that I'd be an apostle. Knew that I would make it if I tried.
Then when we retire we can write the gospels so they'll all talk about
us when we die. - "The Last Supper" from Jesus Christ Superstar
| Erik Troan = http://sunsite.unc.edu/ewt/ = ewt@sunsite.unc.edu |
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: first linux/alpha questions
1996-04-03 21:28 ` first linux/alpha questions Harald Koenig
1996-04-03 22:00 ` Erik Troan
@ 1996-04-03 22:18 ` Thomas Bogendoerfer
1996-04-04 5:40 ` Linus Torvalds
1 sibling, 1 reply; 11+ messages in thread
From: Thomas Bogendoerfer @ 1996-04-03 22:18 UTC (permalink / raw)
> - is there a version of "strace" for linux-alpha or any other tool
> to monitor system calls?
I started to port strace for the alpha. At the moment I'm at the
point, that about 90% of the code compiles.
Thomas.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: first linux/alpha questions
1996-04-03 22:18 ` Thomas Bogendoerfer
@ 1996-04-04 5:40 ` Linus Torvalds
0 siblings, 0 replies; 11+ messages in thread
From: Linus Torvalds @ 1996-04-04 5:40 UTC (permalink / raw)
On Thu, 4 Apr 1996, Thomas Bogendoerfer wrote:
> Date: Thu, 4 Apr 1996 00:18:47 +0200 (MET DST)
> From: Thomas Bogendoerfer <tsbogend@bigbug.franken.de>
> To: axp-list@redhat.com
> Subject: Re: first linux/alpha questions
>
> > - is there a version of "strace" for linux-alpha or any other tool
> > to monitor system calls?
>
> I started to port strace for the alpha. At the moment I'm at the
> point, that about 90% of the code compiles.
Warning: the kernel hooks aren't there yet. You'd need to add the code to
arch/alpha/kernel/entry.S, and I might as well warn you that that part of
the kernel is not one of the most obvious things..
If you have problems, I'll be happy to help, because I want "strace" too.
I've just not had the time for it (so if you get strace to compile and
not-quite-work, send me mail and I can take a look)
Linus
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~1996-04-15 8:36 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-04 6:54 first linux/alpha questions David Mosberger-Tang
1996-04-04 8:03 ` Harald Koenig
[not found] <Pine.LNX.3.91.960403165726.7085C-100000@elroy.redhat.com>
1996-04-04 10:10 ` Richard Henderson
1996-04-12 13:36 ` Harald Koenig
1996-04-15 8:36 ` Fred Roy
-- strict thread matches above, loose matches on Subject: below --
1996-04-04 7:50 Ka'plaagh 04-Apr-1996 0953 +0100
1996-04-04 11:33 ` Matti E Aarnio
1996-04-02 22:11 Upgrading to RPM 2.0 Matti E Aarnio
1996-04-03 21:28 ` first linux/alpha questions Harald Koenig
1996-04-03 22:00 ` Erik Troan
1996-04-03 22:18 ` Thomas Bogendoerfer
1996-04-04 5:40 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox