DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2015
bashrules bashrules is offline
Fdisk Soldier
 
Join Date: Mar 2010
Location: Here
Posts: 48
Default building kernel modules

For the Linux kernel, I can select what functionality will be built into the kernel vs built as a module. I don't see how I can influence that in NetBSD.

I would like to build the wpi driver as a module into /stand/i386/7.0/modules/ simply because I get after a week or so a "wpi0: fatal firmware error" log in the dmesg buffer. From that point on, I don't get wpi0 working, anymore.

From wpi(4)

Code:
DIAGNOSTICS
     wpi%d: fatal firmware error  For some reason, the firmware crashed.  The
     driver will reset the hardware.  This should not happen.
"The driver will reset the hardware" - apparently, that doesn't happen or that doesn't help. So, I thought a module unload/reload may help. For this, I would need wpi to be module, though.
Reply With Quote
  #2   (View Single Post)  
Old 7th November 2015
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 103
Default

I'm not sure if wpi driver is a kernel module. You should look into /stand directory. If it exists, you can unload the driver.
Reply With Quote
  #3   (View Single Post)  
Old 12th November 2015
bashrules bashrules is offline
Fdisk Soldier
 
Join Date: Mar 2010
Location: Here
Posts: 48
Default

I think I haven't expressed myself clearly. Let me rephrase my original posting:

wpi is not built as a module. So, my question is how is it decided what is built as a module? Can I influence that so that wpi is actually built as a module?
Reply With Quote
  #4   (View Single Post)  
Old 19th November 2015
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 103
Default

If this driver is not designed as a module with a defined interface for loading, unloading, you cannot turn a builtin driver to a module driver. The second appraoch came with 5.0, before you could only comment in the kernel config before building the kernel.
So i fear, this driver doesn't support module framework.
Reply With Quote
Reply

Tags
fatal, modules, wpi

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic kernel modules in NetBSD - Programista 5/2015 (36) kamil NetBSD General 2 21st June 2015 12:49 AM
NetBSD New kernel modules in NetBSD-CURRENT (instead LKM) vermaden News 1 17th May 2015 11:06 PM
FreeBSD 7 i386, PAE and kernel modules eztiger FreeBSD Installation and Upgrading 7 1st April 2009 06:07 PM
kernel modules Mr-Biscuit FreeBSD General 0 2nd March 2009 06:18 AM
Are certain kernel modules permanent? davidgurvich FreeBSD General 3 6th June 2008 06:14 PM


All times are GMT. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick