Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2012 04:47:21 +1100 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Quentin Schwerkolt <develloper.unix@hotmail.fr>
Cc:        freebsd-wireless@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: Can't load many network kernel module in 8.3-PREREALEASE
Message-ID:  <20120325042722.S2060@sola.nimnet.asn.au>
In-Reply-To: <BLU0-SMTP415E103BB2DD319AF4E37AD84460@phx.gbl>
References:  <BLU0-SMTP415E103BB2DD319AF4E37AD84460@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120325042722.S2060>