![]() |
|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hello all,
I've just tried to compile and install a new kernel in FBSD 7.0. However, the /boot/kernel.old/kernel and boot/kernel/kernel files are exactly the same size: 9219468 bytes. This is what I did: I edited a copy of the GENERIC kernel configuration file and named it P200MMX. It is in /usr/src/sys/i386/conf . (BTW, are numbers allowed in the configuration file name?) Then I used the following commands: Quote:
Quote:
I didn't notice any error messages in the whole process. The pc boots normally, but apparently not using P200MMX. Any help is appreciated. Thanks, Frits |
|
|||
![]()
It appears you made a copy of GENERIC without changing anything. You need to open the file P200MMX in your favorite editor, and change the "ident" line to whatever you want your kernel to identify itself as. As far as the kernel and kernel.old being the same size, that's expected as you haven't change any configuration at all.
I suspect that if you type "uname -a", you'll see generic, but you'll also see towards the end something like: Code:
root@<your hostname here>:/usr/obj/usr/src/sys/P200MMX
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
|||
![]()
Hi,
Thanks for your swift reply. Quote:
Quote:
Code:
root@<my hostname here>:/usr/obj/usr/src/sys/GENERIC i386 (I don't know whether it is of any importance, but I just noticed that I forgot to add the "machine i386" line to P200MMX. It wasn't in GENERIC either though.) Thanks again for your suggestions. |
|
|||
![]()
Hello,
Just a thought: did I have to move P200MMX from /usr/src/sys/i386/conf to another directory before using the commands "make buildkernel KERNCONF=P200MMX" and "make installkernel KERNCONF=P200MMX"? Cheers |
|
|||
![]()
The output is: P200MMX
|
|
||||
![]()
Hm, should work fine ... Maybe you accidently types KERNCONf or something?
If you build the kernel, you can immediatly see which config file it's using, just press CTRL+C after ~1-2 seconds: Code:
[/usr/src]# make buildkernel KERNCONF=PHONG -------------------------------------------------------------- >>> Kernel build for PHONG started on Wed Jun 25 00:58:47 CEST 2008 -------------------------------------------------------------- ===> PHONG mkdir -p /usr/obj/usr/src/sys -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- cd /usr/src/sys/i386/conf; 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 config -d /usr/obj/usr/src/sys/PHONG /usr/src/sys/i386/conf/PHONG Kernel build directory is /usr/obj/usr/src/sys/PHONG Don't forget to do ``make cleandepend && make depend'' -------------------------------------------------------------- >>> stage 2.1: cleaning up the object tree -------------------------------------------------------------- ^C [/usr/src]#
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
![]()
I started "make buildkernel KERNCONF=P200MMX" again. And stopped it using Ctrl-C.
It is showing : "Kernel build directory is /usr/obj/usr/src/sys/P200MMX" And also: "Kernel build for P2000MMX started on Wed Jun 25 01:04:48 CEST 2008" |
|
|||
![]()
Well, it is compiling again. Maybe it works this time. Previously, the compiling process took about 9 hours on this machine... I've also added the "machine i386" line to P200MMX, BTW.
Currently I see a lot of references to P200MMX passing over the screen. This wasn't the case the previous time. Looks promising :-) Thank you for your help, Frits Last edited by FWS; 24th June 2008 at 11:20 PM. |
|
||||
![]()
9 hours O.o
You know you can build the kernel on a faster i386 machine and then transfer it to this machine?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
![]()
Also, IIRC the MMX was i586-class, so you should be able to remove i386 and i486 from your config file. I have a P-MMX 200MHz myself, unfortunately it's disconnected from KVM/network/etc, and I don't have the energy to connect it right now (read: I'm being lazy). However, I didn't build a custom kernel on this machine (as it would take forever to build). I used freebsd-update to make sure I had the latest security patches, and left it at that.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
|||
![]() Quote:
Cheers, Frits |
|
||||
![]() Quote:
But his machine is indeed probably a i586. You can check with: Code:
% dmesg | grep CPU CPU: AMD Athlon(tm) XP (1252.85-MHz 686-class CPU)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
![]() Quote:
I should have worded better I guess ![]() When making my above comment, I was referring to what I imagine is the CPU he was using (see my previous statement).
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
||||
![]() Quote:
Also, with any CPU newer than an i386, you should remove the cpu i386 line. For any CPU newer than an i486, you should remove the cpu i386 and cpu i486 lines. But, for all other x86 CPUs (Pentium, PPro, P2, P3, P4, Athlons, etc), you should keep the cpu i586 line (and add cpu i686 if appropriate). There are a bunch of memory operations that are included by the i586 option that speed things up on everything since the Pentium. |
|
|||
![]()
Hello,
The P200MMX kernel is installed successfully now. The kernel has shrunk to 3464821 bytes, which is nice compared to GENERIC's original 9219468 bytes. The PC is running fine. I still don't know what went wrong at the first try though. Cheers, Frits |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHP read file contents - Maximum file size | cksraj | Programming | 1 | 21st September 2009 11:38 AM |
kernel file from 6.3 to 7.2 | l2fl2f | FreeBSD Installation and Upgrading | 3 | 14th September 2009 06:53 PM |
k3b, configuration. | maxrussell | FreeBSD Ports and Packages | 4 | 3rd March 2009 04:23 AM |
Unable to build custom kernel [Wrong configuration?] | jrick | FreeBSD General | 3 | 31st July 2008 01:53 PM |
Constant Kernel Panics, Corupted file system reboots over and over | pseudonym | FreeBSD General | 24 | 14th July 2008 03:12 AM |