NetBSD Problem Report #55197

From tsutsui@ceres.dti.ne.jp  Wed Apr 22 16:16:29 2020
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 64AEB1A9218
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 22 Apr 2020 16:16:29 +0000 (UTC)
Message-Id: <202004221616.03MGGJlp017432@ceres.dti.ne.jp>
Date: Thu, 23 Apr 2020 01:16:19 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Subject: 9.0 sysinst does not prepare a boot partition for hp300

>Number:         55197
>Category:       install
>Synopsis:       9.0 sysinst does not prepare a boot partition for hp300
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    martin
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 22 16:20:00 +0000 2020
>Last-Modified:  Wed Apr 22 16:27:04 +0000 2020
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.0
>Organization:
>Environment:
System: NetBSD 9.0 (RAMDISK) #0: Fri Feb 14 00:06:28 UTC 2020   mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/hp300/compile/RAMDISK
Architecture: m68k
Machine: hp300
>Description:
On NetBSD/hp300, users have to prepare a "boot partition" to store
NetBSD/hp300 native bootloader because it's larger than 8KB reserved
by FFSv1. On NetBSD 8.0 (and 8.2) sysinst in NetBSD/hp300 RAMDISK
kernel properly prepare a boot partition with one cylinder on
new installation:

---


 On which disk do you want to install NetBSD?



                       Available disks                  

                      >a: sd0 (34G, SEAGATE ST336754LC) 
                       b: sd1 (34G, SEAGATE ST336754LC)                       
                       c: sd2 (34G, SEAGATE ST336754LC) 
                       d: Extended partitioning         
                       x: Exit                                                


---
(note 8.2 doesn't have NOLUN quirk for the SEAGATE SCA disk)

---

 You can now change the sizes for the system partitions.  The default is to 
 allocate all the space to the root file system.  However, you may wish to
 have separate /usr (additional system files), /var (log files etc) or /home
 (users' home directories) file systems.

 Free space will be added to the partition marked with a '+'.

        MB         Cylinders   Sectors   Filesystem
   >a:    356 (34861)       518    730380 + /
    b:    128               186    262260   swap
    c:      0                 0         0   /tmp (mfs)
    d:      0                 0         0   /usr
    e:      0                 0         0   /var
    f:      0                 0         0   /home
    g: Add a user defined partition
    h: Change input units (sectors/cylinders/MB)
    x: Accept partition sizes.  Free space 34505 MB, 4 free partitions.

---

 We now have your BSD disklabel partitions as:
 This is your last chance to change them.

    Start  MB   End  MB  Size  MB FS type    Newfs Mount Mount point
    --------- --------- --------- ---------- ----- ----- -----------
 a:         1     34862     34861 FFSv1      Yes   Yes   /
 b:     34863     34990       128 swap
 c:         0     34990     34991 Whole disk
 d:         0         0         1 Boot partition
 e:         0         0         0 unused
 f: Show all unused partitions
 g: Change input units (sectors/cylinders/MB)
>x: Partition sizes ok

---

Note the "Boot partition" in d partition has one cylinder.
(calculated by hp300_boot_size() in src/usr.sbin/sysinst/arch/hp300/md.c)

On NetBSD/hp300 9.0, sysinst in the RAMDISK kernel no longer prepare
a boot partition:
---

 On which disk do you want to install NetBSD?



                           Available disks          

                          >a: sd0 (34G)             
                           b: sd1 (19G)                                       
                           c: Extended partitioning 
                           x: Exit                  


---


 You can use a simple editor to set the sizes of the NetBSD partitions, or
 apply the default partition sizes and contents.

 You will then be given the opportunity to change any of the partition
 details.

 The NetBSD (or free) part of your disk (sd1) is 19G.

 A full installation requires at least 868M without X and at least 1118M if
 the X sets are included.


                      What would you like to do?        

                     >a: Set sizes of NetBSD partitions 
                      b: Use default partition sizes    


---


 You can now change the sizes for the system partitions.  The default is to
 allocate all the space to the root file system.  However, you may wish to
 have separate /usr (additional system files), /var (log files etc) or /home
 (users' home directories) file systems.

 Free space will be added to the partition marked with a '+'.

       Size (sec)                            Filesystem
       ----------------------------------- - --------------------
   >a: 790528 (39600224)                   + /
    b: 262144                                <swap>
    c: 0                                     /tmp (mfs)
    d: 0                                     /usr
    e: 0                                     /var
       ----------------------------------- - --------------------
    g: Add a user defined partition
    h: Clone external partition(s)
    i: Change input units (sectors/cylinders/MB/GB)
    x: Go on.  Free space 38809696 sec.

---

 We now have your disklabel partitions for sd1 below.  This is your last   
 chance to change them. 

 Flags: (I)nstall, (N)ewfs.  Total size: 19G, free: 16K

     Start (sec)    End (sec)   Size (sec)  FS type Flag Filesystem
    ------------ ------------ ------------ -------- ---- ----------------
 a:            0     39600223     39600224   4.2BSD IN   /
 b:     39600256     39862367       262112     swap
 c:            0     39862367     39862368 Whole disk
    ------------ ------------ ------------ -------- ---- ----------------
 e: Change input units (sectors/cylinders/MB/GB)
 f: Edit name of the disk
 g: Clone external partition(s)
 h: Cancel
>x: Partition sizes ok

---

Then installboot fails during default installation.

>How-To-Repeat:
Install to a new disk using NetBSD/hp300 9.0 RAMDISK kernel (see above).

>Fix:
No idea.

It would be great to share description about design changes
in 9.0 how each MD boot partition is prepared (PR/55058, PR/55060,
and also PR/55187 etc.) so that other maintainers who know about
rare Tier-II machines can also consider how messy MD quirks could
be handled.

Thanks,
---
Izumi Tsutsui

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: install-manager->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Wed, 22 Apr 2020 16:27:04 +0000
Responsible-Changed-Why:
take


>Unformatted:
 From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
 Cc: tsutsui@ceres.dti.ne.jp
 Reply-To: tsutsui@ceres.dti.ne.jp
 X-send-pr-version: 3.95

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.