Skip to contentSkip to conversation

Requesting module even when it's compiled in

DISCUSSION David Vrabel 3 participants 5 messages Dec 8, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I've patched a 2.2.17 kernel with the latest mtd-patch-2.2.17 however the MTD code is from yesterday's CVS.

Compiled into the kernel
MTD
CFI support
Intel Ext suport
SBC-MediaGX
The SBC-MediaGX driver starts but fails with
request_module[cfi_probe]: Root fs is not mounted

It shouldn't be looking for a module should it (since it is compiled into the kernel)?

CONFIG_MODULES is defined. (don't know if this is relevant)

David Vrabel

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 3 lines · [email protected] said:

request_module[cfi_probe]: Root fs is not mounted
It shouldn't be looking for a module should it (since it is compiled into the kernel)?

The new inter_module_xxx stuff means the command set drivers need initialisation - just exporting a symbol is no longer enough.

I've just added the necessary initcalls to mtdcore.c

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#2 lore raw
Quoted 10 lines · David Woodhouse
Quoted 3 lines · [email protected] said:

request_module[cfi_probe]: Root fs is not mounted
It shouldn't be looking for a module should it (since it is compiled into the kernel)?

The new inter_module_xxx stuff means the command set drivers need initialisation - just exporting a symbol is no longer enough.

I've just added the necessary initcalls to mtdcore.c

It works provided the init functions changed from static to extern.

David Vrabel

To unsubscribe, send "unsubscribe mtd" to [email protected]

#4 lore raw
Quoted 6 lines · David Woodhouse
Quoted 1 line · [email protected] said:

It works provided the init functions changed from static to extern.

argh. Wanna commit that then?

I will rebuild the patches for 2.2.17 and the latest 2.4.0-x after you do that.

-Steve

Signature · 7 lines
 Steven J. Hill - Embedded SW Engineer
 Public Key: 'finger [email protected]'
 FPR1: E124 6E1C AF8E 7802 A815
 FPR2: 7D72 829C 3386 4C4A E17D


To unsubscribe, send "unsubscribe mtd" to [email protected]