おのたく日記 YouTubeも始めました→
2008-03-31(Mon) VMware Server 1.0.5上のiTuneでiPodを接続できるようにLinux Kernel 2.6.24にパッチする [長年日記]
■ [VMware][Debian][iPod]VMware Server 1.0.5上のiTuneでiPodを接続できるようにLinux Kernel 2.6.24にパッチする
Debian Linux 4.0(etch)で動かしているVMWare Server 1.0.5上でゲストOS Windows XPでiTunesてiPodとの同期をしようとすると、USBの認識がうまく行かず、あいかわらず接続できない。
いつものように、2007年6月14日の日記を参考にkernelにpatchを当てる。
$ sudo apt-get build-dep linux-image-amd64
$ apt-get source linux-image-2.6.24-1-amd64
$ cd linux-2.6-*/drivers/usb/c
$ vi driver.c
以下のような修正をして
$ diff -u driver.c.org driver.c
--- driver.c.org 2008-01-25 07:58:37.000000000 +0900
+++ driver.c 2008-03-30 15:42:43.000000000 +0900
@@ -262,10 +262,12 @@
driver->disconnect(intf);
+#if 0 /* iPod Connect from VMWare Guest OS */
/* reset other interface state */
usb_set_interface(interface_to_usbdev(intf),
intf->altsetting[0].desc.bInterfaceNumber,
0);
+#endif
usb_set_intfdata(intf, NULL);
$ cd ../../..
$ debchange -i
バージョンに追記
$ dpkg-buildpackage -us -uc -rfakeroot
--途中略--
This target is made to fail intentionally, to make sure
that it is NEVER run during the automated build. Please
ignore the following error, the debian/control file has
been generated SUCCESSFULLY.
exit 1
make[1]: *** [debian/control-real] エラー 1
make[1]: ディレクトリ `/home/mirara/tkyn/sys/Kenel/linux-2.6-2.6.24' から出ます
make: *** [debian/control] エラー 2
なんてなるので再度
$ dpkg-buildpackage -us -uc -rfakeroot
|