From owner-freebsd-arm@FreeBSD.ORG Sat Sep 21 18:25:25 2013 Return-Path: Delivered-To: freebsd-arm@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 84AAB9BD for ; Sat, 21 Sep 2013 18:25:25 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 471CA20DE for ; Sat, 21 Sep 2013 18:25:24 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r8LIPHOq003089; Sat, 21 Sep 2013 18:25:17 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id u586pnwv952k9ezsm6dxgkmhdi; Sat, 21 Sep 2013 18:25:16 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Progress on Raspberry Pi From: Tim Kientzle In-Reply-To: <523CED09.2010509@m5p.com> Date: Sat, 21 Sep 2013 11:25:15 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <155A28EF-C877-4E21-8DAD-55B48F42A661@kientzle.com> References: <523CED09.2010509@m5p.com> To: George Mitchell X-Mailer: Apple Mail (2.1508) 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: Sat, 21 Sep 2013 18:25:25 -0000 On Sep 20, 2013, at 5:49 PM, George Mitchell = wrote: > My AdaFruit serial cable arrived, so now I can gather useful = information > when my RPi crashes=85 Excellent! > I built my image with crochet on an amd64 running r255361, and the = image > itself is based on that version. (However, in sys/arm/arm I updated > pmap-v6.c to 255612 and stdatomic.c to 255613. I see they have been > updated again within the last day; perhaps I should try again.) >=20 > /etc/src.conf: > MALLOC_PRODUCTION=3Dyes >=20 > /etc/make.conf: > WITH_PKGNG=3Dyes > MALLOC_PRODUCTION=3Dyes > # added by use.perl 2013-08-20 10:11:49 > PERL_VERSION=3D5.14.4 By default, Crochet ignores the host /etc/src.conf and /etc/make.conf on the assumption that what is right for the host system is not necessarily correct for the target system. If you specifically want to use them, you can add SRCCONF=3D/etc/src.conf __MAKE_CONF=3D/etc/make.conf to your configuration file. Of course, you can also put src.conf and make.conf files elsewhere for Crochet to use. > I commented out the five syscons-related lines in sys/arm/conf/RPI-B = so > I could use the serial port. My SDHC card is apparently on the hairy > edge of working, so I definitely needed /boot/loader.conf to contain: > hw.bcm2835.sdhci.hs=3D0. Before I added that, I ended up with the = dreaded > error 19 and a manual mountroot prompt, at which point mountroot would > accept a character from the serial input about 1/4 of the time. Other > serial input works without a problem. Keyboard input to mount root seems to be broken on a lot of FreeBSD systems. > Before I remembered to comment out the /dev/ttyvN lines in /etc/tty,=85 Should Crochet's RaspberryPi configuration disable those? > 2. Now that I can do something when I get the prefetch abort or panic, > what should I do at the "db>" prompt to help debug it? It's happening > about five or six times a day. Type "bt" to get a backtrace. That's the single most informative thing. Note: The first few stack frames displayed are from inside the debugger itself and aren't particularly interesting. The important frames are a little later where we see *why* we ended up in the debugger. Tim