[ 5058.454817] main[26135]: segfault at a ip 000077e234080107 sp 00007ffca80d8000 error 4 in libc.so.6[77e234028000+195000] likely on CPU 1 (core 1, socket 0)
[ 5058.454866] Code: 8b 11 48 89 fd 48 89 cb 89 d0 25 00 80 00 00 0f 84 7e 01 00 00 83 e2 20 0f 85 f5 01 00 00 48 83 7d 00 00 74 0b 48 8b 44 24 10 <48> 83 38 00 75 23 48 8b 44 24 10 bf 78 00 00 00 48 c7 00 78 00 00
[ 9761.217348] module gpio_drv: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
gpio-test:
程序运行结果:
rmmod: ERROR: Module gpio_drv is not currently loaded
insmod: ERROR: could not insert module gpio_drv.ko: Invalid module format
打开驱动识别,请用insmod gpio_drv.ko 加载驱动