Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0

Stefan Parvu sparvu at kronometrix.org
Wed Jul 17 16:03:56 UTC 2019


I copied the ko file under /boot/kernel . I just copied the nxprtc.ko nothing else
no linker.hints 

But does not work. I cannot see the driver after reboot. I have of course all things in config.txt.

root at k1:/boot/kernel # kldstat 
Id Refs Address                Size Name
 1    9 0xffff000000000000  13d1480 kernel
 3    1 0xffff000001415000    40f10 nxprtc.ko
 4    1 0xffff000053600000    41000 tmpfs.ko
 5    1 0xffff000053641000    31000 mac_ntpd.ko
root at k1:/boot/kernel # 

root at k1:/boot/kernel # dmesg | grep nxp
root at k1:/boot/kernel # 

> That's why I have been lifelong-skeptical about the whole concept of
> trying to build a single module separate from the kernel.  Maybe it
> mostly works for amd64, but I've never thought it was a safe thing to
> do on arm systems.
> 
> You might be able to work around it by hand-editing that file and then
> rebuilding the module.  The file will be in
> 
> /usr/obj/arm64.aarch64/usr/src/sys/GENERIC/modules/i2c/nxprtc/opt_platform.h

okay. let me try that.

Stefan


More information about the freebsd-arm mailing list