From owner-freebsd-arm@freebsd.org Tue Feb 21 00:39:04 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB100CE6897 for ; Tue, 21 Feb 2017 00:39:04 +0000 (UTC) (envelope-from tony@tndh.net) Received: from express.tndh.net (express.tndh.net [IPv6:2001:470:e930:1240:20d:56ff:fe04:4c0a]) (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 96093980 for ; Tue, 21 Feb 2017 00:39:04 +0000 (UTC) (envelope-from tony@tndh.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tndh.net; s=dkim; h=Subject:Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:In-Reply-To:References:Cc:To:From; bh=FvkgCRrWlFBLy8mMhm6+V155/Sq4IMZafLXDvxDnzmQ=; b=AjjomNZWv7YR/BRRwdDpwD/o8Z23mjeg7VOR/hx2Pb9wAjWfAlMfmEQXWj8CcQgHUAqKG2SSbxVslyEnod/qZccJhU+TGuLkGNt/Kxp/YY802KxvaCInyDT90wUJZLRAzPdGKDfhPWHI9eqBKmQxRaRAo+s0U8EIuhHFlclUB5f/BBOM; Received: from express.tndh.net ([2001:470:e930:1240:20d:56ff:fe04:4c0a] helo=eaglet) by express.tndh.net with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1cfyTe-000Nvv-Sl; Mon, 20 Feb 2017 16:39:02 -0800 From: "Tony Hain" To: "'Svatopluk Kraus'" Cc: References: <155401d28ba9$ccdc28c0$66947a40$@tndh.net> In-Reply-To: Date: Mon, 20 Feb 2017 16:38:36 -0800 Message-ID: <157701d28bda$dd004700$9700d500$@tndh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQCnfVO6Je0ytic8F/R4KA9fUNGMCgJKP4/Io7ZmudA= Content-Language: en-us X-SA-Exim-Connect-IP: 2001:470:e930:1240:20d:56ff:fe04:4c0a X-SA-Exim-Mail-From: tony@tndh.net X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on express.tndh.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.5 tests=ALL_TRUSTED,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Subject: RE: Fatal kernel abort (was: r313878M builds mmcsd0s2 as read-only & /etc/fstab is missing) X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on express.tndh.net) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2017 00:39:04 -0000 Svatopluk Kraus wrote: > Subject: Re: Fatal kernel abort (was: r313878M builds mmcsd0s2 as = read-only > & /etc/fstab is missing) >=20 > Recently, there is some work on locking functions on current. It looks = that > there were corrupted between r313855 and r313996 for arm. And you are > running r313878. >=20 > Svata >=20 > On Mon, Feb 20, 2017 at 7:47 PM, Tony Hain wrote: > > Update: > >> > >> FreeBSD 12.0-CURRENT #0 r313878M: Fri Feb 17 11:26:27 PST 2017 > >> > >> >> ............ snip > > class: SWAP (0xc07fe538) > > > > db> > > > > Svn updat today, but it is still doing both the read-only thing, and the = kernel panic when trying to mount the dos boot partition. FreeBSD = 12.0-CURRENT #0 r313999M: Mon Feb 20 15:05:10 PST 2017 U-Boot SPL 2017.01-rc3 (Jan 31 2017 - 08:26:19) Trying to boot from MMC1MMC partition switch failed *** Warning - MMC partition switch failed, using default environment reading u-boot.img reading u-boot.img U-Boot 2017.01-rc3 (Jan 31 2017 - 08:26:19 +0000) CPU : AM335X-GP rev 2.1 I2C: ready DRAM: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Warning - bad CRC, using default environment not set. Validating first E-fuse MAC Net: cpsw, usb_ether Press SPACE to abort autoboot in 2 seconds switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 reading boot.scr ** Unable to read file boot.scr ** reading uEnv.txt 0 bytes read in 3 ms (0 Bytes/s) Loaded env from uEnv.txt Importing environment from mmc0 ... switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found FreeBSD U-Boot Loader (bin) reading ubldr.bin 231544 bytes read in 20 ms (11 MiB/s) ## Starting application at 0x82000000 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x9df30c58 FreeBSD/armv6 U-Boot loader, Revision 1.2 (Mon Feb 20 15:05:18 PST 2017 tony@) DRAM: 512MB Number of U-Boot devices: 3 U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=3D0 slice=3D partition=3D... good. Booting from disk0s2a: /boot/kernel/kernel data=3D0x609aa8+0x1a2558 = syms=3D[0x4+0x89b90+0x4+0x9e2ef] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... /boot/dtb/am335x-bonegreen.dtb size=3D0x83e1 Loaded DTB from file 'am335x-bonegreen.dtb'. Kernel entry at 0x82200100... Kernel args: (null) ARM Debug Architecture not supported KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2017 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r313999M: Mon Feb 20 15:05:10 PST 2017 ... snip WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/ufs/rootfs [rw]... mountroot: waiting for device /dev/ufs/rootfs... Mounting from ufs:/dev/ufs/rootfs failed with error 19. Trying to mount root from ufs:mmcsd0s2 []... warning: no time-of-day clock registered, system time will not be set = accurately Growing root partition to fill device GEOM_PART: mmcsd0s2 was automatically resized. Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` = to revert them. gpart: Read-only file system growfs: /dev/mmcsd0s2: Operation not permitted /etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data, = generating a new one Setting hostuuid: 558384a8-f7cc-11e6-b3e6-884aeaf5a20e. Setting hostid: 0x47283866. No suitable dump device was found. Starting file system checks: /dev/mmcsd0s2: NO WRITE ACCESS /dev/mmcsd0s2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. Automatic file system check failed; help! ERROR: ABORTING BOOT (sending SIGTERM to parent)! Feb 21 00:26:06 init: /bin/sh on /etc/rc terminated abnormally, going to = single user mode Enter full pathname of shell or RETURN for /bin/sh: # fsck ** /dev/mmcsd0s2 (NO WRITE) USE JOURNAL? no ** Skipping journal, falling through to full fsck SETTING DIRTY FLAG IN READ_ONLY MODE UNEXPECTED SOFT UPDATE INCONSISTENCY ** Last Mounted on /mnt ** Root file system ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 20508 files, 215854 used, 12425 free (145 frags, 1535 blocks, 0.1% = fragmentation) # # mount -t msdosfs /dev/mmcsd0s1 /boot/msdos g_vfs_done():mmcsd0s1[WRITE(offset=3D512, length=3D4096)]error =3D 30 g_vfs_done():mmcsd0s1[WRITE(offset=3D512, length=3D4096)]error =3D 30 g_vfs_done():mmcsd0s1[WRITE(offset=3D512, length=3D4096)]error =3D 30 fsync: giving up on dirty 0xc305ca20: tag devfs, type VCHR usecount 1, writecount 0, refcount 7 mountedhere 0xc2f72a00 flags (VI_ACTIVE) v_object 0xc3026960 ref 0 pages 5 cleanbuf 4 dirtybuf 1 lock type devfs: UNLOCKED dev mmcsd0s1 mount_msdosfs: /dev/mmcsd0s1: Read-only file system # ls /boot/msdos # mount /dev/mmcsd0s2 on / (ufs, local, read-only, nfsv4acls) devfs on /dev (devfs, local) # Fatal kernel mode data abort: 'Translation Fault (L1)' on read trapframe: 0xdce54c50 FSR=3D00000005, FAR=3D2e776f7c, spsr=3D60000013 r0 =3D00000004, r1 =3D00000000, r2 =3Dc06e4da6, r3 =3D000000ad r4 =3D2e776f6c, r5 =3Dc06e4da6, r6 =3D2e776f7c, r7 =3D00000000 r8 =3D000000ad, r9 =3Dc06feba7, r10=3D2e776f7c, r11=3Ddce54d08 r12=3Dc0950ab8, ssp=3Ddce54ce0, slr=3Dc033ff38, pc =3Dc0398de0 [ thread pid 21 tid 100057 ] Stopped at __mtx_lock_flags+0x44: ldr r0, [r10] db>