Date: Fri, 19 Jan 1996 19:01:56 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: ANDRSN@HOOVER.STANFORD.EDU (Annelise Anderson) Cc: questions@FreeBSD.ORG Subject: Re: Recompiling Kernel with Live File System Message-ID: <199601190831.TAA09382@genesis.atrad.adelaide.edu.au> In-Reply-To: <01I067NEGI1E00AU8C@HOOVER.STANFORD.EDU> from "Annelise Anderson" at Jan 18, 96 10:55:54 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Annelise Anderson stands accused of saying: > > I would like to recompile the kernel (generic) on my office machine > (2.0.5), but I did not install the kernel souces and I don't think > there's enough space (maybe 25 mb) to do so. There's a usr/src > directory, but nothing in it. Hmm. The 2.1 kernel source tree is about 15M, and a compiled kernel will add maybe 3M on top of that. I would say you had plenty of space. > to compile it? Then perhaps make and make install in > > /cdrom/usr/src/sys/i386/conf/make, maybe adding the path > to NEWKERNEL on the hard drive? > > Doesn't sound like this will work, but maybe there's a way. Unless your CDrom does writes, no 8) You can frob around this, but it's tough. If at all possible, put the kernel sources on disk and do it that way. If not, it's not _too_ hard to make a /usr/src that's mostly symlinks to the CDrom. If we assume that the live filesystem CD is mounted, and you're using csh : # mkdir /usr/src/sys # cd /usr/src/sys # foreach i (/cdrom/usr/src/sys/*) foreach? ln -s $i foreach? end # rm compile # mkdir compile # rm i386 # mkdir i386 # cd i386 # foreach i (/cdrom/usr/src/sys/i386*) foreach? ln -s $i foreach? end # rm conf # cp -r /cdrom/usr/src/sys/i386/conf . # cd conf # cp GENERIC MYKERNEL # vi MYKERNEL # config MYKERNEL # cd ../../compile/MYKERNEL # make;make install That (or something similar) should do it fine. > Annelise -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] "Who does BSD?" "We do Chucky, we do." [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601190831.TAA09382>