Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 1998 22:49:52 -0700
From:      "Kurt D. Zeilenga" <Kurt@Boolean.Net>
To:        current@FreeBSD.ORG
Subject:   Re: SNAP9802 CDROM: cannot mount root
Message-ID:  <Version.32.19980426183406.00e46540@shell15.ba.best.com>
In-Reply-To: <3.0.5.32.19980424001722.009afd30@shell17.ba.best.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
At 07:17 AM 4/24/98, I wrote:  [trimmed and reorderred]
>Anyways, I figure I'll retarget FreeBSD disk back to
>target 0, CVSup to -current, and try this again.

Here are my findings regarding -current as of 1998-05-27 04:00 GMT.
(make world, config/make/boot new kernels).

>Anyways, using sysinstall I allocated the entire
>second SCSI drive (target 1) to FreeBSD (using a
>compatibility slice).  Every thing went fine until
>went to boot (on target 1) the newly installed system.
>...
>But then:
>	changing root device to sd0a
>	error 22: panic: cannot mount root (2)

I have tried "root on sd1s1a" (or "root on sd1a" or "root on sd1") with no
luck.  These near-GENERIC kernels all panic with:
	changing root device to sd0s1a
	error 22: panic: cannot mount route (2)

Would I have had better luck by installing "dangerously dedicated?"

>Well, guess I'll have to tell the kernel where root
>is...  so I reboot with -va....

Booting with the "-a" (ask) options fails to ask.  This includes GENERIC.
As sysinstall appears to install a GENERIC kernel, the installation
is not usable.  Sysinstall should install a kernel capable of mounting the
selected root partition (sd1s1a) or, at the very least, warn the user that the
installation will not boot as installed.

I was successfully able to boot on second SCSI drive (target 1)
by hard coding the SCSI targets as follows:

	config	kernel	root on sd0	# sd0 is second disk (target 1)
	controller	ahc0			# 7880/2940UW
	controller	scbus0 at ahc0
	disk		sd0	at scbus0 target 1 unit 0
	disk		sd1 at scbus0 target 0
	disk		sd2 at scbus0 target 4
	disk		sd3 at scbus0 target 5
	device		cd0 at scbus0 target 6

Of course I had do this while the drive was on target 0.

>Does anyone have any comments and/or suggestions?

Guess you were all waiting for me to post my configs/dmesg/mptable...
You'll note that I am now running SMP.  However all of the above tests
was done using non-SMP near-GENERIC (modified "config kernel" entries).

As I'll building a similar configuration soon, I'd be willing to test any
relevant changes. 

	Kurt



