From owner-freebsd-sparc64@FreeBSD.ORG Sun Dec 28 19:54:38 2008 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A79E1065674 for ; Sun, 28 Dec 2008 19:54:38 +0000 (UTC) (envelope-from dcornejo@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.236]) by mx1.freebsd.org (Postfix) with ESMTP id 53B108FC0C for ; Sun, 28 Dec 2008 19:54:38 +0000 (UTC) (envelope-from dcornejo@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so5694710rvf.43 for ; Sun, 28 Dec 2008 11:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=siRMebN9qUiCzxsFKoCyG+xWBKcXNHHRPDroiUcQAyI=; b=cq3rwl77VH7J13ZqUP+tlPJsz57KvNS0EM9CKqnmrqf8Mdn9LaDpzE0mHjRdIHr3Us 63j7DkUulJKqnUc/NbQagcPgRxsAmkkJr+uDbqPLuFnE5dTtCLxtfNGXWj94c6hM96Vj nFzL0fIORo12YhQ8HqCxpyN7dVcHhsUoAx+h4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=lrF5e63qloPE+Q86WmSHg/OLaFQYTp3KvpQTCwxBbt2Ez9uCJ4KPe25dL4/ejdbGp8 O6zIY0ythrB7Y5+LiAIxPMlAtjmfM46x7EFaBI4kQb4Abio2M8lQNyKCsw166Lfgzesq mWoKu+wmFxwnz75bs5DmYCeflXXhqgfhvyK/w= Received: by 10.141.176.16 with SMTP id d16mr6347094rvp.120.1230492529308; Sun, 28 Dec 2008 11:28:49 -0800 (PST) Received: by 10.140.110.3 with HTTP; Sun, 28 Dec 2008 11:28:49 -0800 (PST) Message-ID: <6b8e8f4f0812281128lf48f391r38f063f7f797404@mail.gmail.com> Date: Sun, 28 Dec 2008 09:28:49 -1000 From: "David Cornejo" To: freebsd-sparc64@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: invalid disk label on updated current ultra60 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 19:54:38 -0000 Hi, I've got an ultra60 that works fine with a kernel built Nov 22nd and new kernels starting at least a couple of days ago claim that the disklabel on da0 & da1 are invalid and mounting root fails. This is a fairly old system that was probably installed with 6 or 7 and upgraded to 8. I haven't seen this problem on my x86/amd64 machines is there some incantation to make the disklabels valid? thanks, dave c From owner-freebsd-sparc64@FreeBSD.ORG Mon Dec 29 11:07:02 2008 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 772021065673 for ; Mon, 29 Dec 2008 11:07:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5CFE88FC14 for ; Mon, 29 Dec 2008 11:07:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mBTB721O024585 for ; Mon, 29 Dec 2008 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mBTB718M024581 for freebsd-sparc64@FreeBSD.org; Mon, 29 Dec 2008 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Dec 2008 11:07:01 GMT Message-Id: <200812291107.mBTB718M024581@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-sparc64@FreeBSD.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- f sparc/127051 sparc64 [hme] hme interfaces "pause" with the message "device o sparc/119244 sparc64 X11Forwarding to X11 server on sparc crashes Xorg o sparc/119240 sparc64 top has WCPU over 100% on UP system s sparc/119239 sparc64 gdb coredumps on sparc64 o sparc/119017 sparc64 7.0 Beta won't install on U60 o sparc/118932 sparc64 7.0-BETA4/sparc-64 kernel panic in rip_output o sparc/113556 sparc64 panic: trap: memory address not aligned; Rebooting... o sparc/109908 sparc64 apache22 mod_perl issue on sparc64 f sparc/108732 sparc64 ping(8) reports 14 digit time on sparc64 s sparc/107087 sparc64 system is hinged during boot from CD f sparc/106251 sparc64 [libmalloc] malloc fails > for large allocations f sparc/105157 sparc64 No reply to ping on Sparc64 o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/80890 sparc64 [panic] kmem_malloc(73728): kmem_map too small running o sparc/80410 sparc64 [netgraph] netgraph is causing crash with mpd on sparc o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 17 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Mon Dec 29 20:49:31 2008 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D8431065672; Mon, 29 Dec 2008 20:49:31 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id EE0248FC1C; Mon, 29 Dec 2008 20:49:30 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.14.3/8.14.3) with ESMTP id mBTKnS4n096582; Mon, 29 Dec 2008 15:49:28 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.3/8.14.3) with ESMTP id mBTKnSv0033618; Mon, 29 Dec 2008 15:49:28 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 72D8C7302F; Mon, 29 Dec 2008 15:49:28 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20081229204928.72D8C7302F@freebsd-current.sentex.ca> Date: Mon, 29 Dec 2008 15:49:28 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on clamscanner2 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 205.211.164.50 Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 20:49:32 -0000 TB --- 2008-12-29 19:20:22 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2008-12-29 19:20:22 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2008-12-29 19:20:22 - cleaning the object tree TB --- 2008-12-29 19:20:50 - cvsupping the source tree TB --- 2008-12-29 19:20:50 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2008-12-29 19:20:57 - building world TB --- 2008-12-29 19:20:57 - MAKEOBJDIRPREFIX=/obj TB --- 2008-12-29 19:20:57 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2008-12-29 19:20:57 - TARGET=sparc64 TB --- 2008-12-29 19:20:57 - TARGET_ARCH=sparc64 TB --- 2008-12-29 19:20:57 - TZ=UTC TB --- 2008-12-29 19:20:57 - __MAKE_CONF=/dev/null TB --- 2008-12-29 19:20:57 - cd /src TB --- 2008-12-29 19:20:57 - /usr/bin/make -B buildworld >>> World build started on Mon Dec 29 19:20:59 UTC 2008 >>> 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 >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Mon Dec 29 20:38:34 UTC 2008 TB --- 2008-12-29 20:38:34 - generating LINT kernel config TB --- 2008-12-29 20:38:34 - cd /src/sys/sparc64/conf TB --- 2008-12-29 20:38:34 - /usr/bin/make -B LINT TB --- 2008-12-29 20:38:34 - building LINT kernel TB --- 2008-12-29 20:38:34 - MAKEOBJDIRPREFIX=/obj TB --- 2008-12-29 20:38:34 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2008-12-29 20:38:34 - TARGET=sparc64 TB --- 2008-12-29 20:38:34 - TARGET_ARCH=sparc64 TB --- 2008-12-29 20:38:34 - TZ=UTC TB --- 2008-12-29 20:38:34 - __MAKE_CONF=/dev/null TB --- 2008-12-29 20:38:34 - cd /src TB --- 2008-12-29 20:38:34 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Mon Dec 29 20:38:34 UTC 2008 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/kern/kern_time.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/kern/kern_timeout.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/kern/kern_umtx.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/kern/kern_uuid.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/kern/kern_xxx.c cc1: warnings being treated as errors /src/sys/kern/kern_xxx.c: In function 'osethostname': /src/sys/kern/kern_xxx.c:86: warning: unused variable 'error' *** Error code 1 Stop in /obj/sparc64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-12-29 20:49:28 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-12-29 20:49:28 - ERROR: failed to build lint kernel TB --- 2008-12-29 20:49:28 - 4297.80 user 400.47 system 5345.45 real http://tinderbox.des.no/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Wed Dec 31 19:47:43 2008 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B04D1065693 for ; Wed, 31 Dec 2008 19:47:43 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 1FA7E8FC24 for ; Wed, 31 Dec 2008 19:47:42 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id mBVJlfqo057260; Wed, 31 Dec 2008 20:47:41 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id mBVJlfJe057259; Wed, 31 Dec 2008 20:47:41 +0100 (CET) (envelope-from marius) Date: Wed, 31 Dec 2008 20:47:41 +0100 From: Marius Strobl To: David Cornejo , marcel@FreeBSD.org Message-ID: <20081231194741.GA57089@alchemy.franken.de> References: <6b8e8f4f0812281128lf48f391r38f063f7f797404@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b8e8f4f0812281128lf48f391r38f063f7f797404@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@FreeBSD.org Subject: Re: invalid disk label on updated current ultra60 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 19:47:44 -0000 On Sun, Dec 28, 2008 at 09:28:49AM -1000, David Cornejo wrote: > Hi, > > I've got an ultra60 that works fine with a kernel built Nov 22nd and > new kernels starting at least a couple of days ago claim that the > disklabel on da0 & da1 are invalid and mounting root fails. This is a > fairly old system that was probably installed with 6 or 7 and upgraded > to 8. I haven't seen this problem on my x86/amd64 machines is there > some incantation to make the disklabels valid? > Apparently the problem are labels (originally) generated by Solaris, which uses the native geometry reported by the target rather than a synthetic one based on 255 heads and 63 sectors as demonstrated by the following format(1M) output for two identical disks, the first labeled with format(1M) and the second with sunlabel(8) (after zeroing the previous one): 0. c1t0d0 /pci@1f,700000/scsi@2/sd@0,0 1. c1t1d0 /pci@1f,700000/scsi@2/sd@1,0 The 63 sectors limit of GEOM_PART_VTOC8 also causes problems with IDE disks > 32GB where FreeBSD uses a synthetic geometry based on 255 sectors like Solaris does in order to circumvent the 16-bit cylinders, heads and sectors fields of the Sun and VTOC8 disk labels. I think the upper limits for heads and sectors therefore should be just removed from GEOM_PART_VTOC8, which should also be safe, i.e. no upper bound needed, as done by the below patch in order for their maximum value to be used. Marcel, are you okay with this? Do you have a good idea how to avoid the warning regarding geometry mismatch for labels created by Solaris? Marius Index: g_part_vtoc8.c =================================================================== --- g_part_vtoc8.c (revision 186424) +++ g_part_vtoc8.c (working copy) @@ -371,7 +371,7 @@ g_part_vtoc8_read(struct g_part_table *basetable, msize = pp->mediasize / pp->sectorsize; sectors = be16dec(&table->vtoc.nsecs); - if (sectors < 1 || sectors > 63) + if (sectors < 1) goto invalid_label; if (sectors != basetable->gpt_sectors && !basetable->gpt_fixgeom) { g_part_geometry_heads(msize, sectors, &chs, &heads); @@ -382,13 +382,15 @@ g_part_vtoc8_read(struct g_part_table *basetable, } heads = be16dec(&table->vtoc.nheads); - if (heads < 1 || heads > 255) + if (heads < 1) goto invalid_label; if (heads != basetable->gpt_heads && !basetable->gpt_fixgeom) basetable->gpt_heads = heads; if (sectors != basetable->gpt_sectors || heads != basetable->gpt_heads) - printf("GEOM: %s: geometry does not match label.\n", pp->name); + printf("GEOM: %s: geometry does not match VTOC label " + "(%uh,%us != %uh,%us).\n", pp->name, heads, sectors, + basetable->gpt_heads, basetable->gpt_sectors); table->secpercyl = heads * sectors; cyls = be16dec(&table->vtoc.ncyls); @@ -444,7 +446,7 @@ g_part_vtoc8_read(struct g_part_table *basetable, return (0); invalid_label: - printf("GEOM: %s: invalid disklabel.\n", pp->name); + printf("GEOM: %s: invalid VTOC label.\n", pp->name); return (EINVAL); }