Date: Sun, 27 Oct 2019 22:52:10 +0100 From: Oliver Pinter <oliver.pinter@hardenedbsd.org> To: Milan Obuch <freebsd-hackers@dino.sk> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: UART driver as kld - how? Message-ID: <CAPQ4ffuoHRFghwo=okFoNVHw9TYdwFw_wgUxa5_rm6FqjsNVsg@mail.gmail.com> In-Reply-To: <20191027214209.712d62ca@zeta.dino.sk> References: <20191027214209.712d62ca@zeta.dino.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, October 27, 2019, Milan Obuch <freebsd-hackers@dino.sk> wrote: > Hi, > > I am trying to create a driver for Xilinx' AXI UART Lite IP core. I > can't find a way to do it as kld module. I started with > uart_dev_cdnc.c, but I can't see how it is hooked into the kernel - or, > better formulated, how can I created kld loadable module. As Zynq has > uart_dev_cdnc driver for its PS UART, all necessary files are compiled > into kernel, but how can I extend those modules tables to work with new > driver too? > > You can ask why I want it this way, if I can put this into kernel... > simply this would make development awkward - every change would mean > recompile everything (or at least relinking kernel) and reboot. With > kld, I can just rebuild the module, reinstall it, unload old/load new > version and test. Other thing is, for any IP core I must first load hw > design into PL part (FPGA bitstream, actually), there is simply no > device without this step performed. > > Did anybody already create something similar? Any help/hint/pointer > appreciated... https://github.com/freebsd/freebsd/tree/master/share/examples/kld > > Regards, > Milan > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4ffuoHRFghwo=okFoNVHw9TYdwFw_wgUxa5_rm6FqjsNVsg>