Hi There, This is just my personal opinion, but I find these kinds of questions are better answered on the forums or in one of the mailing lists available at https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources-mail.html. Searching information like this out can be frustrating, you will wind up doing the dance of google, manpages (https://www.freebsd.org/cgi/man.cgi) and the handbooks (https://www.freebsd.org/docs.html).
disclaimer: I'm only a little further ahead than you are, but I worked through this problem too. Anyway, your project will need to link to kernel source (as stated in the error) to build your pseudo (sudo?) driver. You will need to fetch the source code using subversion. This is in the handbook but it's a little scattered: https://www.freebsd.org/doc/handbook/updating-upgrading.html https://www.freebsd.org/doc/handbook/svn.html https://www.freebsd.org/doc/handbook/kernelconfig.html Again, the dance goes: 1) google: "Build freebsd from source". If nothing found: go to 2. 2) Search the FreeBSD website. The search isn't great so sometimes you just have to grab a coffee and sit down and read the handbook (which isn't a bad thing really). 3) Then manpages for specifics about each command. Good luck, Russ On Wed, Dec 16, 2015 at 6:32 AM, Louis NOMINE <[email protected]> wrote: > Hi, > > I'm currently working on a project where I need to create a PCI device > driver that can work on freeBSD. In order to learn how o do so I'm using > the doccuentation I've found on your website ( > https://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics-kld.html > ) > > I have created both files (source code and the makefile). when I try to do > a make operation I get the following error : > > make: "/usr/share/mk/bsd.kmod.mk" line 12: Unable to locate the kernel > source tree. Set SYSDIR to override. > > I'm using PCBSD 10 and I don't know how to solve my problem. > > Do you know how to help me ? > > Thanks in advance, > > Regards, > > Louis Nominé > > > _______________________________________________ > [email protected] mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-doc > To unsubscribe, send any mail to "[email protected]" _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "[email protected]"
