嵌入式爱好者

查看: 10785|回复: 4

[Linux] 4G闪存的6410-A使用使用上网卡上网

[复制链接]

4

主题

10

帖子

21

积分

扫一扫,手机访问本帖
发表于 2014-10-31 09:22:09 | 显示全部楼层 |阅读模式

大家好,这里有一块6410-a的板子,4g闪存,我在3.0.1内核源码的/driver/usb/serial/option.c中加入usb上网卡的产品号和厂商号之后编译下载启动,有时会出现/dev/ttyUSB0到ttyUSB4这5个节点,有时没有(很蛋疼)。就算是出现之后也不正常,还没拨号就会有无数个-84 和-71的错误码。在2440的2.6.28.7上面是可以用的,但是闪存太小,这个如何破?谢谢啦
  1. yaffs: dev is 32505858 name is "mtdblock2" rw
  2. yaffs: passed flags ""
  3. usb 1-1: not running at top speed; connect to a high speed hub
  4. usb 1-1: New USB device found, idVendor=05c6, idProduct=9025
  5. usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  6. usb 1-1: Manufacturer: Android
  7. usb 1-1: SerialNumber: 0123456789ABCDEF
  8. option 1-1:1.0: GSM modem (1-port) converter detected
  9. usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
  10. option 1-1:1.1: GSM modem (1-port) converter detected
  11. usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
  12. option 1-1:1.2: GSM modem (1-port) converter detected
  13. usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
  14. option 1-1:1.3: GSM modem (1-port) converter detected
  15. usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
  16. option 1-1:1.4: GSM modem (1-port) converter detected
  17. usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
  18. option: option_instat_callback: error -84
  19. option: option_instat_callback: error -84
  20. option: option_instat_callback: error -84
  21. option: option_instat_callback: error -84
  22. option: option_instat_callback: error -84
  23. option: option_instat_callback: error -84
  24. option: option_instat_callback: error -84
  25. option: option_instat_callback: error -84
  26. option: option_instat_callback: error -84
  27. option: option_instat_callback: error -84
  28. option: option_instat_callback: error -84
  29. option: option_instat_callback: error -84
  30. option: option_instat_callback: error -84
  31. option: option_instat_callback: error -84
  32. option: option_instat_callback: error -84
  33. option: option_instat_callback: error -84
  34. option: option_instat_callback: error -84
  35. option: option_instat_callback: error -84
  36. option: option_instat_callback: error -84
  37. option: option_instat_callback: error -84
  38. option: option_instat_callback: error -84
  39. option: option_instat_callback: error -84
  40. option: option_instat_callback: error -84
  41. option: option_instat_callback: error -84
  42. option: option_instat_callback: error -84
  43. option: option_instat_callback: error -84
  44. option: option_instat_callback: error -84
  45. option: option_instat_callback: error -84
  46. option: option_instat_callback: error -84
  47. option: option_instat_callback: error -71
复制代码
回复

使用道具 举报

4

主题

10

帖子

21

积分

 楼主| 发表于 2014-10-31 09:37:50 | 显示全部楼层
现在就是想让这个4g NandFlash的板子能用vendor=0x05c6 product=0x9025的上网卡上网,3.0.1内核会弹错,option_instat_callback 这个是内核/driver/usb/serial/option.c中的一个函数。
点评回复 支持 反对

使用道具 举报

4

主题

10

帖子

21

积分

 楼主| 发表于 2014-10-31 09:40:30 | 显示全部楼层
在2440的2.6.28.7内核上该上网卡是可以用的,拨号没问题,跑起来很稳定。
点评回复 支持 反对

使用道具 举报

4

主题

10

帖子

21

积分

 楼主| 发表于 2014-10-31 11:55:08 | 显示全部楼层
本帖最后由 光与存在 于 2014-10-31 13:08 编辑

该问题总算有了点眉目,在国外的论坛看到了相似的问题,http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=410打开该链接需要翻墙的哦,简单粗暴的方法是下载个“自由门”。下面摘录两段与大家分享。

Josh:
  1. There are Huawei problems introduced with the kernel series you use, due to a firmware bug. But they affected mostly the storage inte**ces of the switched devices, in many cases causing a reset which switched the whole thing back into the initial mode.

  2. If that is the cause of your trouble - which I'm not entirely certain of - you could remove the usb-storage driver (after unmounting any automounted devices) and see if that helps. If so, look for a kernel above 2.6.31.5 where a workaround for the problem was included.
复制代码
Josh:
  1. This is plain wrong, unfortunately. The example being the Huawei problem with kernel 2.6.32. It is a firmware bug that was not exposed on Windows and on Linux versions before; but when the storage driver was aligned with the official USB specification a little more strictly, the bug hit.

  2. So, "working on Windows" is indeed no qualification for "bugfree".
复制代码
翻译一下第二段,大家不要莫笑我:
不幸的是,这(指下面的英文)是完全错误的。华为在2.6.32内核上的问题就是一个例子(弹出错误-71或-84),这是一个在Windows和以前版本的linux上不会暴露的固件(和我以前理解的”固件“二字不大一样哎)bug;但是当存储驱动程序与USB的官方规范更吻合,bug显露了。
  1. dchard wrote:
  2. The firmware/hardware failures can be excluded because these devices are working fine on windows.
复制代码
点评回复 支持 反对

使用道具 举报

4

主题

10

帖子

21

积分

 楼主| 发表于 2014-10-31 14:26:00 | 显示全部楼层
那么问题来了,现在要让2.6.28的内核跑在这个4g闪存的板子上,我按照2.6.28的使用手测制作了sd卡,但是烧写的时候没有成功,记得提示是没找到设备,意思是这个内核不支持4G闪存的这个板子吗?修改一下可以成功吗?在看尝试中。哪位大神给点建议呀,不胜感激。。。。。。。。。。。。。。。
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2025-3-14 21:14

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表