* Installed RedHat 5.2 on Alphaserver 1200
@ 1999-05-06 11:12 Jose Maria Lopez Lagunas
1999-05-06 11:59 ` Rich Payne
` (3 more replies)
0 siblings, 4 replies; 20+ messages in thread
From: Jose Maria Lopez Lagunas @ 1999-05-06 11:12 UTC (permalink / raw)
To: axp-list
Hi all.
I was finally able to install Linux on an Alpha machine. The command line
I used in the SRM console is:
boot dka500 -file kernels/rawhide-.gz -flags "root=/dev/scd0
bootdevice=sr0 bootfile=kernels/rawhide-s.gz"
dka500 is the CD-ROM
Note that the name passed in the -file parameter is not the same as the
bootfile parameter passed to the kernel. I had to try several options
until I found the rigth one.
This way I've been able to install RedHat 5.2 on the Alphaserver using the
CD-ROM, but now I have another problem. I'm trying to make the hard disk
bootable using swriteboot (since RedHat installation dind't do that):
swriteboot /dev/sda /boot/bootlx
This is the error I get:
Existing disk label is corrupt
Couldn't get a valid disk label, exiting.
The disk has several partitions. The program fdisk prints the following
information (I'm not sure):
sda1 MS-DOS 16bit
sda2 Extended
sda5 Linux
sda6 id.
sda7 id.
sda8 id.
sda9 Linux swap
Thank you in advance.
Jose Maria
+--------------------------------------------------------------------+
Jose Maria Lopez Lagunas
josema@aiind.upv.es, josema@depechemode.com,
jolola2@inf.upv.es, jmlopez@dsic.upv.es
WWW: http://andercheran.aiind.upv.es/~josema/home.html
+--------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Installed RedHat 5.2 on Alphaserver 1200
1999-05-06 11:12 Installed RedHat 5.2 on Alphaserver 1200 Jose Maria Lopez Lagunas
@ 1999-05-06 11:59 ` Rich Payne
1999-05-06 15:06 ` DEC-f77 to Linux Duccio Medini
` (2 subsequent siblings)
3 siblings, 0 replies; 20+ messages in thread
From: Rich Payne @ 1999-05-06 11:59 UTC (permalink / raw)
To: axp-list
On Thu, 6 May 1999, Jose Maria Lopez Lagunas wrote:
> Hi all.
>
> I was finally able to install Linux on an Alpha machine. The command line
> I used in the SRM console is:
>
> boot dka500 -file kernels/rawhide-.gz -flags "root=/dev/scd0
> bootdevice=sr0 bootfile=kernels/rawhide-s.gz"
>
> dka500 is the CD-ROM
>
> Note that the name passed in the -file parameter is not the same as the
> bootfile parameter passed to the kernel. I had to try several options
> until I found the rigth one.
>
> This way I've been able to install RedHat 5.2 on the Alphaserver using the
> CD-ROM, but now I have another problem. I'm trying to make the hard disk
> bootable using swriteboot (since RedHat installation dind't do that):
>
> swriteboot /dev/sda /boot/bootlx
>
> This is the error I get:
> Existing disk label is corrupt
> Couldn't get a valid disk label, exiting.
Did you use the BSD disklabels for this disk? My guess would be you didn't
do this. During the install, when you are partitioning the disk (using
fdisk, not Disk Druid), the first command you give to fdisk should be 'b'
to change it into BSD disklabel mode.
There are some other things you need to keep in mind also, partition c
needs to be the entire disk, and don't start partition a cylinder 1
I think there is more info on this either in the RedHat install doc for
Alpha or the SRM Howto, can't remember which....
Rich Payne
rpayne@alphalinux.org www.alphalinux.org
^ permalink raw reply [flat|nested] 20+ messages in thread
* DEC-f77 to Linux
1999-05-06 11:12 Installed RedHat 5.2 on Alphaserver 1200 Jose Maria Lopez Lagunas
1999-05-06 11:59 ` Rich Payne
@ 1999-05-06 15:06 ` Duccio Medini
1999-05-07 13:12 ` Matti Aarnio
1999-05-11 3:45 ` Aron Skrypeck
1999-05-06 15:17 ` Installed RedHat 5.2 on Alphaserver 1200 Edwin Hakkennes
1999-05-08 23:58 ` disklabel converter [Re: Installed RedHat 5.2 on Alphaserver 1200] Richard Henderson
3 siblings, 2 replies; 20+ messages in thread
From: Duccio Medini @ 1999-05-06 15:06 UTC (permalink / raw)
To: axp-list
The difference that I experience between fortran code compiled
under DU - and - under Linux with g77 AND libffm or libcpml is still
remarkable.
I saw at alphalinux a detailed set of instructions about running DU
Netscape under Linux. Is there anything similar about running DEC-f77
compiler under Linux (a compiler should be, in some way, a binary like
the others)?
N.B.: I have a PC164 500 MHz under Linux RH 5.2 and a 164LX 400 MHz under
DU v4.0
Thanks in advance
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doct. Duccio Medini |mobile: +39 347 3343114
PhD Student |phone: +39 075 5853060
Physics Dept. | +39 075 5853029
Biophysics Sector |fax: +39 075 44666
Perugia University (ITALY) |Via A. Pascoli
INFM, Perugia Unity |06123 Perugia (I)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
e-mail: duccio.medini@pg.infn.it
Medini@susy.sissa.it
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Installed RedHat 5.2 on Alphaserver 1200
1999-05-06 11:12 Installed RedHat 5.2 on Alphaserver 1200 Jose Maria Lopez Lagunas
1999-05-06 11:59 ` Rich Payne
1999-05-06 15:06 ` DEC-f77 to Linux Duccio Medini
@ 1999-05-06 15:17 ` Edwin Hakkennes
1999-05-07 10:37 ` Jose Maria Lopez Lagunas
1999-05-08 23:58 ` disklabel converter [Re: Installed RedHat 5.2 on Alphaserver 1200] Richard Henderson
3 siblings, 1 reply; 20+ messages in thread
From: Edwin Hakkennes @ 1999-05-06 15:17 UTC (permalink / raw)
To: axp-list
Hi,
If you use SRM to boot your machine, you should use BSD Disklabeling
style partitions, something like:
[ednes@delphi ednes]# fdisk -l
BSD label for device: /dev/sda
4 partitions:
# size offset fstype [fsize bsize cpg]
a: 515508 3192 swap # (Cyl. 5 - 650)
b: 130872 518700 ext2 # (Cyl. 651 - 814)
c: 1038198 649572 ext2 # (Cyl. 815 - 2115)
d: 363888 1687770 ext2 # (Cyl. 2116 - 2571)
Be sure to leave the first 2 MB (from memory!) unused. You can make this by
repartitioning with fdisk, within fdisk use b for BSD Disklabel, and
then create the needed partitions.
Althoug this means a re-install, you're on the right track!
Althoug the partions get a letter as identifier, you should lateron
address them as usual (a = /dev/sda1 etc)
Good luck,
Edwin
>
> Hi all.
>
> I was finally able to install Linux on an Alpha machine. The command line
> I used in the SRM console is:
>
> boot dka500 -file kernels/rawhide-.gz -flags "root=/dev/scd0
> bootdevice=sr0 bootfile=kernels/rawhide-s.gz"
>
> dka500 is the CD-ROM
>
> Note that the name passed in the -file parameter is not the same as the
> bootfile parameter passed to the kernel. I had to try several options
> until I found the rigth one.
>
> This way I've been able to install RedHat 5.2 on the Alphaserver using the
> CD-ROM, but now I have another problem. I'm trying to make the hard disk
> bootable using swriteboot (since RedHat installation dind't do that):
>
> swriteboot /dev/sda /boot/bootlx
>
> This is the error I get:
> Existing disk label is corrupt
> Couldn't get a valid disk label, exiting.
>
> The disk has several partitions. The program fdisk prints the following
> information (I'm not sure):
>
> sda1 MS-DOS 16bit
> sda2 Extended
> sda5 Linux
> sda6 id.
> sda7 id.
> sda8 id.
> sda9 Linux swap
>
> Thank you in advance.
>
> Jose Maria
>
> +--------------------------------------------------------------------+
> Jose Maria Lopez Lagunas
> josema@aiind.upv.es, josema@depechemode.com,
> jolola2@inf.upv.es, jmlopez@dsic.upv.es
>
> WWW: http://andercheran.aiind.upv.es/~josema/home.html
> +--------------------------------------------------------------------+
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Installed RedHat 5.2 on Alphaserver 1200
1999-05-06 15:17 ` Installed RedHat 5.2 on Alphaserver 1200 Edwin Hakkennes
@ 1999-05-07 10:37 ` Jose Maria Lopez Lagunas
0 siblings, 0 replies; 20+ messages in thread
From: Jose Maria Lopez Lagunas @ 1999-05-07 10:37 UTC (permalink / raw)
To: axp-list
Hi.
I have done this way and I have been able to make the hard disk bootable.
I read about BSD disk labeling in the installation manual, but it is not
very informative, so this help from the list have been very valuable.
Thank you very much.
On Thu, 6 May 1999, Edwin Hakkennes wrote:
> Hi,
>
> If you use SRM to boot your machine, you should use BSD Disklabeling
> style partitions, something like:
>
> [ednes@delphi ednes]# fdisk -l
>
> BSD label for device: /dev/sda
>
> 4 partitions:
> # size offset fstype [fsize bsize cpg]
> a: 515508 3192 swap # (Cyl. 5 - 650)
> b: 130872 518700 ext2 # (Cyl. 651 - 814)
> c: 1038198 649572 ext2 # (Cyl. 815 - 2115)
> d: 363888 1687770 ext2 # (Cyl. 2116 - 2571)
>
> Be sure to leave the first 2 MB (from memory!) unused. You can make this by
> repartitioning with fdisk, within fdisk use b for BSD Disklabel, and
> then create the needed partitions.
>
> Althoug this means a re-install, you're on the right track!
>
> Althoug the partions get a letter as identifier, you should lateron
> address them as usual (a = /dev/sda1 etc)
>
>
> Good luck,
>
> Edwin
>
+--------------------------------------------------------------------+
Jose Maria Lopez Lagunas
josema@aiind.upv.es, josema@depechemode.com,
jolola2@inf.upv.es, jmlopez@dsic.upv.es
WWW: http://andercheran.aiind.upv.es/~josema/home.html
+--------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-06 15:06 ` DEC-f77 to Linux Duccio Medini
@ 1999-05-07 13:12 ` Matti Aarnio
1999-05-07 14:10 ` Craig P Prescott
1999-05-11 3:45 ` Aron Skrypeck
1 sibling, 1 reply; 20+ messages in thread
From: Matti Aarnio @ 1999-05-07 13:12 UTC (permalink / raw)
To: axp-list
Duccio Medini <Duccio.Medini@PG.infn.it> asked:
> The difference that I experience between fortran code compiled
> under DU - and - under Linux with g77 AND libffm or libcpml is still
> remarkable.
> I saw at alphalinux a detailed set of instructions about running DU
> Netscape under Linux. Is there anything similar about running DEC-f77
> compiler under Linux (a compiler should be, in some way, a binary like
> the others)?
For various reasons running the DEC Tru64 *compiler* at Linux is
likely doomed to fail. Linux doesn't supply license management
calls for example, which seem to be needed.
However, running compiler at DEC Tru64, producing *static*
binary, and then running that binary at Linux is very likely
to work, and even (barely) within license rules.
(Copying shared libraries to a machine without DEC Tru64 license
isn't strictly speaking allowed...)
> N.B.: I have a PC164 500 MHz under Linux RH 5.2 and a 164LX 400
> MHz under DU v4.0
> Thanks in advance
> Medini@susy.sissa.it
/Matti Aarnio <matti.aarnio@sonera.fi>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 13:12 ` Matti Aarnio
@ 1999-05-07 14:10 ` Craig P Prescott
1999-05-07 14:42 ` Todd Henderson
1999-05-07 20:44 ` Jiann-Ming Su
0 siblings, 2 replies; 20+ messages in thread
From: Craig P Prescott @ 1999-05-07 14:10 UTC (permalink / raw)
To: axp-list
Matti Aarnio wrote:
>
> Duccio Medini <Duccio.Medini@PG.infn.it> asked:
> > The difference that I experience between fortran code compiled
> > under DU - and - under Linux with g77 AND libffm or libcpml is still
> > remarkable.
> > I saw at alphalinux a detailed set of instructions about running DU
> > Netscape under Linux. Is there anything similar about running DEC-f77
> > compiler under Linux (a compiler should be, in some way, a binary like
> > the others)?
>
> For various reasons running the DEC Tru64 *compiler* at Linux is
> likely doomed to fail. Linux doesn't supply license management
> calls for example, which seem to be needed.
>
> However, running compiler at DEC Tru64, producing *static*
> binary, and then running that binary at Linux is very likely
> to work, and even (barely) within license rules.
>
Running static DU binaries under AlphaLinux certainly works...
... but is still a violation of the license agreement without a DU
license. In a static binary, you are still copying over
encumbered objects (in your executable). Below are two snippets
from postings Jim Paradis and Jay Estabrook made to the list last
summer. If the status of running DU static binaries on an unlicensed
box has changed... well, I'd be very interested to know it!
Hmmmm... is the licensing of Tru64 the same as it was with DU?
* <begin snippet 1>---------------------------------------------
*
* From: Jim Paradis <paradis@linux01.hlo.dec.com>
* Subject: Re: DU Licensing ramifications
* To: axp-list@redhat.com
* Date: Mon, 13 Jul 1998 15:21:15 -0400 (EDT)
*
* > 1. If I link a program statically against the DU libraries,
* > am I allowed to run it on an unlicensed CPU? Probably not,
* > I'd expect, though it seems that that may not be stopping
* > some Beowulf users that own DEC compilers, unless they all
* > have DU site licenses.
*
* Correct; legally you may *not* run statically-linked DU executables on
* a non-licensed system. While it's highly unlikely that anyone in a
* position to turn you in to the Software Police will *notice* that you're
* doing so, it's still a technical violation of your Digital licensing
* agreement.
*
* <end snippet 1>---------------------------------------------
# <begin snippet 2>---------------------------------------------
#
# To: axp-list@redhat.com
# From: Jay.Estabrook@digital.com
# Subject: Re: DU Licensing ramifications
# Date: Mon, 13 Jul 1998 15:33:38 +0500
#
# >>> Bill Rugolsky Jr. said:
# > Two questions:
# >
# > 1. If I link a program statically against the DU libraries,
# > am I allowed to run it on an unlicensed CPU? Probably not,
# > I'd expect, though it seems that that may not be stopping
# > some Beowulf users that own DEC compilers, unless they all
# > have DU site licenses.
#
# No, you are NOT allowed to run it on an unlicensed CPU; a statically linked
# binary will still have C library routines bound into it, and it is those
# routines which are encumbered.
#
# <end snippet 2>---------------------------------------------
> (Copying shared libraries to a machine without DEC Tru64 license
> isn't strictly speaking allowed...)
>
> > N.B.: I have a PC164 500 MHz under Linux RH 5.2 and a 164LX 400
> > MHz under DU v4.0
> > Thanks in advance
> > Medini@susy.sissa.it
>
> /Matti Aarnio <matti.aarnio@sonera.fi>
>
Cheers,
Craig
---
Craig P Prescott (352) 846-3145 (Phone)
2011 New Physics Building (352) 392-8863 (Fax)
University of Florida, Gainesville, FL 32611 prescott@phys.ufl.edu
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 14:10 ` Craig P Prescott
@ 1999-05-07 14:42 ` Todd Henderson
1999-05-07 16:24 ` Greg Lindahl
1999-05-07 20:44 ` Jiann-Ming Su
1 sibling, 1 reply; 20+ messages in thread
From: Todd Henderson @ 1999-05-07 14:42 UTC (permalink / raw)
To: axp-list
When/if DEC releases their compilers for Linux, that'll do away with the issues
I suppose. Well, maybe not, this raises another question though. If I buy the
new DEC Linux compilers and statically link libs, I'll then be able to move the
program and run it on any other Alpha Linux box. Surely I won't have to buy the
compiler for all x machines when all I need is one development machine, and a
bunch of worker machines??
Just curious on how that'll work.
Todd
Craig P Prescott wrote:
> Matti Aarnio wrote:
> >
> > Duccio Medini <Duccio.Medini@PG.infn.it> asked:
> > > The difference that I experience between fortran code compiled
> > > under DU - and - under Linux with g77 AND libffm or libcpml is still
> > > remarkable.
> > > I saw at alphalinux a detailed set of instructions about running DU
> > > Netscape under Linux. Is there anything similar about running DEC-f77
> > > compiler under Linux (a compiler should be, in some way, a binary like
> > > the others)?
> >
> > For various reasons running the DEC Tru64 *compiler* at Linux is
> > likely doomed to fail. Linux doesn't supply license management
> > calls for example, which seem to be needed.
> >
> > However, running compiler at DEC Tru64, producing *static*
> > binary, and then running that binary at Linux is very likely
> > to work, and even (barely) within license rules.
> >
>
> Running static DU binaries under AlphaLinux certainly works...
>
> ... but is still a violation of the license agreement without a DU
> license. In a static binary, you are still copying over
> encumbered objects (in your executable). Below are two snippets
> from postings Jim Paradis and Jay Estabrook made to the list last
> summer. If the status of running DU static binaries on an unlicensed
> box has changed... well, I'd be very interested to know it!
>
> Hmmmm... is the licensing of Tru64 the same as it was with DU?
>
> * <begin snippet 1>---------------------------------------------
> *
> * From: Jim Paradis <paradis@linux01.hlo.dec.com>
> * Subject: Re: DU Licensing ramifications
> * To: axp-list@redhat.com
> * Date: Mon, 13 Jul 1998 15:21:15 -0400 (EDT)
> *
> * > 1. If I link a program statically against the DU libraries,
> * > am I allowed to run it on an unlicensed CPU? Probably not,
> * > I'd expect, though it seems that that may not be stopping
> * > some Beowulf users that own DEC compilers, unless they all
> * > have DU site licenses.
> *
> * Correct; legally you may *not* run statically-linked DU executables on
> * a non-licensed system. While it's highly unlikely that anyone in a
> * position to turn you in to the Software Police will *notice* that you're
> * doing so, it's still a technical violation of your Digital licensing
> * agreement.
> *
> * <end snippet 1>---------------------------------------------
>
> # <begin snippet 2>---------------------------------------------
> #
> # To: axp-list@redhat.com
> # From: Jay.Estabrook@digital.com
> # Subject: Re: DU Licensing ramifications
> # Date: Mon, 13 Jul 1998 15:33:38 +0500
> #
> # >>> Bill Rugolsky Jr. said:
> # > Two questions:
> # >
> # > 1. If I link a program statically against the DU libraries,
> # > am I allowed to run it on an unlicensed CPU? Probably not,
> # > I'd expect, though it seems that that may not be stopping
> # > some Beowulf users that own DEC compilers, unless they all
> # > have DU site licenses.
> #
> # No, you are NOT allowed to run it on an unlicensed CPU; a statically linked
> # binary will still have C library routines bound into it, and it is those
> # routines which are encumbered.
> #
> # <end snippet 2>---------------------------------------------
>
> > (Copying shared libraries to a machine without DEC Tru64 license
> > isn't strictly speaking allowed...)
> >
> > > N.B.: I have a PC164 500 MHz under Linux RH 5.2 and a 164LX 400
> > > MHz under DU v4.0
> > > Thanks in advance
> > > Medini@susy.sissa.it
> >
> > /Matti Aarnio <matti.aarnio@sonera.fi>
> >
>
> Cheers,
> Craig
> ---
> Craig P Prescott (352) 846-3145 (Phone)
> 2011 New Physics Building (352) 392-8863 (Fax)
> University of Florida, Gainesville, FL 32611 prescott@phys.ufl.edu
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 14:42 ` Todd Henderson
@ 1999-05-07 16:24 ` Greg Lindahl
0 siblings, 0 replies; 20+ messages in thread
From: Greg Lindahl @ 1999-05-07 16:24 UTC (permalink / raw)
To: axp-list
> Well, maybe not, this raises another question though. If I buy the
> new DEC Linux compilers and statically link libs, I'll then be able
> to move the program and run it on any other Alpha Linux box. Surely
> I won't have to buy the compiler for all x machines when all I need
> is one development machine, and a bunch of worker machines??
The existing restriction with DU-compiled executables is because libc
is tainted with code now owned by SCO. The new Compaq compilers for
Linux won't suffer from that, so I'd bet that Compaq will adopt the
usual "pay for 1 machine, compile, run anywhere for no extra charge"
license.
-- g
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 14:10 ` Craig P Prescott
1999-05-07 14:42 ` Todd Henderson
@ 1999-05-07 20:44 ` Jiann-Ming Su
1999-05-07 22:24 ` Greg Lindahl
1 sibling, 1 reply; 20+ messages in thread
From: Jiann-Ming Su @ 1999-05-07 20:44 UTC (permalink / raw)
To: axp-list
On Fri, 7 May 1999, Craig P Prescott wrote:
>
> Running static DU binaries under AlphaLinux certainly works...
>
> ... but is still a violation of the license agreement without a DU
> license. In a static binary, you are still copying over
> encumbered objects (in your executable). Below are two snippets
> from postings Jim Paradis and Jay Estabrook made to the list last
> summer. If the status of running DU static binaries on an unlicensed
> box has changed... well, I'd be very interested to know it!
>
> Hmmmm... is the licensing of Tru64 the same as it was with DU?
>
DEC blew it and Compaq is not picking up. Two parts of the company,
hardware and software, are working against each other. It's amazing.
One of the best ideas, the Alpha processor, in the industry has stagnated
completely because the companies that have owned the technology is set
on making the little money they can on software instead of unloading the
hardware. What is stopping Compaq from making Alpha optimized development
software available right now? Man, it's pretty clear to me why DEC fell
apart, and it's pretty clear why Compaq is, also. I see the same thing
happening with Sun and Java. You know, all the great mathematicians and
scientists are remembered for the work they did. Very few of them made
money -- the way Bill Gates is making money -- on the incredible work they
did. Yet, they still retain intellectual rights to their work. You don't
see anyone else but Newton and Leibnez being credited for calculus. The
list goes on.
For those of us who enjoy the Alpha platform because it is technically
superior, it's over. I don't see Compaq ever making the right decisions
with the platform. That boat has long sailed. Ugh. Really frustrating.
If you want optimized performance, looks like Merced is the way to go.
At least Intel is helping develop an optimized compiler that will
eventually be freely available to the public for free through gcc.
It's been made clear here that it is easier to rewrite gcc for alpha
than to try to optimize it as is. We are still waiting for Compaq to
make their development environment available to us.
Jiann-Ming Su "People seldom do what they believe in. They do
js1@microwave.ph.msstate.edu what is convenient, then repent." --Bob Dylan
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 20:44 ` Jiann-Ming Su
@ 1999-05-07 22:24 ` Greg Lindahl
1999-05-07 23:09 ` Jiann-Ming Su
0 siblings, 1 reply; 20+ messages in thread
From: Greg Lindahl @ 1999-05-07 22:24 UTC (permalink / raw)
To: axp-list
> DEC blew it and Compaq is not picking up. Two parts of the company,
> hardware and software, are working against each other. It's amazing.
It's also not true. But there's no point in having a flamewar about it
on this list; we're trying to be productive here.
> What is stopping Compaq from making Alpha optimized development
> software available right now?
They are making their Fortran and C compilers available soon. Please
give credit where credit is due. This committment was made recently,
and they haven't even had a chance to not meet it.
> For those of us who enjoy the Alpha platform because it is technically
> superior, it's over.
If it's over, then why are you posting about it?
-- g
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 22:24 ` Greg Lindahl
@ 1999-05-07 23:09 ` Jiann-Ming Su
1999-05-07 23:16 ` Greg Lindahl
1999-05-07 23:21 ` mgraffam
0 siblings, 2 replies; 20+ messages in thread
From: Jiann-Ming Su @ 1999-05-07 23:09 UTC (permalink / raw)
To: axp-list
On Fri, 7 May 1999, Greg Lindahl wrote:
> > DEC blew it and Compaq is not picking up. Two parts of the company,
> > hardware and software, are working against each other. It's amazing.
>
> It's also not true. But there's no point in having a flamewar about it
> on this list; we're trying to be productive here.
>
The way I see it, DEC and Compaq have blown it with Alpha.
>
> They are making their Fortran and C compilers available soon. Please
> give credit where credit is due. This committment was made recently,
> and they haven't even had a chance to not meet it.
>
Linux can run DU binaries now. To run some apps, you need the libraries.
Those have been written. It's all available. It wouldn't take a software
guy half a day to package it and have it on a ftp site. What are they
waiting on? Until I see it, those annoucements are no different than
vaporware. They were made to ride the Linux tide and cover their financial
problems, IMO.
> > For those of us who enjoy the Alpha platform because it is technically
> > superior, it's over.
>
> If it's over, then why are you posting about it?
>
It doesn't make sense for Intel to have 90% of the marketshare with a product
like the Alpha. The reason I'm posting is because I see absolutely no reason
why Compaq can't make the libraries and development environment available
to us now. DEC/Compaq knew about Alpha Linux for a LONG time now.
If Alpha Linux wasn't working until this past Janurary, I would see their
recent annoucement as sincere.
I've used Linux for a long time so waiting for things to work is not new to me.
But, when you have a technically superior platform that's being supported like
someone's redheaded step child, it's just frustrating. There's a reason why
the top two guys at Compaq left... they didn't know what they were doing.
Managers... they can't make the right decisions to get out of a paper bag.
Jiann-Ming Su "People seldom do what they believe in. They do
js1@microwave.ph.msstate.edu what is convenient, then repent." --Bob Dylan
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 23:09 ` Jiann-Ming Su
@ 1999-05-07 23:16 ` Greg Lindahl
1999-05-07 23:21 ` mgraffam
1 sibling, 0 replies; 20+ messages in thread
From: Greg Lindahl @ 1999-05-07 23:16 UTC (permalink / raw)
To: axp-list
> > It's also not true. But there's no point in having a flamewar about it
> > on this list; we're trying to be productive here.
>
> The way I see it, DEC and Compaq have blown it with Alpha.
Thank you for ignoring my point, and continuing on your crusade.
> Linux can run DU binaries now. To run some apps, you need the libraries.
Which Compaq cannot license to you for cheap or for free, because SCO
has copyright on libc.
> What are they waiting on?
A native port, which is underway. Compaq deserves credit for that, and
we don't deserve a flamewar on axp-list because you think the should
have done it years ago. It would be pointless. It _is_ pointless.
-- g
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 23:09 ` Jiann-Ming Su
1999-05-07 23:16 ` Greg Lindahl
@ 1999-05-07 23:21 ` mgraffam
1999-05-09 18:44 ` Jim Gettys
1 sibling, 1 reply; 20+ messages in thread
From: mgraffam @ 1999-05-07 23:21 UTC (permalink / raw)
To: axp-list
On Fri, 7 May 1999, Jiann-Ming Su wrote:
> Linux can run DU binaries now. To run some apps, you need the libraries.
> Those have been written. It's all available. It wouldn't take a software
> guy half a day to package it and have it on a ftp site. What are they
> waiting on? Until I see it, those annoucements are no different than
> vaporware. They were made to ride the Linux tide and cover their financial
> problems, IMO.
As has been said often on the list: ITS ABOUT LEGALITY. The libs contain
encumbered code that DEC/Compaq can't legally release -- those portions
of code need to be rewritten.
Michael J. Graffam (mgraffam@idsi.net)
They (who) seek to establish systems of government based on the
regimentation of all human beings by a handful of individual rulers..
call this a new order. It is not new, and it is not order."
- Franklin Delano Roosevelt
^ permalink raw reply [flat|nested] 20+ messages in thread
* disklabel converter [Re: Installed RedHat 5.2 on Alphaserver 1200]
1999-05-06 11:12 Installed RedHat 5.2 on Alphaserver 1200 Jose Maria Lopez Lagunas
` (2 preceding siblings ...)
1999-05-06 15:17 ` Installed RedHat 5.2 on Alphaserver 1200 Edwin Hakkennes
@ 1999-05-08 23:58 ` Richard Henderson
1999-05-09 1:48 ` Larry Snyder
3 siblings, 1 reply; 20+ messages in thread
From: Richard Henderson @ 1999-05-08 23:58 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 565 bytes --]
On Thu, May 06, 1999 at 01:12:55PM +0200, Jose Maria Lopez Lagunas wrote:
> The disk has several partitions. The program fdisk prints the following
> information (I'm not sure):
>
> sda1 MS-DOS 16bit
> sda2 Extended
> sda5 Linux
> sda6 id.
> sda7 id.
> sda8 id.
> sda9 Linux swap
You have an MSDOS partition table instaed of a BSD disklabel.
Last week I got fed up with install programs that won't set up a
bsd disklabel correctly and wrote an in-place conversion widget.
It's been used exactly once, but it may save you a reinstall.
r~
[-- Attachment #2: labelcvt.c --]
[-- Type: text/plain, Size: 11898 bytes --]
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#define MAXPARTITIONS 16
#define MSDOS_LABEL_OFFSET 446
#define MSDOS_DISKMAGIC 0xAA55
#define MSDOS_FS_EMPTY 0
#define MSDOS_FS_DOS_12 1
#define MSDOS_FS_XENIX_ROOT 2
#define MSDOS_FS_XENIX_USR 3
#define MSDOS_FS_DOS_16 4
#define MSDOS_FS_DOS_EXT 5
#define MSDOS_FS_DOS_16_BIG 6
#define MSDOS_FS_OS2 7
#define MSDOS_FS_AIX 8
#define MSDOS_FS_AIX_BOOTABLE 9
#define MSDOS_FS_OS2_BOOTMAN 10
#define MSDOS_FS_WIN95_FAT32 11
#define MSDOS_FS_WIN98_EXT 15
#define MSDOS_FS_GNU_HURD 0x63
#define MSDOS_FS_MINIX 0x81
#define MSDOS_FS_LINUX_SWAP 0x82
#define MSDOS_FS_LINUX 0x83
#define MSDOS_FS_LINUX_EXT 0x85
#define MSDOS_FS_BSDI 0xb7
#define MSDOS_FS_BSDI_SWAP 0xb8
#define MSDOS_FS_UNKNOWN 0xf0
struct dos_partition
{
u_int8_t boot_ind; /* 0x80 - active */
u_int8_t head; /* starting head */
u_int8_t sector; /* starting sector */
u_int8_t cyl; /* starting cylinder */
u_int8_t sys_ind; /* What partition type */
u_int8_t end_head; /* end head */
u_int8_t end_sector; /* end sector */
u_int8_t end_cyl; /* end cylinder */
u_int32_t start_sect; /* starting sector counting from 0 */
u_int32_t nr_sects; /* nr of sectors in partition */
};
struct dos_disklabel
{
struct dos_partition d_partitions[4];
u_int16_t magic;
};
#define BSD_LABEL_OFFSET 64
#define BSD_DISKMAGIC 0x82564557
#define BSD_FS_UNUSED 0
#define BSD_FS_SWAP 1
#define BSD_FS_V6 2
#define BSD_FS_V7 3
#define BSD_FS_SYSV 4
#define BSD_FS_V71K 5
#define BSD_FS_V8 6
#define BSD_FS_BSDFFS 7
#define BSD_FS_EXT2 8
#define BSD_FS_ADVFS 16
#define BSD_FS_LSMpubl 17
#define BSD_FS_LSMpriv 18
#define BSD_FS_LSMsimp 19
#define BSD_FS_UNKNOWN 2
#define BSD_DTYPE_SMD 1
#define BSD_DTYPE_MSCP 2
#define BSD_DTYPE_DEC 3
#define BSD_DTYPE_SCSI 4
#define BSD_DTYPE_ESDI 5
#define BSD_DTYPE_ST506 6
struct bsd_partition
{
u_int32_t p_size; /* number of sectors in partition */
u_int32_t p_offset; /* starting sector */
u_int32_t p_fsize; /* filesystem basic fragment size */
u_int8_t p_fstype; /* filesystem type, see below */
u_int8_t p_frag; /* filesystem fragments per block */
u_int16_t p_cpg; /* filesystem cylinders per group */
};
struct bsd_disklabel {
u_int32_t d_magic; /* the magic number */
int16_t d_type; /* drive type */
int16_t d_subtype; /* controller/d_type specific */
char d_typename[16]; /* type name, e.g. "eagle" */
char d_packname[16]; /* pack identifier */
u_int32_t d_secsize; /* # of bytes per sector */
u_int32_t d_nsectors; /* # of data sectors per track */
u_int32_t d_ntracks; /* # of tracks per cylinder */
u_int32_t d_ncylinders; /* # of data cylinders per unit */
u_int32_t d_secpercyl; /* # of data sectors per cylinder */
u_int32_t d_secperunit; /* # of data sectors per unit */
u_int16_t d_sparespertrack; /* # of spare sectors per track */
u_int16_t d_sparespercyl; /* # of spare sectors per cylinder */
u_int32_t d_acylinders; /* # of alt. cylinders per unit */
u_int16_t d_rpm; /* rotational speed */
u_int16_t d_interleave; /* hardware sector interleave */
u_int16_t d_trackskew; /* sector 0 skew, per track */
u_int16_t d_cylskew; /* sector 0 skew, per cylinder */
u_int32_t d_headswitch; /* head switch time, usec */
u_int32_t d_trkseek; /* track-to-track seek, usec */
u_int32_t d_flags; /* generic flags */
u_int32_t d_drivedata[5]; /* drive-type specific information */
u_int32_t d_spare[5]; /* reserved for future use */
u_int32_t d_magic2; /* the magic number (again) */
u_int16_t d_checksum; /* xor of data incl. partitions */
/* filesystem and partition information: */
u_int16_t d_npartitions; /* number of partitions in following */
u_int32_t d_bbsize; /* size of boot area at sn0, bytes */
u_int32_t d_sbsize; /* max size of fs superblock, bytes */
struct bsd_partition d_partitions[MAXPARTITIONS]; /* actually may be more */
};
struct canonical_partition
{
u_int64_t start, size;
int type;
};
static struct canonical_partition partitions[MAXPARTITIONS];
static int
read_dos_disklabel(int fd, u_int64_t disk_size)
{
struct dos_disklabel disklabel;
u_int64_t first_sector = 0;
u_int64_t extended_offset = 0;
int current_part = 0;
while (1)
{
int i, extended = -1;
if (lseek(fd, first_sector*512+MSDOS_LABEL_OFFSET, SEEK_SET) < 0)
return -1;
if (read(fd, &disklabel, sizeof(disklabel)) != sizeof(disklabel))
return -1;
if (disklabel.magic != MSDOS_DISKMAGIC)
return -2;
for (i = 0; i < 4; ++i)
{
u_int32_t p_start_sect, p_nr_sects, p_sys_ind;
p_start_sect = disklabel.d_partitions[i].start_sect;
p_nr_sects = disklabel.d_partitions[i].nr_sects;
p_sys_ind = disklabel.d_partitions[i].sys_ind;
if (p_nr_sects == 0)
continue;
if (p_sys_ind == MSDOS_FS_DOS_EXT
|| p_sys_ind == MSDOS_FS_WIN98_EXT
|| p_sys_ind == MSDOS_FS_LINUX_EXT)
{
if (extended == -1)
extended = i;
continue;
}
/* Check the 3rd and 4th entries -- these sometimes contain
random garbage. */
if (i >= 2
&& (p_start_sect + p_nr_sects > disk_size
|| first_sector + p_start_sect < first_sector
|| first_sector + p_start_sect + p_nr_sects < first_sector))
continue;
partitions[current_part].start = first_sector + p_start_sect;
partitions[current_part].size = p_nr_sects;
partitions[current_part].type = p_sys_ind;
current_part++;
}
if (extended < 0)
break;
if (current_part < 4)
current_part = 4;
first_sector =
extended_offset + disklabel.d_partitions[extended].start_sect;
if (extended_offset == 0)
{
disk_size = disklabel.d_partitions[extended].nr_sects;
extended_offset = first_sector;
}
}
return 0;
}
static int
read_bsd_disklabel(int fd, u_int64_t disk_size)
{
struct bsd_disklabel disklabel;
int max_partitions, i, j;
if (lseek(fd, BSD_LABEL_OFFSET, SEEK_SET) < 0)
return -1;
if (read(fd, &disklabel, sizeof(disklabel)) != sizeof(disklabel))
return -1;
if (disklabel.d_magic != BSD_DISKMAGIC
|| disklabel.d_magic2 != BSD_DISKMAGIC)
return -2;
max_partitions = disklabel.d_npartitions;
if (max_partitions > MAXPARTITIONS)
max_partitions = MAXPARTITIONS;
for (i = 0; i < max_partitions; ++i)
{
u_int64_t start, size;
int type;
if (disklabel.d_partitions[i].p_fstype == BSD_FS_UNUSED)
continue;
start = disklabel.d_partitions[i].p_offset;
size = disklabel.d_partitions[i].p_size;
for (j = 0; j < i; ++j)
{
if (partitions[j].type == 0)
continue;
/* No relationship -- try again. */
if (partitions[j].start + partitions[j].size <= start
|| partitions[j].start >= start + size)
continue;
/* Equal -- no need to add. */
if (partitions[j].start == start
&& partitions[j].size == size)
goto no_add;
/* BSD living in dos partition. */
if (partitions[j].start <= start
&& partitions[j].start + partitions[j].size >= start + size)
goto add;
/* Overlap. Don't try to add. */
goto no_add;
}
add:
partitions[i].start = start;
partitions[i].size = size;
switch (disklabel.d_partitions[i].p_fstype)
{
case BSD_FS_SWAP:
type = MSDOS_FS_LINUX_SWAP;
break;
case BSD_FS_EXT2:
type = MSDOS_FS_LINUX;
break;
case BSD_FS_BSDFFS:
type = MSDOS_FS_BSDI;
break;
default:
type = MSDOS_FS_UNKNOWN;
break;
}
partitions[i].type = type;
no_add:;
}
return 0;
}
static int
write_dos_disklabel(int fd)
{
return -2;
}
static int
write_bsd_disklabel(int fd)
{
struct bsd_disklabel disklabel;
int i, num_partitions;
memset(&disklabel, 0, sizeof(disklabel));
disklabel.d_magic = BSD_DISKMAGIC;
disklabel.d_magic2 = BSD_DISKMAGIC;
disklabel.d_type = BSD_DTYPE_SCSI;
memcpy(disklabel.d_typename, "SCSI", 4);
disklabel.d_secsize = 512;
num_partitions = 0;
for (i = 0; i < MAXPARTITIONS; ++i)
{
int type = partitions[i].type;
if (type == 0)
continue;
switch (type)
{
case MSDOS_FS_LINUX:
type = BSD_FS_EXT2;
break;
case MSDOS_FS_LINUX_SWAP:
type = BSD_FS_SWAP;
break;
case MSDOS_FS_BSDI:
type = BSD_FS_BSDFFS;
break;
default:
type = BSD_FS_UNKNOWN;
break;
}
disklabel.d_partitions[i].p_offset = partitions[i].start;
disklabel.d_partitions[i].p_size = partitions[i].size;
disklabel.d_partitions[i].p_fstype = type;
num_partitions = i+1;
}
disklabel.d_npartitions = num_partitions;
if (lseek(fd, BSD_LABEL_OFFSET, SEEK_SET) < 0)
return -1;
if (write(fd, &disklabel, sizeof(disklabel)) != sizeof(disklabel))
return -1;
return 0;
}
static void
print_partitions(void)
{
int i;
for (i = 0; i < MAXPARTITIONS; ++i)
{
if (partitions[i].type == 0)
continue;
printf("%2d %9ld %9ld %02x\n", i+1, partitions[i].start,
partitions[i].size, partitions[i].type);
}
}
static void __attribute__((noreturn))
usage(void)
{
fprintf(stderr, "\
Usage: labelcvt <option> <input device> [<output device>]\n\
Where option is one of\n\
--dos Convert to MSDOS disklabel\n\
--bsd Convert to BSD disklabel\n\
--print Print the current disklabel\n");
exit(1);
}
int
main(int ac, char **av)
{
int action, fd, outfd;
u_int64_t disk_size;
if (ac != 3 && ac != 4)
usage();
if (strcmp(av[1], "--dos") == 0)
action = 0;
else if (strcmp(av[1], "--bsd") == 0)
action = 1;
else if (strcmp(av[1], "--print") == 0)
action = 2;
else
usage();
fd = open(av[2], O_RDONLY);
if (fd < 0)
{
perror(av[2]);
exit(1);
}
if (action != 2)
{
outfd = open(av[ac-1], O_WRONLY|O_CREAT);
if (outfd < 0)
{
perror(av[ac-1]);
exit(1);
}
}
disk_size = -1;
switch (action)
{
case 0:
switch (read_bsd_disklabel(fd, disk_size))
{
case -1:
perror("read bsd disklabel");
exit(1);
case -2:
fprintf(stderr, "Not a BSD disklabel.\n");
exit(1);
}
switch (write_dos_disklabel(outfd))
{
case -1:
perror("write dos disklabel");
exit(1);
case -2:
fprintf(stderr, "Error writing DOS disklabel.\n");
exit(1);
}
break;
case 1:
switch (read_dos_disklabel(fd, disk_size))
{
case -1:
perror("read dos disklabel");
exit(1);
case -2:
fprintf(stderr, "Not a DOS disklabel.\n");
exit(1);
}
switch (write_bsd_disklabel(outfd))
{
case -1:
perror("write bsd disklabel");
exit(1);
case -2:
fprintf(stderr, "Error writing BSD disklabel.\n");
exit(1);
}
break;
case 2:
{
const char *current_type;
errno = 0;
switch (read_dos_disklabel(fd, disk_size))
{
case -1:
if (errno != 0)
{
perror("read dos disklabel");
exit(1);
}
/* FALLTHRU */
case -2:
switch (read_bsd_disklabel(fd, disk_size))
{
case -1:
perror("read bsd disklabel");
exit(1);
case -2:
fprintf(stderr, "Unknown disklabel format.\n");
exit(1);
default:
current_type = "BSD";
break;
}
break;
default:
current_type = "DOS";
break;
}
printf("Current format: %s\n", current_type);
print_partitions();
break;
}
}
exit(0);
}
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: disklabel converter [Re: Installed RedHat 5.2 on Alphaserver 1200]
1999-05-08 23:58 ` disklabel converter [Re: Installed RedHat 5.2 on Alphaserver 1200] Richard Henderson
@ 1999-05-09 1:48 ` Larry Snyder
0 siblings, 0 replies; 20+ messages in thread
From: Larry Snyder @ 1999-05-09 1:48 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]
Richard, I've got a spare Multia that I can use to beat this up, and
I'll be happy to. Last time I built a box to boot from SRM, I spent
the afternoon with a calculator and a clipboard and minlabel. The
good news is that it worked (and continues to). The bad news is that
it was a major league PIA. I think this utility is probably long
overdue (thank you)! I'll let you know my results.
-ls-
Richard Henderson <rth@twiddle.net> wrote:
> On Thu, May 06, 1999 at 01:12:55PM +0200, Jose Maria Lopez Lagunas wrote:
> > The disk has several partitions. The program fdisk prints the following
> > information (I'm not sure):
> >
> > sda1 MS-DOS 16bit
> > sda2 Extended
> > sda5 Linux
> > sda6 id.
> > sda7 id.
> > sda8 id.
> > sda9 Linux swap
>
> You have an MSDOS partition table instaed of a BSD disklabel.
>
> Last week I got fed up with install programs that won't set up a
> bsd disklabel correctly and wrote an in-place conversion widget.
>
> It's been used exactly once, but it may save you a reinstall.
>
>
> r~
>
[-- Attachment #2: labelcvt.c --]
[-- Type: text/plain, Size: 11898 bytes --]
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#define MAXPARTITIONS 16
#define MSDOS_LABEL_OFFSET 446
#define MSDOS_DISKMAGIC 0xAA55
#define MSDOS_FS_EMPTY 0
#define MSDOS_FS_DOS_12 1
#define MSDOS_FS_XENIX_ROOT 2
#define MSDOS_FS_XENIX_USR 3
#define MSDOS_FS_DOS_16 4
#define MSDOS_FS_DOS_EXT 5
#define MSDOS_FS_DOS_16_BIG 6
#define MSDOS_FS_OS2 7
#define MSDOS_FS_AIX 8
#define MSDOS_FS_AIX_BOOTABLE 9
#define MSDOS_FS_OS2_BOOTMAN 10
#define MSDOS_FS_WIN95_FAT32 11
#define MSDOS_FS_WIN98_EXT 15
#define MSDOS_FS_GNU_HURD 0x63
#define MSDOS_FS_MINIX 0x81
#define MSDOS_FS_LINUX_SWAP 0x82
#define MSDOS_FS_LINUX 0x83
#define MSDOS_FS_LINUX_EXT 0x85
#define MSDOS_FS_BSDI 0xb7
#define MSDOS_FS_BSDI_SWAP 0xb8
#define MSDOS_FS_UNKNOWN 0xf0
struct dos_partition
{
u_int8_t boot_ind; /* 0x80 - active */
u_int8_t head; /* starting head */
u_int8_t sector; /* starting sector */
u_int8_t cyl; /* starting cylinder */
u_int8_t sys_ind; /* What partition type */
u_int8_t end_head; /* end head */
u_int8_t end_sector; /* end sector */
u_int8_t end_cyl; /* end cylinder */
u_int32_t start_sect; /* starting sector counting from 0 */
u_int32_t nr_sects; /* nr of sectors in partition */
};
struct dos_disklabel
{
struct dos_partition d_partitions[4];
u_int16_t magic;
};
#define BSD_LABEL_OFFSET 64
#define BSD_DISKMAGIC 0x82564557
#define BSD_FS_UNUSED 0
#define BSD_FS_SWAP 1
#define BSD_FS_V6 2
#define BSD_FS_V7 3
#define BSD_FS_SYSV 4
#define BSD_FS_V71K 5
#define BSD_FS_V8 6
#define BSD_FS_BSDFFS 7
#define BSD_FS_EXT2 8
#define BSD_FS_ADVFS 16
#define BSD_FS_LSMpubl 17
#define BSD_FS_LSMpriv 18
#define BSD_FS_LSMsimp 19
#define BSD_FS_UNKNOWN 2
#define BSD_DTYPE_SMD 1
#define BSD_DTYPE_MSCP 2
#define BSD_DTYPE_DEC 3
#define BSD_DTYPE_SCSI 4
#define BSD_DTYPE_ESDI 5
#define BSD_DTYPE_ST506 6
struct bsd_partition
{
u_int32_t p_size; /* number of sectors in partition */
u_int32_t p_offset; /* starting sector */
u_int32_t p_fsize; /* filesystem basic fragment size */
u_int8_t p_fstype; /* filesystem type, see below */
u_int8_t p_frag; /* filesystem fragments per block */
u_int16_t p_cpg; /* filesystem cylinders per group */
};
struct bsd_disklabel {
u_int32_t d_magic; /* the magic number */
int16_t d_type; /* drive type */
int16_t d_subtype; /* controller/d_type specific */
char d_typename[16]; /* type name, e.g. "eagle" */
char d_packname[16]; /* pack identifier */
u_int32_t d_secsize; /* # of bytes per sector */
u_int32_t d_nsectors; /* # of data sectors per track */
u_int32_t d_ntracks; /* # of tracks per cylinder */
u_int32_t d_ncylinders; /* # of data cylinders per unit */
u_int32_t d_secpercyl; /* # of data sectors per cylinder */
u_int32_t d_secperunit; /* # of data sectors per unit */
u_int16_t d_sparespertrack; /* # of spare sectors per track */
u_int16_t d_sparespercyl; /* # of spare sectors per cylinder */
u_int32_t d_acylinders; /* # of alt. cylinders per unit */
u_int16_t d_rpm; /* rotational speed */
u_int16_t d_interleave; /* hardware sector interleave */
u_int16_t d_trackskew; /* sector 0 skew, per track */
u_int16_t d_cylskew; /* sector 0 skew, per cylinder */
u_int32_t d_headswitch; /* head switch time, usec */
u_int32_t d_trkseek; /* track-to-track seek, usec */
u_int32_t d_flags; /* generic flags */
u_int32_t d_drivedata[5]; /* drive-type specific information */
u_int32_t d_spare[5]; /* reserved for future use */
u_int32_t d_magic2; /* the magic number (again) */
u_int16_t d_checksum; /* xor of data incl. partitions */
/* filesystem and partition information: */
u_int16_t d_npartitions; /* number of partitions in following */
u_int32_t d_bbsize; /* size of boot area at sn0, bytes */
u_int32_t d_sbsize; /* max size of fs superblock, bytes */
struct bsd_partition d_partitions[MAXPARTITIONS]; /* actually may be more */
};
struct canonical_partition
{
u_int64_t start, size;
int type;
};
static struct canonical_partition partitions[MAXPARTITIONS];
static int
read_dos_disklabel(int fd, u_int64_t disk_size)
{
struct dos_disklabel disklabel;
u_int64_t first_sector = 0;
u_int64_t extended_offset = 0;
int current_part = 0;
while (1)
{
int i, extended = -1;
if (lseek(fd, first_sector*512+MSDOS_LABEL_OFFSET, SEEK_SET) < 0)
return -1;
if (read(fd, &disklabel, sizeof(disklabel)) != sizeof(disklabel))
return -1;
if (disklabel.magic != MSDOS_DISKMAGIC)
return -2;
for (i = 0; i < 4; ++i)
{
u_int32_t p_start_sect, p_nr_sects, p_sys_ind;
p_start_sect = disklabel.d_partitions[i].start_sect;
p_nr_sects = disklabel.d_partitions[i].nr_sects;
p_sys_ind = disklabel.d_partitions[i].sys_ind;
if (p_nr_sects == 0)
continue;
if (p_sys_ind == MSDOS_FS_DOS_EXT
|| p_sys_ind == MSDOS_FS_WIN98_EXT
|| p_sys_ind == MSDOS_FS_LINUX_EXT)
{
if (extended == -1)
extended = i;
continue;
}
/* Check the 3rd and 4th entries -- these sometimes contain
random garbage. */
if (i >= 2
&& (p_start_sect + p_nr_sects > disk_size
|| first_sector + p_start_sect < first_sector
|| first_sector + p_start_sect + p_nr_sects < first_sector))
continue;
partitions[current_part].start = first_sector + p_start_sect;
partitions[current_part].size = p_nr_sects;
partitions[current_part].type = p_sys_ind;
current_part++;
}
if (extended < 0)
break;
if (current_part < 4)
current_part = 4;
first_sector =
extended_offset + disklabel.d_partitions[extended].start_sect;
if (extended_offset == 0)
{
disk_size = disklabel.d_partitions[extended].nr_sects;
extended_offset = first_sector;
}
}
return 0;
}
static int
read_bsd_disklabel(int fd, u_int64_t disk_size)
{
struct bsd_disklabel disklabel;
int max_partitions, i, j;
if (lseek(fd, BSD_LABEL_OFFSET, SEEK_SET) < 0)
return -1;
if (read(fd, &disklabel, sizeof(disklabel)) != sizeof(disklabel))
return -1;
if (disklabel.d_magic != BSD_DISKMAGIC
|| disklabel.d_magic2 != BSD_DISKMAGIC)
return -2;
max_partitions = disklabel.d_npartitions;
if (max_partitions > MAXPARTITIONS)
max_partitions = MAXPARTITIONS;
for (i = 0; i < max_partitions; ++i)
{
u_int64_t start, size;
int type;
if (disklabel.d_partitions[i].p_fstype == BSD_FS_UNUSED)
continue;
start = disklabel.d_partitions[i].p_offset;
size = disklabel.d_partitions[i].p_size;
for (j = 0; j < i; ++j)
{
if (partitions[j].type == 0)
continue;
/* No relationship -- try again. */
if (partitions[j].start + partitions[j].size <= start
|| partitions[j].start >= start + size)
continue;
/* Equal -- no need to add. */
if (partitions[j].start == start
&& partitions[j].size == size)
goto no_add;
/* BSD living in dos partition. */
if (partitions[j].start <= start
&& partitions[j].start + partitions[j].size >= start + size)
goto add;
/* Overlap. Don't try to add. */
goto no_add;
}
add:
partitions[i].start = start;
partitions[i].size = size;
switch (disklabel.d_partitions[i].p_fstype)
{
case BSD_FS_SWAP:
type = MSDOS_FS_LINUX_SWAP;
break;
case BSD_FS_EXT2:
type = MSDOS_FS_LINUX;
break;
case BSD_FS_BSDFFS:
type = MSDOS_FS_BSDI;
break;
default:
type = MSDOS_FS_UNKNOWN;
break;
}
partitions[i].type = type;
no_add:;
}
return 0;
}
static int
write_dos_disklabel(int fd)
{
return -2;
}
static int
write_bsd_disklabel(int fd)
{
struct bsd_disklabel disklabel;
int i, num_partitions;
memset(&disklabel, 0, sizeof(disklabel));
disklabel.d_magic = BSD_DISKMAGIC;
disklabel.d_magic2 = BSD_DISKMAGIC;
disklabel.d_type = BSD_DTYPE_SCSI;
memcpy(disklabel.d_typename, "SCSI", 4);
disklabel.d_secsize = 512;
num_partitions = 0;
for (i = 0; i < MAXPARTITIONS; ++i)
{
int type = partitions[i].type;
if (type == 0)
continue;
switch (type)
{
case MSDOS_FS_LINUX:
type = BSD_FS_EXT2;
break;
case MSDOS_FS_LINUX_SWAP:
type = BSD_FS_SWAP;
break;
case MSDOS_FS_BSDI:
type = BSD_FS_BSDFFS;
break;
default:
type = BSD_FS_UNKNOWN;
break;
}
disklabel.d_partitions[i].p_offset = partitions[i].start;
disklabel.d_partitions[i].p_size = partitions[i].size;
disklabel.d_partitions[i].p_fstype = type;
num_partitions = i+1;
}
disklabel.d_npartitions = num_partitions;
if (lseek(fd, BSD_LABEL_OFFSET, SEEK_SET) < 0)
return -1;
if (write(fd, &disklabel, sizeof(disklabel)) != sizeof(disklabel))
return -1;
return 0;
}
static void
print_partitions(void)
{
int i;
for (i = 0; i < MAXPARTITIONS; ++i)
{
if (partitions[i].type == 0)
continue;
printf("%2d %9ld %9ld %02x\n", i+1, partitions[i].start,
partitions[i].size, partitions[i].type);
}
}
static void __attribute__((noreturn))
usage(void)
{
fprintf(stderr, "\
Usage: labelcvt <option> <input device> [<output device>]\n\
Where option is one of\n\
--dos Convert to MSDOS disklabel\n\
--bsd Convert to BSD disklabel\n\
--print Print the current disklabel\n");
exit(1);
}
int
main(int ac, char **av)
{
int action, fd, outfd;
u_int64_t disk_size;
if (ac != 3 && ac != 4)
usage();
if (strcmp(av[1], "--dos") == 0)
action = 0;
else if (strcmp(av[1], "--bsd") == 0)
action = 1;
else if (strcmp(av[1], "--print") == 0)
action = 2;
else
usage();
fd = open(av[2], O_RDONLY);
if (fd < 0)
{
perror(av[2]);
exit(1);
}
if (action != 2)
{
outfd = open(av[ac-1], O_WRONLY|O_CREAT);
if (outfd < 0)
{
perror(av[ac-1]);
exit(1);
}
}
disk_size = -1;
switch (action)
{
case 0:
switch (read_bsd_disklabel(fd, disk_size))
{
case -1:
perror("read bsd disklabel");
exit(1);
case -2:
fprintf(stderr, "Not a BSD disklabel.\n");
exit(1);
}
switch (write_dos_disklabel(outfd))
{
case -1:
perror("write dos disklabel");
exit(1);
case -2:
fprintf(stderr, "Error writing DOS disklabel.\n");
exit(1);
}
break;
case 1:
switch (read_dos_disklabel(fd, disk_size))
{
case -1:
perror("read dos disklabel");
exit(1);
case -2:
fprintf(stderr, "Not a DOS disklabel.\n");
exit(1);
}
switch (write_bsd_disklabel(outfd))
{
case -1:
perror("write bsd disklabel");
exit(1);
case -2:
fprintf(stderr, "Error writing BSD disklabel.\n");
exit(1);
}
break;
case 2:
{
const char *current_type;
errno = 0;
switch (read_dos_disklabel(fd, disk_size))
{
case -1:
if (errno != 0)
{
perror("read dos disklabel");
exit(1);
}
/* FALLTHRU */
case -2:
switch (read_bsd_disklabel(fd, disk_size))
{
case -1:
perror("read bsd disklabel");
exit(1);
case -2:
fprintf(stderr, "Unknown disklabel format.\n");
exit(1);
default:
current_type = "BSD";
break;
}
break;
default:
current_type = "DOS";
break;
}
printf("Current format: %s\n", current_type);
print_partitions();
break;
}
}
exit(0);
}
[-- Attachment #3: Type: text/plain, Size: 6 bytes --]
>
>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-07 23:21 ` mgraffam
@ 1999-05-09 18:44 ` Jim Gettys
0 siblings, 0 replies; 20+ messages in thread
From: Jim Gettys @ 1999-05-09 18:44 UTC (permalink / raw)
To: axp-list; +Cc: mgraffam
> From: mgraffam@idsi.net
> Resent-From: axp-list@redhat.com
> Date: Fri, 7 May 1999 19:21:46 -0400 (EDT)
> To: axp-list@redhat.com
> Subject: Re: DEC-f77 to Linux
> -----
> On Fri, 7 May 1999, Jiann-Ming Su wrote:
>
> > Linux can run DU binaries now. To run some apps, you need the libraries.
> > Those have been written. It's all available. It wouldn't take a software
> > guy half a day to package it and have it on a ftp site. What are they
> > waiting on? Until I see it, those annoucements are no different than
> > vaporware. They were made to ride the Linux tide and cover their financial
> > problems, IMO.
>
> As has been said often on the list: ITS ABOUT LEGALITY. The libs contain
> encumbered code that DEC/Compaq can't legally release -- those portions
> of code need to be rewritten.
>
The Digital UNIX libraries contain code licensed from others.
We can't just package them up and give them away.
As the Digital compilers are ported to Linux to run native, they will
use the linux libraries (and/or the math libraries that are entirely
Digital developed: e.g. the portable math library recently made
available;) ergo this problem won't exist. Coming soon
to systems near you.
- Jim
^ permalink raw reply [flat|nested] 20+ messages in thread
* ORBS problem
1999-05-11 6:48 ` Helge Kreutzmann
@ 1999-05-10 23:59 ` khans
0 siblings, 0 replies; 20+ messages in thread
From: khans @ 1999-05-10 23:59 UTC (permalink / raw)
To: axp-list
Dear sir ,
I want to know the procedure to remove the ORBS from a Linux mail server.
Could u pls help me in this regard ?
Javaid Sajjad
E-mail :jsajjad@cyberaccess.com.pk
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-06 15:06 ` DEC-f77 to Linux Duccio Medini
1999-05-07 13:12 ` Matti Aarnio
@ 1999-05-11 3:45 ` Aron Skrypeck
1999-05-11 6:48 ` Helge Kreutzmann
1 sibling, 1 reply; 20+ messages in thread
From: Aron Skrypeck @ 1999-05-11 3:45 UTC (permalink / raw)
To: axp-list
Duccio Medini wrote:
>
> I saw at alphalinux a detailed set of instructions about running DU
> Netscape under Linux.
Where? I have looked on the www.alphalinux.org site and can find no
references to Netscape at all, neither DU nor any other variety. I am
interested, but apparently need a little more pointing in the right
direction! ;-)
thanks in advance,
Aron
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DEC-f77 to Linux
1999-05-11 3:45 ` Aron Skrypeck
@ 1999-05-11 6:48 ` Helge Kreutzmann
1999-05-10 23:59 ` ORBS problem khans
0 siblings, 1 reply; 20+ messages in thread
From: Helge Kreutzmann @ 1999-05-11 6:48 UTC (permalink / raw)
To: axp-list
Hallo
On Mon, 10 May 1999, Aron Skrypeck wrote:
<snip>
>>
>> I saw at alphalinux a detailed set of instructions about running DU
>> Netscape under Linux.
>
>Where? I have looked on the www.alphalinux.org site and can find no
>references to Netscape at all, neither DU nor any other variety. I am
http://www.alphalinux.org/faq/FAQ-18.html
<snip>
Helge
P.S. The FAQs contain lots of infos.
Helge.Kreutzmann@stud.uni-hannover.de
kreutzm@itp.uni-hannover.de
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~1999-05-11 15:48 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-06 11:12 Installed RedHat 5.2 on Alphaserver 1200 Jose Maria Lopez Lagunas
1999-05-06 11:59 ` Rich Payne
1999-05-06 15:06 ` DEC-f77 to Linux Duccio Medini
1999-05-07 13:12 ` Matti Aarnio
1999-05-07 14:10 ` Craig P Prescott
1999-05-07 14:42 ` Todd Henderson
1999-05-07 16:24 ` Greg Lindahl
1999-05-07 20:44 ` Jiann-Ming Su
1999-05-07 22:24 ` Greg Lindahl
1999-05-07 23:09 ` Jiann-Ming Su
1999-05-07 23:16 ` Greg Lindahl
1999-05-07 23:21 ` mgraffam
1999-05-09 18:44 ` Jim Gettys
1999-05-11 3:45 ` Aron Skrypeck
1999-05-11 6:48 ` Helge Kreutzmann
1999-05-10 23:59 ` ORBS problem khans
1999-05-06 15:17 ` Installed RedHat 5.2 on Alphaserver 1200 Edwin Hakkennes
1999-05-07 10:37 ` Jose Maria Lopez Lagunas
1999-05-08 23:58 ` disklabel converter [Re: Installed RedHat 5.2 on Alphaserver 1200] Richard Henderson
1999-05-09 1:48 ` Larry Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox