{请教}嵌入式实战第一关,usb转串口线的使用问题

64 views
Skip to first unread message

战斗暴龙

unread,
Mar 20, 2009, 12:53:03 AM3/20/09
to 嵌入式Linux
我的主机是fedora 10,
开发版是华恒的HHARM9-EDU.
笔记本是Dell Inspiron 640m
USB转串口线是pl2303芯片的

我看上去问题比较奇怪,有四个usb接口,其中一个是鼠标。随便选了一个连接到开发版上的。
然后dmesg得到消息说那个玩意已经被附加到/dev/ttyUSB0上,该文件也确实存在,做了一些设置,但是测试时minicom没有任何输
出。
用虚拟机的windows串口映射到/dev/ttyUSB0.保存超级终端设置时提示“无法设置ttyUSB0”。查看log得到一大堆Input/
Output Error。

然后更郁闷。重启电脑后就找不到usb串口了,dmesg得到一堆:hub 5-0:1.0: unable to enumerate USB
device on port 2

晕死,今天几个usb接口都能正常工作了,就是说,/dev/ttyUSB0存在是稳定的“可插拔”的。
而且,在启动minicom确实会有些输出,
但是很奇怪,看不出来这写输出有什么价值。而且大多数情况都只出现一行,除此之外所有按键都没反应(除了minicom自己的组合快捷键)

常见的输出有:
7BCD;>等单个字母重复直到一行结束。
行如ozo、#+$#这样的序列重复出现直到一行结束。
乱码,无论LC_CTYPE是zh_CN.utf-8还是en_US.utf-8都是如此,这个输出可能超过1行但不会多余3行

这些输出往往出现在启动minicom并且开发版复位后
偶尔关开发版电源会导致minicom多输出一些乱码。

求教上述问题的解决方案,或者提供思路。

战斗暴龙

unread,
Mar 20, 2009, 12:56:12 AM3/20/09
to 嵌入式Linux
补充说明:
搜索了很多东西,但是大多数都是重复的转载。
然后很多都是在虚拟机里弄的,windows宿主机的那种,虚拟串口很容易映射到物理或usb串口上。
但是我只有linux,
而且也没有确切的方式来证明此连接线本身是优质的,如果有方法能检测我到愿意自费买个好点的。

谢谢

exodus

unread,
Mar 20, 2009, 1:09:57 AM3/20/09
to 嵌入式Linux
在淘宝买了个openjtag(usb <-> jtag, usb <-> serial)
调试是使用openjtag + openocd,windowls/linux(ubuntu)都没问题,一切正常。

不放可以考虑下。我的是三星的2440。

居振梁

unread,
Mar 20, 2009, 1:27:44 AM3/20/09
to embedded-l...@googlegroups.com
谢谢你的分享!
openocd是软件吗?

2009/3/20 exodus <gxu...@gmail.com>

在淘宝买了个openjtag(usb <-> jtag, usb <-> serial)
调试是使用openjtag + openocd,windowls/linux(ubuntu)都没问题,一切正常。

不放可以考虑下。我的是三星的2440。



--
自学走了不少弯路,更浪费了太多的时间,寻找良师益友。
追求黑客精神和清心寡欲的心态。
技术博客:http://wargrey.yo2.cn
英文博客:http://wargrey.blogspot.com
琐事日记:http://www.douban.com/people/wargrey/notes
研究方向:人工智能、Unix/GNU Linux、移动计算、虚拟化
其他兴趣:数学、物理、心理学、武术、自然语言

windstorm

unread,
Mar 20, 2009, 2:11:29 AM3/20/09
to embedded-l...@googlegroups.com
http://openocd.berlios.de/web/

----------------------------------------------------------------------------------
Yours Sincerely
Kun

www.forwind.cn
http://twitter.com/lk_517


2009/3/19 居振梁 <juzhe...@gmail.com>:

adam

unread,
Mar 20, 2009, 2:13:53 AM3/20/09
to embedded-l...@googlegroups.com
1. 你的minicom的设置是?
串口设备端口:?
串口设备速度:?
hard flow control: ?
soft flow control: ?

