Re[2]: ATI RageXL video controller problem
163 <[email protected]> Thu, 15 May 2003 11:21:36 +0800
| Newsgroups | gmane.linux.redhat.ia64.general |
|---|---|
| Message-ID | <[email protected]> |
I've suffered the same thing.
I updated the following packages:
XFree86-4.2.0-67.6.ia64.rpm
XFree86-base-fonts-4.2.0-67.6.ia64.rpm
XFree86-font-utils-4.2.0-67.6.ia64.rpm
XFree86-xauth-4.2.0-67.6.ia64.rpm
XFree86-xfs-4.2.0-67.6.ia64.rpm
and fixed the executable-stack with the code as the following, then it works!
but i don't know how to send these packages to u,and i've forget where it downloaded:-)
steps:
#rpm -Uvh *.rpm
#gcc patch.c
#./a.out - -executable-stack /usr/X11R6/bin/XFree86
#startx
/*save it as patch.c*/
/*patch code begin*/
#include <elf.h>
#include <fcntl.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#ifndef EF_IA_64_LINUX_EXECUTABLE_STACK
# define EF_IA_64_LINUX_EXECUTABLE_STACK 0x1
#endif
static struct option long_options[] = {
{"executable-stack", 0, 0, 'E'},
{"help", 0, 0, 'h'},
{"no-executable-stack", 0, 0, 'e'},
};
static const char *prog_name;
static void
usage (FILE *fp)
{
fprintf (fp, "Usage: %s [-eEh] files...\n"
"\t-e: mark stack and data of image as not executable\n"
"\t-E: mark stack and data of image as executable\n"
"\t-h: print this help message\n", prog_name);
}
static void
update_file (const char *filename, int executable_stack)
{
Elf64_Ehdr ehdr;
ssize_t ret;
int fd;
fd = open (filename, executable_stack ? O_RDWR : O_RDONLY);
if (fd < 0)
{
perror (filename);
exit (-1);
}
ret = read (fd, &ehdr, sizeof (ehdr));
if (ret != sizeof (ehdr))
{
if (ret < 0)
perror (filename);
else
fprintf (stderr, "%s: short read\n", filename);
exit (-1);
}
if (executable_stack == 0)
{
printf ("%s:\n\tstack and data executable: %s\n", filename,
(ehdr.e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) ? "yes" :
"no");
return;
}
if (executable_stack == 1)
ehdr.e_flags |= EF_IA_64_LINUX_EXECUTABLE_STACK;
else
ehdr.e_flags &= ~EF_IA_64_LINUX_EXECUTABLE_STACK;
if (lseek (fd, 0, SEEK_SET) < 0)
{
perror ("lseek");
exit (-1);
}
ret = write (fd, &ehdr, sizeof (ehdr));
if (ret != sizeof (ehdr))
{
perror ("write");
exit (-1);
}
}
int
main (int argc, char **argv)
{
int ch, executable_stack = 0;
extern int optind;
prog_name = argv[0];
if (argc < 2)
{
usage (stderr);
exit (-1);
}
while (1)
{
ch = getopt_long (argc, argv, "eEh", long_options, NULL);
if (ch == -1)
break;
switch (ch)
{
case 'e': executable_stack = -1; break;
case 'E': executable_stack = 1; break;
case 'h': usage (stdout); exit (0);
}
}
while (optind < argc)
update_file (argv[optind++], executable_stack);
return 0;
}
/*patch code end*/
------- Original Message Begin --------
From: "Kovaiselvan Jayaraman" <[email protected]>
To: <[email protected]>
On Wed, 14 May 2003 13:00:51 +0530
Subject: RE: ATI RageXL video controller problem
>Message
>Can you pls help me with URL for getting these updates for ia64,
>
>thanks
>
>-Kovai
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Delaney, Pam
> Sent: Thursday, May 08, 2003 9:07 PM
> To: '[email protected]'
> Subject: RE: ATI RageXL video controller problem
>
>
> Have you applied the XFree86 updates for Derry?
> On the systems here, without the updates and without making
> the XFree86 server stack executable, X is unusable
> even though a graphical installation is OK and
> configuration via Xconfigurator is ok.
> -pamela
>
> > -----Original Message-----
> > From: Kovaiselvan Jayaraman [mailto:[email protected]]
> > Sent: Thursday, May 08, 2003 10:36 AM
> > To: [email protected]
> > Subject: ATI RageXL video controller problem
> >
> >
> > Hi,
> > We've been tesing RedHat Linux Advanced Server 2.1 AS (Derry)(64
> > bit) on Itanium 2 platform, details as follows
> >
> > Itanium server platform - Intel SR870BN4
> > Display Controller - ATI Rage XL video controller with 8 MB
> >
> > Issue is that OS is unable to probe any monitor that's used on the
> > server ( during installation we got through the GUI mode &
> > selected ATI
> > Rage XL from the list, then while OS installs it enters the text mode
> > only, we've tried Xconfigurator tool for various
> > combinations) , in our
> > judgement RedHat Linux Advanced Server 2.1 AS (Derry)(64 bit) doesn't
> > support this particular (ATI Rage XL video controller) display
> > controller, what's the workout for this problem
> >
> > Your suggestions are highly valuable
> >
> > Regards,
> > Kovai
> >
> >
> >
> >
> > _______________________________________________
> > ia64-list mailing list
> > [email protected]
> > https://listman.redhat.com/mailman/listinfo/ia64-list
> >
----- Original Message End -----