strange problem with: ed driver / 4.9-PRE

Vlad Galu Vlad.Galu at rdsnet.ro
Fri Sep 19 06:03:19 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 16 Sep 2003 08:03:55 +0200 Gianmarco Giovannelli <gmarco at giovannelli.it>
wrote:

	You already have the miibus driver compiled in the kernel, and probably you
load it again at boot time.

> Hi,
> in the kernel I have these lines:
> 
> [...]
> device          miibus          # MII bus support
> device          rl
> device          ed
> 
> options         IPFIREWALL              #firewall
> options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
> options         IPFIREWALL_VERBOSE_LIMIT=0      #limit verbosity
> options         IPDIVERT                #divert sockets
> options         DUMMYNET
> options         IPFW2
> [...]
> 
> When the box starts it complains:
> 
> Sep 15 15:54:21 test2 /kernel: acd0: CDROM <TOSHIBA CD-ROM XM-6002B> at 
> ata1-master PIO3
> Sep 15 15:54:21 test2 /kernel: Mounting root from ufs:/dev/ad0s1a
> Sep 15 15:54:21 test2 /kernel: module_register: module miibus/ukphy already 
> exists!
> Sep 15 15:54:21 test2 /kernel: linker_file_sysinit "miibus.ko" failed to 
> register! 17
> Sep 15 15:54:21 test2 /kernel: module_register: module pci/ed already exists!
> Sep 15 15:54:21 test2 /kernel: linker_file_sysinit "if_ed.ko" failed to 
> register! 17
> 
> -----------------------------
> 
> test2:/home/gmarco> kldstat
> Id Refs Address    Size     Name
>   1    5 0xc0100000 1b4bb4   kernel
>   2    1 0xc08f8000 6000     procfs.ko
>   4    2 0xc0912000 e000     miibus.ko
>   5    1 0xc0924000 a000     if_ed.ko
>   6    1 0xc0993000 3000     daemon_saver.ko
> 
> -------------------------------
> 
> test2:/home/gmarco> ifconfig
> rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>          inet 192.168.0.246 netmask 0xffffff00 broadcast 192.168.0.255
>          ether 00:30:4f:1e:44:e0
>          media: Ethernet autoselect (none)
>          status: no carrier
> ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>          inet 192.168.1.246 netmask 0xffffff00 broadcast 192.168.1.255
>          ether 00:00:b4:a1:a5:a4
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>          inet 127.0.0.1 netmask 0xff000000
> 
> -------------------------------
> 
> test2:/home/gmarco> less /etc/rc.conf
> defaultrouter="192.168.1.101"
> gateway_enable="YES"
> hostname="test2.cho.it"
> ifconfig_ed0="inet 192.168.1.246  netmask 255.255.255.0"
> ifconfig_rl0="inet 192.168.0.246  netmask 255.255.255.0"
> keymap="it.iso"
> saver="daemon"
> sendmail_enable="YES"
> sshd_enable="YES"
> 
> firewall_enable="YES"           # Set to YES to enable firewall functionality
> firewall_script="/etc/rc.firewall" # Which script to run to set up the
> firewall firewall_type="OPEN"            # Firewall type (see
> /etc/rc.firewall) firewall_logging="YES"          # Set to YES to enable
> events logging firewall_flags=""               # Flags passed to ipfw when
> type is a file
> 
> natd_program="/sbin/natd"       # path to natd, if you want a different one.
> natd_enable="YES"               # Enable natd (if firewall_enable == YES).
> natd_interface="ed0"            # Public interface or IPaddress to use.
> 
> -------------------------------
> 
> test2:/home/gmarco> uname -a
> FreeBSD test2.cho.it 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Mon Sep 15 
> 14:28:06 CEST 2003     root at test2.cho.it:/usr/src/sys/compile/FREEBSD  i386
> 
> --------------------------------
> 
> All the modules are built toghter with world and kernel.
> test2:/home/gmarco> less /etc/make.conf
> [...]
> CFLAGS= -O -pipe
> COMPAT22=       yes
> COMPAT3X=       yes
> KERNCONF=       FREEBSD
> IPFW2=TRUE
> WITHOUT_X11=yes
> [...]
> 
> #########################################################à
> 
> The same error on another (2nd) box (configured very similar):
> freebsd:/home/gmarco# uname -a
> FreeBSD freebsd.xxxx.it 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #1: Thu Sep 
> 11 11:47:56 CEST 2003
> 
> 
> Sep 15 13:07:41 freebsd /kernel: Mounting root from ufs:/dev/ad0s1a
> Sep 15 13:07:41 freebsd /kernel: module_register: module miibus/ukphy 
> already exists!
> Sep 15 13:07:41 freebsd /kernel: linker_file_sysinit "miibus.ko" failed to 
> register! 17
> Sep 15 13:07:41 freebsd /kernel: module_register: module pci/ed already
> exists! Sep 15 13:07:41 freebsd /kernel: linker_file_sysinit "if_ed.ko" failed
> to register! 17
> 
> 
> with rc.conf:
> 
> [...]
> ifconfig_ed0="inet 80.xxx.xxx.xxx  netmask 255.255.255.248"
> ifconfig_rl0="inet 128.37.1.253 netmask 255.255.0.0"
> ifconfig_rl0_alias0="inet 128.37.1.254/32"
> defaultrouter="80.xxx.xxx.xxx"
> 
> keymap="it.iso"
> saver="daemon"
> 
> gateway_enable="YES"
> sendmail_enable="YES"
> named_enable="YES"
> sshd_enable="YES"
> usbd_enable="NO"
> 
> firewall_enable="YES"           # Set to YES to enable firewall functionality
> firewall_script="/usr/local/etc/ipfw.rules"
> firewall_type="open"            # Firewall type (see /etc/rc.firewall)
> firewall_quiet="NO"             # Set to YES to suppress rule display
> firewall_logging="YES"          # Set to YES to enable events logging
> 
> natd_enable="YES"               # Enable natd (if firewall_enable == YES).
> natd_interface="ed0"            # Public interface or IPaddress to use.
> natd_flags=""                   # Additional flags for natd.
> 
> portmap_enable="YES"            # Run the portmapper service (YES/NO).
> 
> 
> 
> in the kernel config line it has the same line of the previous box...
> 
> 
> ##############################################
> 
> .... and in a 3d one:
> 
> freebsd:/home/gmarco> uname -a
> FreeBSD freebsd.computerhouseprato.com 4.9-PRERELEASE FreeBSD 
> 4.9-PRERELEASE #0: Mon Sep  8 18:14:24 CEST 
> 2003     gmarco at freebsd.computerhouseprato.com:/usr/obj/usr/src/sys/FREEBSD 
>   i386
> 
> 
> Sep 16 07:55:07 freebsd /kernel: DUMMYNET initialized (011031)
> Sep 16 07:55:07 freebsd /kernel: ad0: DMA limited to UDMA33, non-ATA66 
> cable or device
> Sep 16 07:55:07 freebsd /kernel: ad0: 19464MB <SAMSUNG SV2044D> 
> [39546/16/63] at ata0-master UDMA33
> Sep 16 07:55:07 freebsd /kernel: acd0: CDROM <FX4820T> at ata0-slave PIO4
> Sep 16 07:55:07 freebsd /kernel: Mounting root from ufs:/dev/ad0s1a
> Sep 16 07:55:07 freebsd /kernel: module_register: module miibus/ukphy 
> already exists!
> Sep 16 07:55:07 freebsd /kernel: linker_file_sysinit "miibus.ko" failed to 
> register! 17
> Sep 16 07:55:07 freebsd /kernel: module_register: module pci/ed already
> exists! Sep 16 07:55:07 freebsd /kernel: linker_file_sysinit "if_ed.ko" failed
> to register! 17
> 
> freebsd:/home/gmarco> ifconfig
> ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>          ether 00:30:4f:0e:d3:da
> ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>          inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
>          ether 00:30:4f:0e:d4:08
> ed2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>          inet 192.168.2.101 netmask 0xffffff00 broadcast 192.168.2.255
>          ether 00:30:4f:0e:d3:8b
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>          inet 127.0.0.1 netmask 0xff000000
> 
> freebsd:/home/gmarco> kldstat
> Id Refs Address    Size     Name
>   1    9 0xc0100000 1ab5ac   kernel
>   3    2 0xc0f45000 e000     miibus.ko
>   4    1 0xc0f3a000 a000     if_ed.ko
>   5    1 0xc0f61000 4000     if_tun.ko
>   6    4 0xc0f66000 9000     netgraph.ko
>   7    1 0xc0f74000 3000     ng_ether.ko
>   8    1 0xc0f79000 5000     ng_pppoe.ko
>   9    1 0xc0f7f000 3000     ng_socket.ko
> 10    1 0xc0fe7000 3000     daemon_saver.ko
> 
> in the kernel config file I have:
> 
> device          miibus          # MII bus support
> device          ed
> 
> options         IPFIREWALL              #firewall
> options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
> options         IPFIREWALL_VERBOSE_LIMIT=0      #limit verbosity
> options         IPDIVERT                #divert sockets
> options         IPFW2
> options         DUMMYNET
> 
> 
> Any idea on what is happening ?
> 
> BTW: the boxes work without any problems ...
> 
> 
> 
> 
> Best Regards,
> Gianmarco Giovannelli ,  "Unix expert since yesterday"
> http://www.gufi.org/~gmarco
> 
> 
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
> 


- ------
Vlad Galu
Senior IP Engineer
Romania Data Systems NOC in Bucharest
Phone:	+40 21 30 10 850
Web:	http://www.rdsnet.ro
PGP:	http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x53ABCE97
- -----------------------------------------------------------------------
Privileged/Confidential  Information may  be contained in this message.
If you are not the  addressee indicated in this message (or responsible
for  delivery of the  message to such a  person), you  may not  copy or
deliver this message to anyone. In such a case, you should destroy this
message and kindly notify the sender by reply e-mail.
- -----------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/ZrEqP5WtpVOrzpcRAuSNAJ9ogYz4InfOJXx5Uv27KwxYhtB3iwCeKzM1
E7I75U0R8hdeLhLLfXKCKyI=
=JJu2
-----END PGP SIGNATURE-----


More information about the freebsd-stable mailing list