おのたく日記 YouTubeも始めました→
2006-09-23(Sat) Linux kernel 2.6.17でもVMWareでUSB iPodを使えるようにパッチする [長年日記]
■ Linux kernel 2.6.17でもVMWareでUSB iPodを使えるようにパッチする
もう2.6.18も出ていてe1000が時々ハングアップするという不良も取れているということなので、2.6.18にしたかったんだけど、まだDebianのパッケージは出ていないようなので、2.6.17で我慢。
7月1日の日記の2.6.16の時と同様に
# apt-get build-dep linux-image-2.6.17-2-amd64
$ apt-get source linux-image-2.6.17-2-amd64
$ cd linux-2.6-2.6.17/drivers/usb/core/
$ cp -p driver.c driver.c.org
$ vi driver.c
$ diff -u driver.c.org driver.c
--- driver.c 2006-09-23 16:28:51.000000000 +0900
+++ driver.c.org 2006-06-18 10:49:35.000000000 +0900
@@ -229,11 +229,9 @@
driver->disconnect(intf);
/* reset other interface state */
-#if 0 /* iPod Connect from VMWare Guest OS */
usb_set_interface(interface_to_usbdev(intf),
intf->altsetting[0].desc.bInterfaceNumber,
0);
-#endif
usb_set_intfdata(intf, NULL);
intf->condition = USB_INTERFACE_UNBOUND;
mark_quiesced(intf)
$ dpkg-buildpackage -us -uc -b -rfakeroot
でコンパイル。
2.6.17から、AMD64,EM64T,マルチプロセッサなどが統合されて作成されるパッケージ数が少なくなっていて2時間半くらいで完成した。
|