Re: Retry: Problem with boot/loader I can't seem to solve. Ideas anyone?

From: Ryan Merrick (sandshrimp_at_comcast.net)
Date: 09/12/03

  • Next message: Paul Cocker: "(no subject)"
    Date: Fri, 12 Sep 2003 01:56:04 -0700
    To: Frank Masolijn <frank@masolijn.nl>
    
    

    Frank Masolijn wrote:
    > L.S.
    >
    > For about a week now I've been trying unsuccesfully to solve the problem
    > below.
    >
    > My machine was installed with 4.8-Release.
    > The problem started after compiling and installing a new kernel to replace
    > kernel.GENERIC
    >
    > What happens is:
    >
    > The system starts.
    > Detects the AH2940 SCSI controller.
    > The controller detects 3 devices.
    > -SCSI ID#2 CDROM
    > -SCSI ID#1 IBM 4,3 GB Disk 0x80 (probably recognized later as da1)
    > -SCSI ID#0 IBM 4,3 GB Disk 0x81 (probably recognized later as da0)
    >
    > It then starts boot0 and shows the boot0 selection-screen.
    > F1 FreeBSD
    > F5 Drive 1
    >
    > Default: F1
    >
    > -Choosing F5 results in errors since that one isn't bootable.
    > -Choosing F1 (in my opinion the correct one) yields the following.
    >
    > Having choosen something at boot0 the system continues.
    > At this point it should be able to find /boot.config, but as I'll later show
    > it apparently ignores it.
    >
    > It then shows the boot2 screen.
    >
    >>>FreeBSD/i386 BOOT
    >
    > Default: 0:ad(0,a)/kernel
    > boot:
    >
    > At this point I've tried entering the following things.
    > X:da(Y,a)/Z with
    > -X anywhere between 0 and 5.
    > -Y anywhere between 0 and 2.
    > -Z either /kernel or /boot/loader.
    >
    > The following options allowed a continued boot.
    > 1:da(0,a)/kernel
    > 1:da(1,a)/kernel
    > 1:da(2,a)/kernel
    > 1:da(0,a)/boot/loader
    > 1:da(1,a)/boot/loader
    > 1:da(2,a)/boot/loader
    >
    > All the others didn't work.
    >
    > Having discovered the correct input I assumed putting the same into
    > /boot.config would solve the problem and would ensure I wouldn't have to
    > fill it in manually every time the system boots
    > (this is not practial sincec the system neither has a viewscreen or a
    > keyboard) this however isn't the case. Whatever I fill in into /boot.config
    > the result remains the same. The system tries to boot
    > tells me twice "Invalid partition' followed by "Can't find /kernel".
    >
    > I've reinstalled boot0, boot1 and boot2 to no effect. Reïnstalling FreeBSD
    > from scratch and making another kernel resulted in the same problem.
    >
    > My guts tell me the problems lies in boot0 or boot1's apparent inabillity to
    > execute the correct value specified in /boot.config but I can't find any
    > cause for this.
    > Has anyone got any ideas on how to resolve this problem or where to find
    > additional documentation since I can't find enough information in the
    > Handbook to determine whether the problem indeed lies in the system's
    > inabillity to find /boot.config?
    >
    > Thanks in advance,
    >
    > Frank Masolijn
    >
    > PS. Below anyone interested will find all information I think might be
    > required. (If somethings missing please mail me.)
    >
    > DMESG
    > 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.8-RELEASE #1: Mon Sep 1 18:47:33 CEST 2003
    > kalizec@qequoia:/usr/src/sys/compile/QEQUOIA
    > Timecounter "i8254" frequency 1193182 Hz
    > CPU: Pentium II/Pentium II Xeon/Celeron (233.87-MHz 686-class CPU)
    > Origin = "GenuineIntel" Id = 0x633 Stepping = 3
    >
    > Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,M
    > MX>
    > real memory = 100663296 (98304K bytes)
    > avail memory = 94269440 (92060K bytes)
    > Preloaded elf kernel "kernel" at 0xc0392000.
    > Pentium Pro MTRR support enabled
    > md0: Malloc disk
    > Using $PIR table, 6 entries at 0xc00fda50
    > npx0: <math processor> on motherboard
    > npx0: INT 16 interface
    > pcib0: <Intel 82443LX (440 LX) host to PCI bridge> on motherboard
    > pci0: <PCI bus> on pcib0
    > agp0: <Intel 82443LX (440 LX) host to PCI bridge> mem 0xe0000000-0xe3ffffff
    > at device 0.0 on pci0
    > pcib1: <Intel 82443LX (440 LX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
    > pci1: <PCI bus> on pcib1
    > isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
    > isa0: <ISA bus> on isab0
    > atapci0: <Intel PIIX4 ATA33 controller> at device 7.1 on pci0
    > atapci0: ATA channel disabled by BIOS
    > pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 15
    > chip0: <Intel 82371AB Power management controller> port 0x5f00-0x5f0f at
    > device 7.3 on pci0
    > rl0: <RealTek 8139 10/100BaseTX> port 0x6800-0x68ff mem
    > 0xef000000-0xef0000ff irq 15 at device 9.0 on pci0
    > rl0: Ethernet address: 00:50:fc:2a:88:ff
    > miibus0: <MII bus> on rl0
    > rlphy0: <RealTek internal media interface> on miibus0
    > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    > ahc0: <Adaptec 2940 SCSI adapter> port 0x6c00-0x6cff mem
    > 0xef001000-0xef001fff irq 12 at device 10.0 on pci0
    > aic7870: Wide Channel A, SCSI Id=7, 16/253 SCBs
    > pci0: <S3 968 graphics accelerator> at 11.0 irq 10
    > ed0: <NE2000 PCI Ethernet (ProLAN)> port 0x7000-0x701f irq 11 at device 12.0
    > on pci0
    > ed0: address 48:54:e8:90:55:96, type NE2000 (16 bit)
    > eisa0: <EISA bus> on motherboard
    > eisa0: unknown card ADP7871 (0x04907871) at slot 6
    > orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcb7ff on isa0
    > fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
    > fdc0: FIFO enabled, 8 bytes threshold
    > ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
    > ata1 at port 0x170-0x177,0x376 irq 15 on isa0
    > atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
    > atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
    > kbd0 at atkbd0
    > vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    > sc0: <System console> at flags 0x100 on isa0
    > sc0: VGA <16 virtual consoles, flags=0x300>
    > sio0: configured irq 4 not in bitmap of probed irqs 0
    > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
    > sio0: type 8250
    > sio1: configured irq 3 not in bitmap of probed irqs 0
    > ppc0: parallel port not found.
    > IP packet filtering initialized, divert enabled, rule-based forwarding
    > enabled, default to deny, logging disabled
    > BRIDGE 020214 loaded
    > Waiting 5 seconds for SCSI devices to settle
    > Mounting root from ufs:/dev/da0s1a
    > da0 at ahc0 bus 0 target 0 lun 0
    > da0: <IBM-PCCO DDRS-34560W !# S97B> Fixed Direct Access SCSI-2 device
    > da0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing
    > Enabled
    > da0: 4303MB (8813870 512 byte sectors: 255H 63S/T 548C)
    > da1 at ahc0 bus 0 target 1 lun 0
    > da1: <IBM-PCCO DDRS-34560W !# S97B> Fixed Direct Access SCSI-2 device
    > da1: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing
    > Enabled
    > da1: 4303MB (8813870 512 byte sectors: 255H 63S/T 548C)
    > cd0 at ahc0 bus 0 target 2 lun 0
    > cd0: <PLEXTOR CD-ROM PX-32TS 1.03> Removable CD-ROM SCSI-2 device
    > cd0: 10.000MB/s transfers (10.000MHz, offset 15)# Qequoia's new kernel
    > cd0: Attempt to query device size failed: NOT READY, Medium not present
    >
    > KERNEL CONFIG
    > machine i386
    > ident QEQUOIA
    > cpu I686_CPU
    > ident GENERIC
    > maxusers 0
    >
    > options MATH_EMULATE #Support for x87 emulation
    > options INET #InterNETworking
    > options INET6 #IPv6 communications protocols
    > options FFS #Berkeley Fast Filesystem
    > options FFS_ROOT #FFS usable as root device [keep
    > this!]
    > options SOFTUPDATES #Enable FFS soft updates support
    > options UFS_DIRHASH #Improve performance on big
    > directories
    > options MFS #Memory Filesystem
    > options MD_ROOT #MD is a potential root device
    > options NFS #Network Filesystem
    > options NFS_ROOT #NFS usable as root device, NFS
    > required
    > options MSDOSFS #MSDOS Filesystem
    > options CD9660 #ISO 9660 Filesystem
    > options CD9660_ROOT #CD-ROM usable as root, CD9660
    > required
    > options PROCFS #Process filesystem
    > options COMPAT_43 #Compatible with BSD 4.3 [KEEP
    > THIS!]
    > options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI
    > options UCONSOLE #Allow users to grab the console
    > options USERCONFIG #boot -c editor
    > options VISUAL_USERCONFIG #visual boot -c editor
    > options KTRACE #ktrace(1) support
    > options SYSVSHM #SYSV-style shared memory
    > options SYSVMSG #SYSV-style message queues
    > options SYSVSEM #SYSV-style semaphores
    > options P1003_1B #Posix P1003_1B real-time extensions
    > options _KPOSIX_PRIORITY_SCHEDULING
    > options ICMP_BANDLIM #Rate limit bad replies
    > options KBD_INSTALL_CDEV # install a CDEV entry in /dev
    > options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
    > # output. Adds ~128k to driver.
    > options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
    > # output. Adds ~215k to driver.
    >
    > device isa
    > device eisa
    > device pci
    >
    > # Floppy drives
    > device fdc0 at isa? port IO_FD1 irq 6 drq 2
    > device fd0 at fdc0 drive 0
    > device fd1 at fdc0 drive 1
    >
    > # ATA and ATAPI devices
    > device ata0 at isa? port IO_WD1 irq 14
    > device ata1 at isa? port IO_WD2 irq 15
    > device ata
    > device atadisk # ATA disk drives
    > device atapicd # ATAPI CDROM drives
    > device atapifd # ATAPI floppy drives
    > device atapist # ATAPI tape drives
    > options ATA_STATIC_ID #Static device numbering
    >
    > # SCSI Controllers
    > device ahc # AHA2940 and onboard AIC7xxx devices
    >
    > # SCSI peripherals
    > device scbus # SCSI bus (required)
    > device da # Direct Access (disks)
    > device cd # CD
    >
    > # atkbdc0 controls both the keyboard and the PS/2 mouse
    > device atkbdc0 at isa? port IO_KBD
    > device atkbd0 at atkbdc? irq 1 flags 0x1
    > device psm0 at atkbdc? irq 12
    >
    > device vga0 at isa?
    >
    > # splash screen/screen saver
    > pseudo-device splash
    >
    > # syscons is the default console driver, resembling an SCO console
    > device sc0 at isa? flags 0x100
    >
    > device agp # support several AGP chipsets
    >
    > # Floating point support - do not disable.
    > device npx0 at nexus? port IO_NPX irq 13
    >
    > # Power management support (see LINT for more options)
    > device apm0 at nexus? disable flags 0x20 # Advanced Power
    > Management
    >
    > # Serial (COM) ports
    > device sio0 at isa? port IO_COM1 flags 0x10 irq 4
    > device sio1 at isa? port IO_COM2 irq 3
    > device sio2 at isa? disable port IO_COM3 irq 5
    > device sio3 at isa? disable port IO_COM4 irq 9
    >
    > # Parallel port
    > device ppc0 at isa? irq 7
    > device ppbus # Parallel port bus (required)
    > device lpt # Printer
    > device plip # TCP/IP over parallel
    > device ppi # Parallel port interface device
    >
    > # PCI Ethernet NICs that use the common MII bus controller code.
    > # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
    > device miibus # MII bus support
    > device rl # RealTek 8129/8139
    > device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
    >
    > # ISA Ethernet NICs.
    > # 'device ed' requires 'device miibus'
    > device ed0 at isa? disable port 0x280 irq 10 iomem 0xd8000
    >
    > # Pseudo devices - the number indicates how many units to allocate.
    > pseudo-device loop # Network loopback
    > pseudo-device ether # Ethernet support
    > pseudo-device sl 1 # Kernel SLIP
    > pseudo-device ppp 10 # Kernel PPP
    > pseudo-device tun # Packet tunnel.
    > pseudo-device pty # Pseudo-ttys (telnet etc)
    > pseudo-device md # Memory "disks"
    > pseudo-device gif # IPv6 and IPv4 tunneling
    > pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
    >
    > # The `bpf' pseudo-device enables the Berkeley Packet Filter.
    > # Be aware of the administrative consequences of enabling this!
    > pseudo-device bpf #Berkeley packet filter
    >
    > options IPFIREWALL
    > options IPDIVERT
    > options ROOTDEVNAME=\"ufs:da1s1a\"
    > options BRIDGE
    >
    > DISKLABEL da0
    > # /dev/da0c:
    > type: SCSI
    > disk: da0s1
    > label:
    > flags:
    > bytes/sector: 512
    > sectors/track: 32
    > tracks/cylinder: 128
    > sectors/cylinder: 4096
    > cylinders: 2150
    > sectors/unit: 8810464
    > rpm: 3600
    > interleave: 1
    > trackskew: 0
    > cylinderskew: 0
    > headswitch: 0 # milliseconds
    > track-to-track seek: 0 # milliseconds
    > drivedata: 0
    >
    > 8 partitions:
    > # size offset fstype [fsize bsize bps/cpg]
    > a: 524288 0 4.2BSD 0 0 0 # (Cyl. 0 - 127)
    > b: 524288 524288 swap # (Cyl. 128 - 255)
    > c: 8810464 0 unused 0 0 # (Cyl. 0 -
    > 2150*)
    > e: 1048576 1048576 4.2BSD 0 0 0 # (Cyl. 256 - 511)
    > f: 1048576 2097152 4.2BSD 0 0 0 # (Cyl. 512 - 767)
    > g: 5664736 3145728 4.2BSD 0 0 0 # (Cyl. 768 -
    > 2150*)
    >
    > DISKLABEL da1
    > # /dev/da1c:
    > type: SCSI
    > disk: da1s1
    > label:
    > flags:
    > bytes/sector: 512
    > sectors/track: 63
    > tracks/cylinder: 255
    > sectors/cylinder: 16065
    > cylinders: 547
    > sectors/unit: 8803557
    > rpm: 3600
    > interleave: 1
    > trackskew: 0
    > cylinderskew: 0
    > headswitch: 0 # milliseconds
    > track-to-track seek: 0 # milliseconds
    > drivedata: 0
    >
    > 8 partitions:
    > # size offset fstype [fsize bsize bps/cpg]
    > b: 524288 0 swap # (Cyl. 0 - 32*)
    > c: 8803557 0 unused 0 0 # (Cyl. 0 - 547*)
    > e: 8279269 524288 4.2BSD 0 0 0 # (Cyl. 32*- 547*)
    > _______________________________________________
    > freebsd-questions@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >
    What does #/boot/loader.conf look like ?

    Ryan

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Paul Cocker: "(no subject)"
    Loading