[BusyBox] [PATCH] fix lsmod for kernel-2.6

Tito farmatito at tiscali.it
Tue May 3 20:20:14 UTC 2005


On Tuesday 03 May 2005 19:46, Rob Landley wrote:
> On Tuesday 03 May 2005 10:01 am, Takeharu KATO wrote:
> > Hi
> >
> > I found that lsmod in busybox does not support linux-2.6.
> > I fix this issue(it is caused by changes of /proc/modules format).
> > If you use lsmod in busybox with kernel-2.6, please use this patch.
> 
> I don't use modules in my busybox system, could somebody "AOL!" this before I 
> apply it?
> 
> Rob
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox
> 
> 
root at localhost:/dev/pts/2:/root/Desktop/busybox-20050503# ./busybox lsmod
Module                  Size  Used by    Not tainted
ppp_deflate             4288  0
zlib_deflate           20184  1 ppp_deflate
bsd_comp                4928  0
ppp_async               8192  1
ppp_generic            22100  7 ppp_deflate,bsd_comp,ppp_async
slhc                    5888  1 ppp_generic
crc_ccitt               1728  1 ppp_async
mga                    53824  1
drm                    51028  2 mga
md5                     3648  1

<snip> 

Works ok for me on Mandrake 10.2 with kernel  2.6.11.8-kj, 
but you need to add  CONFIG_FEATURE_2_6_MODULES
to the config file manually as it does not show up 
in make menuconfig.

Ciao,
Tito



More information about the busybox mailing list