From owner-freebsd-questions Sat Jul 20 20:12:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6645D37B400 for ; Sat, 20 Jul 2002 20:12:05 -0700 (PDT) Received: from vectors.cx (manifold.vectors.cx [64.163.147.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id E943D43E64 for ; Sat, 20 Jul 2002 20:12:04 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: from vectors.cx (6c758c1d37eb6f6db93b5c345619451d@localhost [127.0.0.1]) by vectors.cx (8.12.4/8.12.4) with ESMTP id g6L3CM2e094646; Sat, 20 Jul 2002 20:12:22 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.4/8.12.4/Submit) id g6L3CMUG094645; Sat, 20 Jul 2002 20:12:22 -0700 (PDT) (envelope-from monkey) Date: Sat, 20 Jul 2002 20:12:22 -0700 From: Adam Weinberger To: Nathan Warren Cc: questions@FreeBSD.ORG Subject: Re: Compiling a new kernel - 4.6-RELEASE Message-ID: <20020721031222.GC54708@vectors.cx> Mail-Followup-To: Adam Weinberger , Nathan Warren , questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-URL: http://www.vectors.cx http://www.crackula.com User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG some NIC drivers require a bus controller driver. there's a whole group of (primarily PCI) nics that need the MII bus driver. there's a group of three lines in your kernel config file: # 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 make sure that the "device miibus" line is NOT commented out! uncomment it, rerun config, and you'll run smooth. -Adam >> (07.20.2002 @ 2007 PST): Nathan Warren said, in 5.7K: << > Can anyone please help me here....I am trying to compile a new kernel,and it > bombs out at the 'make depend' stage..... > > fbsd1# make depend > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extens > ions -ansi -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipf > ilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 > ../../i386/i386/genassym.c > sh ../../kern/genassym.sh genassym.o > assym.s > perl5 ../../kern/vnode_if.pl -h ../../kern/vnode_if.src > perl5 ../../kern/makeops.pl -c ../../kern/device_if.m > perl5 ../../kern/makeops.pl -h ../../kern/device_if.m > perl5 ../../kern/makeops.pl -c ../../kern/bus_if.m > perl5 ../../kern/makeops.pl -h ../../kern/bus_if.m > perl5 ../../kern/makeops.pl -c ../../dev/ppbus/ppbus_if.m > perl5 ../../kern/makeops.pl -h ../../dev/ppbus/ppbus_if.m > perl5 ../../kern/makeops.pl -c ../../pci/pci_if.m > perl5 ../../kern/makeops.pl -h ../../pci/pci_if.m > perl5 ../../kern/makeops.pl -c ../../isa/isa_if.m > perl5 ../../kern/makeops.pl -h ../../isa/isa_if.m > perl5 ../../kern/vnode_if.pl -c ../../kern/vnode_if.src > rm -f .newdep > make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | xargs mkdep -a -f > .newdep -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototyp > es -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-exte > nsions -ansi -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/i > pfilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 > ../../dev/fxp/if_fxp.c:81: miibus_if.h: No such file or directory > mkdep: compile failed > *** Error code 1 > > Stop in /usr/src/sys/compile/FBSDMPDL360. > > It looks to me like it is 'miibus_if.h' causing the issue, but I have > nothing in the configuration file that might refer to this (as far as I can > see). > > I am running 4.6-RELEASE > > This is a copy of the config file I am using.... > > fbsd1# cat FBSDMPDL360 > # FBSD -- Kernel configuration file for FreeBSD/i386 by Nathan Warren > # 15/04/01 -- Configuration file for Compaq Proliant DL360 > # 31/1/02 -- Updated removing LOTS of crap for SMP Compaq Proliant DL360's > # > # For more information on this file, please read the handbook section on > # Kernel Configuration Files: > # > # http://www.FreeBSD.org/handbook/kernelconfig-config.html > # > # $FreeBSD: src/sys/i386/conf/FBSD,v 1.246.2.8 2000/07/20 02:51:02 msmith > Exp $ > > machine i386 > cpu I686_CPU > ident FBSDMPDL360 > maxusers 1500 > > options INET #InterNETworking > options FFS #Berkeley Fast Filesystem > options FFS_ROOT #FFS usable as root device [keep > this!] > options SOFTUPDATES #Enable FFS soft updates support > options MFS #Memory Filesystem > options MD_ROOT #MD is a potential root device > 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=10000 #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 IPFIREWALL_VERBOSE_LIMIT=50 > > # To make an SMP kernel, the next two are needed > options SMP # Symmetric MultiProcessor Kernel > options APIC_IO # Symmetric (APIC) I/O > > device isa > device pci > > # SCSI peripherals > device scbus # SCSI bus (required) > device da # Direct Access (disks) > device cd # CD > > # RAID controllers > device ida # Compaq Smart RAID > > # 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 > > #VGA driver for monitor > device vga0 at isa? > > # splash screen/screen saver > pseudo-device splash > > # syscons is the default 'syscons' console driver, resembling an SCO console > device sc0 at isa? flags 0x100 > > # Floating point support - do not disable. > device npx0 at nexus? port IO_NPX irq 13 > > # Parallel port > device ppbus # Parallel port bus (required) > > # PCI Ethernet NICs. > device fxp # Intel EtherExpress PRO/100B (82557, 82558) > > # Pseudo devices - the number indicates how many units to allocated. > pseudo-device loop # Network loopback > pseudo-device ether # Ethernet support > pseudo-device pty 10 # Pseudo-ttys (telnet etc) > pseudo-device md # Memory "disks" > > # The `bpf' pseudo-device enables the Berkeley Packet Filter. > # Be aware of the administrative consequences of enabling this! > pseudo-device bpf 4 #Berkeley packet filter > pseudo-device snp 5 #Snoop device > fbsd1# > > I hope someone can point me in the correct direction > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > >> end of "Compiling a new kernel - 4.6-RELEASE" from Nathan Warren << -- "Oh good, my dog found the chainsaw." -Lilo, "Lilo & Stitch" Adam Weinberger adam@vectors.cx http://vectors.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message