Kernel with crypto and geli won't mount /

Christian Baer christian.baer at uni-dortmund.de
Wed May 14 23:18:29 UTC 2008


Pawel Jakub Dawidek wrote:

> Is this full dmesg? 

Yup.

> I don't see your da0 disk beeing detected. Are you
> sure you have required SCSI driver compiled into your kernel?

This is the GENERIC kernel, so yeah, I'm sure.

> Are you suggesting that simply removing 'options GEOM_ELI' and 'device
> crypto' from your kernel configuration makes your system to boot again?

That is exactly what I am suggesting. As I wrote, I did this:

cp GENERIC MYKERNEL
vi MYKERNEL
   (add "options GEOM_ELI" and "device crypto")
cd /usr/src
make -j 2 buildkernel KERNCONF=MYKERNEL [1]
make installkernel KERNCONF=MYKERNEL [1]
reboot

Then, the system doesn't boot. If I leave them (GEOM_ELI and crypto) 
out, the system boots again. Just to be sure about this though, I went 
back to my kernelconf-file (MYKERNEL), which created a non-bootable 
kernel. I commented GEOM_ELI and crypto out and built a new kernel. A 
few minutes ago I rebooted the system successfully with that kernel.

Putting dmesg in at the end of this post. It's quite long, so don't 
complain. :-) Complete MYKERNEL can be posted if needed.

Have I discovered a major bug here?

Regards
Chris

[1] Actually, I didn't set the config on the command line, but instead 
set it in /etc/make.conf, which shouldn't make a difference because the 
system stated that it was finished with MYKERNEL.

sunny# dmesg
stray vector interrupt 2029
Copyright (c) 1992-2008 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 7.0-RELEASE #0: Mon Feb 25 09:35:41 UTC 2008
     root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
real memory  = 2147483648 (2048 MB)
avail memory = 2080759808 (1984 MB)
cpu0: Sun Microsystems UltraSparc-II Processor (450.03 MHz CPU)
cpu1: Sun Microsystems UltraSparc-II Processor (450.03 MHz CPU)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
registered firmware set <isp_1000>
registered firmware set <isp_1040>
registered firmware set <isp_1040_it>
registered firmware set <isp_1080>
registered firmware set <isp_1080_it>
registered firmware set <isp_12160>
registered firmware set <isp_12160_it>
registered firmware set <isp_2100>
registered firmware set <isp_2200>
registered firmware set <isp_2300>
registered firmware set <isp_2322>
registered firmware set <isp_2400>
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, 
RF5413, REGOPS_FUNC)
nexus0: <Open Firmware Nexus device>
pcib0: <U2P UPA-PCI bridge> mem 
0x1fe00004000-0x1fe00005fff,0x1fe01000000-0x1fe010000ff,0x1fe00000000-0x1fe0000cfff 
irq 2033,2030,2031,2021,2024,2034 on nexus0
pcib0: Psycho, impl 0, version 4, IGN 0x1f, bus B
pcib0: [FILTER]
pcib0: [FILTER]
pcib0: [GIANT-LOCKED]
pcib0: [ITHREAD]

