LINUX DEVICE DRIVERS¶
Introduction¶
- Driver’s goal is map user calls to hardware or protocol related procedure
- When writing driver as a programmer, we should tell the difference between
mechanismandstrategy, we should not add specialstrategywithout needed, let user use theirstrategyas their need.
Build kernel¶
- check kernel message
the message by module of linux system will be at system log directory, default:
/var/log/messages, for Ubnuntu, the location of it changes to/var/log/syslogdmsg | tailcan perform the same work too !!! - the module need to be signed when
SECURE BOOTis enabled on UEFI/BIOS setting - remove/rebuild kernel may solve
insmoderror