From: Andrew Morton <akpm@osdl.org>
To: "Tetsuji \"Maverick\" Rai" <badtrans666@yahoo.co.jp>
Cc: linux-kernel@vger.kernel.org
Subject: Re: prompt_ramdisk=1 and load_ramdisk=1 doesn't work with 2.6.11 on floppy
Date: Tue, 22 Mar 2005 19:47:41 -0800 [thread overview]
Message-ID: <20050322194741.3b251b05.akpm@osdl.org> (raw)
In-Reply-To: <423ED8C7.1020008@yahoo.co.jp>
"Tetsuji \"Maverick\" Rai" <badtrans666@yahoo.co.jp> wrote:
>
> I am making a small boot-floppy linux distro with kernel 2.6.11. The
> kernel is so big that I need to load ramdisk from the second floppy
> and I don't use initrd. My problem is the kernel wouldn't prompt to
> load ramdisk image. I tried syslinux, grub and lilo as boot loader
> and for syslinux,
The basic mechanism seems to work OK here. I couldn't be bothered setting
up a floppy so I patched things:
--- 25/init/do_mounts_rd.c~a 2005-03-22 19:16:22.000000000 -0800
+++ 25-akpm/init/do_mounts_rd.c 2005-03-22 19:16:26.000000000 -0800
@@ -12,7 +12,7 @@
#define BUILD_CRAMDISK
-int __initdata rd_prompt = 1;/* 1 = prompt for RAM disk, 0 = don't prompt */
+int rd_prompt = 1;/* 1 = prompt for RAM disk, 0 = don't prompt */
static int __init prompt_ramdisk(char *str)
{
diff -puN init/do_mounts.c~a init/do_mounts.c
--- 25/init/do_mounts.c~a 2005-03-22 19:32:53.000000000 -0800
+++ 25-akpm/init/do_mounts.c 2005-03-22 19:41:38.000000000 -0800
@@ -371,8 +371,7 @@ void __init mount_root(void)
ROOT_DEV = Root_FD0;
}
#endif
-#ifdef CONFIG_BLK_DEV_FD
- if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR) {
+ if (1) {
/* rd_doload is 2 for a dual initrd/ramload setup */
if (rd_doload==2) {
if (rd_load_disk(1)) {
@@ -382,7 +381,6 @@ void __init mount_root(void)
} else
change_floppy("root floppy");
}
-#endif
create_dev("/dev/root", ROOT_DEV, root_device_name);
mount_block_root("/dev/root", root_mountflags);
}
_
The machine does pause at the prompt.
So I'd suggest that you need to start sticking printk()s into mount_root(),
rd_load_disk() and change_floppy(), see if you can work out what's
happening.
prev parent reply other threads:[~2005-03-23 3:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-21 14:23 Tetsuji "Maverick" Rai
2005-03-23 3:47 ` Andrew Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050322194741.3b251b05.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=badtrans666@yahoo.co.jp \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®