pcib0: [GIANT-LOCKED]
pcib0: [ITHREAD]
initializing counter-timer
Timecounter "counter-timer" frequency 1000000 Hz quality 100
pcib0 dvma: DVMA map: 0xfc000000 to 0xffffffff
pcib0: [FILTER]
pci0: <OFW PCI bus> on pcib0
ebus0: <PCI-EBus2 bridge> mem 
0x70000000-0x70ffffff,0x71000000-0x717fffff at device 1.0 on pci0
auxio0: <Sun Auxiliary I/O> addr 
0x1400726000-0x1400726003,0x1400728000-0x1400728003,0x140072a000-0x140072a003,0x140072c000-0x140072c003,0x140072f000-0x140072f003 
on ebus0
ebus0: <power> addr 0x1400724000-0x1400724003 (no driver attached)
ebus0: <SUNW,pll> addr 0x1400504000-0x1400504002 (no driver attached)
ebus0: <sc> addr 0x1400500000-0x1400500007 (no driver attached)
scc0: <Siemens SAB 82532 dual channel SCC> addr 
0x1400400000-0x140040007f irq 43 on ebus0
scc0: [FILTER]
uart0: <SAB 82532 v3.2, channel A> on scc0
uart0: [FILTER]
uart0: CTS oflow
uart0: console (9600,n,8,1)
uart1: <SAB 82532 v3.2, channel B> on scc0
uart1: [FILTER]
uart1: CTS oflow
uart2: <16550 or compatible> addr 0x14003083f8-0x14003083ff irq 41 on ebus0
uart2: [FILTER]
uart2: keyboard (1200,n,8,1)
uart2: keyboard not present
uart3: <16550 or compatible> addr 0x14003062f8-0x14003062ff irq 42 on ebus0
uart3: [FILTER]
ebus0: <ecpp> addr 
0x14003043bc-0x14003043cb,0x1400300398-0x1400300399,0x1400700000-0x140070000f 
irq 34 (no driver attached)
ebus0: <fdthree> addr 
0x14003023f0-0x14003023f7,0x1400706000-0x140070600f,0x1400720000-0x1400720003 
irq 39 (no driver attached)
eeprom0: <EEPROM/clock> addr 0x1400000000-0x1400001fff on ebus0
eeprom0: model mk48t59
ebus0: <flashprom> addr 0x1000000000-0x10000fffff (no driver attached)
ebus0: <SUNW,CS4231> addr 
0x1400200000-0x14002000ff,0x1400702000-0x140070200f,0x1400704000-0x140070400f,0x1400722000-0x1400722003 
irq 35,36 (no driver attached)
hme0: <Sun HME 10/100 Ethernet> mem 0x100000-0x107fff at device 1.1 on pci0
miibus0: <MII bus> on hme0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
hme0: Ethernet address: 08:00:20:e5:f2:5b
hme0: [ITHREAD]
sym0: <875> port 0x1000-0x10ff mem 0x108000-0x1080ff,0x10a000-0x10afff 
at device 3.0 on pci0
sym0: No NVRAM, ID 7, Fast-20, SE, parity checking
sym0: [GIANT-LOCKED]
sym0: [ITHREAD]
sym1: <875> port 0x1400-0x14ff mem 0x10c000-0x10c0ff,0x10e000-0x10efff 
at device 3.1 on pci0
sym1: No NVRAM, ID 7, Fast-20, SE, parity checking
sym1: [GIANT-LOCKED]
sym1: [ITHREAD]
pcib1: <U2P UPA-PCI bridge> mem 
0x1fe00002000-0x1fe00003fff,0x1fe01800000-0x1fe018000ff,0x1fe00000000-0x1fe0000cfff 
irq 2032,2030,2031,2021,2024,2034 on nexus0
pcib1: Psycho, impl 0, version 4, IGN 0x1f, bus A
pcib1: [FILTER]
pci1: <OFW PCI bus> on pcib1
creator0: <Creator3D> mem 
0x1fc00000000-0x1fc000003ff,0x1fc00400000-0x1fc005fffff,0x1fc00600000-0x1fc007fffff,0x1fc01000000-0x1fc013fffff,0x1fc01400000-0x1fc017fffff,0x1fc01800000-0x1fc01bfffff,0x1fc01c00000-0x1fc01ffffff,0x1fc02000000-0x1fc02ffffff,0x1fc03000000-0x1fc03ffffff,0x1fc04000000-0x1fc043fffff,0x1fc04400000-0x1fc047fffff,0x1fc04800000-0x1fc04bfffff,0x1fc04c00000-0x1fc04ffffff,0x1fc05000000-0x1fc05ffffff,0x1fc06000000-0x1fc07ffffff,0x1fc09000000-0x1fc097fffff,0x1fc09800000-0x1fc09ffffff,0x1fc0a000000-0x1fc0affffff,0x1fc0b000000-0x1fc0b7fffff,0x1fc0b800000-0x1fc0bffffff,0x1fc0c000000-0x1fc0c3fffff,0x1fc0c800000-0x1fc0cffffff,0x1fc0d000000-0x1fc0d7fffff,0x1fc0d800000-0x1fc0dffffff 
irq 1925 on nexus0
creator0: resolution 1152x900
syscons0: <System console> on nexus0
syscons0: Unknown <16 virtual consoles, flags=0x100>
Timecounters tick every 1.000 msec
Waiting 5 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
da1 at sym0 bus 0 target 1 lun 0
da1: <SEAGATE SX173404LC BD0A> Fixed Direct Access SCSI-3 device
da1: 40.000MB/s transfers (20.000MHz, offset 16, 16bit)
da1: Command Queueing Enabled
da1: 70007MB (143374738 512 byte sectors: 255H 63S/T 8924C)
da0 at sym0 bus 0 target 0 lun 0
da0: <SEAGATE SX173404LC BD0A> Fixed Direct Access SCSI-3 device
da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit)
da0: Command Queueing Enabled
da0: 70007MB (143374738 512 byte sectors: 255H 63S/T 8924C)
cd0 at sym0 bus 0 target 6 lun 0
cd0: <TOSHIBA DVD-ROM SD-M1401 1007> Removable CD-ROM SCSI-2 device
cd0: 20.000MB/s transfers (20.000MHz, offset 16)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/da0a
hme0: device timeout
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...1 0 1 0 0 0 done
All buffers synced.
stray vector interrupt 2029
Copyright (c) 1992-2008 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 7.0-STABLE #1: Wed May 14 18:21:54 CEST 2008
     root at sunny.rz1.convenimus.net:/usr/obj/usr/src/sys/SUNNY
