From owner-freebsd-ppc@FreeBSD.ORG Sun Feb 27 07:45:40 2005 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07B9F16A4CE for ; Sun, 27 Feb 2005 07:45:40 +0000 (GMT) Received: from smtp1.server.rpi.edu (smtp1.server.rpi.edu [128.113.2.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7359F43D62 for ; Sun, 27 Feb 2005 07:45:39 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp1.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j1R7jben006332 for ; Sun, 27 Feb 2005 02:45:38 -0500 Mime-Version: 1.0 Message-Id: Date: Sun, 27 Feb 2005 02:45:36 -0500 To: freebsd-ppc@FreeBSD.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) on 128.113.2.1 Subject: Setting kern.bootfile, and backup kernels X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 07:45:40 -0000 One thing that surprised me with my last go-round with kernels is that I didn't seem to have a /boot/kernel.old directory. At the time, I didn't have time to investigate further. I thought I would update my ppc system today, and this time I checked after doing 'make installkernel', and indeed I again ended up without a backup kernel. (luckily I had saved away a copy before I did the 'installkernel'). It turns out this is because `sysctl -n kern.bootfile' returns /kernel on the powerpc port, not /boot/kernel/kernel. You can also notice this at system startup, because it will say: Feb 27 01:50:48 mymac syslogd: kernel boot file is /kernel even though the boot file is not /kernel. After some quick checks, it seems the problem is that sys/kern/kern_mib.c has: char kernelname[MAXPATHLEN] = "/kernel"; The next question is why does that cause a problem for powerpc when it doesn't seem to for other platforms? On most other platforms, sys///machdep.c includes some code that looks interesting. E.g. from sys/sparc64/sparc64/machdep.c : /* * Initialize tunables. */ init_param2(physmem); env = getenv("kernelname"); if (env != NULL) { strlcpy(kernelname, env, sizeof(kernelname)); freeenv(env); } I *think* that's setting the value we care about, but I might be wrong on that. One caveat is that I didn't notice what code resets the kernelname value for the i386 platform. I also don't know who sets up the environment-variable that this code is looking at when it sets the name. In any case, it'd be nice if that sysctl variable could be setup with the right value on powerpc, or people won't have any backup kernels! -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu From owner-freebsd-ppc@FreeBSD.ORG Sun Feb 27 08:08:16 2005 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3480516A4CE for ; Sun, 27 Feb 2005 08:08:16 +0000 (GMT) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD0B643D2D for ; Sun, 27 Feb 2005 08:08:15 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j1R88E8C001467 for ; Sun, 27 Feb 2005 03:08:15 -0500 Mime-Version: 1.0 Message-Id: Date: Sun, 27 Feb 2005 03:08:14 -0500 To: freebsd-ppc@FreeBSD.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Subject: Errors from kldxref when installing kernel... X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 08:08:16 -0000 When I do an 'installkernel', how worried should I be if the 'kldxref /boot/kernel' step is followed by about 240 lines of: kldxref: error while reading /boot/kernel/accf_data.ko: Bad address kldxref: error while reading /boot/kernel/accf_http.ko: Bad address ...etc... I don't want to "just try it", because if it doesn't work as /boot/kernel/kernel then the bug in the boot loader will prevent me from falling back to /boot/kernel.old/kernel ... -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu From owner-freebsd-ppc@FreeBSD.ORG Sun Feb 27 08:28:20 2005 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B2AB16A4CE for ; Sun, 27 Feb 2005 08:28:20 +0000 (GMT) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48F5743D5E for ; Sun, 27 Feb 2005 08:28:19 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.30.60] (CPE-30-60.dsl.onthenet.net [203.144.30.60]) j1R8SHnP068494; Sun, 27 Feb 2005 18:28:18 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <42218619.7010202@freebsd.org> Date: Sun, 27 Feb 2005 18:34:33 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Garance A Drosihn References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-ppc@freebsd.org Subject: Re: Setting kern.bootfile, and backup kernels X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 08:28:20 -0000 Hi Garance, > even though the boot file is not /kernel. After some quick checks, > it seems the problem is that sys/kern/kern_mib.c has: > char kernelname[MAXPATHLEN] = "/kernel"; Another old NetBSD relic I think. I'll fix it pronto: thanks for the sparc64 machdep tip. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Sun Feb 27 08:29:36 2005 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D40A916A4CE for ; Sun, 27 Feb 2005 08:29:36 +0000 (GMT) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F94743D5D for ; Sun, 27 Feb 2005 08:29:36 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.30.60] (CPE-30-60.dsl.onthenet.net [203.144.30.60]) j1R8TZnP068497; Sun, 27 Feb 2005 18:29:35 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <42218667.1000901@freebsd.org> Date: Sun, 27 Feb 2005 18:35:51 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Garance A Drosihn References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-ppc@freebsd.org Subject: Re: Errors from kldxref when installing kernel... X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 08:29:36 -0000 Hi Garance, > When I do an 'installkernel', how worried should I be if the > 'kldxref /boot/kernel' step is followed by about 240 lines of: > > kldxref: error while reading /boot/kernel/accf_data.ko: Bad address > kldxref: error while reading /boot/kernel/accf_http.ko: Bad address > ...etc... > > I don't want to "just try it", because if it doesn't work as > /boot/kernel/kernel then the bug in the boot loader will prevent > me from falling back to /boot/kernel.old/kernel ... 'bout halfway through fixing kldxref. Should be committed soon... later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Sun Feb 27 20:23:12 2005 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 010B816A4CE; Sun, 27 Feb 2005 20:23:12 +0000 (GMT) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2491B43D58; Sun, 27 Feb 2005 20:23:11 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j1RKNAOr062443; Sun, 27 Feb 2005 15:23:10 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.1/8.13.1) with ESMTP id j1RKNAYF014926; Sun, 27 Feb 2005 15:23:10 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 7EAEC7306E; Sun, 27 Feb 2005 15:23:10 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050227202310.7EAEC7306E@freebsd-current.sentex.ca> Date: Sun, 27 Feb 2005 15:23:10 -0500 (EST) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner3 X-Virus-Status: Clean Subject: [current tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 20:23:12 -0000 TB --- 2005-02-27 19:51:51 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-02-27 19:51:51 - starting CURRENT tinderbox run for powerpc/powerpc TB --- 2005-02-27 19:51:51 - checking out the source tree TB --- 2005-02-27 19:51:51 - cd /home/tinderbox/CURRENT/powerpc/powerpc TB --- 2005-02-27 19:51:51 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-02-27 19:57:24 - building world (CFLAGS=-O2 -pipe) TB --- 2005-02-27 19:57:24 - cd /home/tinderbox/CURRENT/powerpc/powerpc/src TB --- 2005-02-27 19:57:24 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -O2 -pipe -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/include -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/../../include -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/powerpc -D__DBINTERFACE_PRIVATE -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/../../contrib/gdtoa -DINET6 -I/tinderbox/CURRENT/powerpc/powerpc/obj/powerpc/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc -DPOSIX_MISTAKE -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/string/strdup.c cc -O2 -pipe -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/include -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/../../include -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/powerpc -D__DBINTERFACE_PRIVATE -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/../../contrib/gdtoa -DINET6 -I/tinderbox/CURRENT/powerpc/powerpc/obj/powerpc/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc -DPOSIX_MISTAKE -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/string/strerror.c /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/string/strerror.c: In function `strerror': /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/string/strerror.c:125: error: `NL_TEXTMAX' undeclared (first use in this function) /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/string/strerror.c:125: error: (Each undeclared identifier is reported only once /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/string/strerror.c:125: error: for each function it appears in.) /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/string/strerror.c:125: warning: unused variable `ebuf' /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc/string/strerror.c:125: error: storage size of `ebuf' isn't known *** Error code 1 Stop in /tinderbox/CURRENT/powerpc/powerpc/src/lib/libc. *** Error code 1 Stop in /tinderbox/CURRENT/powerpc/powerpc/src/lib. *** Error code 1 Stop in /tinderbox/CURRENT/powerpc/powerpc/src. *** Error code 1 Stop in /tinderbox/CURRENT/powerpc/powerpc/src. *** Error code 1 Stop in /tinderbox/CURRENT/powerpc/powerpc/src. *** Error code 1 Stop in /tinderbox/CURRENT/powerpc/powerpc/src. TB --- 2005-02-27 20:23:10 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-02-27 20:23:10 - ERROR: failed to build world TB --- 2005-02-27 20:23:10 - tinderbox aborted From owner-freebsd-ppc@FreeBSD.ORG Sun Feb 27 21:21:53 2005 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AFC716A4CE; Sun, 27 Feb 2005 21:21:53 +0000 (GMT) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id E00AC43D5A; Sun, 27 Feb 2005 21:21:52 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j1RLLoiX015166; Sun, 27 Feb 2005 16:21:51 -0500 Mime-Version: 1.0 Message-Id: In-Reply-To: <42218667.1000901@freebsd.org> References: <42218667.1000901@freebsd.org> Date: Sun, 27 Feb 2005 16:21:49 -0500 To: Peter Grehan From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) cc: freebsd-ppc@freebsd.org Subject: Re: Errors from kldxref when installing kernel... X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 21:21:53 -0000 At 6:35 PM +1000 2/27/05, Peter Grehan wrote: >Hi Garance, Greetings. >>When I do an 'installkernel', how worried should I be if the >>'kldxref /boot/kernel' step is followed by about 240 lines of: >> >>kldxref: error while reading /boot/kernel/accf_data.ko: Bad address >>kldxref: error while reading /boot/kernel/accf_http.ko: Bad address >> ...etc... >> > > 'bout halfway through fixing kldxref. Should be committed soon... Sounds good to me. Thanks for all the work on this platform! -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu