Disabling internal RTC ends up in hang

Johnny Sorocil jsorocil at gmail.com
Sat Aug 22 16:38:24 UTC 2020


On Fri, Aug 21, 2020 at 4:58 PM Emmanuel Vadot <manu at bidouilliste.com>
wrote:

> On Fri, 21 Aug 2020 12:24:17 +0200
> Johnny Sorocil <jsorocil at gmail.com> wrote:
>
> > Attempt #3:
> > Booting GENERIC kernel which has builtin patched "aw_rtc":
> >
> > mmc0: No compatible cards found on bus
> > aw_mmc1: Spurious interrupt - no active request, rint: 0x00000004
> >
> > mmc1: <MMC/SD bus> on aw_mmc0
> > Cannot set frequency for clk: mmc0, error: 34
> > aw_mmc0: failed to set frequency to 50000000 Hz: 34
> > uhub2: 1 port with 1 removable, self powered
> > uhub0: 1 port with 1 removable, self powered
> > ugen2.2: <Realtek 802.11n NIC> at usbus2
> > mountroot: waiting for device /dev/ufs/rootfs...
> > Mounting from ufs:/dev/ufs/rootfs failed with error 19.
> >
> > Loader variables:
> >   vfs.root.mountfrom=ufs:/dev/ufs/rootfs
> >   vfs.root.mountfrom.options=rw
> >
> > Manual root filesystem specification:
> >   <fstype>:<device> [options]
> >       Mount <device> using filesystem <fstype>
> >       and with the specified (optional) option list.
> >
> >     eg. ufs:/dev/da0s1a
> >         zfs:zroot/ROOT/default
> >         cd9660:/dev/cd0 ro
> >           (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)
> >
> >   ?               List valid disk boot devices
> >   .               Yield 1 second (for background tasks)
> >   <empty line>    Abort manual input
> >
> > mountroot> aw_mmc0: controller timeout
> > aw_mmc0: timeout resetting DMA/FIFO
> > aw_mmc0: timeout updating clock
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout resetting DMA/FIFO
> > aw_mmc0: timeout updating clock
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout resetting DMA/FIFO
>
>  That doesn't seems related at all, do you have any other modification ?
>

No, only that patch applied against -CURRENT (git commit
13a3f44675f633f7d8ca5bd736b1ce0e50e7771a from Aug 19).
Cross compiled kernel and world again on my amd64 board, installed it on
microSD card, put it in OrangePi, booted it and the result is same:
FreeBSD is a registered trademark of The FreeBSD Foundation.


FreeBSD 13.0-CURRENT #3 13a3f44675f-c270720(master)-dirty: Sat Aug 22
11:20:09 CEST 2020

    johnny at innovator:/usr/obj/user/build-13.0/usr/src/current/arm.armv7/sys/GENERIC
arm

FreeBSD clang version 11.0.0 (git at github.com:llvm/llvm-project.git
llvmorg-11.0.0-rc1-47-gff47911ddfc)

WARNING: WITNESS option enabled, expect reduced performance.


VT: init without driver.


CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000)
...
Mounting from ufs:/dev/ufs/rootfs failed with error 19.


...

But after waiting a few seconds, mmcsd0 device appears but system can not
mount rootfs from it:
aw_mmc0: timeout resetting DMA/FIFO








List of GEOM managed disk devices:








mountroot> aw_mmc0: timeout updating clock


aw_mmc0: controller timeout


aw_mmc0: timeout resetting DMA/FIFO


aw_mmc0: timeout updating clock


aw_mmc0: controller timeout


aw_mmc0: timeout resetting DMA/FIFO


aw_mmc0: timeout updating clock
mmc1: CMD7 failed, RESULT: 1
mmcsd0: 64GB <SDHC SC64G 8.0 SN C2EC1965 MFG 09/2019 by 3 SD> at mmc1
50.0MHz/4bit/32768-block
?

List of GEOM managed disk devices:
  mmcsd0

mountroot> ufs:/dev/ufs/rootfs
Trying to mount root from ufs:/dev/ufs/rootfs []...
aw_mmc0: controller timeout
aw_mmc0: timeout resetting DMA/FIFO
aw_mmc0: timeout updating clock
aw_mmc0: controller timeout
aw_mmc0: timeout resetting DMA/FIFO
aw_mmc0: timeout updating clock
aw_mmc0: controller timeout
aw_mmc0: timeout resetting DMA/FIFO
aw_mmc0: timeout updating clock
aw_mmc0: controller timeout
aw_mmc0: timeout resetting DMA/FIFO
aw_mmc0: timeout updating clock
mmc1: CMD7 failed, RESULT: 1
mmc1: Card at relative address 58916 failed to select
aw_mmc0: controller timeout
aw_mmc0: timeout resetting DMA/FIFO
aw_mmc0: timeout updating clock


More information about the freebsd-arm mailing list