然后就用了sudo insmod led.ko加载,灯也亮了,但是用sudo rmmod led.ko时却出现模块忙的问题,如下
firefly@firefly:~/temp/makepra/led$ lsmod
Module Size Used by
led 917 0
mali_kbase 159689 0
firefly@firefly:~/temp/makepra/led$ sudo rmmod led.ko
rmmod: ERROR: ../libkmod/libkmod-module.c:769 kmod_module_remove_module() could not remove 'led': Device or resource busy
rmmod: ERROR: could not remove module led.ko: Device or resource busy