[-- Attachment #2 --]

===============================================================================

MPTable, version 2.0.15

-------------------------------------------------------------------------------

MP Floating Pointer Structure:

  location:			BIOS
  physical address:		0x000fdac0
  signature:			'_MP_'
  length:			16 bytes
  version:			1.4
  checksum:			0x4a
  mode:				Virtual Wire

-------------------------------------------------------------------------------

MP Config Table Header:

  physical address:		0x0009fd50
  signature:			'PCMP'
  base table length:		324
  version:			1.4
  checksum:			0xd6
  OEM ID:			'MICRON  '
  Product ID:			'SAMURAI     '
  OEM table pointer:		0x00000000
  OEM table size:		0
  entry count:			32
  local APIC address:		0xfee00000
  extended table length:	140
  extended table checksum:	40

-------------------------------------------------------------------------------

MP Config Base Table Entries:

--
Processors:	APIC ID	Version	State		Family	Model	Step	Flags
		 1	 0x11	 BSP, usable	 6	 3	 4	 0x80fbff
		 0	 0x11	 AP, usable	 6	 3	 4	 0x80fbff
--
Bus:		Bus ID	Type
		 0	 PCI   
		 1	 PCI   
		 2	 ISA   
--
I/O APICs:	APIC ID	Version	State		Address
		 2	 0x11	 usable		 0xfec00000
--
I/O Ints:	Type	Polarity    Trigger	Bus ID	 IRQ	APIC ID	PIN#
		ExtINT	active-hi        edge	     2	   0	      2	   0
		INT	active-hi        edge	     2	   1	      2	   1
		INT	active-hi        edge	     2	   0	      2	   2
		INT	active-hi        edge	     2	   3	      2	   3
		INT	active-hi        edge	     2	   4	      2	   4
		INT	active-hi        edge	     2	   5	      2	   5
		INT	active-hi        edge	     2	   6	      2	   6
		INT	active-hi        edge	     2	   7	      2	   7
		INT	active-hi        edge	     2	   8	      2	   8
		INT	active-hi        edge	     2	   9	      2	   9
		INT	active-hi        edge	     2	  10	      2	  10
		INT	active-hi        edge	     2	  11	      2	  11
		INT	active-hi        edge	     2	  12	      2	  12
		INT	active-hi        edge	     2	  13	      2	  13
		INT	active-hi        edge	     2	  14	      2	  14
		INT	active-hi        edge	     2	  15	      2	  15
		NMI	active-hi        edge	     2	  20	      2	  20
		ExtINT	active-lo       level	     2	  21	      2	  21
		INT	active-hi        edge	     2	  22	      2	  22
		SMI	active-lo        edge	     2	  23	      2	  23
		INT	active-lo       level	     0	 1:D	      2	  19
		INT	active-lo       level	     0	18:A	      2	  17
		INT	active-lo       level	     0	19:A	      2	  19
		INT	active-lo       level	     1	15:A	      2	  18
--
Local Ints:	Type	Polarity    Trigger	Bus ID	 IRQ	APIC ID	PIN#
		ExtINT	active-hi        edge	     2	   0	    255	   0
		NMI	active-hi        edge	     0	 0:A	    255	   1

-------------------------------------------------------------------------------

MP Config Extended Table Entries:

--

 bus ID: 0 address type: I/O address
 address base: 0x0
 address range: 0x10000
--

 bus ID: 0 address type: memory address
 address base: 0x8000000
 address range: 0xf5800000
--

 bus ID: 1 address type: memory address
 address base: 0xfd800000
 address range: 0x12e0000
--

 bus ID: 0 address type: memory address
 address base: 0xfeae0000
 address range: 0x1520000
--

 bus ID: 0 address type: memory address
 address base: 0xa0000
 address range: 0x20000
--

 bus ID: 2 bus info: 0x01 parent bus ID: 0--

 bus ID: 0 address modifier: add
 predefined range: 0x00000000--

 bus ID: 0 address modifier: add
 predefined range: 0x00000001--

 bus ID: 1 address modifier: subtract
 predefined range: 0x00000000--

 bus ID: 1 address modifier: subtract
 predefined range: 0x00000001
-------------------------------------------------------------------------------

# SMP kernel config file options:


# Required:
options		SMP			# Symmetric MultiProcessor Kernel
options		APIC_IO			# Symmetric (APIC) I/O

# Optional (built-in defaults will work in most cases):
#options		NCPU=2			# number of CPUs
#options		NBUS=3			# number of busses
#options		NAPIC=1			# number of IO APICs
#options		NINTR=24		# number of INTs

-------------------------------------------------------------------------------

dmesg output:

Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.0-CURRENT #0: Mon Apr 27 07:21:11 GMT 1998
    root@pagan.boolean.net:/usr/src/sys/compile/PAGAN
Timecounter "i8254"  frequency 1193182 Hz  cost 3882 ns
CPU: Pentium Pro (686-class CPU)
  Origin = "GenuineIntel"  Id = 0x634  Stepping=4
  Features=0x80fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,MMX>
real memory  = 134217728 (131072K bytes)
avail memory = 128458752 (125448K bytes)
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Probing for devices on PCI bus 0:
chip0: <Intel 82371AB PCI to ISA bridge> rev 0x01 on pci0.1.0
chip1: <Intel 82371AB USB host controller> rev 0x01 int d irq 19 on pci0.1.2
chip2: <Intel 82371AB Power management controller> rev 0x01 on pci0.1.3
ahc0: <Adaptec 2940 Ultra SCSI host adapter> rev 0x01 int a irq 17 on pci0.18.0
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
ahc0: waiting for scsi devices to settle
scbus0 at ahc0 bus 0
sd1 at scbus0 target 0 lun 0
sd1: <IBM DDRS-34560W S71D> type 0 fixed SCSI 2
sd1: Direct-Access 4357MB (8925000 512 byte sectors)
sd0 at scbus0 target 1 lun 0
sd0: <SEAGATE ST19171W 0023> type 0 fixed SCSI 2
sd0: Direct-Access 8683MB (17783112 512 byte sectors)
sd2 at scbus0 target 4 lun 0
sd2: <iomega jaz 1GB J.86> type 0 removable SCSI 2
sd2: Direct-Access 
sd2: ILLEGAL REQUEST asc:24,0 Invalid field in CDB
sd2 could not mode sense (4). Using ficticious geometry

sd2: NOT READY asc:3a,0 Medium not present
sd2: could not get size
Media parameters not available
ahc0:A:5: refuses synchronous negotiation. Using asynchronous transfers
sd3 at scbus0 target 5 lun 0
sd3: <IOMEGA ZIP 100 N*32> type 0 removable SCSI 2
sd3: Direct-Access 
sd3: ILLEGAL REQUEST asc:24,0 Invalid field in CDB
sd3 could not mode sense (4). Using ficticious geometry

sd3: NOT READY asc:3a,0 Medium not present
sd3: could not get size
Media parameters not available
cd0 at scbus0 target 6 lun 0
cd0: <PLEXTOR CD-ROM PX-20TS 1.00> type 5 removable SCSI 2
cd0: CD-ROM cd present [291011 x 2048 byte records]
vx0: <3COM 3C905 Fast Etherlink XL PCI> rev 0x00 int a irq 19 on pci0.19.0
mii[*mii*]: disable 'auto select' with DOS util! address 00:60:08:96:5f:5b
chip3: <Host to PCI bridge (vendor=1042 device=3000)> rev 0x01 on pci0.24.0
chip4: <Host to PCI bridge (vendor=1042 device=3010)> rev 0x00 on pci0.25.0
Freeing (NOT implemented) redirected ISA irq 0.
Probing for PnP devices:
CSN 1 Vendor ID: USR2030 [0x30207256] Serial 0xadacaa93
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: WARNING: video mode switching is only partially supported
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
npx0 on motherboard
npx0: INT 16 interface
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via pin 2
SMP: AP CPU #1 Launched!

===============================================================================


[-- Attachment #3 --]
#
# SMP-PAGAN
#
# Dual PII on MicronPC Samarai Motherboard
# 	Integrated SCSI Adaptec 2940UW (7880)
#		sd0 is SCSI target 1
#		sd1 is SCSI target 0
#		jaz (4), zip (5), cdrom (6)
#

machine		"i386"
cpu		"I686_CPU"
ident		PAGAN-SMP
maxusers	10

# Create a SMP capable kernel (mandatory options):
options		SMP			# Symmetric MultiProcessor Kernel
options		APIC_IO			# Symmetric (APIC) I/O

# Optional, these are the defaults:
options		NCPU=2			# number of CPUs
options		NBUS=3			# number of busses
options		NAPIC=1			# number of IO APICs
options		NINTR=24		# number of INTs

options		DDB			#kernel debugger
options		KTRACE			#kernel tracing

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		FFS_ROOT		#FFS Usable Root
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		SCSI_DELAY=10		#Be pessimistic about Joe SCSI device
options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

options		"MD5"			#MD5 Support

options		"NO_F00F_HACK"

config		kernel	root on sd0

controller	isa0
controller	pci0
controller	pnp0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0


# SCSI Devices
# Note: target 0 is sd0!
controller	ahc0			# 2940UW
controller	scbus0 at ahc0		# Single bus
disk 		sd0 at scbus0 target 1 unit 0
disk		sd1 at scbus0 target 0
disk		sd2 at scbus0 target 4
disk		sd3 at scbus0 target 5
device		cd0 at scbus0 target 6

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr

device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

# motherboard supports APM
device		apm0    at isa?	disable	flags 0x31 # Advanced Power Management

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
options		"EXTRA_SIO=2"

device		lpt0	at isa? port? tty irq 7 vector lptintr
device		psm0	at isa? disable port "IO_KBD" conflicts tty irq 12 vector psmintr

device vx0

pseudo-device	loop
pseudo-device	ether
pseudo-device	tun	2
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's



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