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 0xfffffc0000a32ba8 > 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 = 200000000
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.000000000 +1100 +++ disk.c 2002-12-13 22:41:48.000000000 +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.orig 2002-12-14 15:06:54.000000000 +1100 +++ utils.c 2002-12-14 15:06:43.000000000 +1100 @@ -233,5 +233,7 @@ break; } } while (c != 13 && c != 10); - buf[len] = 0; + if (buf) { + buf[len] = 0; + } }