Problem with install kernel on Release 8.0

Hello,
I've installed the Release 8.0 and I tried to compile and install my kernel MYKERNEL
editing GENERIC.
I followed the documentation "8.5 Building and Installing a Custom Kernel".
The system has compiled the new kernel correctly but when i enter "make installkernel KERNCONF=MYKERNEL" it gives me a following errors:

Code:
--------------------------------------------------------------
>>> Installing kernel
--------------------------------------------------------------
cd /usr/obj/usr/src/sys/MYKERNEL;  MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386  MACHINE=i386  CPUTYPE=  GROFF_BIN_PATH=/usr/obj/usr/src/tmp
/legacy/usr/bin  GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac 
PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr
/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin  make KERNEL=kernel install
You must build a kernel first.
*** Error code 1

Stop in /usr/obj/usr/src/sys/MYKERNEL.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Where's error?
Thanks
 
Did you build the kernel first? It's quite an essential step.
 
Hello dutchdeamon,
i have builded the kernel before with:

make buildkernel KERNCONF=MYKERNEL

and it's work!

But when I enter:

make installkernel KERNCONF=MYKERNEL

it gives the errors above said.

Have I to do something else?
Thanks
 
Is the ident line in that kernel config file also named MYKERNEL? That ident line determines the name of the directory in /usr/obj/usr/src/sys/.
 
Yes,
I have:

ident MYKERNEL

and at "usr/obj/usr/src/sys" there is a directory named "MYKERNEL"
containing files ".o"
 
No idea. You could try doing it in one go:

# cd /usr/src && make kernel KERNCONF=MYKERNEL.
 
Are the object files in the MYKERNEL directory of the correct time (i.e. just a few minutes old)?
 
Yes,
there are at the correct time (today a few minutes old)

Can it depend the editing file (options, device,etc) from?
 
If anything is wrong with options, devices or disallowed combinations thereof, the kernel build will fail. A built kernel will always install. I've never seen this behaviour anywhere. I even tried to see what happens when you don't run buildworld first (i.e. building a kernel starting with no /usr/obj directory to begin with), and that went fine. So other than trying the whole procedure from start to finish (http://forums.freebsd.org/showthread.php?p=53974#post53974) I have no further input, I'm afraid.
 
Maybe I understand the problem:

filesystem /root is full

How can i repartition "/root" to enlarge his capacity?
 
spon said:
How can i repartition "/root" to enlarge his capacity?
Backup your data and repartition the slice.

How big is it? You really don't need a lot on /.

Post the output of [cmd=]df -h[/cmd].
 
Ok,
problem is fix.
I ripartitioned my hard disk and I compiled and installed my custom kernel:
it's work!
 
Back
Top