おのたく日記 YouTubeも始めました→
2007-05-13(Sun) kernel 2.6.20にupgrade [長年日記]
■ [Debian][Linux]kernel 2.6.20にupgrade
Debian 4.0 etchのBack portにlinux-image 2.6.20がリリースされていたので、upgaradeした。
■ [VMware]kernel 2.6.20だとVMware Server 1.0.3のvmmonがコンパイルできない
/usr/lib/vmware/modules/source/vmmon.tarのvmmon-only/include/compat_kernel.hを
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static inline _syscall1(int, compat_exit, int, exit_code);
+#endif
と修正してとりあえずコンパイル用にした。
参照: カーネルの再構築をして嵌る
■ [iPod]kernel 2.6.20でもVMware上のiTunesからiPodを使えるようにする
3月5日の日記で2.6.18やったときと同様に、kernelにパッチして再コンパイル
# apt-get build-dep linux-image-2.6.20-1-amd64
$ apt-get source linux-image-2.6.20-1-amd64
$ cd linux-2.6-*/drivers/usb/core/
$ cp -p driver.c driver.c.org
$ vi driver.c
+#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
$ cd ../../..
$ debchange -i
バージョンに追記
$ dpkg-buildpackage -us -uc -rfakeroot
|