Can't load many network kernel module in 8.3-PREREALEASE

Ian Smith smithi at nimnet.asn.au
Sat Mar 24 17:47:55 UTC 2012


On Fri, 23 Mar 2012, Quentin Schwerkolt wrote:

 > I can't load many if_* module on FreeBSD 8.3-PRERELEASE on amd64 and i386.
 > I have rebuild the system from the latest source. When I try a kldload
 > /boot/kernel/if_*.ko I have error such as "file exist" or "exec format
 > error".

I have no idea why you'd want to do that :) but you'll find that all the 
'File exist' ones were already included in your kernel.

 > kldstat just after system start:
 > Id Refs Address            Size     Name
 >  1    1 0xffffffff80100000 e58280   kernel

'kldstat -v' will show all modules included in your (GENERIC?) kernel.

 > kldload -v /boot/kernel/if_*.ko:
 > kldload: can't load /boot/kernel/if_ae.ko: File exists
 > kldload: can't load /boot/kernel/if_age.ko: File exists
 > kldload: can't load /boot/kernel/if_alc.ko: File exists
 > kldload: can't load /boot/kernel/if_ale.ko: File exists
 > kldload: can't load /boot/kernel/if_an.ko: File exists
 > kldload: can't load /boot/kernel/if_ath.ko: Exec format error
 > kldload: can't load /boot/kernel/if_aue.ko: Exec format error
 > kldload: can't load /boot/kernel/if_axe.ko: Exec format error

I'm not certain about the 'Exec format error' messages.

Then below are listed the modules loaded that weren't in your kernel.

 > Loaded /boot/kernel/if_bridge.ko, id=2
 > Loaded /boot/kernel/if_bwi.ko, id=4
[..]
 > Loaded /boot/kernel/if_vte.ko, id=45
 > Loaded /boot/kernel/if_wpi.ko, id=46
 > 
 > kldstat after run kldload:
 > Id Refs Address            Size     Name
 >  1  151 0xffffffff80100000 e58280   kernel
 >  2    1 0xffffffff81012000 585a     if_bridge.ko
 >  3    1 0xffffffff81018000 3534     bridgestp.ko
 >  4    1 0xffffffff8101c000 151d3    if_bwi.ko
[..]

Now showing all modules that were loaded in addition to those in kernel.  
Again, 'kldstat -v' will show all of them, with details of loaded ones.

cheers, Ian


More information about the freebsd-stable mailing list