* aboot 0.9b
@ 2002-11-13 21:10 Will Woods
2002-11-13 23:54 ` Michal Jaegermann
0 siblings, 1 reply; 6+ messages in thread
From: Will Woods @ 2002-11-13 21:10 UTC (permalink / raw)
To: axp-list
Hey all, your friendly aboot maintainer here. As Kelledin noticed, yes, aboot
0.9a doesn't compile with gcc 3.x / newer glibc releases. There is a bugfix
for this in CVS. There is a prerelease tarball of aboot 0.9b available here:
http://aboot.sourceforge.net/tarballs/aboot-0.9bpre.tar.bz2
I've tested it on a bunch of machines but I want to make sure everyone is
satisfied that my fixes are complete and correct before I release 0.9b.
So: test, share, and enjoy!
-will
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: aboot 0.9b
2002-11-13 21:10 aboot 0.9b Will Woods
@ 2002-11-13 23:54 ` Michal Jaegermann
2002-11-14 4:40 ` Alan Young
2002-11-14 7:57 ` Helge Kreutzmann
0 siblings, 2 replies; 6+ messages in thread
From: Michal Jaegermann @ 2002-11-13 23:54 UTC (permalink / raw)
To: axp-list; +Cc: Will Woods
On Wed, Nov 13, 2002 at 04:10:02PM -0500, Will Woods wrote:
> There is a prerelease tarball of aboot 0.9b available here:
>
> http://aboot.sourceforge.net/tarballs/aboot-0.9bpre.tar.bz2
>
I do not see really much difference, with an exception of -fno-builtins
added flag, with what I was using in recent times. Anyway, it compiles
without fuss with my gcc-2.96-108.7.2.
Two comments though.
Helge Kreutzmann did quite a bit of updates to various aboot releated
manpages and annouced that on this list. Here is annoucement:
http://www.lib.uaa.alaska.edu/axp-list/archive/2002-09/0019.html
and here is the last version of updates:
http://www.itp.uni-hannover.de/%7Ekreutzm/data/aboot_manpages_20020904.tar.bz2
It seems that some of her work was included but why not all? Or this is
an older version of her stuff? Updates to aboot.8 and aboot.conf.8, in
particular, are missing.
The other thing is in a category of "convenient to have". This is
an extension which allows to load initrd from an ATAPI CD even if
booting from another device - like floppy. Not only this is much
faster but also allows for a bigger images then what you can fit
on a floppy. :-) It is used like that:
..... initrd=hdc:/image/ramdisk.img
Extending that to other devices, like SCSI CDs, would be possible but
not very "practical". Look at the code to see why. Probably covers
most often occuring nowadays cases. Partitions of IDE hard disks are a
bonus. :-) If somebody has ideas how to cleanly expand that this would
be nice. The patch is below (used "for real" for quite a while). It is
for 0.9a but it applies cleanly to the current code. This file did not
change at all.
Michal
diff -ur aboot-0.9a.orig/disk.c aboot-0.9a/disk.c
--- aboot-0.9a.orig/disk.c Tue Oct 9 14:45:57 2001
+++ aboot-0.9a/disk.c Tue Apr 16 17:38:14 2002
@@ -724,10 +724,19 @@
}
}
+#define BUFLEN 256
+
+/*
+ * Added code for loading initrd from ATAPI CD-ROM
+ * basically from H.M.Seo but with bug fixes. -- -mj
+ */
static long
load (long dev)
{
char *fname;
+ char envval[BUFLEN] = "";
+ char temp[BUFLEN] = "";
+ int i, partition = 0;
#ifdef DEBUG
printf("load(%lx)\n", dev);
@@ -758,10 +767,71 @@
if (initrd_file[0] == 0)
return 0;
- /* work around a bug in the ext2 code */
- bfs = mount_fs(dev, boot_part);
+ bfs = 0;
+ for ( i = 0; i < strlen(initrd_file); i++ )
+ {
+ if ( initrd_file[i] == ':' )
+ {
+ if ( strncmp(initrd_file, "hda", 3) == 0 )
+ strcpy(envval, "IDE 0 16 0 0 0 0 0");
+ else if ( strncmp(initrd_file, "hdb", 3) == 0 )
+ strcpy(envval, "IDE 0 16 0 1 1 0 0");
+ else if ( strncmp(initrd_file, "hdc", 3) == 0 )
+ strcpy(envval, "IDE 0 16 1 0 0 0 0");
+ else if ( strncmp(initrd_file, "hdd", 3) == 0 )
+ strcpy(envval, "IDE 0 16 1 1 1 0 0");
+ else {
+ printf("Not supported device for initrd \n");
+ break;
+ }
+
+ if ( i == 3 )
+ partition = 1;
+ else if ( i == 4 )
+ partition = (int)(initrd_file[3]) - '0';
+ else {
+ printf("aboot: initrd partition %s error, "
+ "only \"single digit\" partitions supported\n",
+ initrd_file);
+ return -1;
+ }
+
+ if ( partition >= 10 ) {
+ printf("aboot: initrd partition %d error \n",
+ partition);
+ return -1;
+ }
+
+ strcpy(temp, initrd_file);
+ /* shift it down and make sure it is terminated */
+ strncpy(initrd_file, &temp[i + 1], BUFLEN - 1 - i);
+ initrd_file[BUFLEN - 1 - i] = '\0';
+
+ printf("aboot: envval = %s, partition = %d, "
+ "initrd_file = %s \n",
+ envval, partition, initrd_file);
+ dev = cons_open(envval);
+ if (dev < 0) {
+ printf("aboot: unable to open initrd "
+ "device `%s': %lx\n", envval, dev);
+ return -1;
+ }
+ dev &= 0xffffffff;
+ get_disklabel(dev);
+ bfs = mount_fs(dev, partition);
+ break;
+ }
+ }
+ /* We try to open this if there was no ':' in initrd specification */
+ if ( 0 == bfs && 0 == partition) {
+ partition = boot_part;
+ /* work around a bug in the ext2 code */
+ bfs = mount_fs(dev, partition);
+ }
+
+
if (!bfs) {
- printf("aboot: mount of partition %d failed\n", boot_part);
+ printf("aboot: mount of partition %d failed\n", partition);
return -1;
}
if (read_initrd() < 0) {
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: aboot 0.9b
2002-11-13 23:54 ` Michal Jaegermann
@ 2002-11-14 4:40 ` Alan Young
2002-11-14 5:53 ` Michal Jaegermann
2002-11-14 7:57 ` Helge Kreutzmann
1 sibling, 1 reply; 6+ messages in thread
From: Alan Young @ 2002-11-14 4:40 UTC (permalink / raw)
To: axp-list; +Cc: michal, will.woods
On Wed, 13 Nov 2002 16:54:54 -0700 Michal Jaegermann
<michal@ellpspace.math.ualberta.ca> wrote:
>
> Partitions of IDE hard disks are a bonus. :-)
Do you mean DOS style partitions?
If so, I did a patch awhile ago for aboot 0.7a to allow it to recognize the first four DOS
partitions on a disk. I can update it for 0.9 and submit it.
Alan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: aboot 0.9b
2002-11-14 4:40 ` Alan Young
@ 2002-11-14 5:53 ` Michal Jaegermann
0 siblings, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 2002-11-14 5:53 UTC (permalink / raw)
To: axp-list
On Wed, Nov 13, 2002 at 08:40:12PM -0800, Alan Young wrote:
> On Wed, 13 Nov 2002 16:54:54 -0700 Michal Jaegermann
> <michal@ellpspace.math.ualberta.ca> wrote:
> >
> > Partitions of IDE hard disks are a bonus. :-)
>
> Do you mean DOS style partitions?
No, not really. What I meant that you can use specifications like
'initrd=hda1:something' hence these are those partitions which are seen
by your firmware. This really implies "disklabel" partitioning and
those file systems which are recognized by an aboot code (in practice
for a hard disk a subset of ext2/ext3). From the patch I posted one can
see that there are obvious limitations (only four IDE devices and "one
digit" partitions); mostly because that is easy and you want to keep a
bootloader code rather simple.
This was done that way as basically it is "for free" on the top of other
stuff and is pretty useful for development/testing. Adding some
extra "custom" device is not a problem. Doing that in a full
generality becomes hairy.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: aboot 0.9b
2002-11-13 23:54 ` Michal Jaegermann
2002-11-14 4:40 ` Alan Young
@ 2002-11-14 7:57 ` Helge Kreutzmann
2002-11-14 16:57 ` Michal Jaegermann
1 sibling, 1 reply; 6+ messages in thread
From: Helge Kreutzmann @ 2002-11-14 7:57 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]
Hello,
On Wed, Nov 13, 2002 at 04:54:54PM -0700, Michal Jaegermann wrote:
> Helge Kreutzmann did quite a bit of updates to various aboot releated
> manpages and annouced that on this list. Here is annoucement:
>
> http://www.lib.uaa.alaska.edu/axp-list/archive/2002-09/0019.html
>
> and here is the last version of updates:
>
> http://www.itp.uni-hannover.de/%7Ekreutzm/data/aboot_manpages_20020904.tar.bz2
>
> It seems that some of her work was included but why not all? Or this is
> an older version of her stuff? Updates to aboot.8 and aboot.conf.8, in
> particular, are missing.
This would also remove item 1 of your TODO list. If there is anything
in the man pages you are not happy with please tell me so I can fix
it. And btw. it is "his" stuff (I know Helge is a seldom name).
> Extending that to other devices, like SCSI CDs, would be possible but
> not very "practical". Look at the code to see why. Probably covers
Not "practical" or "difficult" ? If the former I'd might ask some
friend who might add it (because I do have an SCSI CD-ROM as have some
of our alphas at work).
Thanks
Helge
--
Helge Kreutzmann, Dipl.-Phys. Helge.Kreutzmann@itp.uni-hannover.de
gpg signed mail preferred gpg-key: finger kreutzm@rigel.itp.uni-hannover.de
64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm
Help keep free software "libre": http://www.freepatents.org/
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: aboot 0.9b
2002-11-14 7:57 ` Helge Kreutzmann
@ 2002-11-14 16:57 ` Michal Jaegermann
0 siblings, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 2002-11-14 16:57 UTC (permalink / raw)
To: axp-list
> And btw. it is "his" stuff (I know Helge is a seldom name).
Oops! Sorry. I did not realize that there is also a masculine variant.
>
> > Extending that to other devices, like SCSI CDs, would be possible but
> > not very "practical". Look at the code to see why. Probably covers
>
> Not "practical" or "difficult" ?
Not "difficult" in principle. The way this is done you can add a long
list of all possible devices and a corresponding data to copy to
'envval'. But if you can expect four "main" IDE devices (this means no
extra IDE controllers) for ATAPI CDs there is a big variety if you will
go beyond that list. Adding that particular thing you have on hands is
not an issue in your private variant but making this work everywhere is
another story.
Maybe there is some smarter way to do the later? It did not seem to be
a really pressing need to push that so far but checking with SRM what is
really available seems like a possibility. Keep in mind that this is
just a convenience, which is sometimes nice to have, but nothing really
vital to the whole operation.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-11-14 16:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-13 21:10 aboot 0.9b Will Woods
2002-11-13 23:54 ` Michal Jaegermann
2002-11-14 4:40 ` Alan Young
2002-11-14 5:53 ` Michal Jaegermann
2002-11-14 7:57 ` Helge Kreutzmann
2002-11-14 16:57 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox