From owner-freebsd-arm@FreeBSD.ORG Sun Jul 21 21:32:43 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 64B60F6A for ; Sun, 21 Jul 2013 21:32:43 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 231C4394 for ; Sun, 21 Jul 2013 21:32:42 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r6LLWf9S034659; Sun, 21 Jul 2013 21:32:41 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id nc3puhjxzww7jvcsiee3ib23zs; Sun, 21 Jul 2013 21:32:41 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: Booting Beagleboard Black Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Sun, 21 Jul 2013 14:32:40 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: <97D78167-9428-4005-89EE-15A78F74BE46@gromit.dlib.vt.edu> <44AB19F7-A0D3-4F0C-A1F4-66AA49283387@gromit.dlib.vt.edu> To: Tom Everett X-Mailer: Apple Mail (2.1283) 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: Sun, 21 Jul 2013 21:32:43 -0000 On Jul 21, 2013, at 12:27 PM, Tom Everett wrote: > ok, so I got the serial cable from Adafruit, and I now get this with a > crochet-built kernel. Is this perhaps a bug in crochet? Possible, though I just this morning I built and booted a BeagleBone Black system using Crochet. I believe the Crochet I'm using here has no changes from what's on github. My build system is -CURRENT that I rebuilt from source a few days ago, and I only have one local patch to the -CURRENT sources I'm using to build the BeagleBone Black image (details below). For reference, here is my "beagleblack.sh" configuration: board_setup BeagleBone option ImageSize 900mb FREEBSD_SRC=${TOPDIR}/src FREEBSD_WORLD_EXTRA_ARGS="-DWITH_ARM_EABI -DNOCLEAN" FREEBSD_KERNEL_EXTRA_ARGS="-DKERNFAST" FREEBSD_FORCE_BUILDKERNEL=y I don't think any of the last four items here are necessary (in particular WITH_ARM_EABI is now the default; I just haven't removed it from my local config yet). I then used $ sudo ./crochet -c beagleblack.sh to build the image. > U-Boot SPL 2013.04 (Jul 11 2013 - 21:49:14) > OMAP SD/MMC: 0 > reading bb-uboot.img > reading bb-uboot.img > > > U-Boot 2013.04 (Jul 11 2013 - 21:49:14) So MLO and BB-uboot.img are there and working correctly. > FreeBSD/armv6 U-Boot loader, Revision 1.2 > (root@bernice, Sat Jul 20 20:59:18 MDT 2013) > DRAM: 512MB And U-Boot is correctly loading bbubldr. > Device: disk > | > can't load 'kernel' > > Type '?' for a list of commands, 'help' for more detailed help. > loader> What does "ls" here show? Sounds like the kernel didn't get installed for some reason. You should be able to look at the UFS partition from the loader> prompt and figure out what's missing. Tim P.S. My only local change right now is a fix for the 'panic: lock "vm map (user)" already initialized' bug that has been plaguing armv6 for a while: 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);