2. 你的开发板(target)和工作站之间的连接方式,能不能再具体些?开发板连接
到工作站之前和之后,查看/dev/ttyUSBx和/dev/ttyACM设备是否存在,把结果贴
上来。

3. 连接前和连接后的lsusb 把结果贴上来

--
Adam

adam

unread,
Mar 20, 2009, 2:17:37 AM3/20/09
to embedded-l...@googlegroups.com
恩,这个东西是需要的,如果要进行USB到串口连接的方式通信的话。

居振梁

unread,
Mar 20, 2009, 2:46:52 AM3/20/09
to embedded-l...@googlegroups.com
2009/3/20 adam <jiang...@gmail.com>

1. 你的minicom的设置是?
 串口设备端口:?
 串口设备速度:?
 hard flow control: ?
 soft flow control: ?

端口:
/dev/ttyUSB0, usb那端依次尝试了每一个usb接口,无论哪个端口在dmesg里都显示类似下面的信息:
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
usb 4-1: pl2303 converter now attached to ttyUSB0

(minicom设置里也换过ttyS*)

刚刚执行dmesg又多了很多之前没有的东西:
------------[ cut here ]------------                                                                                                                         
WARNING: at drivers/usb/serial/usb-serial.c:311 serial_write+0x61/0x7f [usbserial]() (Tainted: G    W)                                                   
Hardware name: MXC061                                                                                                                                        
Modules linked in: pl2303 usbserial cdc_acm usb_storage cdc_wdm fuse i915 drm vmnet ppdev parport_pc parport vmblock vmci vmmon coretemp hwmon sunrpc ipv6 cpufreq_ondemand acpi_cpufreq dm_multipath uinput snd_hda_intel snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device arc4 snd_pcm_oss ecb snd_mixer_oss crypto_blkcipher dcdbas sdhci_pci snd_pcm i2c_i801 firewire_ohci iTCO_wdt sdhci firewire_core iTCO_vendor_support snd_timer b44 i2c_core pcspkr ricoh_mmc mmc_core iwl3945 ssb snd_page_alloc crc_itu_t joydev rfkill mii snd_hwdep video mac80211 snd soundcore output cfg80211 wmi ata_generic pata_acpi [last unloaded: microcode]
Pid: 10, comm: events/1 Tainted: G        W 2.6.27.19-170.2.35.fc10.i686 #1
 [<c042dd93>] warn_on_slowpath+0x65/0x8b
 [<c04323d9>] ? irq_exit+0x5f/0x83
 [<c0406e8e>] ? do_IRQ+0xe7/0xfe
 [<c051ff6c>] ? trace_hardirqs_on_thunk+0xc/0x10
 [<c0404cd7>] ? restore_nocheck_notrace+0x0/0xe
 [<c04300d8>] ? wait_consider_task+0x44c/0x8e4
 [<f9139381>] ? pl2303_send+0x112/0x1cd [pl2303]
 [<f91396a7>] ? pl2303_write+0x128/0x132 [pl2303]
 [<f92014dd>] serial_write+0x61/0x7f [usbserial]
 [<c0571bea>] tty_put_char+0x26/0x2a
 [<c0576d2a>] n_tty_receive_buf+0xc1d/0xf1f
 [<c041fba4>] ? update_curr+0x8d/0xf0
 [<c0422674>] ? dequeue_entity+0x15/0x13a
 [<c0422b78>] ? dequeue_task_fair+0x3d/0x42
 [<c04036bf>] ? __switch_to+0xb9/0x139
 [<c042aff3>] ? finish_task_switch+0x2f/0xb0
 [<c0577e0b>] ? tty_ldisc_try+0x3b/0x42
 [<c0572454>] flush_to_ldisc+0xf7/0x198
 [<c043c0b1>] run_workqueue+0x89/0x113
 [<c057235d>] ? flush_to_ldisc+0x0/0x198
 [<c043c207>] worker_thread+0xcc/0xd8
 [<c043ef62>] ? autoremove_wake_function+0x0/0x33
 [<c043c13b>] ? worker_thread+0x0/0xd8
 [<c043ecbf>] kthread+0x3b/0x61
 [<c043ec84>] ? kthread+0x0/0x61
 [<c040590b>] kernel_thread_helper+0x7/0x10
 =======================
