kldload on arm
Ian Lepore
ian at FreeBSD.org
Mon Aug 12 13:06:11 UTC 2013
On Sun, 2013-08-11 at 15:07 -0600, Tom Everett wrote:
> Good afternoon mailing list. I'm attempting to write my first driver.
> I've got a very basic driver which I am attempting to load. The source
> code is here:
>
> https://github.com/teverett/pi-iic
>
> When I attempt to load the driver I get this:
>
> root at lureen:/home/tom/pi-iic/pi-iic # make install
> install -o root -g wheel -m 555 bcm2835_iic.ko /boot/kernel
> kldxref /boot/kernel
> kldxref: Skipping /boot/kernel/kernel.gz.tramp: not dynamically-linked
> root at lureen:/home/tom/pi-iic/pi-iic # make load
> /sbin/kldload -v /home/tom/pi-iic/pi-iic/bcm2835_iic.ko
> kldload: can't load /home/tom/pi-iic/pi-iic/bcm2835_iic.ko: File exists
> *** Error code 1
>
>
> Does kldload work properly on arm?
>
>
Usually "file exists" means that the driver is either already loaded, or
is compiled into the kernel. "kldstat -v" will show the latter. Also,
sometimes the kldload messages are not helpful, but there'll be more
info in dmesg.
-- Ian
More information about the freebsd-arm
mailing list