From owner-freebsd-hackers Sat Jun 12 6:39:37 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.sanda.gr.jp (ns.sanda.gr.jp [210.232.122.18]) by hub.freebsd.org (Postfix) with ESMTP id 5A2BB14FDF for ; Sat, 12 Jun 1999 06:39:31 -0700 (PDT) (envelope-from non@ever.sanda.gr.jp) Received: from ever.sanda.gr.jp (epoch [10.93.63.51]) by ns.sanda.gr.jp (8.8.8/3.6W) with ESMTP id WAA00932; Sat, 12 Jun 1999 22:39:30 +0900 From: non@ever.sanda.gr.jp Received: from localhost (localhost [127.0.0.1]) by ever.sanda.gr.jp (8.8.8/3.3W9) with ESMTP id WAA06887; Sat, 12 Jun 1999 22:58:48 +0900 (JST) To: newconfig@jp.freebsd.org Cc: hackers@freebsd.org Subject: sysnewconfig990609-kld990609test8.7.patch.gz In-Reply-To: Your message of "Wed, 09 Jun 1999 03:05:26 +0900" <19990609030526T.uch@nop.or.jp> References: <19990609030526T.uch@nop.or.jp> X-Mailer: Mew version 1.93 on Emacs 19.28 / Mule 2.3 =?iso-2022-jp?B?KBskQkt2RSYyVhsoQik=?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990612225847Z.non@ever.sanda.gr.jp> Date: Sat, 12 Jun 1999 22:58:47 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 255 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG FYI, this is brief translation from newconfig-jp ML. New dynamic loader test patch by Uchiyama san for newconfig kernel is avilable. Original messages is [newconfig-jp 2107](Subject: sysnewconfig990609-kld990609test8.7.patch.gz, From: UCHIYAMA Yasushi , Date: Wed, 09 Jun 1999 03:05:26 +0900) ftp://ftp.nop.or.jp/users/uch/PCMCIA/FreeBSD/sysnewconfig990609-kld990609test8.7.patch.gz is the patch for CVS tree at the date of June 9, 1999. > 1. Do make in directory sys/dconf/config/ and get config(8). 2. With the config(8) configure and compile kernel and loadable modules. 3. Place kernel in / and loadable modules in /modules, then reboot. 4. After reboot, do "kldload registry". New syntax `configoptions' for config(8) has been added. This is to specify either STATIC_CONFIG, DYNAMIC_CONFIG or MODULE_CONFIG. This idea is by Sota san. STATIC_CONFIG ... kernel only with static configuration DYNAMIC_CONFIG ... kernel with dynamic configuration (currently, STATIC_CONFIG and DYNAMIC_CONFIG is the same option) MODULE_CONFIG ... when compiling loadable modules Examples are sys/i386/conf/NEWCONF(static), DKERNEL(dynamic) and DMODULE(module). When you configure kernel, just place configoptions DYNAMIC_CONFIG configoptions STATIC_CONFIG at the top of the file as before. To compile just do: config FOO; cd ../../compile/FOO; make depend; make To compile loadable modules, just place lines that want to do dynamic loading in the configuration file and add, configoptions MODULE_CONFIG machine i386 in top of the file. To compile do: config FOOMODULE; cd ../../compile/FOOMODULE; make With this, you will get *.ko and registry.ko (configuration information). Put them in /modules (cp *.ko /modules). After the system boots, with command "kldload registry", modules that needed are loaded and auto configured. Drivers that directory refer cfdriver, unloading part of the drivers that loaded is not supported. When you do "kldload registry" with the kernel with DKERNEL and DMODULE, drivers are attached as below. Configuration file of loadable module: configoptions MODULE_CONFIG # Loadable module machine i386 options INET # InterNETworking cbb* at pci? dev ? func ? # PCI-CardBus bridges cardbus* at cbb? slot ? pcic0 at isa? iobase 0x3e0 membase 0xd0000 memsize 0x4000 pcic1 at isa? iobase 0x3e2 membase 0xd4000 memsize 0x4000 options PCIC_ISA_INTR_ALLOC_MASK=0xffdf # Mask IRQ 5 pcmcia* at cbb? socket ? pcmcia* at pcic? controller ? socket ? xl* at pci? dev ? func ? tx* at pci? dev ? func ? ne* at pci? dev ? func ? xl* at cardbus? dev ? func ? ep* at cardbus? dev ? func ? ep* at pcmcia? function ? # 3Com 3c589 and 3c562 Ethernet fe* at pcmcia? function ? # MB8696x based Ethernet ne* at pcmcia? function ? # NE2000-compatible Ethernet sn* at pcmcia? function ? # Megahertz Ethernet ne* at isa? iobase 0x280 irq 9 ep* at isa? iobase ? irq ? The log: a0 irq 13: INT 16 interface atkbdc0 at isa0 atkbd0 at isa0 irq 1 intr_establish:irq=1 trigger=edge ipl=tty vga0 at isa0 wdc0 at isa0 irq 14 wd0 at wdc0 unit 0: 5009MB (10258920 sectors), 10856 cyls, 15 heads, 63 S/T, 512 B/S intr_establish:irq=14 trigger=edge ipl=bio intr_establish:irq=0 trigger=pulse ipl=clock intr_establish:irq=8 trigger=pulse ipl=stat changing root device to wd0s1a { dev=-1 func=-1 } cbb-devbase-attribute: [cbb-device] (dynamic)load:cbb [config_devbase_reference: allocate new cfdriver cbb] cbb*cbb requires pci-rescan at pci?attach cbb at pci-interface with cbb_pci [config_add_cfdata: add `cbb at pci' (runtime) (removable)] { slot=-1 } cardbus-devbase-attribute: load:cardbus [cardbus-device] (dynamic)load:cardbus [config_devbase_reference: allocate new cfdriver cardbus] cardbus*cardbus requires cbb-rescan at cbb?attach cardbus at cardslot-interface with cardbus [config_add_cfdata: add `cardbus at cbb' (runtime) (removable)] { iobase=992 iosize=0 membase=851968 memsize=16384 irq=-1 drq=-1 drq2=-1 flag=0 enable=1 imask=0 } pcic-devbase-attribute: [pcic-device] (dynamic)load:pcic [config_devbase_reference: allocate new cfdriver pcic] pcic0pcic requires isa-rescan at isa?attach pcic at isa-interface with pcic_isa load:pcic_isa[config_add_cfdata: add `pcic at isa' (runtime) (removable)] { iobase=994 iosize=0 membase=868352 memsize=16384 irq=-1 drq=-1 drq2=-1 flag=0 enable=1 imask=0 } pcic1 at isa?[config_add_cfdata: add `pcic at isa' (runtime) (removable)] { controller=-1 socket=-1 } pcmcia-devbase-attribute: load:pcmcia [pcmcia-device] (dynamic)load:pcmcia [config_devbase_reference: allocate new cfdriver pcmcia] pcmcia* at cbb?attach pcmcia at pcmciabus-interface with pcmcia [config_add_cfdata: add `pcmcia at cbb' (runtime) (removable)] { controller=-1 socket=-1 } pcmcia*pcmcia requires pcic-rescan at pcic?[config_add_cfdata: add `pcmcia at pcic' (runtime) (removable)] { dev=-1 func=-1 } xl-devbase-attribute: load:ether [xl-device] (dynamic)load:xl [config_devbase_reference: allocate new cfdriver xl] xl* at pci?attach xl at pci-interface with xl [config_add_cfdata: add `xl at pci' (runtime) (removable)] { dev=-1 func=-1 } tx-devbase-attribute: [tx-device] (dynamic)load:tx [config_devbase_reference: allocate new cfdriver tx] tx* at pci?attach tx at pci-interface with tx [config_add_cfdata: add `tx at pci' (runtime) (removable)] { dev=-1 func=-1 } ne-devbase-attribute: load:dp8390nic [ne-device] (dynamic)load:ne [config_devbase_reference: allocate new cfdriver ne] ne* at pci?attach ne at pci-interface with ne_pciload:rtl80x9: rtl80x9 load:ne_pci[config_add_cfdata: add `ne at pci' (runtime) (removable)] { dev=-1 func=-1 } xl*xl requires cardbus-rescan at cardbus?attach xl at cardbus-interface with xl_cardbus load:xl_cardbus[config_add_cfdata: add `xl at cardbus' (runtime) (removable)] { dev=-1 func=-1 } ep-devbase-attribute: load:mii [ep-device] (dynamic)load:ep [config_devbase_reference: allocate new cfdriver ep] ep* at cardbus?attach ep at cardbus-interface with ep_cardbusload:elink: elink load:ep_cardbus[config_add_cfdata: add `ep at cardbus' (runtime) (removable)] { function=-1 irq=-1 } ep*ep requires pcmcia-rescan at pcmcia?attach ep at pcmcia-interface with ep_pcmcia: elink load:ep_pcmcia[config_add_cfdata: add `ep at pcmcia' (runtime) (removable)] { function=-1 irq=-1 } fe-devbase-attribute: load:mb86960 [fe-device] (dynamic)load:fe [config_devbase_reference: allocate new cfdriver fe] fe* at pcmcia?attach fe at pcmcia-interface with mbe_pcmcia load:mbe_pcmcia[config_add_cfdata: add `fe at pcmcia' (runtime) (removable)] { function=-1 irq=-1 } ne* at pcmcia?attach ne at pcmcia-interface with ne_pcmcia: rtl80x9 load:ne_pcmcia[config_add_cfdata: add `ne at pcmcia' (runtime) (removable)] { function=-1 irq=-1 } sn-devbase-attribute: load:smc91cxx [sn-device] (noobject) [config_devbase_reference: allocate new cfdriver sn] sn* at pcmcia?attach sn at pcmcia-interface with sm_pcmcia load:sm_pcmcia[config_add_cfdata: add `sn at pcmcia' (runtime) (removable)] { iobase=640 iosize=0 membase=0 memsize=0 irq=9 drq=-1 drq2=-1 flag=0 enable=1 imask=0 } ne* at isa?attach ne at isa-interface with ne_isa: rtl80x9 load:ne_isa[config_add_cfdata: add `ne at isa' (runtime) (removable)] { iobase=-1 iosize=0 membase=0 memsize=0 irq=-1 drq=-1 drq2=-1 flag=0 enable=1 imask=0 } ep* at isa?attach ep at isa-interface with ep_isa: elink load:ep_isa[config_add_cfdata: add `ep at isa' (runtime) (removable)] rescan=>pci-2 vendor 0x1039 id 0x5513 at pci0 dev 1 func 1: not configured vendor 0x1039 id 0x7001 at pci0 dev 1 func 2: not configured xl0 at pci0 dev 9 func 0: 3Com 3c905B-TX Fast Etherlink XL intr_establish:irq=12 trigger=level ipl=net xl0: Ethernet address: 00:10:4b:11:0d:d1 xl0: autoneg complete, link status good (half-duplex, 100Mbps) tx0 at pci0 dev 10 func 0: SMC 83c170 : address 00:e0:29:26:3f:93, type SMC9432TX, Auto-Neg 100Mbps intr_establish:irq=12 trigger=level ipl=net ne0 at pci0 dev 11 func 0: VIA Technologies VT86C926 Ethernet ne0: Ethernet address 00:40:26:3e:63:f3 intr_establish:irq=10 trigger=level ipl=net ne0: interrupting at irq 10 cbb0 at pci0 dev 12 func 0 (unknown), flags 0 CardBus latency time 0x10 PCI latency time 0x20 intr_establish:irq=11 trigger=level ipl=bio cbb0: interrupting at irq 11 cardbus0 at cbb0 bus 1 device 0 cardbusattach: CardBus card found [0x2] cardbus_attach_card: cb0 start cardbus_attach_card: Vendor 0x10b7, Product 0x5057, CIS 0x90 tuple: LINKTARGET len 5 0x 0: 13 3 43 49 53 tuple: MANFID len 6 0x 0: 20 4 1 1 57 50 tuple: CONFIG_CB len 8 0x 0: 4 6 3 1 0 0 0 0 tuple: CFTABLE_ENTRY_CB len 14 0x 0: 5 c 41 9a 1 b5 1e 1 55 2 30 ff ff 1 tuple: BAR len 8 0x 0: 7 6 11 0 40 0 0 0 tuple: VERS_1 len 59 0x 0: 15 39 5 0 33 43 6f 6d 20 43 6f 72 70 6f 72 61 0x10: 74 69 6f 6e 0 33 43 35 37 35 41 0 46 61 73 74 0x20: 20 45 74 68 65 72 4c 69 6e 6b 20 58 4c 20 50 43 0x30: 20 43 61 72 64 0 30 30 31 0 ff tuple: FUNCID len 4 0x 0: 21 2 6 1 tuple: END len 66 xl1 at cardbus0 dev 0 function 0 3Com 3C575TX (boomerang)xl1: Ethernet address: 00:60:08:b6:f7:5f pcmcia0 at cbb0 slot 0 cbb1 at pci0 dev 12 func 1 (unknown), flags 0 CardBus latency time 0x10 PCI latency time 0x20 intr_establish:irq=10 trigger=level ipl=bio cbb1: interrupting at irq 10 cardbus1 at cbb1 bus 2 device 1 pcmcia1 at cbb1 slot 1 cbb1: a 16-bit pcmcia card found. 5V card fe0 at pcmcia1 function 05V card : RATOC REX-R280 fe0: Ethernet address 00:c0:d0:20:8d:5b pci0: attached child device: [0:0:0 0:1:0 0:19:0 0:9:0 0:10:0 0:11:0 0:12:0 0:12:1 ] rescan=>cbb-2 rescan=>isa-2 pcic0 at isa0 port 0x3e0-0x3e1 maddr 0xd0000 msize 16384: using irq 3 pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B intr_establish:irq=3 trigger=edge ipl=tty pcmcia2 at pcic0 controller 0 socket 0 ne1 at pcmcia2 function 0 port 0x340-0x34f port 0x350-0x35f ne1: Planet SmartCOM 2000 Ethernet ne1: Ethernet address 00:00:e8:25:ed:75 pcmcia3 at pcic0 controller 0 socket 1 ep0 at pcmcia3 function 0 port 0x330-0x33f: 3Com 3c589 10Mbps Ethernet ep0: address 00:60:97:8d:d8:e9, 8KB byte-wide FIFO, 5:3 Rx:Tx split ep0: 10baseT, 10base5, 10base2 (default 10baseT) ne2 at isa0 port 0x280-0x29f irq 9 ne2: NE2000 (RTL8019) Ethernet ne2: 10base2, 10baseT, 10baseT-FDX, auto, default auto intr_establish:irq=9 trigger=edge ipl=net ne2: Ethernet address 00:c0:f6:b0:5b:64 ep1 at isa0 port 0x300-0x30f irq 5: 3Com 3C509 Ethernet ep1: address 00:20:af:9b:13:94, 8KB byte-wide FIFO, 5:3 Rx:Tx split ep1: 10baseT, 10base5, 10base2 (default 10baseT) intr_establish:irq=5 trigger=edge ipl=net rescan=>pcic-2 rescan=>cardbus-2 rescan=>pcmcia-2 > --- > UCHIYAMA Yasushi > uch@nop.or.jp // Noriaki Mitsunaga // To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message