NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install kernel modules



It might not be the correct way, but what I've normally done in
/usr/src/sys/modules is something like:

make all install DESTDIR=/ USETOOLS=no MKDTRACE=no MKZFS=no

-Dustin

On Mon, Mar 21, 2011 at 10:15 AM, Riccardo Mottola
<riccardo.mottola%libero.it@localhost> wrote:
> Hi Jukka,
>
>>> but the modules?
>>
>> One way to install these is:
>>
>>            cd /usr/src/sys/modules
>>
>>            export OBJDIR=/usr/obj
>>            export TOOLDIR=/usr/tools
>>
>>            make clean
>>            make
>>            make install
>>
>> as noted in module(7); see
>>
>> http://netbsd.gw.com/cgi-bin/man-cgi?module+7+NetBSD-current
>>
> Thanks for the hints. I updated my tools and everything, then I successfully
> run "make". However, installation fails:
>
> install ===>  accf_dataready
>
> #   install  /stand/i386/5.99.48/modules/accf_dataready/accf_dataready.kmod
>
> dirs=/stand/i386\ /stand/i386/5.99.48\ /stand/i386/5.99.48/modules;  for d
> in $dirs; do
>  /usr/src/tooldir.NetBSD-5.99.44-i386/bin/i486--netbsdelf-install  -N
> /usr/src/etc -d $d;  done
>
> sh: /usr/src/tooldir.NetBSD-5.99.44-i386/bin/i486--netbsdelf-install: not
> found
>
> sh: /usr/src/tooldir.NetBSD-5.99.44-i386/bin/i486--netbsdelf-install: not
> found
>
> sh: /usr/src/tooldir.NetBSD-5.99.44-i386/bin/i486--netbsdelf-install: not
> found
>
> *** Error code 127
>
>
> the path indeed does not exist.
>
> $ echo $TOOLDIR
>
> /usr/tools
>
>
> is set as you said.
>
> The closest thing i can see is:
>
> /usr/tools/bin/i486--netbsdelf-install
>
>
>
>>> (found here: http://netbsd.org/docs/updating.html#kernel )
>>
>> That document seems to be outdated, as usual.
>
> Probably the confusion arises that the upcoming kernel is modular.
>
> Thank you,
>   Riccardo
>


Home | Main Index | Thread Index | Old Index