rc(8) regression. What's the story?

Arno J. Klaassen arno at heho.snv.jussieu.fr
Mon Aug 17 15:35:27 UTC 2009

Marcel Moolenaar <xcllnt at mac.com> writes:

> All,
> A few of my machines still can't boot successfully to multi-user:
> 	...
> Trying to mount root from ufs:da0p3
> Entropy harvesting: interrupts ethernet point_to_point kickstart.
> /dev/da0p3: clean, 8843098 free (98130 frags, 1093121 blocks, 0.6%
> fragmentation)
> WARNING: ZFS is considered to be an experimental feature in FreeBSD.
> ZFS filesystem version 13
> ZFS storage pool version 13
> bge0: link state changed to DOWN
> Starting Network: lo0 bge0.
> bge1: link state changed to DOWN
> Mounting NFS file systems:mount_nfs: nfs: hostname nor servname
> provided, or not known
> .
> bge0: link state changed to UP
> Setting date via ntp.
> Error : hostname nor servname provided, or not known
> [ ... ]

I have a similar problem, and it seems related to the moment
that bge0 is brought up :

I have a kernel-config with only 'device mii' compiled in;
if I set if_bge_load=YES in loader.conf, boot single user and
run netif by hand I get :

  Trying to mount root from ufs:/dev/aacd0s1a
  ct_to_ts([2009-08-17 13:42:03]) = 1250516523.000000000
  start_init: trying /sbin/init
  Enter full pathname of shell or RETURN for /bin/sh:
  # /etc/rc.d/netif start
   XXX netif start ...
  bge0: link state changed to DOWN
  Starting Network: bge0.
  bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:e0:81:4d:5d:b8
        inet netmask 0xffffff00 broadcast
        inet6 fe80::2e0:81ff:fe4d:5db8%bge0 prefixlen 64 tentative
        scopeid 0x1
        media: Ethernet autoselect (none)
        status: no carrier
  # bge0: link UP
  bge0: link state changed to UP

  # ping
  PING ( 56 data bytes
  ping: sendto: Permission denied
  ping: sendto: Permission denied
  ping: sendto: Permission denied
  --- ping statistics ---
  3 packets transmitted, 0 packets received, 100.0% packet loss
  # freed 1 flow entries

  # nslookup
  ;; connection timed out; no servers could be reached


However, if I place kldload if_bge in rc.local (and normal multi-user
boot) :

   XXX netif start ...
  Starting Network: lo0.
  route: writing to routing socket: Network is unreachable
  add net default: gateway Network is unreachable
  /etc/rc: WARNING: Dump device does not exist.  Savecore not run.
  rpc.umntall: push: MOUNTPROG: RPC: Unknown host
  Aug 17 16:11:08 siamesetwins kernel: NLM: failed to contact remo
  Aug 17 16:1bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC
  rev. 0x8100> mem 0xff0d0000-0xff0dffff,0xff0c0000-0xff0cffff irq 26 at
  device 4.0 on pci4
  bge0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xff0d0000
  bge0: attempting to allocate 1 MSI vectors (8 supported)
  msi: routing MSI IRQ 256 to local APIC 0 vector 48
  bge0: using IRQ 256 for MSI
  bge0: CHIP ID 0x81000000; ASIC REV 0x08; CHIP REV 0x81; PCI-X
  1:08 siamesetwinmiibus0: <MII bus> on bge0
  brgphy0: <BCM5780 10/100/1000baseTX PHY> PHY 1 on miibus0
  brgphy0: OUI 0x000818, model 0x0035, rev. 0
  brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
  1000baseT-FDX, auto
  bge0: bpf attached
  bge0: Ethernet address: XXX
  bge0: [MPSAFE]
  bge0: [ITHREAD]

  [ ... ]

  Mon Aug 17 16:11:24 CEST 2009

  FreeBSD/amd64 (siamesetwins) (ttyu0)

  login: ts_to_ct(1250518288.759918777) = [2009-08-17 14:11:28]

  FreeBSD/amd64 (siamesetwins) (ttyu0)

  login: toor

  [ ... ]

  [root at siamesetwins ~]# ping
  PING ( 56 data bytes
  64 bytes from icmp_seq=0 ttl=64 time=0.210 ms
  64 bytes from icmp_seq=1 ttl=64 time=0.231 ms
  --- ping statistics ---
  2 packets transmitted, 2 packets received, 0.0% packet loss
  round-trip min/avg/max/stddev = 0.210/0.221/0.231/0.010 ms
  [root at siamesetwins ~]# nslookup
  Address: name = XXX

  [root at siamesetwins ~]# /etc/rc.d/lockd restart
  lockd not running?
  Starting lockd.
  [root at siamesetwins ~]#


More information about the freebsd-current mailing list