Nethence Newdoc Olddoc Lab Your IP BBDock  

Compiling the NetBSD kernel

Fetching and extracting the very release version that you are running,

cd /
ftp -a`uname -r`/source/sets/syssrc.tgz
progress -zf syssrc.tgz tar xf -
cd ~/
ln -s ../usr/src

Tweaking the kernel configuration,

echo ${HOST%%\.*}
kernel=`echo ${HOST%%\.*} | tr 'a-z' 'A-Z'`

cd /usr/src/sys/arch/`uname -m`/conf/
cp -pi GENERIC $kernel
#cp -pi XEN3_DOMU $kernel
vi $kernel

#options        INSECURE

Compiling the new kernel,

config $kernel
cd /usr/src/sys/arch/`uname -m`/compile/$kernel/
make depend
time nice make
unset kernel

Ready to go,

mv -i /netbsd.old /netbsd.old.`date +%s`
mv -i /netbsd /netbsd.old
mv -i netbsd /


make[1]: don't know how to make absvdi2.c. Stop

==> either use config -s or put your sources folder in the default location (/usr/src)


Home | GitHub | Docker Hub | Donate | Contact