---[ end trace ed9353fe451dc52a ]---

设备速率,我得到的资料上说是115200 8N1
我自己每个都试了,并没有发现明显的不同。

 hard flow control和soft flow control也都试了Yes和No的情况,也没有明显的不同。
都是那些看起来很无里头的输出。

还有一个细节,除了这些输出只在reset开发版的时候出现外。
如果开发板重置后,我再关掉它的电源,再打开minicom,仍然会有类似的输出。

不断的关闭打开minicom,这些输出总是在前几次发生,以后就没反应了。



2. 你的开发板(target)和工作站之间的连接方式,能不能再具体些?开发板连接
到工作站之前和之后,查看/dev/ttyUSBx和/dev/ttyACM设备是否存在,把结果贴
上来。

连接很简单,就是开发板的串口和usb转串口线连接,在与我的电脑连接。
这个连接方式也在装有windows台式机上测试过,超级终端输出一堆乱码(看上去像“胡子连着辫子的繁体字”那种),虚拟机的rh9没反应。那机子不是我的,那人也是刚开发学嵌入式,他之前也没接触过linux,就没做太多尝试来打扰他。(开发板的操作手册建议用rh9做主机)。

连接前,ls -s /dev | grep tty 只有
crw-rw-rw-  1 root    tty    5,   2 2009-03-20 14:40 ptmx
crw-------  1 root    root   4,   0 2009-03-20 16:02 systty
crw-rw-rw-  1 root    tty    5,   0 2009-03-20 16:02 tty  
crw--w----  1 root    root   4,   0 2009-03-20 16:02 tty0 
crw--w----  1 root    root   4,   1 2009-03-20 16:02 tty1 
crw--w----  1 root    tty    4,  10 2009-03-20 16:02 tty10
crw--w----  1 root    tty    4,  11 2009-03-20 16:02 tty11
crw--w----  1 root    tty    4,  12 2009-03-20 16:02 tty12
crw--w----  1 root    tty    4,  13 2009-03-20 16:02 tty13
crw--w----  1 root    tty    4,  14 2009-03-20 16:02 tty14
crw--w----  1 root    tty    4,  15 2009-03-20 16:02 tty15
crw--w----  1 root    tty    4,  16 2009-03-20 16:02 tty16
crw--w----  1 root    tty    4,  17 2009-03-20 16:02 tty17
crw--w----  1 root    tty    4,  18 2009-03-20 16:02 tty18
crw--w----  1 root    tty    4,  19 2009-03-20 16:02 tty19
crw-------  1 root    root   4,   2 2009-03-20 08:03 tty2 
crw--w----  1 root    tty    4,  20 2009-03-20 16:02 tty20
crw--w----  1 root    tty    4,  21 2009-03-20 16:02 tty21
crw--w----  1 root    tty    4,  22 2009-03-20 16:02 tty22
crw--w----  1 root    tty    4,  23 2009-03-20 16:02 tty23
crw--w----  1 root    tty    4,  24 2009-03-20 16:02 tty24
crw--w----  1 root    tty    4,  25 2009-03-20 16:02 tty25
crw--w----  1 root    tty    4,  26 2009-03-20 16:02 tty26
crw--w----  1 root    tty    4,  27 2009-03-20 16:02 tty27
crw--w----  1 root    tty    4,  28 2009-03-20 16:02 tty28
crw--w----  1 root    tty    4,  29 2009-03-20 16:02 tty29
crw-------  1 root    root   4,   3 2009-03-20 08:03 tty3 
crw--w----  1 root    tty    4,  30 2009-03-20 16:02 tty30
crw--w----  1 root    tty    4,  31 2009-03-20 16:02 tty31
crw--w----  1 root    tty    4,  32 2009-03-20 16:02 tty32
crw--w----  1 root    tty    4,  33 2009-03-20 16:02 tty33
crw--w----  1 root    tty    4,  34 2009-03-20 16:02 tty34
crw--w----  1 root    tty    4,  35 2009-03-20 16:02 tty35
crw--w----  1 root    tty    4,  36 2009-03-20 16:02 tty36
crw--w----  1 root    tty    4,  37 2009-03-20 16:02 tty37
crw--w----  1 root    tty    4,  38 2009-03-20 16:02 tty38
crw--w----  1 root    tty    4,  39 2009-03-20 16:02 tty39
crw-------  1 root    root   4,   4 2009-03-20 08:03 tty4 
crw--w----  1 root    tty    4,  40 2009-03-20 16:02 tty40
crw--w----  1 root    tty    4,  41 2009-03-20 16:02 tty41
crw--w----  1 root    tty    4,  42 2009-03-20 16:02 tty42
crw--w----  1 root    tty    4,  43 2009-03-20 16:02 tty43
crw--w----  1 root    tty    4,  44 2009-03-20 16:02 tty44
crw--w----  1 root    tty    4,  45 2009-03-20 16:02 tty45
crw--w----  1 root    tty    4,  46 2009-03-20 16:02 tty46
crw--w----  1 root    tty    4,  47 2009-03-20 16:02 tty47
crw--w----  1 root    tty    4,  48 2009-03-20 16:02 tty48
crw--w----  1 root    tty    4,  49 2009-03-20 16:02 tty49
crw-------  1 root    root   4,   5 2009-03-20 08:03 tty5 
crw--w----  1 root    tty    4,  50 2009-03-20 16:02 tty50
crw--w----  1 root    tty    4,  51 2009-03-20 16:02 tty51
crw--w----  1 root    tty    4,  52 2009-03-20 16:02 tty52
crw--w----  1 root    tty    4,  53 2009-03-20 16:02 tty53
crw--w----  1 root    tty    4,  54 2009-03-20 16:02 tty54
crw--w----  1 root    tty    4,  55 2009-03-20 16:02 tty55
crw--w----  1 root    tty    4,  56 2009-03-20 16:02 tty56
crw--w----  1 root    tty    4,  57 2009-03-20 16:02 tty57
crw--w----  1 root    tty    4,  58 2009-03-20 16:02 tty58
crw--w----  1 root    tty    4,  59 2009-03-20 16:02 tty59
crw-------  1 root    root   4,   6 2009-03-20 08:03 tty6 
crw--w----  1 root    tty    4,  60 2009-03-20 16:02 tty60
crw--w----  1 root    tty    4,  61 2009-03-20 16:02 tty61
crw--w----  1 root    tty    4,  62 2009-03-20 16:02 tty62
crw--w----  1 root    tty    4,  63 2009-03-20 16:02 tty63
crw--w----  1 root    tty    4,   7 2009-03-20 16:02 tty7 
crw--w----  1 root    tty    4,   8 2009-03-20 16:02 tty8 
crw--w----  1 root    tty    4,   9 2009-03-20 16:02 tty9 
crw-rw----  1 root    uucp   4,  64 2009-03-20 16:02 ttyS0
crw-rw----  1 root    uucp   4,  65 2009-03-20 16:02 ttyS1
crw-rw----  1 root    uucp   4,  66 2009-03-20 16:02 ttyS2
crw-rw----  1 root    uucp   4,  67 2009-03-20 16:02 ttyS3

