2002-07-11 19:42:03

by Micha³ Adamczak

[permalink] [raw]
Subject: compilation of floppy as module failure

just wanted to report that in 2.4.19-rc1
the kernel image does not compile if floppy (CONFIG_BLK_DEV_FD) is
to be compiled as a module.

the problem does not exist when the floppy is built in.

the listing of the ver_linux:

Gnu C 2.95.4
Gnu make 3.79.1
util-linux 2.11n
mount 2.11n
modutils 2.4.15
e2fsprogs 1.27
PPP 2.4.1
Linux C Library 2.2.5
Dynamic linker (ldd) 2.2.5
Procps 2.0.7
Net-tools 1.60
Console-tools 0.2.3
Sh-utils 2.0.12

--
Michal Adamczak
[email protected]


2002-07-11 19:51:47

by Thunder from the hill

[permalink] [raw]
Subject: Re: compilation of floppy as module failure

Hi,

On Thu, 11 Jul 2002, Micha? Adamczak wrote:
> just wanted to report that in 2.4.19-rc1
> the kernel image does not compile if floppy (CONFIG_BLK_DEV_FD) is
> to be compiled as a module.

Do you have a particular error message?

Regards,
Thunder
--
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o? K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y-
------END GEEK CODE BLOCK------

2002-07-11 20:05:13

by Adrian Bunk

[permalink] [raw]
Subject: Re: compilation of floppy as module failure

On Thu, 11 Jul 2002, Micha? Adamczak wrote:

> just wanted to report that in 2.4.19-rc1
> the kernel image does not compile if floppy (CONFIG_BLK_DEV_FD) is
> to be compiled as a module.
>
> the problem does not exist when the floppy is built in.
>...

This is a known problem. The following patch that is already in Marcelos'
BK repository fixes it:


diff -Nru a/init/do_mounts.c b/init/do_mounts.c
--- a/init/do_mounts.c Mon Jun 24 14:08:10 2002
+++ b/init/do_mounts.c Mon Jun 24 14:08:10 2002
@@ -378,7 +378,7 @@
return sys_symlink(path + n + 5, name);
}

-#if defined(CONFIG_BLOCK_DEV_RAM) || defined(CONFIG_BLK_DEV_FD)
+#if defined(CONFIG_BLK_DEV_RAM) || defined(CONFIG_BLK_DEV_FD)
static void __init change_floppy(char *fmt, ...)
{
struct termios termios;

cu
Adrian

--

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
Alan Cox