- 论坛徽章:
- 0
|
因为最近想在utu2440上测试zd1211b usb wifi的稳定性, 先把zd1211b和wireless tools移植到ARM开发板上, 编译kernel时把cifs选项配上, 当执行以下命令时:
[root@utu-linux /tudouren]# mount -t cifs //192.168.0.111/pub dir1 -o username=nobody
报错:
CIFS VFS: Length less than smb header size
CIFS VFS: bad smb detected. Illegal length. The mid=5
CIFS VFS: Bad SMB Received
CIFS VFS: No response buffer
google了一下,发现是cifs的一个bug, utu2440最初提供的是(kernel-2.6.14, cifs 1.34),
MS在cifs 1.37 fix了,但因为另外一个项目的kernel已经打过patch了,所以直接替换, 稍作修改,编译后就OK了。
以下是patch文件:
http://blogimg.chinaunix.net/blog/upfile2/081018174630.gz
cd fs
patch -N1 ./cifs.diff
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/75705/showart_1328142.html |
|