tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[RFC] aftermountroothook



hi,

some network devices require firmware to read MAC address. if such
devices are attached before root directory is mounted, they are not
attached as ordinary network interface.

in zyd(4), MAC address is not shown until "ifconfig up". some ioctls
will fail, or causes panic. (see kern/36821 and kern/43125)

to resolv this issue, following patch introduces "aftermountroothook".

  http://www.naobsd.org/porting/aftermountroothook.diff

use it when root directory is not mounted while attaching.

patch for zyd(4) is here,

  http://www.naobsd.org/if_zyd.c.diff

this hook is especially required for upgt(4) and malo(4) because they
are used as built-in/on-board module on some machines.
(detach and re-attach physically is too difficult;)

upgt(4)
  http://www.naobsd.org/porting/upgt-current.diff

malo(4)
  ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/gumstix/if_malo.c
  (this is not yet converted to use afterrootmounthook)

--
FUKAUMI Naoki



Home | Main Index | Thread Index | Old Index