Date: Wed, 4 Mar 2015 11:39:56 -0300 From: =?UTF-8?Q?Mat=C3=ADas_Perret_Cantoni?= <perretcantonim@gmail.com> To: freebsd-drivers@freebsd.org Subject: call identify, probe and attach on run time? Message-ID: <CADLKG02uCGKARNDTetHjf-TM_bp_rDD43W9H=ARgRhE4jeDZwA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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.-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLKG02uCGKARNDTetHjf-TM_bp_rDD43W9H=ARgRhE4jeDZwA>