NetBSD Problem Report #52128
From www@NetBSD.org Fri Mar 31 20:10:04 2017
Return-Path: <www@NetBSD.org>
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 "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 996557A16F
for <gnats-bugs@gnats.NetBSD.org>; Fri, 31 Mar 2017 20:10:04 +0000 (UTC)
Message-Id: <20170331201003.AD6B57A2AD@mollari.NetBSD.org>
Date: Fri, 31 Mar 2017 20:10:03 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Sysinst reports it's unable to find any hard disks when performing install
X-Send-Pr-Version: www-1.0
>Number: 52128
>Category: port-hpcarm
>Synopsis: Sysinst reports it's unable to find any hard disks when performing install
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-hpcarm-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 31 20:15:00 +0000 2017
>Last-Modified: Mon Apr 03 09:45:00 +0000 2017
>Originator: Sevan Janiyan
>Release: NetBSD-Head
>Organization:
>Environment:
>Description:
The INSTALL_JORNADA720 kernel and miniroot.fs in snapshots for this week (maybe a little earlier too, since last week) have been having various issues.
If the root file system is mountable, sysinst is unable to perform an install because it reports no hard disk can detected.
If you try to partition a disk from the utility menu, sysinst seg faults.
looking at the core file generated (sysinst doesn't contain symbols) issuing a backtrace reports
backtrace stopped: previous frame identical to this frame (corrupt stack?)
>How-To-Repeat:
try to use hpcarm/installation/netbsd-JORNADA720.gz & hpcarm/installation/miniroot/miniroot.fs.gz from a recent snapshot in head
>Fix:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Sat, 1 Apr 2017 08:23:23 +0200
Sysinst does not do any magic to detect disks, it relies on the kernel for
that, so in this case: sysctkl hw.disknames
It certainly should not segfault, but that is slightly tricky to debug in
install environments.
Let's fix the disk issue first: does the kernel recognize any disks?
Martin
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Sat, 1 Apr 2017 09:13:05 +0100
On 01/04/2017 07:25, Martin Husemann wrote:
> Let's fix the disk issue first: does the kernel recognize any disks?
Yes, it reports the CF card as detected on boot. Removing & re-attaching
the CF card detaches & re-attaches wdc(4) & wd(4).
Sevan
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Sat, 1 Apr 2017 17:54:07 +0200
On Sat, Apr 01, 2017 at 08:15:01AM +0000, Sevan Janiyan wrote:
> Yes, it reports the CF card as detected on boot. Removing & re-attaching
> the CF card detaches & re-attaches wdc(4) & wd(4).
No error messages during attach?
What happens if you re-attach while in the first sysinst menu and then
try to install?
Martin
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Sat, 1 Apr 2017 17:35:25 +0100
On 01/04/2017 16:55, Martin Husemann wrote:
> No error messages during attach?
No, I took a photo
https://www.netbsd.org/~sevan/tmp/j720.jpg
> What happens if you re-attach while in the first sysinst menu and then
> try to install?
same thing, reports that it can't find any disk.
Just to clarify, I was able to perform an install using sysinst from a
release I built earlier last month. current working kernel reports being
built on the 19th, now I can't remember if I ran update before baking
the release on the 19th or the checkout was a couple of days older. I've
gone through all the commits since those dates but nothing shines out
though there are numerous changes to VFS & filesystem which is within
the same ball park as the issue but no idea to rule out a suspect.
Sevan
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Sat, 1 Apr 2017 19:13:03 +0200
On Sat, Apr 01, 2017 at 04:40:00PM +0000, Sevan Janiyan wrote:
> Just to clarify, I was able to perform an install using sysinst from a
> release I built earlier last month.
I was wrong - apparently I did not commit the sysctl hw.disknames change
yet :-/
Can you check the /dev/*wd* entries and compare with a working system?
Martin
From: Sevan Janiyan <sevan@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Sat, 1 Apr 2017 18:30:38 +0100
On 01/04/2017 18:15, Martin Husemann wrote:
> I was wrong - apparently I did not commit the sysctl hw.disknames change
> yet :-/
>
> Can you check the /dev/*wd* entries and compare with a working system?
Taken from the install on the CF card from the 19th
http://www.netbsd.org/~sevan/tmp/working.txt
Taken from the installkernel & miniroot.fs
http://www.netbsd.org/~sevan/tmp/notworking.txt
Sevn
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Sun, 2 Apr 2017 09:49:29 +0200
So basically no differences.
Please go to the Utility Menu, run /bin/sh and manually try to access
the disk, like just display the disklabel.
Martin
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Sun, 2 Apr 2017 14:48:02 +0100
On 02/04/2017 08:50, Martin Husemann wrote:
> So basically no differences.
Correct
> Please go to the Utility Menu, run /bin/sh and manually try to access
> the disk, like just display the disklabel.
# disklabel -i wd0
disklabel: /dev/rwd0: Device not configured
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 09:51:38 +0200
On Sun, Apr 02, 2017 at 01:50:01PM +0000, Sevan Janiyan wrote:
> # disklabel -i wd0
> disklabel: /dev/rwd0: Device not configured
But you said it did attach? No error messages during attach?
Martin
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 09:14:52 +0100
On 03/04/2017 08:55, Martin Husemann wrote:
> But you said it did attach? No error messages during attach?
No, see
http://www.netbsd.org/~sevan/tmp/j720.jpg
Sevan
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 10:27:12 +0200
On Mon, Apr 03, 2017 at 08:20:01AM +0000, Sevan Janiyan wrote:
> No, see
> http://www.netbsd.org/~sevan/tmp/j720.jpg
OK, so can you show
sysctl kern.rawpartition
please?
Martin
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 09:34:04 +0100
On 03/04/2017 09:30, Martin Husemann wrote:
> OK, so can you show
>
> sysctl kern.rawpartition
>
> please?
unfortunately, sysctl command is not on the hpcarm miniroot.fs
Sevan
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 10:38:05 +0200
On Mon, Apr 03, 2017 at 08:35:01AM +0000, Sevan Janiyan wrote:
> unfortunately, sysctl command is not on the hpcarm miniroot.fs
Try the manual disklabel with a full path, like:
disklabel /dev/rwd0d
(your /dev/ assumes it would be rwd0c, just making sure it did not
accidentialy change in kernel w/o updating userland)
Martin
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: port-hpcarm-maintainer@netbsd.org, venture37@geeklan.co.uk
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 16:19:57 +0800 (+08)
On Mon, 3 Apr 2017, Martin Husemann wrote:
> On Sun, Apr 02, 2017 at 01:50:01PM +0000, Sevan Janiyan wrote:
> > # disklabel -i wd0
> > disklabel: /dev/rwd0: Device not configured
>
> But you said it did attach? No error messages during attach?
Possibly incorrect major number for /dev/wd0* and /dev/rwd0* ?
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 09:46:53 +0100
On 03/04/2017 09:40, Martin Husemann wrote:
> Try the manual disklabel with a full path, like:
>
> disklabel /dev/rwd0d
>
> (your /dev/ assumes it would be rwd0c, just making sure it did not
> accidentialy change in kernel w/o updating userland)
That worked.
I have a partition c & d (fstype unused)
Sevan
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 09:48:22 +0100
On 03/04/2017 09:45, Paul Goyette wrote:
> Possibly incorrect major number for /dev/wd0* and /dev/rwd0* ?
Doesn't appear to be
http://www.netbsd.org/~sevan/tmp/notworking.txt
Sevan
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 11:00:19 +0200
On Mon, Apr 03, 2017 at 08:50:01AM +0000, Sevan Janiyan wrote:
> That worked.
> I have a partition c & d (fstype unused)
So some commit changed hpcarm to use MBR common code (or something like
that). We need to find out if this was by accident and revert, or fix
all the loose ends (easy, now that it is analyzed).
Martin
From: Sevan Janiyan <sevan@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 10:00:34 +0100
On 03/04/2017 09:50, Sevan Janiyan wrote:
> > Try the manual disklabel with a full path, like:
> >
> > disklabel /dev/rwd0d
> >
> > (your /dev/ assumes it would be rwd0c, just making sure it did not
> > accidentialy change in kernel w/o updating userland)
>
>
> That worked.
> I have a partition c & d (fstype unused)
Thinking back now, I was installing builds natively on the Jornada but
got fed up with the time it was taking so I switched to installing from
sysinst on i386.
Could it be it that?
Sevan
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 10:33:41 +0100
On 03/04/2017 10:00, Sevan Janiyan wrote:
> Thinking back now, I was installing builds natively on the Jornada but
> got fed up with the time it was taking so I switched to installing from
> sysinst on i386.
>
> Could it be it that?
To rule this out, I wiped the CF with dd if=/dev/zero of=/dev/disk2
bs=1m count=1 and recreated a mbr partition on the CF spanning the disk,
formatted fat.
I copied hpcboot, netbsd-JORNADA720.gz & miniroot.fs to the CF card &
tried to install again.
sysinst still reports no disk can be found.
disklabel wd0 reports
wd0: no disk label
disklabel /dev/rwd0d works & reports a d & e partition exist.
Sevan
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: port-hpcarm-maintainer@netbsd.org, venture37@geeklan.co.uk
Subject: Re: port-hpcarm/52128: Sysinst reports it's unable to find any hard
disks when performing install
Date: Mon, 3 Apr 2017 17:40:54 +0800 (+08)
> I copied hpcboot, netbsd-JORNADA720.gz & miniroot.fs to the CF card &
> tried to install again.
>
> sysinst still reports no disk can be found.
>
> disklabel wd0 reports
> wd0: no disk label
>
> disklabel /dev/rwd0d works & reports a d & e partition exist.
This almost sounds like you've got a file named wd0 sitting in your
working directory. Older versions of getdiskrawname(3) would find that
file rather than looking in /dev ...
(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-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.