real memory  = 2147483648 (2048 MB)
avail memory = 2080759808 (1984 MB)
cpu0: Sun Microsystems UltraSparc-II Processor (450.03 MHz CPU)
cpu1: Sun Microsystems UltraSparc-II Processor (450.03 MHz CPU)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
registered firmware set <isp_1000>
registered firmware set <isp_1040>
registered firmware set <isp_1040_it>
registered firmware set <isp_1080>
registered firmware set <isp_1080_it>
registered firmware set <isp_12160>
registered firmware set <isp_12160_it>
registered firmware set <isp_2100>
registered firmware set <isp_2200>
registered firmware set <isp_2300>
registered firmware set <isp_2322>
registered firmware set <isp_2400>
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, 
RF5413, REGOPS_FUNC)
nexus0: <Open Firmware Nexus device>
pcib0: <U2P UPA-PCI bridge> mem 
0x1fe00004000-0x1fe00005fff,0x1fe01000000-0x1fe010000ff,0x1fe00000000-0x1fe0000cfff 
irq 2033,2030,2031,2021,2024,2034 on nexus0
pcib0: Psycho, impl 0, version 4, IGN 0x1f, bus B
pcib0: [FILTER]
pcib0: [FILTER]
pcib0: [GIANT-LOCKED]
pcib0: [ITHREAD]
pcib0: [GIANT-LOCKED]
pcib0: [ITHREAD]
initializing counter-timer
Timecounter "counter-timer" frequency 1000000 Hz quality 100
pcib0 dvma: DVMA map: 0xfc000000 to 0xffffffff
pcib0: [FILTER]
pci0: <OFW PCI bus> on pcib0
ebus0: <PCI-EBus2 bridge> mem 
0x70000000-0x70ffffff,0x71000000-0x717fffff at device 1.0 on pci0
auxio0: <Sun Auxiliary I/O> addr 
0x1400726000-0x1400726003,0x1400728000-0x1400728003,0x140072a000-0x140072a003,0x140072c000-0x140072c003,0x140072f000-0x140072f003 
on ebus0
ebus0: <power> addr 0x1400724000-0x1400724003 (no driver attached)
ebus0: <SUNW,pll> addr 0x1400504000-0x1400504002 (no driver attached)
ebus0: <sc> addr 0x1400500000-0x1400500007 (no driver attached)
scc0: <Siemens SAB 82532 dual channel SCC> addr 
0x1400400000-0x140040007f irq 43 on ebus0
scc0: [FILTER]
uart0: <SAB 82532 v3.2, channel A> on scc0
uart0: [FILTER]
uart0: CTS oflow
uart0: console (9600,n,8,1)
uart1: <SAB 82532 v3.2, channel B> on scc0
uart1: [FILTER]
uart1: CTS oflow
uart2: <16550 or compatible> addr 0x14003083f8-0x14003083ff irq 41 on ebus0
uart2: [FILTER]
uart2: keyboard (1200,n,8,1)
uart2: keyboard not present
uart3: <16550 or compatible> addr 0x14003062f8-0x14003062ff irq 42 on ebus0
uart3: [FILTER]
ebus0: <ecpp> addr 
0x14003043bc-0x14003043cb,0x1400300398-0x1400300399,0x1400700000-0x140070000f 
irq 34 (no driver attached)
ebus0: <fdthree> addr 
0x14003023f0-0x14003023f7,0x1400706000-0x140070600f,0x1400720000-0x1400720003 
irq 39 (no driver attached)
eeprom0: <EEPROM/clock> addr 0x1400000000-0x1400001fff on ebus0
eeprom0: model mk48t59
ebus0: <flashprom> addr 0x1000000000-0x10000fffff (no driver attached)
ebus0: <SUNW,CS4231> addr 
0x1400200000-0x14002000ff,0x1400702000-0x140070200f,0x1400704000-0x140070400f,0x1400722000-0x1400722003 
irq 35,36 (no driver attached)
hme0: <Sun HME 10/100 Ethernet> mem 0x100000-0x107fff at device 1.1 on pci0
miibus0: <MII bus> on hme0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
hme0: Ethernet address: 08:00:20:e5:f2:5b
hme0: [ITHREAD]
sym0: <875> port 0x1000-0x10ff mem 0x108000-0x1080ff,0x10a000-0x10afff 
at device 3.0 on pci0
sym0: No NVRAM, ID 7, Fast-20, SE, parity checking
sym0: [GIANT-LOCKED]
sym0: [ITHREAD]
sym1: <875> port 0x1400-0x14ff mem 0x10c000-0x10c0ff,0x10e000-0x10efff 
at device 3.1 on pci0
sym1: No NVRAM, ID 7, Fast-20, SE, parity checking
sym1: [GIANT-LOCKED]
sym1: [ITHREAD]
pcib1: <U2P UPA-PCI bridge> mem 
0x1fe00002000-0x1fe00003fff,0x1fe01800000-0x1fe018000ff,0x1fe00000000-0x1fe0000cfff 
irq 2032,2030,2031,2021,2024,2034 on nexus0
pcib1: Psycho, impl 0, version 4, IGN 0x1f, bus A
pcib1: [FILTER]
pci1: <OFW PCI bus> on pcib1
creator0: <Creator3D> mem 
0x1fc00000000-0x1fc000003ff,0x1fc00400000-0x1fc005fffff,0x1fc00600000-0x1fc007fffff,0x1fc01000000-0x1fc013fffff,0x1fc01400000-0x1fc017fffff,0x1fc01800000-0x1fc01bfffff,0x1fc01c00000-0x1fc01ffffff,0x1fc02000000-0x1fc02ffffff,0x1fc03000000-0x1fc03ffffff,0x1fc04000000-0x1fc043fffff,0x1fc04400000-0x1fc047fffff,0x1fc04800000-0x1fc04bfffff,0x1fc04c00000-0x1fc04ffffff,0x1fc05000000-0x1fc05ffffff,0x1fc06000000-0x1fc07ffffff,0x1fc09000000-0x1fc097fffff,0x1fc09800000-0x1fc09ffffff,0x1fc0a000000-0x1fc0affffff,0x1fc0b000000-0x1fc0b7fffff,0x1fc0b800000-0x1fc0bffffff,0x1fc0c000000-0x1fc0c3fffff,0x1fc0c800000-0x1fc0cffffff,0x1fc0d000000-0x1fc0d7fffff,0x1fc0d800000-0x1fc0dffffff 
irq 1925 on nexus0
creator0: resolution 1152x900
syscons0: <System console> on nexus0
syscons0: Unknown <16 virtual consoles, flags=0x100>
Timecounters tick every 1.000 msec
Waiting 5 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
da1 at sym0 bus 0 target 1 lun 0
da1: <SEAGATE SX173404LC BD0A> Fixed Direct Access SCSI-3 device
da1: 40.000MB/s transfers (20.000MHz, offset 16, 16bit)
da1: Command Queueing Enabled
da1: 70007MB (143374738 512 byte sectors: 255H 63S/T 8924C)
da0 at sym0 bus 0 target 0 lun 0
da0: <SEAGATE SX173404LC BD0A> Fixed Direct Access SCSI-3 device
da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit)
da0: Command Queueing Enabled
da0: 70007MB (143374738 512 byte sectors: 255H 63S/T 8924C)
cd0 at sym0 bus 0 target 6 lun 0
cd0: <TOSHIBA DVD-ROM SD-M1401 1007> Removable CD-ROM SCSI-2 device
cd0: 20.000MB/s transfers (20.000MHz, offset 16)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/da0a


More information about the freebsd-geom mailing list