crw-rw----  1 vcsa    tty    7,   0 2009-03-20 16:02 vcs
crw-rw----  1 vcsa    tty    7,   1 2009-03-20 16:02 vcs1
crw-rw----  1 vcsa    tty    7,   2 2009-03-20 08:03 vcs2
crw-rw----  1 vcsa    tty    7,   3 2009-03-20 08:03 vcs3
crw-rw----  1 vcsa    tty    7,   4 2009-03-20 08:03 vcs4
crw-rw----  1 vcsa    tty    7,   5 2009-03-20 08:03 vcs5
crw-rw----  1 vcsa    tty    7,   6 2009-03-20 08:03 vcs6
crw-rw----  1 vcsa    tty    7, 128 2009-03-20 16:02 vcsa
crw-rw----  1 vcsa    tty    7, 129 2009-03-20 16:02 vcsa1
crw-rw----  1 vcsa    tty    7, 130 2009-03-20 08:03 vcsa2
crw-rw----  1 vcsa    tty    7, 131 2009-03-20 08:03 vcsa3
crw-rw----  1 vcsa    tty    7, 132 2009-03-20 08:03 vcsa4
crw-rw----  1 vcsa    tty    7, 133 2009-03-20 08:03 vcsa5
crw-rw----  1 vcsa    tty    7, 134 2009-03-20 08:03 vcsa6

