[patch] examples/depmod.pl

Aubrey aubreylee at gmail.com
Mon Mar 20 19:41:58 PST 2006


I could be wrong but the depmod.pl still has problem after the patch.
The following is a part of the "modules.dep" file generated by the script.
========
/lib/modules//2.6.12.1/kernel/drivers/mtd/nand/nand.ko:
/lib/modules//2.6.12.1/kernel/drivers/mtd/nand/nand_ecc.ko
/lib/modules//2.6.12.1/kernel/drivers/mtd/nand/nand_ids.ko
========
/lib/modules//2.6.12.1/kernel/fs/jffs2/jffs2.ko:
/lib/modules//2.6.12.1/kernel/lib/zlib_deflate/zlib_deflate.ko
/lib/modules//2.6.12.1/kernel/lib/zlib_inflate/zlib_inflate.ko
========
/lib/modules//2.6.12.1/kernel/lib/zlib_inflate/zlib_inflate.ko:
/lib/modules//2.6.12.1/kernel/lib/zlib_deflate/zlib_deflate.ko:
========
As you see, in terms of JFFS2 module, there's no problem, all the
necessary files are listed before the symbol colon(:), so "busybox
insmod" can find all modules needed. But as for the nand module,
"nand_ecc.ko" and "nand_ids.ko" were not listed before the symbol
colon(:) in the separated lines, so "busybox insmod" can't find them.
Of course "insmod" failed.
If I insert the modules "nand_ecc.ko" and "nand_ids.ko" manually, then
I can insert module "nand.ko" successfully.
Any suggestions or comments? Many thanks.

Regards,
-Aubrey

On 3/21/06, Rob Landley <rob at landley.net> wrote:
> On Monday 20 March 2006 5:14 am, Stuart Hughes wrote:
> > Hi everyone,
> >
> > I finally got around to updating this script after many years.  Here are
> > some significant changes:
> >
> > * handle the -F option (e.g use System.map to resolve symbols)
> > * generate modules.conf with the right style for 2.6 kernels
> >
> > I've also cleaned up and made other general improvements.
> >
> > Regards, Stuart
>
> Cool.  I'd like to get an ack from Yann Morin since he's the one playing with
> modprobe and friends these days.  Yann?
>
> Rob
> --
> Never bet against the cheap plastic solution.
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>


More information about the busybox mailing list