From owner-freebsd-arm@FreeBSD.ORG Sun Jul 21 21:42:17 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 A092A171 for ; Sun, 21 Jul 2013 21:42:17 +0000 (UTC) (envelope-from tom@0x544745.com) Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by mx1.freebsd.org (Postfix) with ESMTP id 6C6AB3EB for ; Sun, 21 Jul 2013 21:42:17 +0000 (UTC) Received: by mail-ob0-f175.google.com with SMTP id xn12so7337355obc.6 for ; Sun, 21 Jul 2013 14:42:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=NGthlAmGdp++8A4IBt6Mxwv0nvXYMLF4smmIbq2/njw=; b=VkLyI1f/Ja1GhTNkAYhEmFu5o99VEefaTI9x0Ye0xSyUKeKPNF1VNYncYaTO82kkh3 llE9lzbzD/YuXJqjKfSWhnnvy97Hy6HhUVEHOvooS/angxkXy+V7jPrJ9ZX3jBPhvVue Vx26qy50TQO8LLDlzdg21H1prptt3XKeff2JjdttemMWatCGLX9x0Bro+HWEXtXrykrr u2bIdxEWsc2/Nuse60wa9Mi4z0QJFjl7y46tuB+74NT5B+F/QyF7XhwQhQrOm2PWORgH qCVCNb/ot466sR08pIRbzaOWu9v2goUoIX5XpHRcKv/Bwe5QFsTKlEoAm0Qu1D8URf1t XvEQ== MIME-Version: 1.0 X-Received: by 10.60.83.75 with SMTP id o11mr24382310oey.45.1374442929824; Sun, 21 Jul 2013 14:42:09 -0700 (PDT) Received: by 10.182.111.67 with HTTP; Sun, 21 Jul 2013 14:42:09 -0700 (PDT) In-Reply-To: References: <97D78167-9428-4005-89EE-15A78F74BE46@gromit.dlib.vt.edu> <44AB19F7-A0D3-4F0C-A1F4-66AA49283387@gromit.dlib.vt.edu> Date: Sun, 21 Jul 2013 15:42:09 -0600 Message-ID: Subject: Re: Booting Beagleboard Black From: Tom Everett To: Tim Kientzle X-Gm-Message-State: ALoCoQn0WsTbiINndTCmfsv40d4nB+TeOMPSGuVlbNboCVH6TDHoaVYIIi2rtTj//ZOz9xFnmDyi Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:42:17 -0000 ls shows: / d .snap .sujournal and lsdev shows: disk devices: disk0 (MMC) disk0s1: DOS/Windows disk0s2: FreeBSD disk0s2a: FreeBSD UFS net devices: net0: I'm doing a fresh checkout of the entire CURRENT source tree, a rebuild of dev and then a rebuild of the kernel. We'll see what happens. On Sun, Jul 21, 2013 at 3:32 PM, Tim Kientzle wrote: > 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); > > > > > -- A better world shall emerge based on faith and understanding - Douglas MacArthur