连接后多了个
crw-rw----  1 root    uucp 188,   0 2009-03-20 14:22 ttyUSB0
(偶尔会多出个ttyUSB1)

还有个小插曲,就是昨天不管接在哪个usb接口上,都有两种情况:
1. ttyUSB0只存在一小会,能打开minicom,紧接着关闭它,ttyUSB0就没了。
2. ttyUSB0干脆就不出现,即使 mknod /dev/ttyUSB0 c 188 [0-3]出现了,minicom也提示没有这个设备

 

3. 连接前和连接后的lsusb 把结果贴上来


连接前:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0461:4d15 Primax Electronics, Ltd Dell Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

连接后:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 004 Device 002: ID 0461:4d15 Primax Electronics, Ltd Dell Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

(lsmod | grep pl2303输出)
pl2303                 18564  1
usbserial              30124  3 pl2303


谢谢

居振梁

unread,
Mar 20, 2009, 2:50:46 AM3/20/09
to embedded-l...@googlegroups.com
补充一点,setserial /dev/ttyUSB0 -a得到
Cannot get serial info: Invalid argument


出现ttyUSB1的原因可能是因为minicom没有关,导致ttyUSB0一直存在

adam

unread,
Mar 20, 2009, 7:19:47 AM3/20/09
to embedded-l...@googlegroups.com
这里的msg看,kernel中与你的开发板连接设备的驱动模块似乎有问题了。在此之
前,你有没有成功连接过?能不能说一下你的开发板的型号?

>
> 设备速率,我得到的资料上说是115200 8N1
> 我自己每个都试了,并没有发现明显的不同。
>
> hard flow control和soft flow control也都试了Yes和No的情况,也没有明显的不同。
> 都是那些看起来很无里头的输出。
>
> 还有一个细节,除了这些输出只在reset开发版的时候出现外。
> 如果开发板重置后,我再关掉它的电源,再打开minicom,仍然会有类似的输出。
>
> 不断的关闭打开minicom,这些输出总是在前几次发生,以后就没反应了。

有输出是正常的,这些应该都和你遇到的问题没有关系了,忽略之。


>
>
>
> > 2. 你的开发板(target)和工作站之间的连接方式,能不能再具体些?开发板连接
> > 到工作站之前和之后,查看/dev/ttyUSBx和/dev/ttyACM设备是否存在,把结果贴
> > 上来。
>
>
> 连接很简单,就是开发板的串口和usb转串口线连接,在与我的电脑连接。
> 这个连接方式也在装有windows台式机上测试过,超级终端输出一堆乱码(看上去像“胡子连着辫子的繁体字”那种),虚拟机的rh9没反应。那机子不是我的,那人也是刚开发学嵌入式,他之前也没接触过linux,就没做太多尝试来打扰他。(开发板的操作手册建议用rh9做主机)。
>
> 连接前,ls -s /dev | grep tty 只有
>

> 连接后多了个
> crw-rw---- 1 root uucp 188, 0 2009-03-20 14:22 ttyUSB0
> (偶尔会多出个ttyUSB1)
>
> 还有个小插曲,就是昨天不管接在哪个usb接口上,都有两种情况:
> 1. ttyUSB0只存在一小会,能打开minicom,紧接着关闭它,ttyUSB0就没了。
> 2. ttyUSB0干脆就不出现,即使 mknod /dev/ttyUSB0 c 188 [0-3]出现了,minicom也提示没有这个设备

在这里mknod是没有用的,因为这个node是驱动自动创建的,前面的消息里已经看
到驱动模块没有被正确地load。而且还有被unload的现象。


> >
> > 3. 连接前和连接后的lsusb 把结果贴上来
> >
> >
> 连接前:
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 Device 002: ID 0461:4d15 Primax Electronics, Ltd Dell Optical Mouse
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>
> 连接后:
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

> *Bus 004 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial
> Port*


> Bus 004 Device 002: ID 0461:4d15 Primax Electronics, Ltd Dell Optical Mouse
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>
> (lsmod | grep pl2303输出)
> pl2303 18564 1
> usbserial 30124 3 pl2303

