From owner-freebsd-questions@FreeBSD.ORG Mon Jan 23 08:56:59 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78CA4106564A for ; Mon, 23 Jan 2012 08:56:59 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id 54F638FC15 for ; Mon, 23 Jan 2012 08:56:59 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [66.253.36.39]) by paka.cyberleo.net (Postfix) with ESMTPSA id 392F628405; Mon, 23 Jan 2012 03:56:58 -0500 (EST) Message-ID: <4F1D20D6.3040301@cyberleo.net> Date: Mon, 23 Jan 2012 02:56:54 -0600 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111204 Thunderbird/8.0 MIME-Version: 1.0 To: Devin Teske References: <05f401ccd7e9$1322a090$3967e1b0$@fisglobal.com> <4F1A882D.5080302@cyberleo.net> <88223D12-AEA7-46F9-AA3D-A8F49BC79D82@fisglobal.com> In-Reply-To: <88223D12-AEA7-46F9-AA3D-A8F49BC79D82@fisglobal.com> X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: kgzip(8) regression in RELENG_9 GENERIC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 08:56:59 -0000 On 01/23/2012 12:30 AM, Devin Teske wrote: > > On Jan 21, 2012, at 1:41 AM, CyberLeo Kitsana wrote: > >> On 01/20/2012 09:02 PM, Devin Teske wrote: >>> Taking a GENERIC 9.0-RELEASE kernel and running kgzip(8) on it produces an >>> unusable kernel which causes immediate BTX halt in loader(8). >>> >>> ... >>> >>> 4. Say: kgzip kernel >> >> Curious, it doesn't even look like that binary is hooked into the build >> process at all on 9.0-RELEASE. >> > > Can you clarify what you mean by the above? On a brand new GENERIC box running 9.0-RELEASE with no special knobs: ----8<---- (4b18d544)[cyberleo@jenga ~]$ which kgzip (4b18d544)[cyberleo@jenga ~]$ apropos kgzip (4b18d544)[cyberleo@jenga ~]$ cd /usr/src/usr.sbin (4b18d544)[cyberleo@jenga /usr/src/usr.sbin]$ ls | grep kgzip kgzip (4b18d544)[cyberleo@jenga /usr/src/usr.sbin]$ grep kgzip Makefile (4b18d544)[cyberleo@jenga /usr/src/usr.sbin]$ ----8<---- So it's there, but the SUBDIR entry in the usr.sbin Makefile that hooks it into the build process seems to be missing, whereas things that do exist (freebsd-update, &c) are present. >> It's manpage indicates that it is unsuitable for loader(8) use, > > Likewise, can you clarify the above? >From kgzip.8 in the aforementioned directory: ----8<---- BUGS As symbols are lost, the usefulness of this utility for compressing ker- nels is limited to situations where loader(8) cannot be used; otherwise the preferred method of compressing a kernel is simply to gzip(1) it. ----8<---- >> and that >> just running gzip(1) on the kernel file is sufficient; > > I'm getting an error when loading a gzip(1)'d kernel... > > don't know how to load module '/kernels/GENERIC-i386-9.0.gz' > > So I figure, maybe it doesn't like the '.gz' suffix. No go, same error. I think we'll need more information on how your system is set up to boot: partition layout, what boot blocks and loaders are in use, etc. How are you instructing it to load that particular kernel, for example? -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/