Chinaunix首页 | 论坛 | 博客
  • 博客访问: 725409
  • 博文数量: 39
  • 博客积分: 10290
  • 博客等级: 上将
  • 技术积分: 1500
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-16 15:05
文章分类
文章存档

2011年(15)

2010年(2)

2009年(8)

2008年(14)

我的朋友

分类: LINUX

2009-05-20 22:28:37

Searching in internet tend to be waste of time as more and more people join into this huge information sea and spread their shit out from their mouth with no scruple. I don't want to strict the spirit of 'share', which be main spirit of internet. I just want to gripe about junk information on internet.

Here I want to backup some tips about using ipod touch in virtualbox which running in linux system.

1. Follwing patch might let your linux host system treat ipod touch more friendly.

diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index de17738..7da2518 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -88,7 +88,7 @@ MODULE_PARM_DESC(usbfs_snoop, "true to log all usbfs traffic")
 #define USB_DEVICE_DEV         MKDEV(USB_DEVICE_MAJOR, 0)
 
 
-#define        MAX_USBFS_BUFFER_SIZE   16384
+#define        MAX_USBFS_BUFFER_SIZE   131072
 
 static inline int connected(struct dev_state *ps)
 {


I __DO__ __NOT__ want to put shits here about how to apply the patch. So, do not ask me.

2. Above patch does no impact on syncing ipod touch in virtualbox at all. So, the first step can be jump over safely. Now the key operation is mount usbfs on /proc/bus/usb. The following sequence should be offer help.

$ sudo su
# echo "none /proc/bus/usb usbfs devmode=664 0 0" >> /etc/fstab
# umount /proc/bus/usb

# mount /proc/bus/usb
# exit


3. That is all. Startup virtualbox and enable USB support in setting of virtual machine. Enjoy.

There are so many shits in internet about 'add usbfs then ... ' or 'add vboxusr then ...'. Fuck, these shits are nothing but wasting time.

And another, such 'add item to fstab then reboot' is dog+bull shits.

At last, virtualbox should be recommended.

阅读(1307) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-12-26 14:51:02

Seems the simplest thing to get rid of all shits is, run virtualbox with 'sudo'. No need to worry about usbfs anymore. Let's living a bit more simple. :-|

chinaunix网友2009-05-22 14:47:17

比较讨厌的是还得改initrd里面的init脚本。否则每次还得手工重新mount usbfs