NetBSD Problem Report #50825

From www@NetBSD.org  Wed Feb 17 12:29:31 2016
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 EBB2A7ABFD
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 17 Feb 2016 12:29:31 +0000 (UTC)
Message-Id: <20160217122930.16A0A7ACC2@mollari.NetBSD.org>
Date: Wed, 17 Feb 2016 12:29:30 +0000 (UTC)
From: johnnywhishbone@gmail.com
Reply-To: johnnywhishbone@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Kernel crash on Toshiba Chromebook 2
X-Send-Pr-Version: www-1.0

>Number:         50825
>Category:       port-amd64
>Synopsis:       Kernel crash on Toshiba Chromebook 2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 17 12:30:00 +0000 2016
>Last-Modified:  Tue Feb 23 16:30:00 +0000 2016
>Originator:     Ronny Schneider
>Release:        NetBSD-7.99.26-amd64-install
>Organization:
>Environment:
>Description:
Hello,

the latest NetBSD-HEAD (NetBSD-7.99.26-amd64-install) is not able to boot properly on the Toshiba Chromebook 2 (CB30-B-104). It's a Bay Trail device an has a flashed Coreboot/SeaBIOS 1.9.1

After a few seconds the boot process interrupts and starts the debugger:

Image 1: http://bilderhochladen.org/i/sE9tr8Dory/
Image 2: http://bilderhochladen.org/i/0nX5eSbF0/

Arch Linux ist running fine, so i have created a dmesg and lspci from there:

dmesg (Arch Linux): http://pastebin.com/FNEhYdsZ
lspci -v (Arch Linux): http://pastebin.com/pnFErXqG
Coreboot-log (cbmem): http://pastebin.com/asLqar5q

OpenBSD, FreeBSD and DragonFly are neither booting on this machine. Other Chromebooks have these problems too, e.g. the Chromebook Pixel.
Either the kernel is not able to find the usb stick to mount the root filesystem, or the kernel crashes in the boot process.

I reported a bug at DragonFlyBSD, FreeBSD and SeaBIOS:
- DragonFlyBSD: http://bugs.dragonflybsd.org/issues/2890
- FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207251
- SeaBIOS: http://www.seabios.org/pipermail/seabios/2016-February/010485.html

Booting via SD Card is supported but doesn't resolve the issue of the kernel not finding the boot device. It seems the xHCI-Controller is not supported.

Please let me know if i can provide more informations.
Thank you very much!
>How-To-Repeat:
Boot the NetBSD-7.99.26-amd64-install.img from an usb stick on this machine with standard options.
>Fix:

>Audit-Trail:
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-amd64/50825: Kernel crash on Toshiba Chromebook 2
Date: Thu, 18 Feb 2016 15:44:28 +0800 (PHT)

 > Either the kernel is not able to find the usb stick to mount the root
 > filesystem, or the kernel crashes in the boot process.

 Based on the screen captures you posted, the kernel is crashing when 
 acpi is attempting to install the console keyboard's interrupt handler.

 FWIW, it looks like you have a PS2-style keyboard/mouse controller, 
 rather than a USB device:

  	...
  	pckbd0 at pckbc1 (kbd slot)
  	isa_intr_establish: no MP mapping found
  	panic: intr_establish_xname: bad legacy IRQ value
  	...


 +------------------+--------------------------+------------------------+
 | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
 | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
 | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
 +------------------+--------------------------+------------------------+

From: Ronny Schneider <johnnywhishbone@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: port-amd64/50825: Kernel crash on Toshiba Chromebook 2
Date: Thu, 18 Feb 2016 10:02:56 +0100

 >> Either the kernel is not able to find the usb stick to mount the root
 >> filesystem, or the kernel crashes in the boot process.
 >=20
 > Based on the screen captures you posted, the kernel is crashing when=20=

 > acpi is attempting to install the console keyboard's interrupt =
 handler.
 >=20
 > FWIW, it looks like you have a PS2-style keyboard/mouse controller,=20
 > rather than a USB device:
 >=20
 >  	...
 >  	pckbd0 at pckbc1 (kbd slot)
 >  	isa_intr_establish: no MP mapping found
 >  	panic: intr_establish_xname: bad legacy IRQ value
 >  	...

 Using NetBSD 7.0 amd64 it does not crash like this. It assigns IRQ53 for =
 kbd slot.
 The boot stops at this point:

 =E2=80=A6
 boot device: <unkown>
 root device:
 =E2=80=A6

 Image: http://bilderhochladen.org/i/n4TAafSbxA/


 Which is leading to the problem of the kernel (which all BSDs i tested =
 have) not finding the root / boot device.

 =E2=80=A6
 vendor 0x8086 product 0x0f35 (USB serial bus, xHCI, revision 0x0e) at =
 pci0 dev 20 function 0 not configured
 =E2=80=A6

 seems to have something to do with it.=20

 Should i create a new bug report for this?=

From: Ronny Schneider <johnnywhishbone@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: port-amd64/50825: Kernel crash on Toshiba Chromebook 2
Date: Tue, 23 Feb 2016 17:29:13 +0100

 Got news. I tested around a little bit and got the following working:

 - FreeBSD 10.1-RELEASE
 - DragonflyBSD 4.0.6-RELEASE

 The installer boots successfully from the usb stick and starts the =
 installer. Although the internal eMMC storage is not recognized, a =
 installation on another usb stick is possible.

 The versions that followed onwards these releases are lacking support =
 for the whole usb system, wether it=E2=80=99s EHCI or XHCI. Neither an =
 usb keyboard, i plug in to see if the keys light up, aren't not working, =
 nor any kind of usb sticks, storages or devices are recognized.=

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.