Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* The aboot - Jensen saga
@ 1996-05-06 13:31 Ben Taylor
  0 siblings, 0 replies; 9+ messages in thread
From: Ben Taylor @ 1996-05-06 13:31 UTC (permalink / raw)


I have a Jensen axp box that I got running last week, with the
help of the instructions on the Dec site.  It wasn't pretty,
but then the install went smoothly over nfs.

I've got one of the later kernels, and it built cleanly.  How
do I use it with the Jensen.  I already roached the partition
once and had to reinstall.  Not fun.  I've tried aboot-0.3x,
but it won't compile cleanly.  Anyone who has the magic cookie
to make this work would be appreciated.

Thanks

Ben Taylor
Smoke N' Mirrors, Inc.
bent@snm.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: The aboot - Jensen saga
@ 1996-05-06 14:19 David Mosberger-Tang
  0 siblings, 0 replies; 9+ messages in thread
From: David Mosberger-Tang @ 1996-05-06 14:19 UTC (permalink / raw)


>>>>> On Mon, 6 May 1996 09:31:09 -0400 (EDT), Ben Taylor <bent@snm.com> said:

  Ben> I have a Jensen axp box that I got running last week, with the
  Ben> help of the instructions on the Dec site.  It wasn't pretty,
  Ben> but then the install went smoothly over nfs.

  Ben> I've got one of the later kernels, and it built cleanly.  How
  Ben> do I use it with the Jensen.  I already roached the partition
  Ben> once and had to reinstall.  Not fun.  I've tried aboot-0.3x,
  Ben> but it won't compile cleanly.  Anyone who has the magic cookie
  Ben> to make this work would be appreciated.

Can you make do with the Red Hat RPM of aboot for now?  There were
some recent kernel changes that make aboot fail to compile.  I'll fix
that soon, but I don't have time right now.  The new aboot will also
make it possible to boot Linux via net (courtesy of Dave Larson
@cs.arizona.edu).

	--david

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: The aboot - Jensen saga
       [not found] <199605061419.HAA20908@koala.azstarnet.com>
@ 1996-05-06 14:28 ` Ben Taylor
  1996-05-06 14:44 ` Erik Troan
  1 sibling, 0 replies; 9+ messages in thread
From: Ben Taylor @ 1996-05-06 14:28 UTC (permalink / raw)


On Mon, 6 May 1996, David Mosberger-Tang wrote:

>   Ben> I've got one of the later kernels, and it built cleanly.  How
>   Ben> do I use it with the Jensen.  I already roached the partition
>   Ben> once and had to reinstall.  Not fun.  I've tried aboot-0.3x,
>   Ben> but it won't compile cleanly.  Anyone who has the magic cookie
>   Ben> to make this work would be appreciated.
> 
> Can you make do with the Red Hat RPM of aboot for now?  There were
> some recent kernel changes that make aboot fail to compile.  I'll fix
> that soon, but I don't have time right now.  The new aboot will also
> make it possible to boot Linux via net (courtesy of Dave Larson
> @cs.arizona.edu).

Well, I have the 1.3.98 kernel source, and all the links appear to
be good.  I still get the same compilation problems.  Should I 
go back a few revs on the kernel?

> 
> 	--david
> 

Ben

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: The aboot - Jensen saga
       [not found] <199605061419.HAA20908@koala.azstarnet.com>
  1996-05-06 14:28 ` The aboot - Jensen saga Ben Taylor
@ 1996-05-06 14:44 ` Erik Troan
  1 sibling, 0 replies; 9+ messages in thread
From: Erik Troan @ 1996-05-06 14:44 UTC (permalink / raw)


On Mon, 6 May 1996, David Mosberger-Tang wrote:

> Can you make do with the Red Hat RPM of aboot for now?  There were
> some recent kernel changes that make aboot fail to compile.  I'll fix
> that soon, but I don't have time right now.  The new aboot will also
> make it possible to boot Linux via net (courtesy of Dave Larson
> @cs.arizona.edu).

There isn't one David.... To make aboot work well you need to configure
it for your system (I think), so I never bothered building it as a package.

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] 9+ messages in thread

* Re: The aboot - Jensen saga
@ 1996-05-06 14:56 David Mosberger-Tang
  0 siblings, 0 replies; 9+ messages in thread
