From owner-freebsd-arm@FreeBSD.ORG Thu Jul 25 01:10:00 2013 Return-Path: Delivered-To: freebsd-arm@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 851EE85D for ; Thu, 25 Jul 2013 01:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 656B2249E for ; Thu, 25 Jul 2013 01:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6P1A01R068768 for ; Thu, 25 Jul 2013 01:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6P1A0Ae068767; Thu, 25 Jul 2013 01:10:00 GMT (envelope-from gnats) Resent-Date: Thu, 25 Jul 2013 01:10:00 GMT Resent-Message-Id: <201307250110.r6P1A0Ae068767@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Samuel Seay Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0276D83B for ; Thu, 25 Jul 2013 01:08:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E4666248F for ; Thu, 25 Jul 2013 01:08:55 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6P18tar021868 for ; Thu, 25 Jul 2013 01:08:55 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6P18tkA021862; Thu, 25 Jul 2013 01:08:55 GMT (envelope-from nobody) Message-Id: <201307250108.r6P18tkA021862@oldred.freebsd.org> Date: Thu, 25 Jul 2013 01:08:55 GMT From: Samuel Seay To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: arm/180820: FreeBSD v10.0 kernal panic on Raspberry Pi + Fix X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 01:10:00 -0000 >Number: 180820 >Category: arm >Synopsis: FreeBSD v10.0 kernal panic on Raspberry Pi + Fix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 25 01:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Samuel Seay >Release: 10.0-CURRENT r253520M >Organization: >Environment: no environment due to kernel panic >Description: Per the thread at http://lists.freebsd.org/pipermail/svn-src-head/2013-July/049735.html, I encountered the same issue when building a raspberry pi with the script at http://kernelnomicon.org/?p=275. After applying the patch I am able to fully boot the latest FreeBSD on my Raspberry Pi. I do not see this patch in the latest tree nor do I see a bug report about the issue so I am filing this to bring attention to it and get the bug corrected, hopefully in the near future. >How-To-Repeat: Download the latest svn base head and compile the kernel for arm based on the script at http://kernelnomicon.org/?p=275. Attempt to boot the image on a raspberry pi after writing it to a sdcard. >Fix: Index: sys/vm/vm_map.c =================================================================== --- sys/vm/vm_map.c (revision 253514) +++ sys/vm/vm_map.c (working copy) @@ -239,8 +239,7 @@ vm_map_t map; map = (vm_map_t)mem; - map->nentries = 0; - map->size = 0; + memset(map, 0, sizeof(*map)); mtx_init(&map->system_mtx, "vm map (system)", NULL, MTX_DEF | MTX_DUPOK); sx_init(&map->lock, "vm map (user)"); return (0); >Release-Note: >Audit-Trail: >Unformatted: