call identify, probe and attach on run time?

Matías Perret Cantoni perretcantonim at gmail.com
Wed Mar 4 14:39:57 UTC 2015


Hello! I'm a newbie at freeBSD and at the development of newbus drivers, so
excuse me if this is too silly:

I'm running FreeBSD on the Zedboard, an arm based board, and I wrote a
simple newbus driver for reading and writing a specific I/O port (It is
basically a simplified copy of the Warner Losh example driver for the
iOpener Led)

I successfully load my driver:

# kldload ./simple_d.ko
#

But after doing this I can't find the new node neither under /dev nor with
devinfo(8). I assume that the identify, probe and attach functions hasn't
been called. Is this correct?

So is there any way of doing this at run time? I mean NOT during
auto-configuration.

If I can only do it on boot time ...
... should I add a node at the Flattened Device Tree?
... should I place the driver in some specific directory?
... should I re-compile the kernel with the new driver included?


Thank you!
Regards,
Matias.-


More information about the freebsd-drivers mailing list