* EB164 libraries and hardware access
@ 1996-03-27 3:33 Robert Allen Barker
1996-03-27 4:51 ` Jay Estabrook - Alpha Migration Tools - LINUX Project
0 siblings, 1 reply; 3+ messages in thread
From: Robert Allen Barker @ 1996-03-27 3:33 UTC (permalink / raw)
Hello all,
Any EB164 people have any experience or ideas on the following?
I have an EB164 running with Redhat 2.1 and the latest
milo test image from gatekeeper.dec.com. I am trying to do some
programming and am seeing a trend.
1. Software that has been specifically ported to the EB164 runs
and can talk to the hardware. This includes MILO, the EB164
kernel, and the EB164 X Windows port.
2. Programs that don't talk directly to the hardware run too.
3. Other axp software in redhat 2.1 that needs hardware access
doesn't run and causes memory violations. This includes
the graphics libraries, programs compiled with the graphics
libraries, and even the io portion of libc.a (with _inb() etc).
4. This is due to the libraries not yet being ported to the
EB164 hardware environment?????
Any help greatly appreciated.
Allan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: EB164 libraries and hardware access
@ 1996-03-27 4:12 David Mosberger-Tang
0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger-Tang @ 1996-03-27 4:12 UTC (permalink / raw)
>>>>> On Wed, 27 Mar 1996 11:33:25 +0800 (SST), Robert Allen Barker <rab@np.ac.sg> said:
Robert> Hello all,
Robert> Any EB164 people have any experience or ideas on the
Robert> following?
Robert> I have an EB164 running with Redhat 2.1 and the latest
Robert> milo test image from gatekeeper.dec.com. I am trying to do
Robert> some programming and am seeing a trend.
Robert> 1. Software that has been specifically ported to the
Robert> EB164 runs and can talk to the hardware. This includes MILO,
Robert> the EB164 kernel, and the EB164 X Windows port.
Robert> 2. Programs that don't talk directly to the hardware
Robert> run too.
Robert> 3. Other axp software in redhat 2.1 that needs
Robert> hardware access doesn't run and causes memory
Robert> violations. This includes the graphics libraries, programs
Robert> compiled with the graphics libraries, and even the io
Robert> portion of libc.a (with _inb() etc).
Robert> 4. This is due to the libraries not yet being ported
Robert> to the EB164 hardware environment?????
The current libc has the in/outb routines statically configured. This
wasn't a big problem so far because all ev4 based PCI machines use the
same I/O architecture (Jensen users may have a different view on this,
though... :-). The ev5 is different because of its larger physical
address space. The solution is to make the inb/outb routines
adapt dynamically to the system it runs on. I have implemented this
for GNU libc and it appears to be working. I also sent that code to
Jay, but I'm not sure whether he has had time to look at it already.
In any case you'd need to recompile the offending binaries. If you
already have the right libc installed, this should be fairly easy (rpm
--rebuild <rpm-filename> as root should do the trick; really
handy...).
--david
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: EB164 libraries and hardware access
1996-03-27 3:33 Robert Allen Barker
@ 1996-03-27 4:51 ` Jay Estabrook - Alpha Migration Tools - LINUX Project
0 siblings, 0 replies; 3+ messages in thread
From: Jay Estabrook - Alpha Migration Tools - LINUX Project @ 1996-03-27 4:51 UTC (permalink / raw)
> 3. Other axp software in redhat 2.1 that needs hardware access
> doesn't run and causes memory violations. This includes
> the graphics libraries, programs compiled with the graphics
> libraries, and even the io portion of libc.a (with _inb() etc).
>
> 4. This is due to the libraries not yet being ported to the
> EB164 hardware environment?????
Yes, you're correct; the current LIBC implementation of _inb/_outb and
siblings, supports most of the Alpha platforms but not all, namely the
EB164 and JENSEN.
There is development going on to port GNU LIBC to the Alphas; this port
*WILL* adapt its implementation of _inb/_outb to the platform on which
it is running. The same will be true of the Xservers, as they will use
that GNU LIBC, and use a similar technique to that employed by GNU LIBC,
to mmap bus memory (frame buffers) appropriately for the given platform.
But neither are ready yet... :-(
> Any help greatly appreciated.
Have patience, or start hacking... :-)
To the latter end, you could try this for tailoring _inb/_outb to the EB164:
FIRST MAKE A COPY OF THE APP YOU WILL BE PATCHING!!!!
Then, using GDB, load the unstripped app, and do:
gdb> set write on <--------- to allow writing to the image
gdb> exec app <--------- app is the name of the executable
gdb> x/i ioperm+204 <--------- examine 1 instruction at ioperm+204
this will dump an instruction which should be:
lda a5,4103 <---------- in hex, 22bf1007
along with the address of that instruction, something *like* 0x120214814.
Now, change the value of the short at the above address (which was 0x1007),
like so:
gdb> set {short}0x120214814 = 0x1216
Now, when you quit gracefully from GDB, the executable will have been
patched. Try running it to see if it now works on the EB164.
WARNING!!! This will only make _inb/_outb and siblings do the right thing
on the EB164 for that app, and it will no longer work on any other machine!
WARNING!!! This will *NOT* make bus memory space accesses work, like trying
to read VGA BIOS ROM, or dump things directly into the VGA memory aperture
at 0xA0000 through 0xBFFFF, as I fear "svgalib" may attempt. These must be
solved via source code mods, which I won't go into here; Email me privately
if you wish more details.
If you've done everything right, and only _inb/_outb are required by the
app for correct operation, it *should* work; that's how I did the EV5 versions
of the S3 and TGA Xservers (with 4-5 additional patches only)... :-)
Good luck...
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools
Mailstop: TAY1-2 (DTN) 227-4202
Digital Equipment Corp. (external) (508) 952-4202
151 Taylor Street enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407 decnet: tallis::jestabro
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-03-27 4:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-27 4:12 EB164 libraries and hardware access David Mosberger-Tang
-- strict thread matches above, loose matches on Subject: below --
1996-03-27 3:33 Robert Allen Barker
1996-03-27 4:51 ` Jay Estabrook - Alpha Migration Tools - LINUX Project
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox