From owner-freebsd-arm@FreeBSD.ORG Sun Mar 1 09:19:03 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9EC60F4E for ; Sun, 1 Mar 2015 09:19:03 +0000 (UTC) Received: from wa3yre.wynn.com (wa3yre.wynn.com [199.89.147.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B0D03D2 for ; Sun, 1 Mar 2015 09:19:03 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by wa3yre.wynn.com (8.14.3/8.12.6) with ESMTP id t219ItQ0069034 for ; Sun, 1 Mar 2015 04:18:55 -0500 (EST) (envelope-from freebsd-arm@wynn.com) Date: Sun, 1 Mar 2015 04:18:55 -0500 From: Brett Wynkoop To: freebsd-arm@freebsd.org Subject: crash on writing usbstick Message-ID: <20150301041855.5352663e@ivory.wynn.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.25; x86_64-apple-darwin10.8.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2015 09:19:03 -0000 Greeting- So I plugged a 16G usb stick into my BeagleBone with the intent of moving /usr/ports over to it. During the process KABOOM! swi_handler() at swi_handler+0x2e4 pc = 0xc0613980 lr = 0xc06012a0 (swi_exit) sp = 0xd4889e50 fp = 0xbffff500 r4 = 0x20c13200 r5 = 0x000001ed r6 = 0x20c13364 r7 = 0x00000088 r8 = 0x00000001 r9 = 0xffffffe2 r10 = 0x20c13200 swi_exit() at swi_exit pc = 0xc06012a0 lr = 0xc06012a0 (swi_exit) sp = 0xd4889e50 fp = 0xbffff500 mode = 02, inum = 1284268, fs = /export panic: ffs_valloc: dup alloc KDB: enter: panic [ thread pid 700 tid 100090 ] Stopped at $d.7: ldrb r15, [r15, r15, ror r15]! db> The command doing the writing was tar xpvf - The entire pipeline was: tar cpvf - . |( cd /export/ports ; tar xpvf -) The only difference from the stock kernel for the BB was that I built in the GPT stuff. More datapoints: # fsck -p /dev/mmcsd0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mmcsd0s2a: clean, 551793 free (3025 frags, 68596 blocks, 0.2% fragmentation) /dev/gpt/bbexport: PARTIALLY TRUNCATED INODE I=1284121 /dev/gpt/bbexport: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. # [wynkoop@beaglebone ~]$ uname -a FreeBSD beaglebone.wynn.com 11.0-CURRENT FreeBSD 11.0-CURRENT #2 r279219: Sun Mar 1 03:31:54 EST 2015 wynkoop@beaglebone.wynn.com:/usr/src/sys/arm/compile/BB-BEW arm [wynkoop@beaglebone ~]$ World and my kernel are in sync, and both built native on the BB. How is it that some of you are actually able to use USB mass storage? -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6925 929-272-0000 If cowardly and dishonorable men sometimes shoot unarmed men with army pistols or guns, the evil must be prevented by the penitentiary and gallows, and not by a general deprivation of a constitutional privilege. -Honorable J. A. Williams, Circuit Judge - Wilson v. State, 33 Ark. 557, 34 Am. Rep. 52 (1878).