NetBSD Problem Report #51362

From martin@duskware.de  Tue Jul 26 18:35:31 2016
Return-Path: <martin@duskware.de>
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 C0FFD7A1B1
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 26 Jul 2016 18:35:30 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: installing from USB sticks is not possible
X-Send-Pr-Version: 3.95

>Number:         51362
>Category:       kern
>Synopsis:       installing from USB sticks is not possible
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 26 18:40:00 +0000 2016
>Closed-Date:    Sun May 15 07:22:07 +0000 2022
>Last-Modified:  Sun May 15 07:22:07 +0000 2022
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.34
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 7.99.34 NetBSD 7.99.34 (NIGHT-OWL) #422: Tue Jul 26 13:40:41 CEST 2016 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

Booting an USB install image, like
http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/201607260800Z/images/NetBSD-7.99.34-amd64-install.img.gz

with boot -a (because I have a broke raid config that I want to recover)
failed. After forcing root to sd0a init dies with "no /dev/console".

However, the filesystem has a perfectly fine /dev/console:

# ll /mnt/dev/console 
crw-------  1 root  wheel  0, 0 Jul 11 19:01 /mnt/dev/console


>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/51362: installing from USB sticks is not possible
Date: Tue, 26 Jul 2016 21:09:38 +0200

 On Tue, Jul 26, 2016 at 06:40:00PM +0000, martin@NetBSD.org wrote:
 > with boot -a (because I have a broke raid config that I want to recover)
 > failed. After forcing root to sd0a init dies with "no /dev/console".

 OK, being able to read clearly helps: it is not /dev/console that is missing
 but drmkms failing (cnopen: no console device).

 I added

 userconf=disable nouveau*
 userconf=disable nouveaufb*

 to the /boot.cfg file on the usb stick and then was able to get into
 the installer.

 Martin

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/51362: installing from USB sticks is not possible
Date: Sun, 31 Jul 2016 20:07:14 +0000

 On Tue, Jul 26, 2016 at 07:10:00PM +0000, Martin Husemann wrote:
  > On Tue, Jul 26, 2016 at 06:40:00PM +0000, martin@NetBSD.org wrote:
  >> with boot -a (because I have a broke raid config that I want to recover)
  >> failed. After forcing root to sd0a init dies with "no /dev/console".
  >  
  > OK, being able to read clearly helps: it is not /dev/console that is missing
  > but drmkms failing (cnopen: no console device).
  >  
  > I added
  >  
  > userconf=disable nouveau*
  > userconf=disable nouveaufb*
  >  
  > to the /boot.cfg file on the usb stick and then was able to get into
  > the installer.

 Can you file a separate PR on the nouveau problem?

 Meanwhile, any idea why it isn't probing the root device correctly?
 That ought to be fixed.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/51362: installing from USB sticks is not possible
Date: Sun, 31 Jul 2016 22:15:32 +0200

 On Sun, Jul 31, 2016 at 08:10:00PM +0000, David Holland wrote:
 >  Can you file a separate PR on the nouveau problem?

 That is the only problem here, but I think we already have a PR about
 that (this is a pretty new nvidia card, so firmware WILL not be available).

 We need a way to gracefully fail early.

 >  Meanwhile, any idea why it isn't probing the root device correctly?
 >  That ought to be fixed.

 One of the disks was from an (old) raid set with forced autoroot, so
 the behaviour was just as expected.

 Martin

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/51362: installing from USB sticks is not possible
Date: Mon, 1 Aug 2016 00:16:24 +0000

 On Sun, Jul 31, 2016 at 08:20:00PM +0000, Martin Husemann wrote:
  >  On Sun, Jul 31, 2016 at 08:10:00PM +0000, David Holland wrote:
  >  >  Can you file a separate PR on the nouveau problem?
  >  
  >  That is the only problem here, but I think we already have a PR about
  >  that (this is a pretty new nvidia card, so firmware WILL not be available).

 All I see at the moment is 50804 and 51091, neither of which really
 seems to cover it.

  >  We need a way to gracefully fail early.

 Yes. Something like the patch in 50808 might be a starting point, but
 ultimately if the drmkms console fails we ought to fall back to the
 traditional one.

 Maybe file a PR on that? I don't think one exists.

  >  >  Meanwhile, any idea why it isn't probing the root device correctly?
  >  >  That ought to be fixed.
  >  
  >  One of the disks was from an (old) raid set with forced autoroot, so
  >  the behaviour was just as expected.

 ah, I guess never mind that part then...

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->feedback
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Tue, 18 Sep 2018 02:54:08 +0000
State-Changed-Why:
-current should have fixes for boot -a.


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 15 May 2022 07:22:07 +0000
State-Changed-Why:
3.5 year feedback timeout


>Unformatted:

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.