Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2017 16:38:36 -0800
From:      "Tony Hain" <tony@tndh.net>
To:        "'Svatopluk Kraus'" <onwahe@gmail.com>
Cc:        <freebsd-arm@freebsd.org>
Subject:   RE: Fatal kernel abort (was: r313878M builds mmcsd0s2 as read-only & /etc/fstab is missing)
Message-ID:  <157701d28bda$dd004700$9700d500$@tndh.net>
In-Reply-To: <CAFHCsPWm6fOh1phFfYF%2BjJO5mDV0=mNPd1EtHgDnrp=DBwHekw@mail.gmail.com>
References:  <155401d28ba9$ccdc28c0$66947a40$@tndh.net> <CAFHCsPWm6fOh1phFfYF%2BjJO5mDV0=mNPd1EtHgDnrp=DBwHekw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <tony@tndh.net> 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

<ethaddr> 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<auto> partition=3D<auto>... 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>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?157701d28bda$dd004700$9700d500$>