usb上已经正确的识别你的设备了。这个应该没有问题。忽略之。

现在问题是,fedora的驱动模块似乎不能正确认识你的开发板。从USB的信息搜索
了一下,我得到这个。
http://www.prolific.com.tw/eng/downloads.asp?ID=31

是否跟你的设备有关?是否对你的设备有用?

--
Adam

adam

unread,
Mar 20, 2009, 7:20:36 AM3/20/09
to embedded-l...@googlegroups.com
把minicom给kill掉。把问题理清楚。

居振梁

unread,
Mar 20, 2009, 8:27:14 AM3/20/09
to embedded-l...@googlegroups.com
非常感谢你,adam。
你在tl也是这个名字吗?

2009/3/20 adam <jiang...@gmail.com>

这里的msg看,kernel中与你的开发板连接设备的驱动模块似乎有问题了。在此之
前,你有没有成功连接过?能不能说一下你的开发板的型号?

这快板重来没在我现有系统上连接过。
一年前连过一块,不计得是不是在自己电脑上了,那时是fedora 8.现在是10.

我的板子是华恒的HHARM9-edu-r3,具我得到的资料看,是S3C2410芯片的。
具体情况我不清楚是因为我做这个只是热身的,后面会换个3G的环境。

 
现在问题是,fedora的驱动模块似乎不能正确认识你的开发板。从USB的信息搜索
了一下,我得到这个。
http://www.prolific.com.tw/eng/downloads.asp?ID=31

是否跟你的设备有关?是否对你的设备有用?

有点明白了,可能是fedora的版本太高了,无论是芯片驱动还是板子的开发商建议系统都是redhat9.
 

居振梁

unread,
Mar 20, 2009, 8:29:09 AM3/20/09
to embedded-l...@googlegroups.com
顺便问一下,一定要通过串口吗,能不能就用网线?

adam

unread,
Mar 20, 2009, 8:47:20 AM3/20/09
to embedded-l...@googlegroups.com
On Fri, Mar 20, 2009 at 08:27:14PM +0800, 居振梁 wrote:
> 非常感谢你,adam。
> 你在tl也是这个名字吗?
不客气。hehe,TopLanguage的那个也是我。:)
The world is small.


> 2009/3/20 adam <jiang...@gmail.com>
>
> > 这里的msg看,kernel中与你的开发板连接设备的驱动模块似乎有问题了。在此之
> > 前,你有没有成功连接过?能不能说一下你的开发板的型号?
>
>
> 这快板重来没在我现有系统上连接过。
> 一年前连过一块,不计得是不是在自己电脑上了,那时是fedora 8.现在是10.
>
> 我的板子是华恒的HHARM9-edu-r3,具我得到的资料看,是S3C2410芯片的。
> 具体情况我不清楚是因为我做这个只是热身的,后面会换个3G的环境。
>
>
>
> > 现在问题是,fedora的驱动模块似乎不能正确认识你的开发板。从USB的信息搜索
> > 了一下,我得到这个。
> > http://www.prolific.com.tw/eng/downloads.asp?ID=31
> >
> > 是否跟你的设备有关?是否对你的设备有用?
> >
>
> 有点明白了,可能是fedora的版本太高了,无论是芯片驱动还是板子的开发商建议系统都是redhat9.
恩,很可能是这个原因。你可以看看相关驱动的更新是不是影响到了一些细节部分
。后面你说到是不是可以用以太网连接,答案是YES。但是连接方法你得自己找找
了。

居振梁

unread,
Mar 20, 2009, 9:11:03 AM3/20/09
to embedded-l...@googlegroups.com
我就是在tl那看到你建了这个列表我才过来的。
接下来我再折腾折腾。

2009/3/20 adam <jiang...@gmail.com>

不客气。hehe,TopLanguage的那个也是我。:)
The world is small.

居振梁

