raspberry pi用にWi-Fiドングル「Planex GW-900D」のドライバモジュールの作成」でドライバモジュールを作成しましたが、raspberry piに登録しようとすると、kernel panicが発生して停止してしまいました。このブログは、そのkernel panicの状態を記述したものです。継続して調査します。

rootになります。

pi@raspberrypi:~$ su –

raspberry pi用にWi-Fiドングル「Planex GW-900D」のドライバモジュールの作成」でドライバモジュールを作成したフォルダ「/home/pi/GW-900D/rtl8812au-master」に移動し、作成した8812auのドライバモジュールをlsmodコマンドで確認しようとしたところ、kernel panicが発生してしまいました。

root@raspberrypi:/home/pi/GW-900D/rtl8812au-master# sudo insmod 8812au.ko
root@raspberrypi:/home/pi/GW-900D/rtl8812au-master#
Message from syslogd@raspberrypi at Jan 10 09:25:11 ...
 kernel:[  192.803079] Internal error: Oops: 5 [#1] ARM
Message from syslogd@raspberrypi at Jan 10 09:25:11 ...
 kernel:[  192.964946] Process ifplugd (pid: 2113, stack limit = 0xdb64e1b

8) Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 192.976353] Stack: (0xdb64fd50 to 0xdb650000) Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 192.985839] fd40: 00000000 00000000 0000003f 0000000c Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 192.999371] fd60: 00000001 0000001c 00508242 00000000 00000000 00000000 00000000 dcf08000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.012910] fd80: 00000000 da4aa872 00000000 da4ab450 00000000 00000000 00000000 00000000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.026415] fda0: 0000004b 00000003 0000003c 0000001e db64e000 da4a8000 dcf08000 da4a8000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.039762] fdc0: 00000001 da4ab450 00000000 da4a8000 db64e000 bf144b80 dcf08000 da4a8000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.053163] fde0: da4a8000 ffff96c7 000004c7 bf14e224 00000003 00000003 00000003 00008914 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.066741] fe00: 00000000 00000001 dcf08000 dcf08000 bf16db0c 00001002 00008914 00000000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.080334] fe20: 00000001 bf135378 00000000 da2b2000 dcf08000 bf1231dc db64fe6c c03f4888 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.093936] fe40: da2b2000 00001003 dcf08000 da2b2000 bf16db0c 00001002 00008914 00000000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.107413] fe60: 00000001 bf123524 bf123504 da2b2000 00001003 c0326614 da2b2000 00001003 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.120847] fe80: 00000001 c0326864 00008914 da2b2000 00001002 be9dc750 00000000 c0326994 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.134447] fea0: 00000000 da5ede0c be9dc750 c0382f28 da5ede00 00000014 da5ede0c da2b2000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.148091] fec0: 6e616c77 00000030 00000000 00000000 00001003 00000000 00000000 00000000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.161794] fee0: 00000000 00008914 fffffe14 be9dc750 c05ea490 db1203a0 db64e000 be9dc750 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.175461] ff00: 00000000 c030f160 c030f0f0 00000000 00000008 00008914 00000000 c00f7dc8 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.189003] ff20: 0000001e c05af1e0 db64ff58 00000003 c0437840 db120380 00000000 c00e9f80 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.202499] ff40: 0000001e c05af1e0 db120380 00000000 00000000 c030f508 db413590 db12a910 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.215965] ff60: 00000000 be9dc750 00008914 00000000 db783660 db64e000 00000008 c00f8330 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.229467] ff80: 00000000 00000000 00000800 00000008 00000000 00009624 00000036 c000e328 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.242984] ffa0: 00000000 c000e180 00000008 00000000 00000008 00008914 be9dc750 00001003 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.256339] ffc0: 00000008 00000000 00009624 00000036 01241008 00000011 00000008 00000000 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.269756] ffe0: 00000000 be9dc750 0000b29c b6e97f0c 60000010 00000008 1bffd821 1bffdc21 Message from syslogd@raspberrypi at Jan 10 09:25:11 ... kernel:[ 193.489086] Code: 059d103c 00893001 02833db7 02833005 (05d33002)

raspberry piのHDMI端子から出力された表示を次に示します。8812auをリンクしようとしてkernel panicが発生していることがわかります。
raspberry pi kernel panic

この時のinterfaceファイルの内容を示します。

# vi /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.50
netmask 255.255.255.0
gateway 192.168.0.1
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

raspberry piで使用できるヘッダファイルの一覧を「search linux-header」で表示させます。
root@raspberrypi:~# sudo apt-cache search linux-header
linux-headers-3.10-3-all – All header files for Linux 3.10 (meta-package)
linux-headers-3.10-3-all-armhf – All header files for Linux 3.10 (meta-package)
linux-headers-3.10-3-common – Common header files for Linux 3.10-3
linux-headers-3.10-3-rpi – Header files for Linux 3.10-3-rpi
linux-headers-3.12-1-all – All header files for Linux 3.12 (meta-package)
linux-headers-3.12-1-all-armhf – All header files for Linux 3.12 (meta-package)
linux-headers-3.12-1-common – Common header files for Linux 3.12-1
linux-headers-3.12-1-rpi – Header files for Linux 3.12-1-rpi
linux-headers-3.2.0-4-all – All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-all-armhf – All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-common – Common header files for Linux 3.2.0-4
linux-headers-3.2.0-4-rpi – Header files for Linux 3.2.0-4-rpi
linux-headers-3.6-trunk-all – All header files for Linux 3.6 (meta-package)
linux-headers-3.6-trunk-all-armhf – All header files for Linux 3.6 (meta-package)
linux-headers-3.6-trunk-common – Common header files for Linux 3.6-trunk
linux-headers-3.6-trunk-rpi – Header files for Linux 3.6-trunk-rpi
linux-headers-rpi – Header files for Linux rpi configuration (meta-package)
linux-headers-rpi-rpfv – This metapackage will pull in the headers for the raspbian kernel based on
root@raspberrypi:~#

上記のヘッダーとimageを組み合わせてみましたがうまくいきませんできた。もう少し調査が必要になります。