Making newcard and oldcard moduler.

2002-05-29 Thread Takanori Watanabe

Hi, 
I managed to make pccard device driver into loadable module.

http://people.freebsd.org/~takawata/cardmodule.diff

To use this, 
1. Apply following patch.(diff from HEAD)
2. Remove 'pccard','pcic','pccbb','cardbus', 'card' 
   line from configuration file. 
3. Add following line to configuration file. (Should it be standard?)
==
device cardcom
==
4. Rebuild your kernel.
5. Move /sys/modules/ and build oldcard, pccbb, pccard, cardbus, pcic
module and install them.
6 Reboot.
7 If you want to use oldcard, type as follows in loader(8).
==
load oldcard
boot
==
 Or if you want to use newcard with CardBus controller, type as follows.
==
load pccbb
boot
==

CAVEATS
 Unloading newcard may cause page fault.
 Loading both of them cause something bad.
 I don't check whether all pccard driver works well.

Have fun.


Takanori Watanabe

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Making newcard and oldcard moduler.

2002-05-29 Thread M. Warner Losh

In message: [EMAIL PROTECTED]
Takanori Watanabe [EMAIL PROTECTED] writes:
: 3. Add following line to configuration file. (Should it be standard?)
: ==
: device cardcom

They should be standard.  I have a patch that does this for all the
_if* files in the system, with a bloatage of a few hundred bytes.  It
makes loadable drivers much less painful to do if we have them in the
base kernel always.

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message