unread,
Mar 22, 2009, 1:40:47 AM3/22/09
to embedded-l...@googlegroups.com
取了个折衷的方法。超级终端在带串口的机器上,交叉开发环境还是我的笔记本,通过网线连接的。
现在有个疑问,串口的本质其实就是一个终端。因此它是开发板与主机交互的首选,那么是否可能通过其他方式达到这个目的呢?
比如开发板上安装了一个telnet服务器,那就不需要串口这样的东西了,但是后来发现不总是合适,比如开发板根本没有启动,或者要执行“烧制”任务就不行了。
有没有什么其他方式能达到上述目的呢?
谢谢


--
自学走了不少弯路,更浪费了太多的时间,寻找良师益友。
追求黑客精神和清心寡欲的心态。
中文博客:http://wargrey.yo2.cn
英文博客:http://wargrey.blogspot.com

adam

unread,
Mar 22, 2009, 1:49:36 AM3/22/09
to embedded-l...@googlegroups.com
其实,相比其他的连接方法,串口连接是比较容易实现而且也很直接的方法。串口
设备的驱动比较容易写,而且通讯的质量和稳定性都是可以达到保障的。所以,很
多调试设备的接口都是用了RS232。内核的kgdb等等,也是串口通讯为出发点的,
虽然后来添加进去了以太网上的调试途径,但是串口还是有其天然优势。

开发版在没有启动或者没有初始化其他的连接设备,比如以太网卡这些东西,之前
,如果它的firmware没有提供其他的借口,可也说串口连接几乎是唯一的方法。

要增加其他连接方法也是可以的,但代价是更大的firmware或者更负责更容易出错
的连接状况出现。

相反,更新一个在工作站上的内核模块比较简单。

居振梁

unread,
Mar 22, 2009, 5:02:36 AM3/22/09
to embedded-l...@googlegroups.com
呵呵,果然还是不可行,不知道为什么现在的笔记本都没有那些接口了,我在等openJTAG,不知怎么到现在还没消息。

谢谢你

2009/3/22 adam <jiang...@gmail.com>

其实,相比其他的连接方法,串口连接是比较容易实现而且也很直接的方法。串口
设备的驱动比较容易写,而且通讯的质量和稳定性都是可以达到保障的。所以,很
多调试设备的接口都是用了RS232。内核的kgdb等等,也是串口通讯为出发点的,
虽然后来添加进去了以太网上的调试途径,但是串口还是有其天然优势。

开发版在没有启动或者没有初始化其他的连接设备,比如以太网卡这些东西,之前
,如果它的firmware没有提供其他的借口,可也说串口连接几乎是唯一的方法。

要增加其他连接方法也是可以的,但代价是更大的firmware或者更负责更容易出错
的连接状况出现。

相反,更新一个在工作站上的内核模块比较简单。

exodus

unread,
Mar 23, 2009, 1:42:45 AM3/23/09
to 嵌入式Linux
不好意思,家里的本本摔了,还在电脑城。也只上班时间在。
另外由于各种原因,还无法订阅maillist。

openocd是软件。相对来说功能很是强大的,结合openjtag使用还是很不错
通过openjtag + openocd,可以调试内核(源码级,这个很是不错)
另,用于分析、调查硬件或固件问题,也很是灵活

On 3月20日, 下午1时27分, 居振梁 <juzhenli...@gmail.com> wrote:
> 谢谢你的分享!
> openocd是软件吗?
>
> 2009/3/20 exodus <gxue...@gmail.com>

居振梁

unread,
Mar 23, 2009, 2:37:28 AM3/23/09
to embedded-l...@googlegroups.com
谢谢你,找人没带到,抽个时间出去跑跑看能不能买到。

其实网购也是可以的,只是怕在我的电脑上设备能力打折。

2009/3/23 exodus <gxu...@gmail.com>

不好意思,家里的本本摔了,还在电脑城。也只上班时间在。
另外由于各种原因,还无法订阅maillist。

openocd是软件。相对来说功能很是强大的,结合openjtag使用还是很不错
通过openjtag + openocd,可以调试内核(源码级,这个很是不错)
另,用于分析、调查硬件或固件问题,也很是灵活

--
自学走了不少弯路,更浪费了太多的时间,寻找良师益友。
追求黑客精神和清心寡欲的心态。
中文博客:http://wargrey.yo2.cn
英文博客:http://wargrey.blogspot.com
Reply all
Reply to author
Forward
0 new messages