Date: Tue, 20 Mar 2001 01:34:43 -0600 From: Sean Kelly <smkelly@zombie.org> To: Kris Kennaway <kris@obsecurity.org> Cc: freebsd-stable@freebsd.org Subject: Re: Booting with modules Message-ID: <20010320013443.A472@edgemaster.zombie.org> In-Reply-To: <20010319230008.B15322@xor.obsecurity.org>; from kris@obsecurity.org on Mon, Mar 19, 2001 at 11:00:08PM -0800 References: <20010319235314.A444@edgemaster.zombie.org> <20010319230008.B15322@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 19, 2001 at 11:00:08PM -0800, Kris Kennaway wrote: > On Mon, Mar 19, 2001 at 11:53:14PM -0600, Sean Kelly wrote: > > Notice it loads miibus.ko, which I don't even specify in loader.conf? = This > > shows that loader is reading all the modules and adding their dependanc= ies, > > but why isn't the kernel getting them all? >=20 > How do you know it's not? You haven't demonstrated this in your mail :-) Okay, I copied down what I believe to be relevant, and now I'm really confused. It shows it loading initially, but it doesn't show up in 'lsmod' and it doesn't show up during kernel boot... FreeBSD/i386 bootstrap loader, Revision 0.8 (root@edgemaster.zombie.org, Mon Mar 19 21:14:31 CST 2001) Loading /boot/defaults/loader.conf /kernel text=3D0x12fb65 data=3D0x1cf7c+0x1c43c syms=3D0x4+0x23dc0+0x4+0x28a= b4] /modules/msdos.ko text=3D... data=3D... syms=3D... /modules/nfs.ko text=3D... data=3D... syms=3D... /modules/procfs.ko text=3D... data=3D... syms=3D... /modules/vn.ko text=3D... data=3D... syms=3D... /modules/if_ppp.ko text=3D... data=3D... syms=3D... /modules/if_dc.ko text=3D... data=3D... syms=3D... Loading required module 'miibus' /modules/miibus.ko text=3D... data=3D... syms=3D... /modules/if_xl.ko text=3D... data=3D... syms=3D... Loading required module 'miibus' /modules/snd_emu10k1.ko text=3D... data=3D... syms=3D... /modules/usb.ko text=3D... data=3D... syms=3D... /modules/agp.ko text=3D... data=3D... syms=3D... Hit [Enter] to boot immediately, or any other key for command prompt. Booting [kernel] in 9 seconds... Type '?' for a list of commands, or 'help' for more detailed information. ok lsmod =2E..: kernel (elf kernel, ...) =2E..: /boot/kernel.conf (userconfig_script, 0x0) =2E..: msdos.ko (elf module, ...) =2E..: nfs.ko (elf module, ...) =2E..: procfs.ko (elf module, ...) =2E..: vn.ko (elf module, ...) =2E..: if_ppp.ko (elf module, ...) =2E..: if_dc.ko (elf module, ...) =2E..: miibus.ko (elf module, ...) =2E..: snd_emu10k1.ko (elf module, ...) =2E..: usb.ko (elf module, ...) =2E..: agp.ko (elf module, ...) ok load /modules/if_xl.ko /modules/if_xl.ko text=3D0x70af data=3D0x1f4+0x4 syms=3D[0x4+0xa60+0x4+0x7c= d] loading required module 'miibus' warning: module '/modules/if_xl.ko" already loaded ok lsmod =2E..: kernel (elf kernel, ...) =2E..: /boot/kernel.conf (userconfig_script, 0x0) =2E..: msdos.ko (elf module, ...) =2E..: nfs.ko (elf module, ...) =2E..: procfs.ko (elf module, ...) =2E..: vn.ko (elf module, ...) =2E..: if_ppp.ko (elf module, ...) =2E..: if_dc.ko (elf module, ...) =2E..: miibus.ko (elf module, ...) =2E..: snd_emu10k1.ko (elf module, ...) =2E..: usb.ko (elf module, ...) =2E..: agp.ko (elf module, ...) ok boot Copyright (c) 1992-2001 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.3-BETA #1: Mon Mar 19 22:15:45 CST 2001 root@edgemaster.zombie.org:/usr/obj/usr/src/sys/EDGEMASTER Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (334.09-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x651 Stepping =3D 1 Features=3D0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,= CMOV,PAT,PSE36,MMX,FXSR> real memory =3D 134152192 (131008K bytes) avail memory =3D 126214144 (123256K bytes) Preloaded elf kernel "kernel" at 0xc037f000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc037f09c. Preloaded elf module "msdos.ko" at 0xc037f0ec. Preloaded elf module "nfs.ko" at 0xc037f18c. Preloaded elf module "procfs.ko" at 0xc037f228. Preloaded elf module "vn.ko" at 0xc037f2c8. Preloaded elf module "if_ppp.ko" at 0xc037f364. Preloaded elf module "if_dc.ko" at 0xc037f404. Preloaded elf module "miibus.ko" at 0xc037f4a4. Preloaded elf module "snd_emu10k1.ko" at 0xc037f544. link_elf: symbol sndbuf_getbps undefined Preloaded elf module "usb.ko" at 0xc037f5e8. Preloaded elf module "agp.ko" at 0xc037f684. VESA: v2.0, 32768k memory, flags:0x1, mode table:0xc00c6974 (c0006974) VESA: Matrox Graphics Inc. Pentium Pro MTRR support enabled apm0: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xd0000000-0xd3ffffff= at device 0.0 on pci0 pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <Matrox MGA G400 AGP graphics accelerator> at 0.0 irq 10 isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on= pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xe000-0xe01f irq 11 = at device 7.2 on pci0 usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered intpm0: <Intel 82371AB Power management controller> port 0x5000-0x500f irq = 9 at device 7.3 on pci0 intpm0: I/O mapped 5000 intpm0: intr IRQ 9 enabled revision 0 smbus0: <System Management Bus> on intsmb0 smb0: <SMBus general purpose I/O> on smbus0 intpm0: PM I/O mapped 4000=20 pci0: <unknown card> (vendor=3D0x10b7, dev=3D0x9004) at 15.0 irq 10 pci0: <unknown card> (vendor=3D0x1102, dev=3D0x0002) at 17.0 irq 11 pci0: <unknown card> (vendor=3D0x1102, dev=3D0x7002) at 17.1 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fb0 at vga0 sc0: <System console> on isa0 sc0: VGA <16 virtual consoles, flags=3D0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: <Parallel port> at port 0x278-0x27f irq 5 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppi0: <Parallel I/O> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port DUMMYNET initialized (010124) IP packet filtering initialized, divert enabled, rule-based forwarding enab= led, default to accept, unlimited logging IP Filter: v3.4.16 initialized. Default =3D pass all, Logging =3D enabled ad0: 4884MB <ST35120A> [10585/15/63] at ata0-master UDMA33 ata1-master: DMA limited to UDMA33, non-ATA66 compliant cable ad2: 19541MB <Maxtor 92041U4> [39703/16/63] at ata1-master UDMA33 acd0: CD-RW <SONY CD-RW CRX140E> at ata0-slave using UDMA33 acd1: DVD-ROM <HITACHI DVD-ROM GD-2500> at ata1-slave using WDMA2 Mounting root from ufs:/dev/ad2s1a If I then manually load it with kldload and then set it up with ifconfig, it works fine. What the hell? --=20 Sean Kelly | PGP KeyID: 77042C7B smkelly@zombie.org | http://www.zombie.org For PGP key, send e-mail with subject "send pgp key" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010320013443.A472>