From owner-freebsd-arm@FreeBSD.ORG Mon Jul 22 17:30:05 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CF156909; Mon, 22 Jul 2013 17:30:05 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-x22f.google.com (mail-ea0-x22f.google.com [IPv6:2a00:1450:4013:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 36B912A20; Mon, 22 Jul 2013 17:30:05 +0000 (UTC) Received: by mail-ea0-f175.google.com with SMTP id z7so3929023eaf.6 for ; Mon, 22 Jul 2013 10:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dspgtCha1JaNwWSlp46cnOIxDxvyjc5LjICKSN+CgI8=; b=mJHOWNYkmZJJdaw6sH+ZEuN4ger9pkb3JSvpso1kuLan8881vSy3bT2AVTjmzfESvr yk39GdHLZMtLTOTOkql0UrsQHGMHf3IeiwGBT8TBaurwJBtsCgFnS2ZMGypTNMQwFdF6 uevxxbph2i5psms6iGnlQ0r99x9C7RyUwlzWVP9o2rwlG8kOhje/AAPUh2nBNt30bWlS UsKdHPyRPRERQa3XzmnKQUdNNDACoUMPkWUwZFC13eN8Rnt8sryA8xZ49UJowFORDpGZ RKTMoTO8UnL+KCR+gWcLM/eEBS+OA5V+Cp4ZmEKaLmzqB5CAFqGR8vrknSbuzV/q2kdD zuVw== MIME-Version: 1.0 X-Received: by 10.14.149.141 with SMTP id x13mr28837791eej.77.1374514203504; Mon, 22 Jul 2013 10:30:03 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Mon, 22 Jul 2013 10:30:03 -0700 (PDT) In-Reply-To: <519DDF45-9D8E-4AA7-9140-C4B955C71CFB@freebsd.org> References: <97D78167-9428-4005-89EE-15A78F74BE46@gromit.dlib.vt.edu> <44AB19F7-A0D3-4F0C-A1F4-66AA49283387@gromit.dlib.vt.edu> <27AC1DB6-9D32-47AF-A1E8-A53EE3C09753@FreeBSD.org> <519DDF45-9D8E-4AA7-9140-C4B955C71CFB@freebsd.org> Date: Mon, 22 Jul 2013 10:30:03 -0700 Message-ID: Subject: Re: Booting Beagleboard Black From: hiren panchasara To: Michael Tuexen Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" 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: Mon, 22 Jul 2013 17:30:05 -0000 On Mon, Jul 22, 2013 at 3:42 AM, Michael Tuexen wrote: > On Jul 22, 2013, at 12:11 PM, XiaoQI Ge wrote: > >> I have used this method successfully loaded the kernel >> >> Hold the "User Boot" button down, and then plug in the power (USB or >> 5V adaptor). Keep holding down the button until you see the bank of 4 >> LED's light up for a few seconds. You can now release the button. >> >> >> But soon the panic > To fix this panic use the following patch > > 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); > > which was posted by Tim yesterday. It fixes the issue for me. > (Or disable invariants). > > Tim: Your patch looks good. Why don't you commit it? Yes, please :-) Thanks for finding/fixing that. Appreciate it. Cheers, Hiren > > > Best regards > Michael