From: David Mosberger-Tang @ 1996-05-06 14:56 UTC (permalink / raw)


>>>>> On Mon, 6 May 1996 10:28:04 -0400 (EDT), Ben Taylor <bent@snm.com> said:

  Ben> Well, I have the 1.3.98 kernel source, and all the links appear
  Ben> to be good.  I still get the same compilation problems.  Should
  Ben> I go back a few revs on the kernel?

That would fix it.  Trouble is, I don't know how far you'd have to go
back.  Below is a patch that should get you at least closer to a
compiling aboot.

	--david

---
--- utils.c~	Wed Jan  3 19:11:12 1996
+++ utils.c	Fri Apr 19 09:05:23 1996
@@ -137,7 +137,7 @@
 	printk(" version %ld.%ld\n", (rev >> 8) & 0xff, rev & 0xff);
 	/* remove the old virtual page-table mapping */
 	L1[1] = 0;
-	invalidate_all();
+	flush_tlb_all();
 }
 
 
--- fs/ext2.c~	Mon Oct 30 17:23:45 1995
+++ fs/ext2.c	Fri Apr 19 09:03:24 1996
@@ -6,6 +6,12 @@
  * This file has been ported from the DEC 32-bit Linux version
  * by David Mosberger (davidm@cs.arizona.edu).
  */
+#include <linux/types.h>
+
+#undef __KERNEL__
+#include <linux/ext2_fs.h>
+#define __KERNEL__
+
 #include <linux/fs.h>
 #include <linux/string.h>
 
@@ -14,9 +20,6 @@
 #include "disklabel.h"
 #include "utils.h"
 
-#undef __KERNEL__
-#include <linux/ext2_fs.h>
-
 #define MAX_SUPPORTED_GROUPS	128		/* supports 1GB filesystem */
 #define MAX_OPEN_FILES		4
 
@@ -25,6 +28,7 @@
 static struct ext2_super_block sb;
 static struct ext2_group_desc gds[MAX_SUPPORTED_GROUPS];
 static int ngroups = 0;
+static int blocksize;				/* Block size of this fs */
 static int directlim;			/* Maximum direct blkno */
 static int ind1lim;			/* Maximum single-indir blkno */
 static int ind2lim;			/* Maximum double-indir blkno */
@@ -96,9 +100,9 @@
 	 * Calculate direct/indirect block limits for this file system
 	 * (blocksize dependent):
 	 */
-	ext2fs.blocksize = EXT2_BLOCK_SIZE(&sb);
+	blocksize = EXT2_BLOCK_SIZE(&sb);
 	directlim = EXT2_NDIR_BLOCKS - 1;
-	ptrs_per_blk = ext2fs.blocksize/sizeof(unsigned int);
+	ptrs_per_blk = blocksize/sizeof(unsigned int);
 	ind1lim = ptrs_per_blk + directlim;
 	ind2lim = (ptrs_per_blk * ptrs_per_blk) + directlim;
 
@@ -132,7 +136,7 @@
 	}
 
 	group = ino / sb.s_inodes_per_group;
-	offset = partition_offset + (gds[group].bg_inode_table * ext2fs.blocksize)
+	offset = partition_offset + (gds[group].bg_inode_table * blocksize)
 	  + (((ino-1) % sb.s_inodes_per_group) * sizeof(struct ext2_inode));
 	if (cons_read(dev, ip, sizeof(struct ext2_inode), offset) 
 	    != sizeof(struct ext2_inode))
