I have recently acquired a device driver for an integrated watchdog timer on a x86 board on which I am running a minimal Linux system. The kernel is 3.6.11 and it has been built using buildroot
.
My installation does not run udev
so I am required to manually perform an insmod
and mknod
for any drivers that I require. I have managed to do this for a CAN driver, but for this watchdog driver, I am able to cross-compile the source code for the target and I am successfully able to insmod
the resulting .ko file. After this there are no errors generated and a call to lsmod
reports that the module is loaded.
The problem I am having is that I need to created a device node in /dev
for this driver and I am not sure how to proceed. I do not know how to obtain device major and minor numbers like I can for char devices.
The source of this driver suggests it is a platform device driver but I am not sure what that even means. I have only heard of character and block devices and so – is the notion of major and minor numbers relevant to platform devices? If so, how can I obtain this information? There is no entry within /proc
for this device driver name and I am unsure how to proceed.