From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 10 05:12:25 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 9003916A42A for ; Mon, 10 Oct 2005 05:12:25 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0E9A43D46 for ; Mon, 10 Oct 2005 05:12:24 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.2.186] (CPE-2-186.dsl.OntheNet.net [203.144.2.186]) by liberty.onthenet.com.au (8.12.9 - 20030918/8.12.9) with ESMTP id j9A5CMDJ002715; Mon, 10 Oct 2005 15:12:22 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <4349F830.4060802@freebsd.org> Date: Mon, 10 Oct 2005 15:12:16 +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: "David S. Besade" References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Installing FreeBSD on an iMac DV X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 05:12:25 -0000 Hi David, > I got the partitioning setup right, the base installs, but the iMac doesn't > boot after I set everything up. What am I doing wrong? It won't boot automatically - see section 5 of http://people.freebsd.org/~grehan/miniinst.txt later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 10 05:15:14 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 9491316A41F for ; Mon, 10 Oct 2005 05:15:14 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ACFE43D46 for ; Mon, 10 Oct 2005 05:15:13 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.2.186] (CPE-2-186.dsl.OntheNet.net [203.144.2.186]) by liberty.onthenet.com.au (8.12.9 - 20030918/8.12.9) with ESMTP id j9A5FADJ002750; Mon, 10 Oct 2005 15:15:11 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <4349F8D9.4070209@freebsd.org> Date: Mon, 10 Oct 2005 15:15:05 +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: Tim Simmons References: <001901c5cab0$5b047200$13b46743@TIM> In-Reply-To: <001901c5cab0$5b047200$13b46743@TIM> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Panic on boot from CD X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 05:15:14 -0000 Hi Tim, > Greetings all, Having an issue booting for the install cd > 6.0-20050518-SNAP-powerpc-disc1.iso. > > I get the prompt to press enter to boot (booting /boot/kernel/kernel in x > seconds), and if I hit enter or let it boot automatically, I get: > > KDB: debugger backends: ddb > > KDB: current backend: ddb > > Panic: mutex All locks list not owned at /usr/src/sys/kern/kern_mutex.c:299 > > KDB: enter: panic ... > Any thoughts? Thanks. Would that be an eMac by any chance ? :) I've yet to get to the bottom of this, though I have an idea or two as to why it's happening. In the meantime, the workaround (at least on my ageing eMac), is to break into OpenFirmware (cmd-opt-o-f at the boot chime) and manually boot from the OpenFirmware prompt 0 > boot cd:,\boot\loader cd:0 later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 10 12:05:06 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 EE0C216A420 for ; Mon, 10 Oct 2005 12:05:06 +0000 (GMT) (envelope-from sidolin@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 891AE43D45 for ; Mon, 10 Oct 2005 12:05:06 +0000 (GMT) (envelope-from sidolin@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so87554wra for ; Mon, 10 Oct 2005 05:05:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=OcHmzm4KhfuDHpLklY3+HfxzsjYgjGPBOVXT61ET3iUAgPkmDGR23CHtYAMjXB+x0jrrEWqA0sLRrkY6y1YjoP6LWcHecGDzQkKDsS0Lz64Il0mqAOcJ8MHaHaSEgDVHlucTyUmvCSR3Y+Mn2/PMq1rIlwwfL47Ub8jkVcLaNR4= Received: by 10.54.106.9 with SMTP id e9mr3184951wrc; Mon, 10 Oct 2005 05:05:05 -0700 (PDT) Received: from ?192.168.0.2? ( [83.242.60.82]) by mx.gmail.com with ESMTP id g5sm1932532wra.2005.10.10.05.05.02; Mon, 10 Oct 2005 05:05:05 -0700 (PDT) From: Andreas Heider To: freebsd-ppc@freebsd.org Content-Type: text/plain Date: Mon, 10 Oct 2005 14:07:54 +0200 Message-Id: <1128946074.8995.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit Subject: 6.0-beta4 available X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 12:05:07 -0000 Hi, i tried the new beta-4 iso on a G4 (Digital Audio, 533mhz, 512 mb ram), but i get almost the same error as the others. KDB: debugger backends: ddb KDB: current backend: ddb fatal kernel trap: exeption = 0x4 (instruction storage interrupt) virtual address = 0x3d66a0 srr0 = 0x3d66a0 srr1 = 0x8003032 curthread = 0 [tread pid -1 tid 0 ] Stopped at 0x434f30: illegal instruction 434fd0 db> I hope this helps a little bit, i'll try the beta-3 now and hope it works. Andreas Heider From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 10 12:58:00 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 13B0016A41F for ; Mon, 10 Oct 2005 12:58:00 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6952D43D45 for ; Mon, 10 Oct 2005 12:57:59 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.2.186] (CPE-2-186.dsl.OntheNet.net [203.144.2.186]) by liberty.onthenet.com.au (8.12.9 - 20030918/8.12.9) with ESMTP id j9ACvvDJ003855; Mon, 10 Oct 2005 22:57:57 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <434A654F.9080809@freebsd.org> Date: Mon, 10 Oct 2005 22:57: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: Andreas Heider References: <1128946074.8995.4.camel@localhost> In-Reply-To: <1128946074.8995.4.camel@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: 6.0-beta4 available X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 12:58:00 -0000 Hi Andreas, > i tried the new beta-4 iso on a G4 (Digital Audio, 533mhz, 512 mb ram), > but i get almost the same error as the others. > > KDB: debugger backends: ddb > KDB: current backend: ddb > > fatal kernel trap: > > exeption = 0x4 (instruction storage interrupt) > virtual address = 0x3d66a0 > srr0 = 0x3d66a0 > srr1 = 0x8003032 > curthread = 0 Same PC as in other bug reports, so that will be the same problem. I've fixed it in CVS, and it will be in the 6.0-RC1 snapshot, available very soon now :) later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 11 19:00:33 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 D741816A41F for ; Tue, 11 Oct 2005 19:00:33 +0000 (GMT) (envelope-from sidolin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9091D43D68 for ; Tue, 11 Oct 2005 19:00:31 +0000 (GMT) (envelope-from sidolin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so1417841wxc for ; Tue, 11 Oct 2005 12:00:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=g2aQ0IKRZylE/Xw0wkkHJrleqLFQD/k3jxOOl3o86AJPzEdIP4xvEOJbSFPKPo2AJPIEbn95kIpoge6PgVWf19a3IWQqMZ9GhLEabip9AgEOwyWFijIW5YYKuF/AKZepcWf0xlzaWNejlEUablk/uVmOpy3S6LfhyGmPsyUzf/E= Received: by 10.70.47.6 with SMTP id u6mr59081wxu; Tue, 11 Oct 2005 11:53:39 -0700 (PDT) Received: from ?192.168.0.2? ( [83.242.62.80]) by mx.gmail.com with ESMTP id h14sm1497931wxd.2005.10.11.11.53.34; Tue, 11 Oct 2005 11:53:39 -0700 (PDT) From: Andreas Heider To: freebsd-ppc@freebsd.org Content-Type: text/plain Date: Tue, 11 Oct 2005 20:56:38 +0200 Message-Id: <1129056998.15959.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit Subject: Could someone please provide xdelta patches for rc1 when its released? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 19:00:34 -0000 Hi, when FreeBSD 6.0rc1 for ppc is released, could someone please create a xdelta patch (xdelta creates patches for the old isos so we dont have to redownload everything)? I have a very slow connection and dont want to download another 200 mb ;) To create a xdelta, just install xdelta and run 'xdelta delta oldfile newfile patchfile' and then upload patchfile somewhere. To patch the old isos run 'xdelta patch patchfile oldfile newfile' Thanks, Andreas Heider (http://sourceforge.net/projects/xdelta/) From owner-freebsd-ppc@FreeBSD.ORG Wed Oct 12 18:54:52 2005 Return-Path: X-Original-To: ppc@FreeBSD.org 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 823E216A41F; Wed, 12 Oct 2005 18:54:52 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49D6743D73; Wed, 12 Oct 2005 18:54:46 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 10EA61A3C19; Wed, 12 Oct 2005 11:54:46 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id BC38151214; Wed, 12 Oct 2005 14:54:43 -0400 (EDT) Date: Wed, 12 Oct 2005 14:54:43 -0400 From: Kris Kennaway To: ia64@FreeBSD.org, ppc@FreeBSD.org Message-ID: <20051012185443.GA59565@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: [kris@obsecurity.org: int/long confusion with maxbcache and maxswzone (fixes 6.0 on >12GB machines)] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 18:54:52 -0000 --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable FYI, you probably want to also add the VM_*_MAX defines on ia64 and ppc too. Kris ----- Forwarded message from Kris Kennaway ----- Date: Tue, 11 Oct 2005 17:38:00 -0400 From: Kris Kennaway To: current@FreeBSD.org, sparc64@FreeBSD.org Cc: des@FreeBSD.org Subject: int/long confusion with maxbcache and maxswzone (fixes 6.0 on >12G= B machines) User-Agent: Mutt/1.4.2.1i A few weeks ago I reported that bufinit() on sparc64 machines with >12GB of RAM goes into an infinite loop because of a 32-bit integer counter overflowing. On 5.x it was possible to work around this with the kern.maxbcache tunable, but this didn't work on 6.0 or above. It turns out the problem began here: ---- Revision 1.67 / (download) - annotate - [select for diffs], Mon Nov 8 18:20= :02 2004 UTC (11 months ago) by des Branch: MAIN Changes since 1.66: +17 -17 lines Diff to previous 1.66 (colored) #include instead of (the former includes the latter, but also declares variables which are defined in kern/subr_param.c). Change som VM parameters from quad_t to unsigned long. They refer to quantities (size limits for text, heap and stack segments) which must necessarily be smaller than the size of the address space, so long is adequate on all platforms. MFC after: 1 week ---- which contained: -int maxswzone; /* max swmeta KVA storage */ -int maxbcache; /* max buffer cache KVA storage */ +long maxswzone; /* max swmeta KVA storage */ +long maxbcache; /* max buffer cache KVA storage */ However, des forgot to change the other definition of maxbcache in : extern int maxbcache; /* Max KVA for buffer cache */ In fact, it's a good thing he didn't. On sparc64 if you make that variable a long it causes 32-bit integer overflows elsewhere, which lead to severe filesystem damage on systems with >12GB RAM. With the above bug this is reduced to a hang at boot. The hang is because maxbcache is not capped to a maximum value on sparc64, and a loop termination condition never occurs because of a 32-bit integer overflow. On amd64 it's capped to /* * Ceiling on size of buffer cache (really only effects write queueing, * the VM page cache is not effected), can be changed via * the kern.maxbcache /boot/loader.conf variable. */ #ifndef VM_BCACHE_SIZE_MAX #define VM_BCACHE_SIZE_MAX (400 * 1024 * 1024) #endif so large-memory amd64 systems never see it. ia64 and ppc would also hang at boot with >12GB, I think. On 5.x, the same hang exists, but you can work around it with the tunable. This tunable was broken by the long/int mismatch on 6.0, so sparc64 systems with >12GB were unusable. This patch reverts the above int->long change, and adds definitions for VM_BCACHE_SIZE_MAX and VM_SWZONE_SIZE_MAX on sparc64 copied from amd64. Actually, they should probably be added on other architectures too (ia64, ppc). Can someone please review? Kris Index: kern/subr_param.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/kern/subr_param.c,v retrieving revision 1.71 diff -u -r1.71 subr_param.c --- kern/subr_param.c 16 Apr 2005 15:07:41 -0000 1.71 +++ kern/subr_param.c 11 Oct 2005 21:09:01 -0000 @@ -75,8 +75,8 @@ int ncallout; /* maximum # of timer events */ int nbuf; int nswbuf; -long maxswzone; /* max swmeta KVA storage */ -long maxbcache; /* max buffer cache KVA storage */ +int maxswzone; /* max swmeta KVA storage */ +int maxbcache; /* max buffer cache KVA storage */ int maxpipekva; /* Limit on pipe KVA */ u_long maxtsiz; /* max text size */ u_long dfldsiz; /* initial data size limit */ @@ -106,11 +106,11 @@ #ifdef VM_SWZONE_SIZE_MAX maxswzone =3D VM_SWZONE_SIZE_MAX; #endif - TUNABLE_LONG_FETCH("kern.maxswzone", &maxswzone); + TUNABLE_INT_FETCH("kern.maxswzone", &maxswzone); #ifdef VM_BCACHE_SIZE_MAX maxbcache =3D VM_BCACHE_SIZE_MAX; #endif - TUNABLE_LONG_FETCH("kern.maxbcache", &maxbcache); + TUNABLE_INT_FETCH("kern.maxbcache", &maxbcache); =20 maxtsiz =3D MAXTSIZ; TUNABLE_ULONG_FETCH("kern.maxtsiz", &maxtsiz); Index: sparc64/include/param.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/sparc64/include/param.h,v retrieving revision 1.19 diff -u -r1.19 param.h --- sparc64/include/param.h 20 Nov 2004 02:29:50 -0000 1.19 +++ sparc64/include/param.h 11 Oct 2005 20:54:30 -0000 @@ -110,6 +110,22 @@ #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ #define PCPU_PAGES 1 =20 +/* + * Ceiling on amount of swblock kva space, can be changed via + * the kern.maxswzone /boot/loader.conf variable. + */ +#ifndef VM_SWZONE_SIZE_MAX +#define VM_SWZONE_SIZE_MAX (32 * 1024 * 1024) +#endif + +/* + * Ceiling on size of buffer cache (really only effects write queueing, + * the VM page cache is not effected), can be changed via + * the kern.maxbcache /boot/loader.conf variable. + */ +#ifndef VM_BCACHE_SIZE_MAX +#define VM_BCACHE_SIZE_MAX (400 * 1024 * 1024) +#endif =20 /* * Mach derived conversion macros Index: sparc64/include/vmparam.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/sparc64/include/vmparam.h,v retrieving revision 1.14 diff -u -r1.14 vmparam.h --- sparc64/include/vmparam.h 27 Dec 2002 19:31:26 -0000 1.14 +++ sparc64/include/vmparam.h 11 Oct 2005 20:54:30 -0000 @@ -171,6 +171,13 @@ #endif =20 /* + * Ceiling on amount of kmem_map kva space. + */ +#ifndef VM_KMEM_SIZE_MAX +#define VM_KMEM_SIZE_MAX (400 * 1024 * 1024) +#endif + +/* * Initial pagein size of beginning of executable file. */ #ifndef VM_INITIAL_PAGEIN ----- End forwarded message ----- --2fHTh5uZTiUOsy+g Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDTVvyWry0BWjoQKURAiNdAJ4mnfmNDYH/WmcEsCVa4X18EG4nGgCfbwM2 Cd8y53QKwjoQPxhg7/Mh4BQ= =OAmX -----END PGP SIGNATURE----- --2fHTh5uZTiUOsy+g-- From owner-freebsd-ppc@FreeBSD.ORG Wed Oct 12 20:32:04 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 1148A16A420; Wed, 12 Oct 2005 20:32:04 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DD0343D48; Wed, 12 Oct 2005 20:32:03 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from [10.50.41.234] (Not Verified[10.50.41.234]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Wed, 12 Oct 2005 16:48:23 -0400 From: John Baldwin To: freebsd-ppc@freebsd.org Date: Wed, 12 Oct 2005 15:53:12 -0400 User-Agent: KMail/1.8.2 References: <001901c5cab0$5b047200$13b46743@TIM> <4349F8D9.4070209@freebsd.org> In-Reply-To: <4349F8D9.4070209@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510121553.14347.jhb@freebsd.org> Cc: Peter Grehan Subject: Re: Panic on boot from CD X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 20:32:04 -0000 On Monday 10 October 2005 01:15 am, Peter Grehan wrote: > Hi Tim, > > > Greetings all, Having an issue booting for the install cd > > 6.0-20050518-SNAP-powerpc-disc1.iso. > > > > I get the prompt to press enter to boot (booting /boot/kernel/kernel in x > > seconds), and if I hit enter or let it boot automatically, I get: > > > > KDB: debugger backends: ddb > > > > KDB: current backend: ddb > > > > Panic: mutex All locks list not owned at > > /usr/src/sys/kern/kern_mutex.c:299 > > > > KDB: enter: panic > > ... > > > Any thoughts? Thanks. > > Would that be an eMac by any chance ? :) > > I've yet to get to the bottom of this, though I have an idea or two as > to why it's happening. > > In the meantime, the workaround (at least on my ageing eMac), is to > break into OpenFirmware (cmd-opt-o-f at the boot chime) and manually > boot from the OpenFirmware prompt > > 0 > boot cd:,\boot\loader cd:0 > > later, > > Peter. Perhaps something is trying to do a mtx_init() or mtx_destroy() before mutex_init() has been called? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-ppc@FreeBSD.ORG Wed Oct 12 20:40:49 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 815E916A469; Wed, 12 Oct 2005 20:40:49 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from hummer.onthenet.com.au (hummer.onthenet.com.au [203.13.68.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id D249943D46; Wed, 12 Oct 2005 20:40:48 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.2.186] (CPE-2-186.dsl.OntheNet.net [203.144.2.186]) by hummer.onthenet.com.au (Postfix) with ESMTP id 085E719FB19; Thu, 13 Oct 2005 06:40:47 +1000 (EST) Message-ID: <434D74CD.4020103@freebsd.org> Date: Thu, 13 Oct 2005 06:40:45 +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: John Baldwin References: <001901c5cab0$5b047200$13b46743@TIM> <4349F8D9.4070209@freebsd.org> <200510121553.14347.jhb@freebsd.org> In-Reply-To: <200510121553.14347.jhb@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Panic on boot from CD X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 20:40:49 -0000 > Perhaps something is trying to do a mtx_init() or mtx_destroy() before > mutex_init() has been called? I *think* it's due to the fact that I'm not saving/restoring the SPRG0-3 registers when calling into OpenFirmware. It only shows up when you boot holding down the 'C' key, but works fine when dropping into OpenFirmware and manually booting. There's a similar problem on the B&W G3 when booting from the ATA drive. The panic message is related to memory corruption that occurrs - a mutex is getting zeroed. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Wed Oct 12 23:19:57 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 1A9C416A41F for ; Wed, 12 Oct 2005 23:19:57 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-3-1-cust208.cdif.cable.ntl.com [82.31.78.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id A003343D46 for ; Wed, 12 Oct 2005 23:19:56 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.54 (FreeBSD)) id 1EPpt5-000Bu4-Ak; Thu, 13 Oct 2005 00:19:55 +0100 Date: Thu, 13 Oct 2005 00:19:55 +0100 From: Ceri Davies To: Andreas Heider Message-ID: <20051012231955.GN99170@submonkey.net> Mail-Followup-To: Ceri Davies , Andreas Heider , freebsd-ppc@freebsd.org References: <1129056998.15959.6.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mmKKm/GJ6Xc4oob8" Content-Disposition: inline In-Reply-To: <1129056998.15959.6.camel@localhost> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.11 Sender: Ceri Davies Cc: freebsd-ppc@freebsd.org Subject: Re: Could someone please provide xdelta patches for rc1 when its released? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 23:19:57 -0000 --mmKKm/GJ6Xc4oob8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 11, 2005 at 08:56:38PM +0200, Andreas Heider wrote: > Hi, >=20 > when FreeBSD 6.0rc1 for ppc is released, could someone please create a > xdelta patch (xdelta creates patches for the old isos so we dont have to > redownload everything)? > I have a very slow connection and dont want to download another 200 > mb ;) > To create a xdelta, just install xdelta and run 'xdelta delta oldfile > newfile patchfile' and then upload patchfile somewhere.=20 > To patch the old isos run 'xdelta patch patchfile oldfile newfile' If you can point me at a URL where the "old isos" that you are talking about are available, I'll do this if you like. Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --mmKKm/GJ6Xc4oob8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDTZobocfcwTS3JF8RAtHPAJ0ZKvt8rUJGPfY+wg/YK0nD/gdFoQCeL12z LBFQtzNR0Sutzr6k4NA3s4M= =MJtq -----END PGP SIGNATURE----- --mmKKm/GJ6Xc4oob8-- From owner-freebsd-ppc@FreeBSD.ORG Thu Oct 13 05:51:29 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 DFBF016A41F for ; Thu, 13 Oct 2005 05:51:29 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from cayenne.onthenet.com.au (cacheflow.OntheNet.com.au [203.22.124.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id E550543D53 for ; Thu, 13 Oct 2005 05:51:28 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.2.186] (CPE-2-186.dsl.OntheNet.net [203.144.2.186]) by cayenne.onthenet.com.au (Postfix) with ESMTP id ACFE0759204 for ; Thu, 13 Oct 2005 15:51:26 +1000 (EST) Message-ID: <434DF5DD.3030704@freebsd.org> Date: Thu, 13 Oct 2005 15:51:25 +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: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 6.0-RC1 iso available X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 05:51:30 -0000 Hi all, It's available at: http://people.freebsd.org/~grehan/ppc_iso/6.0-RC1-powerpc-disc1.iso .. and should show up on mirrors soon. This fixes the crash-on-boot problem with G3's that was in BETA4. I've installed on an eMac and a 233 revB iMac so far without problems. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Oct 13 12:57:28 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 57B8816A41F; Thu, 13 Oct 2005 12:57:28 +0000 (GMT) (envelope-from kwm@rainbow-runner.nl) Received: from server.cacholong.nl (www.cacholong.nl [80.126.52.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9355A43D48; Thu, 13 Oct 2005 12:57:27 +0000 (GMT) (envelope-from kwm@rainbow-runner.nl) Received: from localhost (localhost [127.0.0.1]) by server.cacholong.nl (Postfix) with ESMTP id 66773826965; Thu, 13 Oct 2005 14:57:25 +0200 (CEST) Received: from server.cacholong.nl ([127.0.0.1]) by localhost (server.cacholong.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19704-01-3; Thu, 13 Oct 2005 14:57:19 +0200 (CEST) Received: from webmail.cacholong.nl (localhost [127.0.0.1]) by server.cacholong.nl (Postfix) with ESMTP id E18FA826962; Thu, 13 Oct 2005 14:57:18 +0200 (CEST) Received: from 141.252.171.68 (SquirrelMail authenticated user kwm@rainbow-runner.nl) by webmail.cacholong.nl with HTTP; Thu, 13 Oct 2005 14:57:18 +0200 (CEST) Message-ID: <62963.141.252.171.68.1129208238.squirrel@webmail.cacholong.nl> In-Reply-To: <434DF5DD.3030704@freebsd.org> References: <434DF5DD.3030704@freebsd.org> Date: Thu, 13 Oct 2005 14:57:18 +0200 (CEST) From: "Koop Mast" To: "Peter Grehan" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at cacholong.nl Cc: freebsd-ppc@freebsd.org Subject: Re: 6.0-RC1 iso available X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 12:57:28 -0000 > Hi all, > > It's available at: > > http://people.freebsd.org/~grehan/ppc_iso/6.0-RC1-powerpc-disc1.iso > > .. and should show up on mirrors soon. > > This fixes the crash-on-boot problem with G3's that was in BETA4. > > I've installed on an eMac and a 233 revB iMac so far without problems. That G4 that I reported a little while ago, boots now up to sysinstall. Can't test if it installs, because it's being used. Great work! Koop > later, > > Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Oct 13 14:33:43 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 2B64C16A420; Thu, 13 Oct 2005 14:33:43 +0000 (GMT) (envelope-from TimSimmons@championrealty.com) Received: from mail.championrealty.com (mail.fnistools.com [206.54.148.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id B102C43D45; Thu, 13 Oct 2005 14:33:42 +0000 (GMT) (envelope-from TimSimmons@championrealty.com) Received: from TIM [67.103.180.19] by mail.championrealty.com with ESMTP (SMTPD32-8.15) id A04C91B6013A; Thu, 13 Oct 2005 09:33:48 -0500 From: "Tim Simmons" To: "'Peter Grehan'" Date: Thu, 13 Oct 2005 10:33:43 -0400 Message-ID: <000701c5d003$1d0a49e0$13b46743@TIM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcXNWYNiRa+s7PyjQjO7VXWlwzdtDQCqENeQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <4349F8D9.4070209@freebsd.org> X-Declude-Sender: TimSimmons@championrealty.com [67.103.180.19] X-Declude-Spoolname: D704C91B6013A1133.SMD X-Declude-Scan: Score [0] at 09:33:49 on 13 Oct 2005 X-Declude-Tests: Whitelisted X-Country-Chain: Organization: Fidelity National Real Estate Solutions Cc: freebsd-ppc@freebsd.org Subject: RE: Panic on boot from CD X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 14:33:43 -0000 Sorry it's taken me a while to respond, I've been out on family leave. I have tried as you suggested, booting from the open firmware screen instead of directly from the CD, and I get the same result. I downloaded and burned the 6.0RC1 ISO this morning, and get a slightly different error, but in the same place. The error now reads: KDB: debugger backends: ddb KDB: current backend: ddb Panic: Assertion curthread != NULL failed at /usr/src/sys/kern/kern_mutex.c:268 KDB: enter: panic [thread pid -1 tid 0 ] Stopped at 0: illegal instruction 0 Db> I can't interact with the system at this point to run a stack trace. Any ideas? Oh, and no, it's not an eMac. It's a PowerMac G4 667mhz w/ 256 megs ram. This same machine runs fine under OSX. Tim Simmons IT Technician Champion Realty, Inc. TimSimmons@ChampionRealty.Com Direct:410-975-3028 Fax: 410-647-1187 -----Original Message----- From: Peter Grehan [mailto:grehan@freebsd.org] Sent: Monday, October 10, 2005 1:15 AM To: Tim Simmons Cc: freebsd-ppc@freebsd.org Subject: Re: Panic on boot from CD Hi Tim, > Greetings all, Having an issue booting for the install cd > 6.0-20050518-SNAP-powerpc-disc1.iso. > > I get the prompt to press enter to boot (booting /boot/kernel/kernel in x > seconds), and if I hit enter or let it boot automatically, I get: > > KDB: debugger backends: ddb > > KDB: current backend: ddb > > Panic: mutex All locks list not owned at /usr/src/sys/kern/kern_mutex.c:299 > > KDB: enter: panic ... > Any thoughts? Thanks. Would that be an eMac by any chance ? :) I've yet to get to the bottom of this, though I have an idea or two as to why it's happening. In the meantime, the workaround (at least on my ageing eMac), is to break into OpenFirmware (cmd-opt-o-f at the boot chime) and manually boot from the OpenFirmware prompt 0 > boot cd:,\boot\loader cd:0 later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Oct 13 15:32:21 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 DC6E616A41F; Thu, 13 Oct 2005 15:32:21 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id A35E643D48; Thu, 13 Oct 2005 15:32:20 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from [10.50.41.234] (Not Verified[10.50.41.234]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Thu, 13 Oct 2005 11:48:42 -0400 From: John Baldwin To: freebsd-ppc@freebsd.org Date: Thu, 13 Oct 2005 11:33:42 -0400 User-Agent: KMail/1.8.2 References: <000701c5d003$1d0a49e0$13b46743@TIM> In-Reply-To: <000701c5d003$1d0a49e0$13b46743@TIM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510131133.44645.jhb@freebsd.org> Cc: 'Peter Grehan' Subject: Re: Panic on boot from CD X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 15:32:22 -0000 On Thursday 13 October 2005 10:33 am, Tim Simmons wrote: > Sorry it's taken me a while to respond, I've been out on family leave. I > have tried as you suggested, booting from the open firmware screen instead > of directly from the CD, and I get the same result. > > I downloaded and burned the 6.0RC1 ISO this morning, and get a slightly > different error, but in the same place. The error now reads: > > KDB: debugger backends: ddb > KDB: current backend: ddb > Panic: Assertion curthread != NULL failed at > /usr/src/sys/kern/kern_mutex.c:268 > > KDB: enter: panic > [thread pid -1 tid 0 ] > Stopped at 0: illegal instruction 0 > Db> > > > I can't interact with the system at this point to run a stack trace. Any > ideas? Oh, and no, it's not an eMac. It's a PowerMac G4 667mhz w/ 256 megs > ram. This same machine runs fine under OSX. curthread of NULL would certainly indicate that mtx_lock() is being called before mutex_init(). If there's any way to get a stack trace, that would be helpful. Alternatively, you can try inserting a while (1); hang in the code prior to the call to mutex_init() and move it around until you find out where the hang is. However, looking in powerpc_init(), it seems that kdb_init() (which does the KDB printf's) doesn't get called until after mutex_init(), so it seems that curthread is getting reset to NULL after it was initially set before mutex_init(). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-ppc@FreeBSD.ORG Thu Oct 13 15:51:21 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 2DFF616A41F; Thu, 13 Oct 2005 15:51:21 +0000 (GMT) (envelope-from TimSimmons@championrealty.com) Received: from mail.championrealty.com (mail.fnistools.com [206.54.148.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id A402F43D45; Thu, 13 Oct 2005 15:51:20 +0000 (GMT) (envelope-from TimSimmons@championrealty.com) Received: from TIM [67.103.180.19] by mail.championrealty.com with ESMTP (SMTPD32-8.15) id A274A9F9011E; Thu, 13 Oct 2005 10:51:16 -0500 From: "Tim Simmons" To: "'John Baldwin'" Date: Thu, 13 Oct 2005 11:51:21 -0400 Message-ID: <001d01c5d00d$f59ebb60$13b46743@TIM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcXQC01MK65I/3EATK+YnMVWBG4/lAAAEinA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <200510131133.44645.jhb@freebsd.org> X-Declude-Sender: TimSimmons@championrealty.com [67.103.180.19] X-Declude-Spoolname: D8274A9F9011E2B04.SMD X-Declude-Scan: Score [0] at 10:51:17 on 13 Oct 2005 X-Declude-Tests: Whitelisted X-Country-Chain: Organization: Fidelity National Real Estate Solutions Cc: freebsd-ppc@freebsd.org Subject: RE: Panic on boot from CD X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 15:51:21 -0000 I only have the one mac in here that I can use, and since I don't have an OS with a working compiler on it, I'm afraid I can't do much in the way of code hacking. Tim Simmons IT Technician Champion Realty, Inc. TimSimmons@ChampionRealty.Com Direct:410-975-3028 Fax: 410-647-1187 -----Original Message----- From: John Baldwin [mailto:jhb@freebsd.org] Sent: Thursday, October 13, 2005 11:34 AM To: freebsd-ppc@freebsd.org Cc: Tim Simmons; 'Peter Grehan' Subject: Re: Panic on boot from CD On Thursday 13 October 2005 10:33 am, Tim Simmons wrote: > Sorry it's taken me a while to respond, I've been out on family leave. I > have tried as you suggested, booting from the open firmware screen instead > of directly from the CD, and I get the same result. > > I downloaded and burned the 6.0RC1 ISO this morning, and get a slightly > different error, but in the same place. The error now reads: > > KDB: debugger backends: ddb > KDB: current backend: ddb > Panic: Assertion curthread != NULL failed at > /usr/src/sys/kern/kern_mutex.c:268 > > KDB: enter: panic > [thread pid -1 tid 0 ] > Stopped at 0: illegal instruction 0 > Db> > > > I can't interact with the system at this point to run a stack trace. Any > ideas? Oh, and no, it's not an eMac. It's a PowerMac G4 667mhz w/ 256 megs > ram. This same machine runs fine under OSX. curthread of NULL would certainly indicate that mtx_lock() is being called before mutex_init(). If there's any way to get a stack trace, that would be helpful. Alternatively, you can try inserting a while (1); hang in the code prior to the call to mutex_init() and move it around until you find out where the hang is. However, looking in powerpc_init(), it seems that kdb_init() (which does the KDB printf's) doesn't get called until after mutex_init(), so it seems that curthread is getting reset to NULL after it was initially set before mutex_init(). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-ppc@FreeBSD.ORG Thu Oct 13 17:50:14 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 E57B016A433; Thu, 13 Oct 2005 17:50:14 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6525843D46; Thu, 13 Oct 2005 17:50:14 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 243A2127FE; Thu, 13 Oct 2005 19:50:13 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 83783-07; Thu, 13 Oct 2005 19:50:06 +0200 (CEST) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id E196111A16; Thu, 13 Oct 2005 19:50:05 +0200 (CEST) From: Florent Thoumie To: Koop Mast In-Reply-To: <62963.141.252.171.68.1129208238.squirrel@webmail.cacholong.nl> References: <434DF5DD.3030704@freebsd.org> <62963.141.252.171.68.1129208238.squirrel@webmail.cacholong.nl> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BrhtkhDie1ccpXX1LqVN" Date: Thu, 13 Oct 2005 19:50:04 +0200 Message-Id: <1129225804.785.1.camel@cream.xbsd.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Peter Grehan , freebsd-ppc@freebsd.org Subject: Re: 6.0-RC1 iso available X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 17:50:15 -0000 --=-BrhtkhDie1ccpXX1LqVN Content-Type: text/plain; charset=iso8859-15 Content-Transfer-Encoding: quoted-printable Le Jeudi 13 octobre 2005 =E0 14:57 +0200, Koop Mast a =E9crit : > > Hi all, > > > > It's available at: > > > > http://people.freebsd.org/~grehan/ppc_iso/6.0-RC1-powerpc-disc1.iso > > > > .. and should show up on mirrors soon. > > > > This fixes the crash-on-boot problem with G3's that was in BETA4. > > > > I've installed on an eMac and a 233 revB iMac so far without problems= . >=20 > That G4 that I reported a little while ago, boots now up to sysinstall. > Can't test if it installs, because it's being used. >=20 > Great work! Don't hesitate to send-pr to update the FreeBSD/ppc page with=20 new information (even plain text, I'll do the sgml part). I guess there is some outdated information now (patches no=20 longer necessary, ...). --=20 Florent Thoumie flz@FreeBSD.org FreeBSD committer --=-BrhtkhDie1ccpXX1LqVN Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDTp5MMxEkbVFH3PQRAouVAKCD9+eONNDV/ObqGzXhlp7cfCcO4wCfXmj8 HniX7bHegthfDF9gwMhCxOc= =BAZq -----END PGP SIGNATURE----- --=-BrhtkhDie1ccpXX1LqVN-- From owner-freebsd-ppc@FreeBSD.ORG Sat Oct 15 01:01:08 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 B731516A420 for ; Sat, 15 Oct 2005 01:01:08 +0000 (GMT) (envelope-from ben+freebsd.org@narcissus.net) Received: from absinthe.tinho.net (absinthe.tinho.net [166.84.5.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C85243D45 for ; Sat, 15 Oct 2005 01:01:08 +0000 (GMT) (envelope-from ben+freebsd.org@narcissus.net) Received: by absinthe.tinho.net (Postfix, from userid 103) id C149F1BF924; Fri, 14 Oct 2005 21:01:07 -0400 (EDT) Date: Fri, 14 Oct 2005 21:01:07 -0400 From: Ben Rosengart To: freebsd-ppc@freebsd.org Message-ID: <20051015010107.GA88834@absinthe.tinho.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: sawtooth: no carrier on gem0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2005 01:01:08 -0000 Hello good people, I am experimenting with FreeBSD-ppc for the first time. The install went well, but I cannot seem to get the ethernet working. ifconfig(8) reports that gem0 has "no carrier" and that the media type is set to "autodetect (none)". This is the only ethernet interface, so I assume it's the right one to get to the on-board ethernet hardware. This interface works just fine under Mac OS X, so it does not appear to be a hardware problem. The machine is a dual 450-MHz G4, i.e. this one: http://www.lowendmac.com/ppc/g4saw.shtml The wiki page does not say anything about this problem, though it refers to the "outdated official project page", which says: On-board BMAC+ ethernet does not work. There is a work-in-progress bm(4) driver available on Peter Grehan's personal page here (see if_bm.c and if_bmreg.h). However, I seem to be using gem(4), not bm(4). Advice would be greatly appreciated. Thanks in advance, -- Ben Rosengart ben@narcissus.net "Young people should be seen and not heard, because they're good-looking but not too bright. We're pretty bright now, but we're ugly." -- Grace Slick on the '60s youth movement From owner-freebsd-ppc@FreeBSD.ORG Sat Oct 15 01:31:13 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 8680816A41F for ; Sat, 15 Oct 2005 01:31:13 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from cayenne.onthenet.com.au (cacheflow.OntheNet.com.au [203.22.124.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 271D043D48 for ; Sat, 15 Oct 2005 01:31:12 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.18.185] (CPE-18-185.dsl.OntheNet.net [203.144.18.185]) by cayenne.onthenet.com.au (Postfix) with ESMTP id 0FCA37590A6; Sat, 15 Oct 2005 11:31:11 +1000 (EST) Message-ID: <43505BDC.8060705@freebsd.org> Date: Sat, 15 Oct 2005 11:31:08 +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: Ben Rosengart References: <20051015010107.GA88834@absinthe.tinho.net> In-Reply-To: <20051015010107.GA88834@absinthe.tinho.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: sawtooth: no carrier on gem0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2005 01:31:13 -0000 Hi Ben, > I am experimenting with FreeBSD-ppc for the first time. The install > went well, but I cannot seem to get the ethernet working. ifconfig(8) > reports that gem0 has "no carrier" and that the media type is set to > "autodetect (none)". ... > However, I seem to be using gem(4), not bm(4). Yep, it would be the gem on that model. What type of phy do you get in the dmesg ? For comparison, here's the relevant part of a 'boot -v' dmesg on an eMac: gem0: mem 0xf5200000-0xf53fffff irq 41 at device 1 5.0 on pci2 gem0: Reserved 0x200000 bytes for rid 0x10 type 3 at 0xf5200000 uninorth mapdev: start f5200000, len 2097152 miibus0: on gem0 bmtphy0: on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto gem0: 10kB RX FIFO, 4kB TX FIFO gem0: bpf attached gem0: Ethernet address: 00:03:93:a4:36:fe gem0: [MPSAFE] later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Sat Oct 15 16:58:37 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org 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 97E6016A442; Sat, 15 Oct 2005 16:58:36 +0000 (GMT) (envelope-from ben+freebsd.org@narcissus.net) Received: from absinthe.tinho.net (absinthe.tinho.net [166.84.5.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57A6643D48; Sat, 15 Oct 2005 16:58:36 +0000 (GMT) (envelope-from ben+freebsd.org@narcissus.net) Received: by absinthe.tinho.net (Postfix, from userid 103) id DC2621BF91E; Sat, 15 Oct 2005 12:58:35 -0400 (EDT) Date: Sat, 15 Oct 2005 12:58:35 -0400 From: Ben Rosengart To: Peter Grehan Message-ID: <20051015165835.GA13681@absinthe.tinho.net> References: <20051015010107.GA88834@absinthe.tinho.net> <43505BDC.8060705@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43505BDC.8060705@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-ppc@freebsd.org Subject: Re: sawtooth: no carrier on gem0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2005 16:58:39 -0000 On Sat, Oct 15, 2005 at 11:31:08AM +1000, Peter Grehan wrote: > > What type of phy do you get in the dmesg ? I had to transcribe this by hand, I hope it's all correct. gem0: mem 0xf5200000-0xf53fffff irq 41 at device 15.0 on pci3 miibus0: on gem0 brgphy0: on miibus0 brgphy0: 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto [couple of lines about fifos and the MAC addr] gem0: if-start running deferred for Giant gem0: [GIANT-LOCKED] -- Ben Rosengart ben@narcissus.net "Young people should be seen and not heard, because they're good-looking but not too bright. We're pretty bright now, but we're ugly." -- Grace Slick on the '60s youth movement