NetBSD Problem Report #50600

From ryo_on@yk.rim.or.jp  Wed Dec 30 15:08:12 2015
Return-Path: <ryo_on@yk.rim.or.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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 179767ACC8
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 30 Dec 2015 15:08:12 +0000 (UTC)
Message-Id: <20151230053913.5F832DAF23@mail.SiriusCloud.jp>
Date: Wed, 30 Dec 2015 14:39:18 +0900
From: ryoon@NetBSD.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: NetBSD/emips 7.99.25 of 2015-12-30 does not boot
X-Send-Pr-Version: 3.95

>Number:         50600
>Category:       port-emips
>Synopsis:       NetBSD/emips 7.99.25 of 2015-12-30 does not boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-emips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 30 15:10:00 +0000 2015
>Closed-Date:    
>Last-Modified:  Wed Nov 01 13:29:10 +0000 2017
>Originator:     Ryo ONODERA
>Release:        NetBSD 7.99.25
>Organization:

>Environment:


System: NetBSD brownie 7.99.25 NetBSD 7.99.25 (DTRACE7) #275: Fri Dec 25 17:58:52 JST 2015 ryo_on@brownie:/usr/world/7.99/amd64/obj/sys/arch/amd64/compile/DTRACE7 amd64
Architecture: x86_64
Machine: amd64
>Description:
On Microsoft Giano emulator 3.1, NetBSD/emips does not boot.
See following boot log:

NetBSD/emips 7.99.25 Netboot Bootstrap, Revision 1.0 (Wed Dec 30 09:20:02 JST 2015)

Default:  0/ace(0,0)/netbsd
boot: 0/ace(1,0)/netbsd
Loading: 0/ace(1,0)/netbsd
5417232+83088=0x53f1fc
Starting at 0x80020000

memory segment  0 start 00000000 size 10000000
memory segment  1 start 10000000 size 00100000
pmap_steal_memory: seg 0: 0x560 0x560 0x10000 0x10000
pmap_steal_memory: seg 0: 0x595 0x595 0x10000 0x10000
pmap_steal_memory: seg 0: 0x597 0x597 0x10000 0x10000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 7.99.25 (RAMDISK) #1: Wed Dec 30 13:20:07 JST 2015
        ryo_on@brownie:/usr/world/7.99/emips/obj/sys/arch/emips/compile/RAMDISK
Xilinx ML50x (eMIPS)
total memory = 257 MB
avail memory = 246 MB
mainbus0 (root)
cpu0 at mainbus0: Toshiba or Microsoft eMIPS CPU (0x70401) Rev. 1 with software emulated floating point
cpu0: 64 TLB entries
ebus0 at mainbus0
mips_map_physmem: iomap too smallFailed to map eclock: phys fff80000 size 32
Failed to map dz: phys fff90000 size 64
Failed to map ace: phys fff50000 size 256
Failed to map ace: phys fff50100 size 256
Failed to map enic: phys fff10000 size 32
Failed to map icap: phys ffed0000 size 32
Failed to map gpio: phys fff60000 size 64
Failed to map flash: phys fffb0000 size 8
Failed to map lcd: phys fff40000 size 16
Failed to map evga: phys fff20000 size 32
Failed to map ps2: phys fff30000 size 32
Failed to map ac97: phys ffef0000 size 32
panic: eclock_init
kernel: breakpoint trap
Stopped in pid 0.1 (system) at  8002f1f8:       jr      ra
                bdslot: nop
db> quit
halted.

I have following local patch,
however this patch has no effect for this problem.

Index: sys/arch/emips/emips/machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/emips/emips/machdep.c,v
retrieving revision 1.11
diff -u -r1.11 machdep.c
--- sys/arch/emips/emips/machdep.c	11 Jun 2015 08:22:08 -0000	1.11
+++ sys/arch/emips/emips/machdep.c	30 Dec 2015 05:30:08 -0000
@@ -551,7 +551,7 @@
 #if defined(MIPS_4GB_PHYSICAL_MEMORY)
 #define trim_memory(n) n
 #else
-#if 0
+#if 1
 #define TOO_MUCH (MIPS_PHYS_MASK+1)
 #else
 #define TOO_MUCH (2*64*1024*1024)

>How-To-Repeat:
Run Microsoft Giano emulator on Windows 10 Home.
And boot NetBSD/emips 7.99.25 on it.
boot.emips is from NetBSD-7.99.25-emips.iso.

>Fix:
I have no idea.
I can test any proposed patch.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 02 Nov 2016 19:55:28 +0000
State-Changed-Why:
there were a lot of changes causing instability then, is it ok now?


From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-emips/50600 (NetBSD/emips 7.99.25 of 2015-12-30 does not
 boot)
Date: Wed, 2 Nov 2016 20:07:14 +0000

 port-emips 45080 may hold some info about this if it is still
 problematic.

State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 01 Nov 2017 13:29:10 +0000
State-Changed-Why:
Still broken as noted by havard: http://mail-index.netbsd.org/port-mips/2017/07/30/msg000834.html


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