NetBSD Problem Report #45742

From shattered@NetBSD.org  Sun Dec 25 17:11:56 2011
Return-Path: <shattered@NetBSD.org>
Received: by www.NetBSD.org (Postfix, from userid 1427)
	id B082263C2B0; Sun, 25 Dec 2011 17:11:56 +0000 (UTC)
Message-Id: <20111225171156.B082263C2B0@www.NetBSD.org>
Date: Sun, 25 Dec 2011 17:11:56 +0000 (UTC)
From: shattered@netbsd.org
Reply-To: shattered@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: sysinst should warn about PDC's 2GB limit for boot partition
X-Send-Pr-Version: 3.95

>Number:         45742
>Category:       port-hp700
>Synopsis:       sysinst should warn about PDC's 2GB limit for boot partition
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-hp700-maintainer
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 25 17:15:00 +0000 2011
>Closed-Date:    Thu Jan 12 19:16:51 +0000 2012
>Last-Modified:  Thu Jan 12 19:16:51 +0000 2012
>Originator:     Sergey Svishchev
>Release:        NetBSD 5.99.59
>Organization:
>Environment:
>Description:
Neither sysinst nor install notes mention that PDC (firmware) cannot boot
from a partition greater than 2GB in size.

>How-To-Repeat:
Install http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201112220420Z/hp700/ on
a B180L.

In sysinst, use existing partitions on disk (manually partitioned beforehand).
The only warning is 

  installboot: WARNING: Partition `a' of `/dev/rsd0c' exceeds 2GB boundary.
  installboot: WARNING: It won't boot since hp700 PDC can handle only 2GB.

Installation completes without error, but boot fails:

  NetBSD/hp700 FFS/LFS Primary Bootstrap

  32bit firmware

  booting from partition a
  boot partition exceeds 2GB boundary
  boot partition (a-p, ! to reboot) [a]:


>Fix:


>Release-Note:

>Audit-Trail:
From: Nick Hudson <nick.hudson@gmx.co.uk>
To: gnats-bugs@netbsd.org
Cc: port-hp700-maintainer@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: port-hp700/45742: sysinst should warn about PDC's 2GB limit for boot partition
Date: Fri, 30 Dec 2011 22:18:35 +0000

 On Sunday 25 December 2011 17:15:00 shattered@netbsd.org wrote:
 > >Synopsis:       sysinst should warn about PDC's 2GB limit for boot
 [...]
 > >Description:
 > Neither sysinst nor install notes mention that PDC (firmware) cannot boot
 > from a partition greater than 2GB in size.

 Using the sysinst "Set sizes of NetBSD partitions" option does limit root to 
 2GB. 

 > In sysinst, use existing partitions on disk (manually partitioned
 > beforehand). The only warning is
 > 
 >   installboot: WARNING: Partition `a' of `/dev/rsd0c' exceeds 2GB boundary.
 >   installboot: WARNING: It won't boot since hp700 PDC can handle only 2GB.

 Isn't this warning good enough? I look into adding a note to the install 
 notes.

 Nick

From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-hp700/45742: sysinst should warn about PDC's 2GB limit for
 boot partition
Date: Sat, 7 Jan 2012 20:29:02 +0400

 On Fri, Dec 30, 2011 at 10:20:04PM +0000, Nick Hudson wrote:

 > > In sysinst, use existing partitions on disk (manually partitioned
 > > beforehand). The only warning is
 > >
 > >   installboot: WARNING: Partition `a' of `/dev/rsd0c' exceeds 2GB boundary.
 > >   installboot: WARNING: It won't boot since hp700 PDC can handle only 2GB.
 >
 > Isn't this warning good enough? I look into adding a note to the install
 > notes.

 It happens too late, after all sets were already extracted -> waste of time.

 Other ports (amiga, vax...) could benefit from such early warning too.

 -- 
 Sergey Svishchev

From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45742 CVS commit: src/usr.sbin/installboot/arch
Date: Mon, 9 Jan 2012 11:44:54 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Mon Jan  9 11:44:54 UTC 2012

 Modified Files:
 	src/usr.sbin/installboot/arch: hp700.c

 Log Message:
 Make it an error for the partition to exceed the PDC limit.

 Inspired by PR/45742


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/installboot/arch/hp700.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45742 CVS commit: src/distrib/utils/sysinst/arch/hp700
Date: Mon, 9 Jan 2012 11:51:41 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Mon Jan  9 11:51:41 UTC 2012

 Modified Files:
 	src/distrib/utils/sysinst/arch/hp700: md.c msg.md.de msg.md.en
 	    msg.md.es msg.md.fr msg.md.pl

 Log Message:
 Error if the root partition exceeds the PDC 2GB limit. The check now
 catches invalid "existing" partitions. PR/45742

 Thanks to martin for the German translation. The others are all my fault.

 Thanks to mrg for comments


 To generate a diff of this commit:
 cvs rdiff -u -r1.13 -r1.14 src/distrib/utils/sysinst/arch/hp700/md.c
 cvs rdiff -u -r1.5 -r1.6 src/distrib/utils/sysinst/arch/hp700/msg.md.de \
     src/distrib/utils/sysinst/arch/hp700/msg.md.en \
     src/distrib/utils/sysinst/arch/hp700/msg.md.es \
     src/distrib/utils/sysinst/arch/hp700/msg.md.pl
 cvs rdiff -u -r1.6 -r1.7 src/distrib/utils/sysinst/arch/hp700/msg.md.fr

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Tue, 10 Jan 2012 10:07:00 +0000
State-Changed-Why:
Changes committed. OK to close?


From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-hp700/45742 (sysinst should warn about PDC's 2GB limit for
 boot partition)
Date: Thu, 12 Jan 2012 22:14:22 +0400

 On Tue, Jan 10, 2012 at 10:07:01AM +0000, skrll@NetBSD.org wrote:
 >Synopsis: sysinst should warn about PDC's 2GB limit for boot partition
 >
 >State-Changed-From-To: open->feedback
 >State-Changed-By: skrll@NetBSD.org
 >State-Changed-When: Tue, 10 Jan 2012 10:07:00 +0000
 >State-Changed-Why:
 >Changes committed. OK to close?

 Yes, thanks.

 -- 
 Sergey Svishchev

State-Changed-From-To: feedback->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Thu, 12 Jan 2012 19:16:51 +0000
State-Changed-Why:
Submitter confirmed ok to close.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.