Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2003 01:21:01 -0400
From:      Charles Anderson <caa@columbus.rr.com>
To:        freebsd-stable@freebsd.org
Subject:   Boot from CF stalls when mounting root
Message-ID:  <20030907052101.GA56091@midgard.dhs.org>

next in thread | raw e-mail | index | archive | help
I'm trying to get stable booted on a little ITX board off of a CF card, but
it hangs as it's trying to run init.

Here's what the boot looks like.

SMAP type=01 base=0000000000000000 len=000000000009fc00
SMAP type=01 base=000000000009fc00 len=0000000000000400
SMAP type=02 base=00000000000f0000 len=0000000000010000
SMAP type=02 base=00000000ffff0000 len=0000000000010000
SMAP type=01 base=0000000000100000 len=000000001f6f0000
SMAP type=03 base=000000001f7f3000 len=000000000000d000
SMAP type=04 base=000000001f7f0000 len=0000000000003000
ACPI debug layer 0x0  debug level 0x0
Copyright (c) 1992-2003 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 4.9-PRERELEASE #5: Sun Sep  7 00:51:12 EDT 2003
    root@newguy.ourhouse.disorg:/usr/obj/usr/src/sys/ITX
Calibrating clock(s) ... TSC clock: 800022041 Hz, i8254 clock: 1193173 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: VIA C3 Samuel 2 (800.03-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x673  Stepping = 3
  Features=0x803035<FPU,DE,TSC,MSR,MTRR,PGE,MMX>
real memory  = 528416768 (516032K bytes)
Physical memory chunk(s):
0x000001000 - 0x00009ffff, 651264 bytes (159 pages)
0x000491000 - 0x01f7e7fff, 523595776 bytes (127831 pages)
avail memory = 509644800 (497700K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00faf00
bios32: Entry = 0xfb370 (c00fb370)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xb3a0
pnpbios: Found PnP BIOS data at 0xc00fbda0
pnpbios: Entry = f0000:bdd0  Rev = 1.0
Other BIOS signatures found:
ACPI: 000f67c0
Preloaded elf kernel "kernel" at 0xc046a000.
Creating DISK md0
md0: Malloc disk
Math emulator present
pci_open(1):    mode 1 addr port (0x0cf8) is 0x80008c90
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=06011106)
Using $PIR table, 5 entries at 0xc00fdc70
acpi0: Other PM system enabled.
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
found-> vendor=0x1106, dev=0x0601, revid=0x05
        class=06-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        map[10]: type 1, range 32, base d0000000, size 28
found-> vendor=0x1106, dev=0x8601, revid=0x00
        class=06-04-00, hdrtype=0x01, mfdev=0
        subordinatebus=1        secondarybus=1
found-> vendor=0x1106, dev=0x8231, revid=0x10
        class=06-01-00, hdrtype=0x00, mfdev=1
        subordinatebus=0        secondarybus=0
found-> vendor=0x1106, dev=0x0571, revid=0x06
        class=01-01-8a, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        map[20]: type 1, range 32, base 0000d000, size  4
found-> vendor=0x1106, dev=0x3038, revid=0x1e
        class=0c-03-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=d, irq=12
        map[20]: type 1, range 32, base 0000d400, size  5
found-> vendor=0x1106, dev=0x3038, revid=0x1e
        class=0c-03-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=d, irq=12
        map[20]: type 1, range 32, base 0000d800, size  5
found-> vendor=0x1106, dev=0x8235, revid=0x10
        class=06-80-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
found-> vendor=0x1106, dev=0x3058, revid=0x40
        class=04-01-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=c, irq=10
        map[10]: type 1, range 32, base 0000dc00, size  8
        map[14]: type 1, range 32, base 0000e000, size  2
        map[18]: type 1, range 32, base 0000e400, size  2
found-> vendor=0x1106, dev=0x3065, revid=0x51
        class=02-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=11
        map[10]: type 1, range 32, base 0000e800, size  8
        map[14]: type 1, range 32, base e3000000, size  8
pci0: <PCI bus> on pcib0
agp0: <VIA Generic host to PCI bridge> mem 0xd0000000-0xdfffffff at device 0.0 o
n pci0
agp0: allocating GATT for aperture of size 256M
pcib1: <PCI to PCI bridge (vendor=1106 device=8601)> at device 1.0 on pci0
found-> vendor=0x1023, dev=0x8500, revid=0x6a
        class=03-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=11
        map[10]: type 1, range 32, base e1800000, size 23
        map[14]: type 1, range 32, base e2000000, size 17
        map[18]: type 1, range 32, base e1000000, size 23
pci1: <PCI bus> on pcib1
pci1: <Trident model 8500 VGA-compatible display device> (vendor=0x1023, dev=0x8
500) at 0.0 irq 11
isab0: <PCI to ISA bridge (vendor=1106 device=8231)> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8231 ATA100 controller> port 0xd000-0xd00f at device 17.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xd000
ata0: mask=03 ostat0=50 ostat2=00
ata0-master: ATAPI 00 00
ata0-slave: ATAPI 00 00
ata0: mask=03 stat0=50 stat1=00
ata0-master: ATA 01 a5
ata0: devices=01
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xd008
ata1: mask=03 ostat0=50 ostat2=00
ata1-master: ATAPI 00 00
ata1-slave: ATAPI 00 00
ata1: mask=03 stat0=50 stat1=00
ata1-master: ATA 01 a5
ata1: devices=01
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 12 at device 17.2 on p
ci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 12 at device 17.3 on p
ci0
        using shared irq12.
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
chip0: <PCI to Other bridge (vendor=1106 device=8235)> at device 17.4 on pci0
pcm0: <VIA VT82C686A> port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 10 at d
evice 17.5 on pci0
pcm0: <VIA Technologies VIA1612A AC97 Codec (id = 0x56494161)>
pcm0: Codec features headphone, 18 bit DAC, 18 bit ADC, 5 bit master volume, Res
erved 27
pcm0: Primary codec extended features variable rate PCM, reserved 1, AMAP
pcm0: sndbuf_setmap 1e952000, 1000; 0xc1e3e000 -> 1e952000
pcm0: sndbuf_setmap 1e954000, 1000; 0xc1e40000 -> 1e954000
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe800-0xe8ff mem 0xe3000000-0xe300
00ff irq 11 at device 18.0 on pci0
vr0: Ethernet address: 00:40:63:ca:e1:3a
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: OUI 0x004063, model 0x0032, rev. 5
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bpf: vr0 attached
ata-: ata0 exists, using next available unit number
ata-: ata1 exists, using next available unit number
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
pmtimer0 on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
fdc0 failed to probe at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
ata2 failed to probe at port 0x1f0 irq 14 on isa0
ata3 failed to probe at port 0x170 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0067
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x1d0000
psm0: current command byte:0067
kbdc: TEST_AUX_PORT status:0000
kbdc: RESET_AUX return code:00fe
kbdc: RESET_AUX return code:00fe
kbdc: RESET_AUX return code:00fe
kbdc: DIAGNOSE status:0055
kbdc: TEST_KBD_PORT status:0000
psm0: failed to reset the aux device.
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 05 f0 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
sio0: irq maps: 0x1 0x11 0x1 0x1
sio0 at port 0x3f8-0x3ff irq 4 flags 0x30 on isa0
sio0: type 16550A, console
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: irq maps: 0x1 0x1 0x1 0x1
sio1: probe failed test(s): 0 1 2 4 6 7 9
sio1 failed to probe at port 0x2f8-0x2ff irq 3 on isa0
sio2: not probed (disabled)
sio3: not probed (disabled)
ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
ppc0: EPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
bpf: lp0 attached
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
isa_probe_children: probing PnP devices
BIOS Geometries:
 0:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors
 1:001e1f3f 0..30=31 cylinders, 0..31=32 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: lo0 attached
bpf: ppp0 attached
new masks: bio 68d000, tty 630492, net 670c92
bpf: sl0 attached
bpf: faith0 attached
ad0: success setting UDMA5 on VIA chip
Creating DISK ad0
ar: FreeBSD check1 failed
ad0: <MAXTOR 6L080L4/A93.0500> ATA-5 disk at ata0-master
ad0: 76345MB (156355584 sectors), 155114 C, 16 H, 63 S, 512 B
ad0: 16 secs/int, 1 depth queue, UDMA100
ad0: piomode=4 dmamode=2 udmamode=6 cblid=1
ad2: success setting PIO1 on generic chip
Creating DISK ad2
ar: FreeBSD check1 failed
ad2: <SanDisk SDCFB-32/vde 1.10> ATA-0 disk at ata1-master
ad2: 30MB (62720 sectors), 490 C, 4 H, 32 S, 512 B
ad2: 1 secs/int, 1 depth queue, PIO1
ad2: piomode=1 dmamode=-1 udmamode=-1 cblid=0

Manual root filesystem specification:
  <fstype>:<device>  Mount <device> using filesystem <fstype>
                       eg. ufs:/dev/da0s1a
  ?                  List valid disk boot devices
  <empty line>       Abort manual input

mountroot> ufs:/dev/ad2a
Mounting root from ufs:/dev/ad2a
start_init: trying /sbin/init
~Stopped at      siointr1+0xb1:  jmp     siointr1+0x1a0
db> trace
siointr1(c1e2a800,c03793b8,c02f4536,c1e2a800,10) at siointr1+0xb1
siointr(c1e2a800,10,284ad,d4292780,0) at siointr+0xb
Xfastintr4(7,673,1,803035,0) at Xfastintr4+0x16
idle_loop() at idle_loop+0x1d

ok, well I'm booting off of an disk and trying to mount root off of the CF card
the kernel & /sbin/init are the same on both disks.

Anybody got suggestions on what to try?  The trace really doesn't seem to tell
much.  I've never tried the kernel debugger before, so I'm not really sure what
else to try.  I RTFM'd but it's late and I'm out of ideas.

Thanks,
-Charlie
-- 
Charles Anderson	caa at columbus dot rr dot com

No quote, no nothin'


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030907052101.GA56091>