|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Kernel size: Why no change after patching?
Hi.
I am newbie on OpenBSD and am learning things as I go. I observed something about Kernel size. As I could not reason it out, I am presenting it to this forum. I would appreciate if you could please help me understand. I bought 4.7 CD and installed 4.7 on my home desktop. /bsd has a size of 7582622 Yesterday, I checked out the stable branch of 4.7 and rebuild the kernel as per FAQ. /bsd (after stable build) also has the same size of 7582622. I checked the size of bsd on the CD-1. It has the above size too. From the patch list posted, I know that reliability fixes have been made. My questions are: a) Why does the kernel size not change between release and stable build even after reliability fixes? b) Did I not build the kernel correctly? During research, I found one post: http://screamingelectron.org/forum/s...ad.php?p=14496 Thanks. |
|
|||
The binary size changing isn't guaranteed after a patch (..the compiler may produce only slightly different code), it all depends on the extent of the change.
Check the build string near the top of the kernel dmesg, it'll show information about the build.. also an MD5/SHA256 sum will help verify the binary has changed. Make sure you checked out OPENBSD_4_7 not OPENBSD_4_7_BASE from a CVS tree, there haven't been a lot of changes in stable, and I only see 3 kernel patches on the errata page, 2 of these were single line patches. Also, after building the kernel, make sure you install it.. |
|
|||
Quote:
$ sysctl kern.version
|
|
|||
ocicat, BSDfan666,
Thanks for taking the time to reply to my post. I am using a script to re-build the kernel/ follow stable. I shall post the code. Here is sysctl kern.version' contents: kern.version=OpenBSD 4.7-stable (GENERIC) #0: Sat Jul 24 22:02:41 EDt 2010 root@bullfrog.myhome.westell.com:/usr/src/sys/arch/i386/compile/GENERIC. I shall post dmesg in a subsequent reply. |
|
|||
Quote:
From the above, we now know that you are running a self-built -stable kernel. We can only assume that you are also looking at the timestamps of the resulting kernels when comparing one to another size-wise. While BSDfan666 is correct stating that patching/updating is not guaranteed to change kernel sizes, it is not entirely clear how you are making these kernel comparisons. If the tree which is downloaded/updated is the same content, then the resulting size of the kernel should be the same as well. When was building done relative to the announcement of patches on the errata page? http://www.openbsd.org/errata47.html Quote:
Quote:
|
|
|||
ocicat,
I have not made any changes to the Generic kernel. I am not building any custom kernel. The scripts that I referred are enclosed as attachments. They were taken from the FAQ. If I have picked up the wrong statements, the fault is mine. I would appreciate if you could tell me where I went wrong. I seek your advise. I appreciate you taking the time to help a newbie. Thanks in advance. |
|
|||
There is no problem here, you've successfully built a stable kernel, and I confirm that it's the same size in this case.
I do agree with ocicat, scripting the build only leads to problems, the errata releases are made infrequently enough that automation is unnecessary, build it manually and install it manually. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change the font size? atop xterm, aterm, etc | jb_daefo | General software and network | 12 | 13th July 2010 10:42 AM |
patching or updating ? | dennky | OpenBSD Installation and Upgrading | 12 | 14th January 2010 07:17 PM |
CLI font size | idefix | FreeBSD General | 3 | 7th February 2009 11:19 AM |
Negative partition size? | giga | FreeBSD General | 1 | 2nd January 2009 09:02 PM |
Change the Size of a Slice | kienjakenobi | FreeBSD General | 9 | 27th June 2008 03:01 PM |