4th loading a module.

Christian Laursen xi at borderworlds.dk
Sun Feb 11 11:55:21 UTC 2007


David Gilbert <dgilbert at dclg.ca> writes:

> What I want to do is load a module (if_iwiNG or snd_ich) based on a
> menu choice at the beastie menu.  I have successfully added the manu
> item and a variable --- following the example.  I tried adding:
>
>                 dup bootwifikey @ = if
>                         s" YES" s" if_iwiNG_load" setenv
>                         0 boot
> 		then
>
> to the end, but it doesn't work.  load_modules has already been
> called.  I tried (out of the blue)
>
> 	 s" if_iwiNG" load_module
>
> ... but that's not the correct recipe (at least... 4th crashes if I
> load that code).

I use this code to load an mfsroot from forth:

    s" " s" /boot/mfsroot" s" mfs_root" s" -t" 4 load

Perhaps something like the following might work for you:

    s" " s" /boot/kernel/if_iwiNG.ko" 2 load

I am no forth expert either and have just been using trial and error to
get to what I have.

-- 
Christian Laursen


More information about the freebsd-hackers mailing list