rt-net / RaspberryPiMouse

Raspberry Pi Mouse Device Driver
Other
60 stars 458 forks source link

rmmod後、lightsensorが動かない #34

Open ShotaAk opened 4 years ago

ShotaAk commented 4 years ago

Describe the bug

sudo rmmod rtmouse実行後、utils/build_install.bashを実行したが、lightsensorが動かない。

Expected behavior

dmsegでログを見ると、rtmouse: mcp3204 removedの後、rtmouse: mcp3204 probedのメッセージが出てないので、SPIモジュールの生成に失敗しているように見える。

Full log

dmesg | grep rtmouse
[  125.082949] rtmouse: loading out-of-tree module taints kernel.
[  125.084309] rtmouse: module verification failed: signature and/or required key missing - tainting kernel
[  125.085153] rtmouse: loading driver...
[  125.086939] rtmouse: new i2c device probed, id.name=rtcounter_l, id.driver_data=0, addr=0x10
[  125.089001] rtmouse: new i2c device probed, id.name=rtcounter_r, id.driver_data=1, addr=0x11
[  125.199774] rtmouse: mcp3204 probed
[  125.199841] rtmouse: 15 devices loaded.
[  125.199848] rtmouse: module installed at 4294923596
[  506.687403] rtmouse: mcp3204 removed
[  506.687691] rtmouse: i2c device 0x11 removed
[  506.687872] rtmouse: i2c device 0x10 removed
[  506.688062] rtmouse: module removed at 4295018974
[  528.872773] rtmouse: loading driver...
[  528.874750] rtmouse: new i2c device probed, id.name=rtcounter_l, id.driver_data=0, addr=0x10
[  528.876800] rtmouse: new i2c device probed, id.name=rtcounter_r, id.driver_data=1, addr=0x11
[  528.991587] rtmouse: 15 devices loaded.
[  528.991595] rtmouse: module installed at 4295024550
[  587.657944] rtmouse: i2c device 0x11 removed
[  587.658096] rtmouse: i2c device 0x10 removed
[  587.658268] rtmouse: module removed at 4295039216
[  606.010924] rtmouse: loading driver...
[  606.012570] rtmouse: new i2c device probed, id.name=rtcounter_l, id.driver_data=0, addr=0x10
[  606.015360] rtmouse: new i2c device probed, id.name=rtcounter_r, id.driver_data=1, addr=0x11
[  606.125167] rtmouse: 15 devices loaded.
[  606.125177] rtmouse: module installed at 4295043833
[ 1327.974936] rtmouse: i2c device 0x11 removed
[ 1327.975134] rtmouse: i2c device 0x10 removed
[ 1327.975323] rtmouse: module removed at 4295224292
[ 1347.361006] rtmouse: loading driver...
[ 1347.362846] rtmouse: new i2c device probed, id.name=rtcounter_l, id.driver_data=0, addr=0x10
[ 1347.365003] rtmouse: new i2c device probed, id.name=rtcounter_r, id.driver_data=1, addr=0x11
[ 1347.490002] rtmouse: 15 devices loaded.
[ 1347.490011] rtmouse: module installed at 4295229171