[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GRUB 0.93 on Solaris 9/x86...
From: |
Matthias Pfützner - Sun Professional Services Germany - Frankfurt |
Subject: |
Re: GRUB 0.93 on Solaris 9/x86... |
Date: |
Tue, 8 Apr 2003 11:12:46 +0200 |
User-agent: |
Mutt/1.2.5i |
Hi,
You (Yoshinori K. Okuji) write:
> At Thu, 3 Apr 2003 17:42:06 +0200 (MEST),
> Matthias Pfützner - Sun Professional Services Germany - Frankfurt wrote:
> > Who is the maintainer of the configure part of GRUB? Perhaps you can enhance
> > that part?
>
> I don't think such an effort is necessary. Just set CC, OBJCOPY,
> etc. when running the configure script
> (such as "OBJCOPY=gobjcopy ./configure").
That will work, but:
AS
LD
are not defined in configure, AS is defined as ($CC)
Defining LDFLAGS CFLAGS to "-B/opt/sfw/bin" doesn't help either...
Also, defining/setting GCC_EXEC_PREFIX does not help either...
So, I still need to move ld and as (gld, gas) around...
> > ==============================================================================
> > *** grub/asmstub.c.orig Tue Dec 3 00:20:45 2002
> > --- grub/asmstub.c Wed Apr 2 22:42:23 2003
> > ***************
> > *** 1131,1137 ****
> > --- 1131,1145 ----
> > goto fail;
> >
> > /* Raw mode. */
> > + #if 0
> > cfmakeraw (&termios);
> > + #else
> > + termios.c_iflag &=
> > ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
> > + termios.c_oflag &= ~OPOST;
> > + termios.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
> > + termios.c_cflag &= ~(CSIZE|PARENB);
> > + termios.c_cflag |= CS8;
> > + #endif
> >
> > /* Set the speed. */
> > termios_speed = get_termios_speed (speed);
> > ==============================================================================
>
> I can integrate your patch, if you implement a better solution. Maybe
> it would be better to detect if cfmakeraw is available in configure.
cfmakeraw is a bsd 4.4 routine, therefore it is not available in any svr4
Unix. Also, configure does not check for the availability of cfmakeraw... ;-(
So, my solution seems to be the most simple, as it repeats the implementation
of cfmakeraw...
> > Then, there are problems with the way, Solaris does handle disks (IDE, SCSI,
> > Floppies) (I should have said: There are problems with the assumptions that
> > GRUB makes on the setting up of disk devices... ;-)). Solaris uses::
> >
> > /dev/rdiskette0
> >
> > /dev/dsk/c0d0p0 (fdisk partition)
> > /dev/dsk/c0d0s0 (solaris partition in the FDISK Partition with
> > Solaris
> > flag (IDE))
> > /dev/dsk/c0t0d0s0 (solaris partition in the FDISK Partition with
> > Solaris flag (SCSI)) cntr 0, target 0 disk 0 slice 0
> >
> > All the numbers are free! (but most start at 0, except the t0, which is the
> > SCSI id!) t*d0 is used most of the times, as I haven't seen any LUNS on disk
> > (wrong, big boxes, like EMC Symmetrix, IBm Shark will have something
> > different
> > like 0 here!).
>
> You have to write Solaris-dependent code anyway.
You are right! Running the compiled version does not "work", as I always do
get "permission errors"! So, I will start writing Solaris code... ;-)
Matthias
> Thanks,
> Okuji
--
***********************************************************************
Matthias Pfützner
Project Engineer - Community-Leader High End Server & High Availability
Sun Professional Services
Sun Microsystems GmbH
Ampèrestraße 6 Tel: (++49 6103) 752-394 (x65394)
63225 Langen Fax: (++49 6103) 752-167
Germany mailto:address@hidden
***********************************************************************