Re: hang up at mount on releng/13

From: Mori Hiroki <yamori813_at_yahoo.co.jp>
Date: Thu, 10 Jun 2021 07:01:07 UTC
Hi

ZRouter use ufs.ko, Is this relation the problem ?


Hiroki Mori



----- Original Message -----
> From: Mori Hiroki <yamori813@yahoo.co.jp>
> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
> Cc: 
> Date: 2021/6/10, Thu 05:48
> Subject: Re: hang up at mount on releng/13
> 
> Hi
> 
> I try to CURRENT today.  I have panic now.
> 
> 
> BTW releng/13 build time is 2:22 but current is 4:28 what is differnet ?
> 
> 
> Starting kernel ...
> 
> CPU platform: Atheros AR9341 rev 1
> CPU Frequency=535 MHz
> CPU DDR Frequency=400 MHz
> CPU AHB Frequency=200 MHz
> platform frequency: 535 MHz
> CPU reference clock: 25 MHz
> CPU MDIO clock: 25 MHz
> arguments: 
>   a0 = 00000007
>   a1 = a1f73fb0
>   a2 = a1f74470
>   a3 = 00000004
> Cmd line:argv is invalid
> Environment:
> envp is invalid
> Cache info:
>   picache_stride    = 4096
>   picache_loopcount = 16
>   pdcache_stride    = 4096
>   pdcache_loopcount = 8
>   max line size     = 32
> Physical memory chunk(s):
> 0x3de000 - 0x1ffffff, 29499392 bytes (7202 pages)
> Maxmem is 0x2000000
> ---<<BOOT>>---
> ar934x_chip_init_gmac: gmac_cfg=0x000001c0
> ar934x_configure_gmac: ETH_CFG=0x00003000
> KDB: debugger backends: ddb
> KDB: current backend: ddb
> Copyright (c) 1992-2021 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 14.0-CURRENT #0 main-5e5ca4c8f: Thu Jun 10 05:30:42 JST 2021
>     
> hiroki@zrouter:/usr/home/hiroki/obj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/current/mips.mips/sys/IOData_WN-G300R 
> mips
> FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git 
> llvmorg-11.0.1-0-g43ff75f2c3fe)
> Preloaded elf kernel "kernel" at 0x803d7690.
> CPU: MIPS Technologies (Atheros AR9341 rev 1) processor v76.151
>   MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes)
>   L1 i-cache: 4 ways of 512 sets, 32 bytes per line
>   L1 d-cache: 4 ways of 256 sets, 32 bytes per line
>   L2 cache: disabled
>   Config1=0xbee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
>   Config2=0x80001000
>   Config3=0x2c20<ULRI>
>   Config7=0x80000800<WII>
> real memory  = 33554432 (32768K bytes)
> Physical memory chunk(s):
> 0x0046a000 - 0x01f84fff, 28422144 bytes (6939 pages)
> avail memory = 27918336 (26MB)
> random: no preloaded entropy cache
> arc4random: WARNING: initial seeding bypassed the cryptographic random device 
> because it was not yet seeded and the knob 'bypass_before_seeding' was 
> enabled.
> hostuuid: using 00000000-0000-0000-0000-000000000000
> random: entropy device external interface
> mem: <memory>
> null: <full device, null device, zero device>
> nexus0: <MIPS32 root nexus>
> argemdio0: <Atheros AR71xx built-in ethernet interface, MDIO controller> 
> at mem 0x19000000-0x19000fff on nexus0
> mdio0: <MDIO> on argemdio0
> mdioproxy0: <MII/MDIO proxy, MDIO side> on mdio0
> clock0: <Generic MIPS32 ticker> on nexus0
> Timecounter "MIPS32" frequency 267500000 Hz quality 800
> Event timer "MIPS32" frequency 267500000 Hz quality 800
> argemdio1: <Atheros AR71xx built-in ethernet interface, MDIO controller> 
> at mem 0x1a000000-0x1a000fff on nexus0
> mdio1: <MDIO> on argemdio1
> mdioproxy1: <MII/MDIO proxy, MDIO side> on mdio1
> arswitch0: <Atheros AR9340 Ethernet Switch (ver 0 rev 0)> on mdio1
> arswitch0: ar9340_hw_global_setup: GMII
> arswitch0: ar9340_hw_global_setup: PHY4 - CPU
> miibus0: <MII bus> on arswitch0
> ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
> ukphy0: OUI 0x00c82e, model 0x0004, rev. 2
> ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 
> 1000baseT-FDX-master, auto
> miibus1: <MII bus> on arswitch0
> ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
> ukphy1: OUI 0x00c82e, model 0x0004, rev. 2
> ukphy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 
> 1000baseT-FDX-master, auto
> miibus2: <MII bus> on arswitch0
> ukphy2: <Generic IEEE 802.3u media interface> PHY 2 on miibus2
> ukphy2: OUI 0x00c82e, model 0x0004, rev. 2
> ukphy2:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 
> 1000baseT-FDX-master, auto
> miibus3: <MII bus> on arswitch0
> ukphy3: <Generic IEEE 802.3u media interface> PHY 3 on miibus3
> ukphy3: OUI 0x00c82e, model 0x0004, rev. 2
> ukphy3:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 
> 1000baseT-FDX-master, auto
> etherswitch0: <Switch controller> on arswitch0
> mdio2: <MDIO> on arswitch0
> mdioproxy2: <MII/MDIO proxy, MDIO side> on mdio2
> apb0 at irq 4 on nexus0
> uart0: <16550 or compatible> at mem 0x18020003-0x1802001a irq 3 on apb0
> uart0: console (115200,n,8,1)
> uart0: fast interrupt
> uart0: PPS capture mode: DCD
> gpio0: <Atheros AR71XX GPIO driver> at mem 0x18040000-0x18040fff irq 2 on 
> apb0
> gpio0: [GIANT-LOCKED]
> gpio0: function_set: 0x0
> gpio0: function_clear: 0x0
> gpio0: gpio pinmask=0x7da000
> gpiobus0: <GPIO bus> on gpio0
> gpioled0: <GPIO led> at pin 15 on gpiobus0
> gpioled1: <GPIO led> at pin 13 on gpiobus0
> gpioled2: <GPIO led> at pin 18 on gpiobus0
> gpioc0: <GPIO controller> on gpio0
> arge0: <Atheros AR71xx built-in ethernet interface> at mem 
> 0x19000000-0x19000fff irq 2 on nexus0
> arge0: Generating random ethernet address.
> miiproxy0: <MII/MDIO proxy, MII side> on arge0
> miiproxy0: attached to target mdio2
> arge0: finishing attachment, phymask 0001, proxy set 
> miibus4: <MII bus> on miiproxy0
> ukphy4: <Generic IEEE 802.3u media interface> PHY 0 on miibus4
> ukphy4: OUI 0x00c82e, model 0x0004, rev. 2
> ukphy4:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 
> 1000baseT-FDX-master, auto
> arge0: bpf attached
> arge0: Ethernet address: 0e:94:ca:cb:ce:77
> arge1: <Atheros AR71xx built-in ethernet interface> at mem 
> 0x1a000000-0x1a000fff irq 3 on nexus0
> arge1: arge_attach: overriding MII mode to 'GMII'
> arge1: Generating random ethernet address.
> mii_attach_proxy: not attaching, no mdio device hint for arge1
> arge1: finishing attachment, phymask 0000, proxy null 
> arge1: bpf attached
> arge1: Ethernet address: c2:db:7b:5e:18:40
> spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0
> spibus0: <SPI bus> on spi0
> mx25l0: <M25Pxx Flash Family> at cs 0 mode 0 on spibus0
> mx25l0: device type en25q32, size 4096K in 64 sectors of 64K, erase size 64K
> ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0
> Device configuration finished.
> Timecounters tick every 1.000 msec
> lo0: bpf attached
> vlan: initialized, using hash tables with chaining
> tcp_init: net.inet.tcp.tcbhashsize auto tuned to 512
> arswitch0port1: link state changed to DOWN
> arswitch0port2: link state changed to DOWN
> arswitch0port3: link state changed to DOWN
> arswitch0port4: link state changed to DOWN
> GEOM: new disk flash/spi0
> Trying to mount root from cd9660:/dev/map/rootfs.uzip []...
> MAP: flash/spi0: 0x40000, data=0x40000 "/dev/map/bootloader"
> MAP: flash/spi0: 40000x3a0000, data=0x3a0000 "/dev/map/upgrade"
> MAP: search flash/spi0 for key ".!/bin/sh" from 0x100000, step 0x10000
> MAP: flash/spi0: 40000x110000, data=0x110000 "/dev/map/kernel"
> MAP: search flash/spi0 for key ".!/bin/sh" from 0x100000, step 0x10000
> MAP: flash/spi0: 150000x290000, data=0x290000 "/dev/map/rootfs"
> MAP: flash/spi0: 3f0000x10000, data=0x10000 "/dev/map/ART"
> MAP: No valid partition found at map/rootfs.uzip
> cd9660: RockRidge Extension
> Warning: no time-of-day clock registered, system time will not be set accurately
> start_init: trying /sbin/init
> arswitch0: arswitch_miipollstat: port 1: port -> UP
> arswitch0port2: link state changed to UP
> gpio_pin_set_flags: Invalid argument
> kenv: unable to get HostName
> 
> kern.coredump: 1 -> 0
> net.inet.ip.forwarding: 0 -> 1
> memory disk size = 10m
> MAP: No valid partition found at md0
> random: unblocking device.
> MAP: No valid partition found at md0
> Trap cause = 4 (address error (load or I-fetch) - kernel mode)
> panic: trap
> time = 30
> KDB: enter: panic
> [ thread pid 34 tid 100038 ]
> Stopped at      0x4
> db> where
> Tracing pid 34 tid 100038 td 0x806ef7c0
> kdb_enter+0x54 (?,?,?,?) ra 800f3fac sp c5531758 sz 32
> vpanic+0x158 (?,?,?,?) ra 800f3e4c sp c5531778 sz 48
> panic+0x20 (?,?,?,?) ra 802d8e6c sp c55317a8 sz 32
> trap+0x1014 (?,?,?,?) ra 802c6618 sp c55317c8 sz 152
> MipsKernGenException+0xe4 (?,?,?,?) ra 0 sp c5531860 sz 0
> --- exception, cause ffffffffc077a410 badvaddr 1d000000 ---
> ffs_balloc_ufs1+0x7ec (?,?,?,?) ra 80688100 sp c5531928 sz 400
> 0x806880f8 (?,?,?,?) ra 0 sp c5531ab8 sz 0
> db> ps
>   pid  ppid  pgrp   uid  state   wmesg   wchan       cmd
>    34    25    17     0  R+      CPU 0               mount
>    32     0     0     0  DL      mdwait  0x80a1d000  [md0]
>    25    17    17     0  R+                          sh
>    17     1    17     0  Ss+     wait    0xc017f380  sh
>    16     0     0     0  DL      -       0x803cbd00  [soaiod4]
>    15     0     0     0  DL      -       0x803cbd00  [soaiod3]
>    14     0     0     0  DL      -       0x803cbd00  [soaiod2]
>    13     0     0     0  DL      -       0x803cbd00  [soaiod1]
>     9     0     0     0  DL      wrkwait 0x80646380  [map/rootfs.uzip]
>     8     0     0     0  DL      -       0x802f7270  [schedcpu]
>     7     0     0     0  RL                          [syncer]
>     6     0     0     0  RL                          [vnlru]
>     5     0     0     0  RL      (threaded)          [bufdaemon]
> 100024                   RunQ                        [bufdaemon]
> 100030                   D       -       0x80399400  [bufspacedaemon-0]
>     4     0     0     0  RL      (threaded)          [pagedaemon]
> 100023                   RunQ                        [dom0]
> 100028                   D       launds  0x803d6ee4  [laundry: dom0]
> 100029                   D       umarcl  0x802827f8  [uma]
>     3     0     0     0  RL                          [rand_harvestq]
>     2     0     0     0  DL      mx25jq  0x805d2c00  [task: mx25l flash]
>    12     0     0     0  RL      (threaded)          [geom]
> 100014                   RunQ                        [g_event]
> 100015                   D       -       0x803a56cc  [g_up]
> 100016                   D       -       0x803a56d0  [g_down]
>    11     0     0     0  RL      (threaded)          [intr]
> 100006                   I                           [swi5: fast taskq]
> 100008                   I                           [swi6: task queue]
> 100009                   I                           [swi6: Giant taskq]
> 100011                   I                           [swi3: vm]
> 100012                   I                           [swi1: netisr 0]
> 100013                   RunQ                        [swi4: clock (0)]
> 100017                   I                           [swi0: uart]
> 100018                   I                           [apb intr2: gpio0]
> 100019                   I                           [int2 arge0]
> 100020                   I                           [int3 arge1]
>    10     0     0     0  RL                          [idle]
>     1     0     1     0  SLs     wait    0xc0165c00  [init]
>     0     0     0     0  DLs     (threaded)          [kernel]
> 100000                   D       swapin  0x803a5b78  [swapper]
> 100003                   D       -       0x8058be00  [softirq_0]
> 100004                   D       -       0x8058bd00  [thread taskq]
> 100005                   D       -       0x8058bc00  [inm_free taskq]
> 100007                   D       -       0x8058b900  [kqueue_ctx taskq]
> 100010                   D       -       0x8058b400  [aiod_kick taskq]
> db> 
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message -----
>> From: Mori Hiroki <yamori813@yahoo.co.jp>
>> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> 
>> Date: 2021/6/5, Sat 08:57
>> Subject: hang up at mount on releng/13
>> 
>> Hi
>> I try to boot releng/13 on AR9341.
>> I have hung up on mount.
>> If you have advice, please let me know.
>> Thanks
>> Hiroki Mori
>> 
>> ---<<BOOT>>---
>> ar934x_chip_init_gmac: gmac_cfg=0x000001c0
>> ar934x_configure_gmac: ETH_CFG=0x00003000
>> KDB: debugger backends: ddb
>> KDB: current backend: ddb
>> Copyright (c) 1992-2021 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 13.0-RELEASE-p2 #1 releng/13.0-b74cdf1ec: Sat Jun  5 08:41:04 JST 
> 2021
>>     
> hiroki@zrouter:/usr/home/hiroki/obj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/src/mips.mips/sys/IOData_WN-G300R 
> mips
>> FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git 
> llvmorg-11.0.1-0-g43ff75f2c3fe)
>> Preloaded elf kernel "kernel" at 0x803cf390.
>> CPU: MIPS Technologies (Atheros AR9341 rev 1) processor v76.151
>>   MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes)
>>   L1 i-cache: 4 ways of 512 sets, 32 bytes per line
>>   L1 d-cache: 4 ways of 256 sets, 32 bytes per line
>>   L2 cache: disabled
>>   Config1=0xbee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
>>   Config2=0x80001000
>>   Config3=0x2c20<ULRI>
>>   Config7=0x80000800<WII>
>> real memory  = 33554432 (32768K bytes)
>> Physical memory chunk(s):
>> 0x00462000 - 0x01f83fff, 28450816 bytes (6946 pages)
>> avail memory = 27947008 (26MB)
>> random: no preloaded entropy cache
>> arc4random: WARNING: initial seeding bypassed the cryptographic random 
> device because it was not yet seeded and the knob 
> 'bypass_before_seeding' was enabled.
>> hostuuid: using 00000000-0000-0000-0000-000000000000
>> random: entropy device external interface
>> mem: <memory>
>> null: <full device, null device, zero device>
>> nexus0: <MIPS32 root nexus>
>> argemdio0: <Atheros AR71xx built-in ethernet interface, MDIO 
> controller> at mem 0x19000000-0x19000fff on nexus0
>> mdio0: <MDIO> on argemdio0
>> mdioproxy0: <MII/MDIO proxy, MDIO side> on mdio0
>> clock0: <Generic MIPS32 ticker> on nexus0
>> Timecounter "MIPS32" frequency 267500000 Hz quality 800
>> Event timer "MIPS32" frequency 267500000 Hz quality 800
>> argemdio1: <Atheros AR71xx built-in ethernet interface, MDIO 
> controller> at mem 0x1a000000-0x1a000fff on nexus0
>> mdio1: <MDIO> on argemdio1
>> mdioproxy1: <MII/MDIO proxy, MDIO side> on mdio1
>> arswitch0: <Atheros AR9340 Ethernet Switch (ver 0 rev 0)> on mdio1
>> arswitch0: ar9340_hw_global_setup: GMII
>> arswitch0: ar9340_hw_global_setup: PHY4 - CPU
>> miibus0: <MII bus> on arswitch0
>> ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
>> ukphy0: OUI 0x00c82e, model 0x0004, rev. 2
>> ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
> 1000baseT-FDX, 1000baseT-FDX-master, auto
>> miibus1: <MII bus> on arswitch0
>> ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
>> ukphy1: OUI 0x00c82e, model 0x0004, rev. 2
>> ukphy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
> 1000baseT-FDX, 1000baseT-FDX-master, auto
>> miibus2: <MII bus> on arswitch0
>> ukphy2: <Generic IEEE 802.3u media interface> PHY 2 on miibus2
>> ukphy2: OUI 0x00c82e, model 0x0004, rev. 2
>> ukphy2:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
> 1000baseT-FDX, 1000baseT-FDX-master, auto
>> miibus3: <MII bus> on arswitch0
>> ukphy3: <Generic IEEE 802.3u media interface> PHY 3 on miibus3
>> ukphy3: OUI 0x00c82e, model 0x0004, rev. 2
>> ukphy3:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
> 1000baseT-FDX, 1000baseT-FDX-master, auto
>> etherswitch0: <Switch controller> on arswitch0
>> mdio2: <MDIO> on arswitch0
>> mdioproxy2: <MII/MDIO proxy, MDIO side> on mdio2
>> apb0 at irq 4 on nexus0
>> uart0: <16550 or compatible> at mem 0x18020003-0x1802001a irq 3 on 
> apb0
>> uart0: console (115200,n,8,1)
>> uart0: fast interrupt
>> uart0: PPS capture mode: DCD
>> gpio0: <Atheros AR71XX GPIO driver> at mem 0x18040000-0x18040fff irq 2 
> on apb0
>> gpio0: [GIANT-LOCKED]
>> gpio0: function_set: 0x0
>> gpio0: function_clear: 0x0
>> gpio0: gpio pinmask=0x7da000
>> gpiobus0: <GPIO bus> on gpio0
>> gpioled0: <GPIO led> at pin 15 on gpiobus0
>> gpioled1: <GPIO led> at pin 13 on gpiobus0
>> gpioled2: <GPIO led> at pin 18 on gpiobus0
>> gpioc0: <GPIO controller> on gpio0
>> arge0: <Atheros AR71xx built-in ethernet interface> at mem 
> 0x19000000-0x19000fff irq 2 on nexus0
>> arge0: Generating random ethernet address.
>> miiproxy0: <MII/MDIO proxy, MII side> on arge0
>> miiproxy0: attached to target mdio2
>> arge0: finishing attachment, phymask 0001, proxy set 
>> miibus4: <MII bus> on miiproxy0
>> ukphy4: <Generic IEEE 802.3u media interface> PHY 0 on miibus4
>> ukphy4: OUI 0x00c82e, model 0x0004, rev. 2
>> ukphy4:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
> 1000baseT-FDX, 1000baseT-FDX-master, auto
>> arge0: bpf attached
>> arge0: Ethernet address: 58:9c:fc:10:46:76
>> arge1: <Atheros AR71xx built-in ethernet interface> at mem 
> 0x1a000000-0x1a000fff irq 3 on nexus0
>> arge1: arge_attach: overriding MII mode to 'GMII'
>> arge1: Generating random ethernet address.
>> mii_attach_proxy: not attaching, no mdio device hint for arge1
>> arge1: finishing attachment, phymask 0000, proxy null 
>> arge1: bpf attached
>> arge1: Ethernet address: 58:9c:fc:10:ff:83
>> spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0
>> spibus0: <SPI bus> on spi0
>> mx25l0: <M25Pxx Flash Family> at cs 0 mode 0 on spibus0
>> mx25l0: device type en25q32, size 4096K in 64 sectors of 64K, erase size 64K
>> ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0
>> Device configuration finished.
>> Timecounters tick every 1.000 msec
>> lo0: bpf attached
>> vlan: initialized, using hash tables with chaining
>> tcp_init: net.inet.tcp.tcbhashsize auto tuned to 512
>> arswitch0port1: link state changed to DOWN
>> arswitch0port2: link state changed to DOWN
>> arswitch0port3: link state changed to DOWN
>> arswitch0port4: link state changed to DOWN
>> GEOM: new disk flash/spi0
>> Trying to mount root from cd9660:/dev/map/rootfs.uzip []...
>> MAP: flash/spi0: 0x40000, data=0x40000 "/dev/map/bootloader"
>> MAP: flash/spi0: 40000x3a0000, data=0x3a0000 "/dev/map/upgrade"
>> MAP: search flash/spi0 for key ".!/bin/sh" from 0x100000, step 
> 0x10000
>> MAP: flash/spi0: 40000x100000, data=0x100000 "/dev/map/kernel"
>> MAP: search flash/spi0 for key ".!/bin/sh" from 0x100000, step 
> 0x10000
>> MAP: flash/spi0: 140000x2a0000, data=0x2a0000 "/dev/map/rootfs"
>> MAP: flash/spi0: 3f0000x10000, data=0x10000 "/dev/map/ART"
>> MAP: No valid partition found at map/rootfs.uzip
>> cd9660: RockRidge Extension
>> Warning: no time-of-day clock registered, system time will not be set 
> accurately
>> start_init: trying /sbin/init
>> arswitch0: arswitch_miipollstat: port 0: port -> UP
>> arswitch0port1: link state changed to UP
>> # /sbin/mdconfig -a -t malloc -s 2m
>> MAP: No valid partition found at md0
>> md0
>> # newfs -b 4096 -f 512 -n -o space /dev/md0
>> random: unblocking device.
>> /dev/md0: 2.0MB (4096 sectors) block size 4096, fragment size 512
>>         using 4 cylinder groups of 0.50MB, 129 blks, 528 inodes.
>> super-block backups (for fsck_ffs -b #) at:
>>  144, 1176, 2208, 3240
>> MAP: No valid partition found at md0
>> # mount /dev/md0 /mnt
>> ~KDB: enter: Break to debugger
>> [ thread pid 27 tid 100037 ]
>> Stopped at      0x4
>> db> ps   
>>   pid  ppid  pgrp   uid  state   wmesg   wchan       cmd
>>    27    19    27     0  R+      CPU 0               mount
>>    25     0     0     0  DL      mdwait  0x80b04000  [md0]
>>    19     1    19     0  Ss+     wait    0xc017f380  sh
>>    16     0     0     0  RL                          [soaiod4]
>>    15     0     0     0  RL                          [soaiod3]
>>    14     0     0     0  RL                          [soaiod2]
>>    13     0     0     0  RL                          [soaiod1]
>>     9     0     0     0  DL      wrkwait 0x8063c380  [map/rootfs.uzip]
>>     8     0     0     0  RL                          [schedcpu]
>>     7     0     0     0  RL                          [syncer]
>>     6     0     0     0  RL                          [vnlru]
>>     5     0     0     0  RL      (threaded)          [bufdaemon]
>> 100024                   RunQ                        [bufdaemon]
>> 100030                   RunQ                        [bufspacedaemon-0]
>>     4     0     0     0  RL      (threaded)          [pagedaemon]
>> 100023                   RunQ                        [dom0]
>> 100028                   D       launds  0x803cebe4  [laundry: dom0]
>> 100029                   RunQ                        [uma]
>>     3     0     0     0  RL                          [rand_harvestq]
>>     2     0     0     0  DL      mx25jq  0x805cbc00  [task: mx25l flash]
>>    12     0     0     0  RL      (threaded)          [geom]
>> 100014                   RunQ                        [g_event]
>> 100015                   D       -       0x8039d41c  [g_up]
>> 100016                   D       -       0x8039d420  [g_down]
>>    11     0     0     0  RL      (threaded)          [intr]
>> 100006                   I                           [swi5: fast taskq]
>> 100008                   I                           [swi6: task queue]
>> 100009                   I                           [swi6: Giant taskq]
>> 100011                   I                           [swi3: vm]
>> 100012                   I                           [swi1: netisr 0]
>> 100013                   RunQ                        [swi4: clock (0)]
>> 100017                   RunQ                        [swi0: uart]
>> 100018                   I                           [apb intr2: gpio0]
>> 100019                   I                           [int2 arge0]
>> 100020                   I                           [int3 arge1]
>>    10     0     0     0  RL                          [idle]
>>     1     0     1     0  SLs     wait    0xc0165c00  [init]
>>     0     0     0     0  RLs     (threaded)          [kernel]
>> 100000                   RunQ                        [swapper]
>> 100003                   D       -       0x80585e00  [softirq_0]
>> 100004                   D       -       0x80585d00  [thread taskq]
>> 100005                   D       -       0x80585c00  [inm_free taskq]
>> 100007                   D       -       0x80585900  [kqueue_ctx taskq]
>> 100010                   D       -       0x80585400  [aiod_kick taskq]
>> db> 
>> 
>> 
>