20175307高士淳
20175308杨元
20175319江野
make clean;make
./test_drv_load
gcc –o test test.c
./test
./test_drv_unload
dmesg
命令可以查看内核打印的信息dmesg|tail –n 10
……
The major of the test device is 250
This is open operation
This is release operation
Test device uninstalled
grep
命令确认驱动程序已经被卸载
###3
arm-none-linux-gnuenbi-gcc
编译程序,挂载共享目录,通过NFS把宿主机中的程序运行目录映射到目标机中,运行程序insmod: error inserting ‘***.ko‘: -1 File exists
lsmod |grep test_dev
查看是否已存在此模块,如果存在,则卸载rmmod test_dev
或者直接重启虚拟机即可解决2019-2020-1 20175307 20175308 20175319 实验四 外设驱动程序设计
原文:https://www.cnblogs.com/killer-queen/p/11966014.html