@@ -203,9 +207,9 @@
 
 		/* Read the indirect block */
 		if (cached_iblkno != iblkno) {
-			offset = partition_offset + iblkno * ext2fs.blocksize;
-			if (cons_read(dev, iblkbuf, ext2fs.blocksize, offset)
-			    != ext2fs.blocksize)
+			offset = partition_offset + iblkno * blocksize;
+			if (cons_read(dev, iblkbuf, blocksize, offset)
+			    != blocksize)
 			{
 				printk("ext2_blkno: error on iblk read\n");
 				return 0;
@@ -228,9 +232,9 @@
 
 		/* Read in the double-indirect block */
 		if (cached_diblkno != diblkno) {
-			offset = partition_offset + diblkno * ext2fs.blocksize;
-			if (cons_read(dev, diblkbuf, ext2fs.blocksize, offset)
-			    != ext2fs.blocksize)
+			offset = partition_offset + diblkno * blocksize;
+			if (cons_read(dev, diblkbuf, blocksize, offset)
+			    != blocksize)
 			{
 				printk("ext2_blkno: err reading dindr blk\n");
 				return 0;
@@ -248,9 +252,9 @@
 		/* Read the indirect block */
     
 		if (cached_iblkno != iblkno) {
-			offset = partition_offset + iblkno * ext2fs.blocksize;
-			if (cons_read(dev, iblkbuf, ext2fs.blocksize, offset)
-			    != ext2fs.blocksize)
+			offset = partition_offset + iblkno * blocksize;
+			if (cons_read(dev, iblkbuf, blocksize, offset)
+			    != blocksize)
 			{
 				printk("ext2_blkno: err on iblk read\n");
 				return 0;
@@ -277,8 +281,8 @@
 	long dev_blkno, ncontig, offset, nbytes, tot_bytes;
 
 	tot_bytes = 0;
-	if ((blkno+nblks)*ext2fs.blocksize > ip->i_size)
-		nblks = (ip->i_size + ext2fs.blocksize) / ext2fs.blocksize - blkno;
+	if ((blkno+nblks)*blocksize > ip->i_size)
+		nblks = (ip->i_size + blocksize) / blocksize - blkno;
 
 	while (nblks) {
 		/*
@@ -289,7 +293,7 @@
 		dev_blkno = ext2_blkno(ip, blkno);
 		do {
 			++blkno; ++ncontig; --nblks;
-			nbytes += ext2fs.blocksize;
+			nbytes += blocksize;
 		} while (nblks &&
 			 ext2_blkno(ip, blkno) == dev_blkno + ncontig);
 
@@ -298,7 +302,7 @@
 			memset(buffer, 0, nbytes);
 		} else {
 			/* Read it for real */
-			offset = partition_offset + dev_blkno*ext2fs.blocksize;
+			offset = partition_offset + dev_blkno*blocksize;
 			if (cons_read(dev, buffer, nbytes, offset)
 			    != nbytes)
 			{
@@ -343,13 +347,13 @@
 		while (diroffset < dir_inode->i_size) {
 			blockoffset = 0;
 			if (ext2_breadi(dir_inode,
-					diroffset / ext2fs.blocksize, 1,
+					diroffset / blocksize, 1,
 					blkbuf)
 			    < 0)
 			{
 				return NULL;
 			}
-			while (blockoffset < ext2fs.blocksize) {
+			while (blockoffset < blocksize) {
 				dp = (struct ext2_dir_entry *)
 				  (blkbuf + blockoffset);
 				if ((dp->name_len == component_length) &&
@@ -372,7 +376,7 @@
 			 * component.  Try the next block in this
 			 * directory...
 			 */
-			diroffset += ext2fs.blocksize;
+			diroffset += blocksize;
 		}
 
 		/*

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: The aboot - Jensen saga
@ 1996-05-06 15:23 David Mosberger-Tang
  0 siblings, 0 replies; 9+ messages in thread
From: David Mosberger-Tang @ 1996-05-06 15:23 UTC (permalink / raw)


>>>>> On Mon, 6 May 1996 10:44:11 -0400 (EDT), Erik Troan <ewt@redhat.com> said:

  Erik> On Mon, 6 May 1996, David Mosberger-Tang wrote:
  >> Can you make do with the Red Hat RPM of aboot for now?  There
  >> were some recent kernel changes that make aboot fail to compile.
  >> I'll fix that soon, but I don't have time right now.  The new
  >> aboot will also make it possible to boot Linux via net (courtesy
  >> of Dave Larson @cs.arizona.edu).

  Erik> There isn't one David.... To make aboot work well you need to
  Erik> configure it for your system (I think), so I never bothered
  Erik> building it as a package.

Hmmh, aboot should be pretty much system indepedent---that's what SRM
is for.  But if I'm missing something, please let me know so i can fix
it.

	--david

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: The aboot - Jensen saga
       [not found] <Pine.GSO.3.93.960506092659.25908A-100000@mageworks.snm.com>
@ 1996-05-06 17:50 ` Jim Paradis
  0 siblings, 0 replies; 9+ messages in thread
From: Jim Paradis @ 1996-05-06 17:50 UTC (permalink / raw)


> I've got one of the later kernels, and it built cleanly.  How
> do I use it with the Jensen.  I already roached the partition
> once and had to reinstall.  Not fun.  I've tried aboot-0.3x,
> but it won't compile cleanly.  Anyone who has the magic cookie
> to make this work would be appreciated.

Well, if you're *not* using aboot and you have a separate mini-partition
already set aside for the kernel (as was suggested in the Jensen-HOWTO),
then you can simply do

	make BOOTDEV=/dev/sda srmboot 

in the kernel source tree and everything *should* turn out okay.

This assumes that your bootable kernel is on /dev/sda1  If it's on /dev/sdb1,
say "make BOOTDEV=/dev/sdb srmboot", and so on.

-- 
Jim Paradis (paradis@amt.tay1.dec.com)        "It's not procrastination, 
Digital Equipment Corporation		       it's my new Just-In-Time 
(508)952-4047				       Workload Management System!"
http://www.tiac.net/users/jrp/index.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: The aboot - Jensen saga
@ 1996-05-07  8:32 Martin Ostermann
  0 siblings, 0 replies; 9+ messages in thread
From: Martin Ostermann @ 1996-05-07  8:32 UTC (permalink / raw)


>>>>> In article <199605061523.IAA21140@koala.azstarnet.com>, David Mosberger-Tang <davidm@AZStarNet.com> writes:

>>>>> On Mon, 6 May 1996 10:44:11 -0400 (EDT), Erik Troan <ewt@redhat.com> said:
Erik> On Mon, 6 May 1996, David Mosberger-Tang wrote:

Erik> There isn't one David.... To make aboot work well you need to
Erik> configure it for your system (I think), so I never bothered
Erik> building it as a package.

> Hmmh, aboot should be pretty much system indepedent---that's what SRM
> is for.  But if I'm missing something, please let me know so i can fix
> it.

I think it's the location of the `aboot.conf' file, which is hardcoded
into aboot. Machine independent, but still not as static as needed for
an rpm package, I guess.

Martin

-- 
Martin Ostermann                | mailto:ost@comnets.rwth-aachen.de
Communication Networks          | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany                         | faxto:++49/241/8890378

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: The aboot - Jensen saga
@ 1996-05-08 23:39 Michael Schwingen
  0 siblings, 0 replies; 9+ messages in thread
From: Michael Schwingen @ 1996-05-08 23:39 UTC (permalink / raw)


[sorry, I read this via the WWW-interface because I just joined this
list]

>> Hmmh, aboot should be pretty much system indepedent---that's what SRM
>> is for. But if I'm missing something, please let me know so i can fix
>> it.
>
>I think it's the location of the `aboot.conf' file, which is hardcoded
>into aboot. Machine independent, but still not as static as needed for
>an rpm package, I guess.

Right. It works fine to get a Jensen running, but currently, you have to
compile aboot yourself to get the autoboot to work.

Another problem is that minlabel/copyboot  and  swriteboot  disagree  where  to
write the boot code:  copyboot  writes  it  to the first partition of the disk,
while swriteboot checks that the spaceit is about to overwrite does not overlap
with any partition. This can be easily changed.

I will fix this as soon as I find time - I hope RSN.

cu
Michael

-- 
Michael Schwingen                       <m.schwingen@stochastik.rwth-aachen.de>
Institut fuer Statistik und Wirtschaftsmathematik, | In the beginning there was
Wuellnerstr. 3, 52056 Aachen                       | nothing, which exploded.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1996-05-08 23:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <199605061419.HAA20908@koala.azstarnet.com>
1996-05-06 14:28 ` The aboot - Jensen saga Ben Taylor
1996-05-06 14:44 ` Erik Troan
1996-05-08 23:39 Michael Schwingen
  -- strict thread matches above, loose matches on Subject: below --
1996-05-07  8:32 Martin Ostermann
     [not found] <Pine.GSO.3.93.960506092659.25908A-100000@mageworks.snm.com>
1996-05-06 17:50 ` Jim Paradis
1996-05-06 15:23 David Mosberger-Tang
1996-05-06 14:56 David Mosberger-Tang
1996-05-06 14:19 David Mosberger-Tang
1996-05-06 13:31 Ben Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox