Re: working on the Alpha port
> On Sat, 14 Dec 2002 15:11:44 +1100 > "HX" == Herbert Xu <[EMAIL PROTECTED]> wrote: HX> HX> Sorry, that patch is broken. Please try this one instead. Not sure I will have a chance soon :( Could not be said, this is completely your fault, though. -- Alexander Kotelnikov Saint-Petersburg, Russia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
On Sat, Dec 14, 2002 at 06:56:54AM +0300, Alexander Kotelnikov wrote: > > And it (patch) did not helped me to load initrd image from a second > floppy. The boot process looks like > > aboot: loading compressed boot/vmlinuz... > aboot: zero-filling 499656 bytes at 0xfca32ba8 > Please insert the floppy disk with the INITRD image. > Press ENTER to continue... > halted CPU 0 > > halt code = 2 > kernel stack not valid halt > PC = 2 Sorry, that patch is broken. Please try this one instead. -- Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --- disk.c.orig 2002-12-13 22:41:46.0 +1100 +++ disk.c 2002-12-13 22:41:48.0 +1100 @@ -758,6 +758,10 @@ if (initrd_file[0] == 0) return 0; + printf("Please insert the floppy disk with the INITRD image.\n"); + printf("Press ENTER to continue... "); + getline(0, 0); + /* work around a bug in the ext2 code */ bfs = mount_fs(dev, boot_part); if (!bfs) { --- utils.c.orig2002-12-14 15:06:54.0 +1100 +++ utils.c 2002-12-14 15:06:43.0 +1100 @@ -233,5 +233,7 @@ break; } } while (c != 13 && c != 10); - buf[len] = 0; + if (buf) { + buf[len] = 0; + } }
Re: working on the Alpha port
> On Fri, 13 Dec 2002 22:47:15 +1100 > "HX" == Herbert Xu <[EMAIL PROTECTED]> wrote: HX> HX> On Fri, Dec 13, 2002 at 12:58:31AM +0100, Falk Hueffner wrote: >> >> Hmm, it looks like aboot doesn't support loading the initrd from a >> different floppy than the kernel. (I've only looked at the source, >> though, not really tried it.) So we could either hack aboot, or get >> back to load_ramdisk. What do you think? HX> HX> It is trivial to get aboot to support it. See attached patch. I would like to warn everyone about this patch. I do *not* insist, but it is possible, that it made my PWS 600au almost dead. Hope it is recoverable, but for now it even do not enter SRM console. Again: I am not any sure, Herbert's patch is the reason, but it could be. And it (patch) did not helped me to load initrd image from a second floppy. The boot process looks like aboot: loading compressed boot/vmlinuz... aboot: zero-filling 499656 bytes at 0xfca32ba8 Please insert the floppy disk with the INITRD image. Press ENTER to continue... halted CPU 0 halt code = 2 kernel stack not valid halt PC = 2 >>> A debug print I' have added right after getline(0,0) does not appear on console, and this is very strange. Even may be system does not expect floppy change at the moment of "Please insert the floppy disk with the INITRD image.", because the LED on floppy drive is always on. -- Alexander Kotelnikov Saint-Petersburg, Russia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
On Fri, Dec 13, 2002 at 12:58:31AM +0100, Falk Hueffner wrote: > > Hmm, it looks like aboot doesn't support loading the initrd from a > different floppy than the kernel. (I've only looked at the source, > though, not really tried it.) So we could either hack aboot, or get > back to load_ramdisk. What do you think? It is trivial to get aboot to support it. See attached patch. > BTW, are you planning on creating any Alpha kernel images udebs? They're already in the archive. -- Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --- disk.c.orig 2002-12-13 22:41:46.0 +1100 +++ disk.c 2002-12-13 22:41:48.0 +1100 @@ -758,6 +758,10 @@ if (initrd_file[0] == 0) return 0; + printf("Please insert the floppy disk with the INITRD image.\n"); + printf("Press ENTER to continue... "); + getline(0, 0); + /* work around a bug in the ext2 code */ bfs = mount_fs(dev, boot_part); if (!bfs) {
Re: working on the Alpha port
On Thu, Dec 12, 2002 at 11:32:17PM +0100, Falk Hueffner wrote: > > > > ML> CONFIG_BLK_DEV_FD=m > > > ML> > > > ML> I guess that is the problem. > > > > > > Ah.. almost sure it is. > > > > What boot loader are you using? It should be loading the initrd, not > > the kernel. > > Shouldn't it be compiled in anyway? People might want to load > additional drivers/plugins/whatever from floppy. No, that's what floppy-udeb is for. -- Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
Falk Hueffner <[EMAIL PROTECTED]> writes: > Herbert Xu <[EMAIL PROTECTED]> writes: > >> > ML> Alexander Kotelnikov <[EMAIL PROTECTED]> writes: >> > >> I have faced a problem with booting from two disks. The trouble seems >> > >> to be in Herbert's kernel, since mine boots and loads debian-installer >> > >> initrd image. >> > ML> CONFIG_BLK_DEV_FD=m >> > ML> >> > ML> I guess that is the problem. >> > >> > Ah.. almost sure it is. >> >> What boot loader are you using? It should be loading the initrd, not >> the kernel. Does syslinux support that? Never saw it anywhere. Note that we're wanting to load the initrd from a second disk, so the boot loader would need to support disk-change and so on... > Shouldn't it be compiled in anyway? People might want to load > additional drivers/plugins/whatever from floppy. Yes, floppy-retriever on a net-1440 floppy would be useful IMHO. Just dumping a udeb on a floppy seems like a convenient way to load additional drivers and such. -- CYa, Mario -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
> On Fri, 13 Dec 2002 02:09:16 +0100 > "DW" == David Weinehall <[EMAIL PROTECTED]> wrote: DW> DW> I think there's quite a lot of things that can be done to a standard DW> 2.4-kernel to decrease its size. Now, I don't have an alpha, so I can't DW> test my changes directly, but I'll have a look at the source and see DW> if I can come up with something to shave off a 100k or so. Would DW> that be enough, or would you need even further shaving? make build reports me Initrd size: 790k This leaves 650K for other needs. Minus ~90K for aboot = 560K. Not too much. -- Alexander Kotelnikov Saint-Petersburg, Russia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
On Thu, Dec 12, 2002 at 05:06:05PM +0300, Alexander Kotelnikov wrote: > > On Tue, 10 Dec 2002 22:58:01 -0500 > > "NLM" == Noah L Meyerhans <[EMAIL PROTECTED]> wrote: > NLM> > NLM> On Tue, Dec 10, 2002 at 09:04:57PM -0500, Joey Hess wrote: > >> I don't know how far over alpha is, but fitting on a PC floppy might be > >> too much to ask of architectures with 64 bit code. You can always go the > >> two floppy route if you need to.. > NLM> > NLM> The i386 kernel from the recent alpha snapshot is roughly half the size > NLM> of the Alpha kernel I'm working with. The initrd image is slightly > > current i386 is about 650K, alpha ~ 930K. The smallest working alpha > kernel I have created was 830K. This leaves ~600K for a compressed > initrd.img. This is not enough, also. I think there's quite a lot of things that can be done to a standard 2.4-kernel to decrease its size. Now, I don't have an alpha, so I can't test my changes directly, but I'll have a look at the source and see if I can come up with something to shave off a 100k or so. Would that be enough, or would you need even further shaving? Regards: David Weinehall -- /> David Weinehall <[EMAIL PROTECTED]> /> Northern lights wander <\ // Maintainer of the v2.0 kernel // Dance across the winter sky // \> http://www.acc.umu.se/~tao/
Re: working on the Alpha port
Herbert Xu <[EMAIL PROTECTED]> writes: > On Thu, Dec 12, 2002 at 05:12:06PM +0300, Alexander Kotelnikov wrote: > > > On Thu, 12 Dec 2002 11:24:25 +0100 > > > "ML" == Mario Lang <[EMAIL PROTECTED]> wrote: > > ML> > > ML> Alexander Kotelnikov <[EMAIL PROTECTED]> writes: > > >> I have faced a problem with booting from two disks. The trouble seems > > >> to be in Herbert's kernel, since mine boots and loads debian-installer > > >> initrd image. > > ML> CONFIG_BLK_DEV_FD=m > > ML> > > ML> I guess that is the problem. > > > > Ah.. almost sure it is. > > What boot loader are you using? It should be loading the initrd, not > the kernel. Hmm, it looks like aboot doesn't support loading the initrd from a different floppy than the kernel. (I've only looked at the source, though, not really tried it.) So we could either hack aboot, or get back to load_ramdisk. What do you think? BTW, are you planning on creating any Alpha kernel images udebs? -- Falk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
> On Fri, 13 Dec 2002 07:23:27 +1100 > "HX" == Herbert Xu <[EMAIL PROTECTED]> wrote: HX> HX> On Thu, Dec 12, 2002 at 05:12:06PM +0300, Alexander Kotelnikov wrote: >> > On Thu, 12 Dec 2002 11:24:25 +0100 >> > "ML" == Mario Lang <[EMAIL PROTECTED]> wrote: ML> ML> Alexander Kotelnikov <[EMAIL PROTECTED]> writes: >> >> I have faced a problem with booting from two disks. The trouble seems >> >> to be in Herbert's kernel, since mine boots and loads debian-installer >> >> initrd image. ML> CONFIG_BLK_DEV_FD=m ML> ML> I guess that is the problem. >> >> Ah.. almost sure it is. HX> HX> What boot loader are you using? It should be loading the initrd, not HX> the kernel. aboot. The trouble happens long after it loads vmlinuz, when it tries to get initrd image from the second floppy, so I do not think king of bootloader matters here. And again: it boots with my kernel, even it could not be called generic, it is my 600ua-specific. -- Alexander Kotelnikov Saint-Petersburg, Russia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
Herbert Xu <[EMAIL PROTECTED]> writes: > On Thu, Dec 12, 2002 at 05:12:06PM +0300, Alexander Kotelnikov wrote: > > > On Thu, 12 Dec 2002 11:24:25 +0100 > > > "ML" == Mario Lang <[EMAIL PROTECTED]> wrote: > > ML> > > ML> Alexander Kotelnikov <[EMAIL PROTECTED]> writes: > > >> I have faced a problem with booting from two disks. The trouble seems > > >> to be in Herbert's kernel, since mine boots and loads debian-installer > > >> initrd image. > > ML> CONFIG_BLK_DEV_FD=m > > ML> > > ML> I guess that is the problem. > > > > Ah.. almost sure it is. > > What boot loader are you using? It should be loading the initrd, not > the kernel. Shouldn't it be compiled in anyway? People might want to load additional drivers/plugins/whatever from floppy. -- Falk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
On Thu, Dec 12, 2002 at 05:12:06PM +0300, Alexander Kotelnikov wrote: > > On Thu, 12 Dec 2002 11:24:25 +0100 > > "ML" == Mario Lang <[EMAIL PROTECTED]> wrote: > ML> > ML> Alexander Kotelnikov <[EMAIL PROTECTED]> writes: > >> I have faced a problem with booting from two disks. The trouble seems > >> to be in Herbert's kernel, since mine boots and loads debian-installer > >> initrd image. > ML> CONFIG_BLK_DEV_FD=m > ML> > ML> I guess that is the problem. > > Ah.. almost sure it is. What boot loader are you using? It should be loading the initrd, not the kernel. -- Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
> On Thu, 12 Dec 2002 11:24:25 +0100 > "ML" == Mario Lang <[EMAIL PROTECTED]> wrote: ML> ML> Alexander Kotelnikov <[EMAIL PROTECTED]> writes: >> I have faced a problem with booting from two disks. The trouble seems >> to be in Herbert's kernel, since mine boots and loads debian-installer >> initrd image. ML> CONFIG_BLK_DEV_FD=m ML> ML> I guess that is the problem. Ah.. almost sure it is. -- Alexander Kotelnikov Saint-Petersburg, Russia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
> On Thu, 12 Dec 2002 09:34:36 + > "RH" == Richard Hirst <[EMAIL PROTECTED]> wrote: RH> RH> On Thu, Dec 12, 2002 at 09:52:18AM +0100, Denis Barbier wrote: >> On Thu, Dec 12, 2002 at 05:31:41AM +0300, Alexander Kotelnikov wrote: >> [...] >> > Dec 12 02:19:35 (none) user.info init: Starting pid 882, console /dev/console: >'/sbin/debian-installer' >> > Cannot open template file /var/lib/cdebconf/templates.dat >> > Cannot open template file /var/lib/cdebconf/templates.dat RH> RH> I hit a similar problem when I started the hppa port; turned out that I RH> was mounting '/' read-only. Strange. I am almost sure I have not passed 'ro' to the kernel... Probably, with ramdisk 'rw' should be passed? -- Alexander Kotelnikov Saint-Petersburg, Russia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
> On Tue, 10 Dec 2002 22:58:01 -0500 > "NLM" == Noah L Meyerhans <[EMAIL PROTECTED]> wrote: NLM> NLM> On Tue, Dec 10, 2002 at 09:04:57PM -0500, Joey Hess wrote: >> I don't know how far over alpha is, but fitting on a PC floppy might be >> too much to ask of architectures with 64 bit code. You can always go the >> two floppy route if you need to.. NLM> NLM> The i386 kernel from the recent alpha snapshot is roughly half the size NLM> of the Alpha kernel I'm working with. The initrd image is slightly current i386 is about 650K, alpha ~ 930K. The smallest working alpha kernel I have created was 830K. This leaves ~600K for a compressed initrd.img. This is not enough, also. -- Alexander Kotelnikov Saint-Petersburg, Russia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
Alexander Kotelnikov <[EMAIL PROTECTED]> writes: > I have faced a problem with booting from two disks. The trouble seems > to be in Herbert's kernel, since mine boots and loads debian-installer > initrd image. CONFIG_BLK_DEV_FD=m I guess that is the problem. -- CYa, Mario -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
On Thu, Dec 12, 2002 at 10:54:14AM +0100, Tollef Fog Heen wrote: > * (Denis Barbier) > > | These files are created by debconf-loadtemplate, see build/Makefile > | to know how to call it. > > Actually, they are created by rfc822db. I am going to change that > into «Warning: Can't open %, creating», since so many think it is an > error, while it is not. (Or I might lower the priority the error is > printed at.) If files were created, this message would be displayed only once, so there is an error. Denis -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
* (Denis Barbier) | These files are created by debconf-loadtemplate, see build/Makefile | to know how to call it. Actually, they are created by rfc822db. I am going to change that into «Warning: Can't open %, creating», since so many think it is an error, while it is not. (Or I might lower the priority the error is printed at.) -- Tollef Fog Heen,''`. UNIX is user friendly, it's just picky about who its friends are : :' : `. `' `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
On Thu, Dec 12, 2002 at 09:52:18AM +0100, Denis Barbier wrote: > On Thu, Dec 12, 2002 at 05:31:41AM +0300, Alexander Kotelnikov wrote: > [...] > > Dec 12 02:19:35 (none) user.info init: Starting pid 882, console /dev/console: >'/sbin/debian-installer' > > Cannot open template file /var/lib/cdebconf/templates.dat > > Cannot open template file /var/lib/cdebconf/templates.dat I hit a similar problem when I started the hppa port; turned out that I was mounting '/' read-only. Richard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
On Thu, Dec 12, 2002 at 05:31:41AM +0300, Alexander Kotelnikov wrote: [...] > Dec 12 02:19:35 (none) user.info init: Starting pid 882, console /dev/console: >'/sbin/debian-installer' > Cannot open template file /var/lib/cdebconf/templates.dat > Cannot open template file /var/lib/cdebconf/templates.dat > Cannot open question file /var/lib/cdebconf/questions.dat > Cannot open template file /var/lib/cdebconf/templates.dat > Debian Installer Main Menu > > Cannot open question file /var/lib/cdebconf/questions.dat > Cannot open template file /var/lib/cdebconf/templates.dat > > These file are just not installed. The fix should be trivial, so I can > conclude, that the base for alpha is done. These files are created by debconf-loadtemplate, see build/Makefile to know how to call it. Denis -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
> On Tue, 10 Dec 2002 18:12:32 -0500 > "NLM" == Noah L Meyerhans <[EMAIL PROTECTED]> wrote: NLM> NLM> Since I don't know of anybody else doing such a thing, I've begun work I have started my efforts about two weeks ago. NLM> on the port of debian-installer to the Alpha platform. I've got most NLM> things built, but at the moment I'm struggling to get the kernel+initrd NLM> pruned down to a small enough size to fit on a floppy. What is expected Seems they could not fit single floppy. NLM> to be available in the initrd during the install process (i.e. what can NLM> I safely leave out of the initrd)? Nothing :( I have faced a problem with booting from two disks. The trouble seems to be in Herbert's kernel, since mine boots and loads debian-installer initrd image. There is a trouble with initrd directory tree creation: after boot I get cycling messages Dec 12 02:19:35 (none) user.info init: Process '/sbin/debian-installer' (pid 860) exited. Scheduling it for restart. Dec 12 02:19:35 (none) user.info init: Starting pid 882, console /dev/console: '/sbin/debian-installer' Cannot open template file /var/lib/cdebconf/templates.dat Cannot open template file /var/lib/cdebconf/templates.dat Cannot open question file /var/lib/cdebconf/questions.dat Cannot open template file /var/lib/cdebconf/templates.dat Debian Installer Main Menu Cannot open question file /var/lib/cdebconf/questions.dat Cannot open template file /var/lib/cdebconf/templates.dat These file are just not installed. The fix should be trivial, so I can conclude, that the base for alpha is done. -- Alexander Kotelnikov Saint-Petersburg, Russia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: working on the Alpha port
On Tue, Dec 10, 2002 at 09:04:57PM -0500, Joey Hess wrote: > I don't know how far over alpha is, but fitting on a PC floppy might be > too much to ask of architectures with 64 bit code. You can always go the > two floppy route if you need to.. The i386 kernel from the recent alpha snapshot is roughly half the size of the Alpha kernel I'm working with. The initrd image is slightly smaller as well. I don't think I'll be able to get everything to fit. Either the kernel or initrd would have to shrink by 50% to fit. So you're saying that I should build a separate "root" floppy image that contains the initrd, as has been done in the past? noah -- ___ | Web: http://web.morgul.net/~frodo/ | PGP Public Key: http://web.morgul.net/~frodo/mail.html msg24413/pgp0.pgp Description: PGP signature
Re: working on the Alpha port
Noah L. Meyerhans wrote: > Since I don't know of anybody else doing such a thing, I've begun work > on the port of debian-installer to the Alpha platform. I've got most > things built, but at the moment I'm struggling to get the kernel+initrd > pruned down to a small enough size to fit on a floppy. What is expected > to be available in the initrd during the install process (i.e. what can > I safely leave out of the initrd)? You need enough on the initrd to bootstrap the installer to the point where it can load the rest of itself from modules or the network. I don't know how far over alpha is, but fitting on a PC floppy might be too much to ask of architectures with 64 bit code. You can always go the two floppy route if you need to.. -- see shy jo msg24412/pgp0.pgp Description: PGP signature