|
从杭州莱顿公司新买的44b0板子,有两个串口,串口1作终端(可用),串口2作数据传输用,但是串口2接受不到信息,同时我注意到,ls -l /dev时,情况如下:
crw------- 1 0 0 5, 0 Jan 1 00:06 console
crw------- 1 0 0 5, 0 Jan 1 00:00 cua0
crw------- 1 0 0 5, 0 Jan 1 00:00 cua1
crw------- 1 0 0 1, 0 Jan 1 00:00 kmem
crw------- 1 0 0 1, 0 Jan 1 00:00 mem
crw------- 1 0 0 1, 0 Jan 1 00:00 null
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp0
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp1
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp2
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp3
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp4
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp5
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp6
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp7
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp8
crw------- 1 0 0 2, 0 Jan 1 00:00 ptyp9
crw------- 1 0 0 2, 0 Jan 1 00:00 ptypa
crw------- 1 0 0 2, 0 Jan 1 00:00 ptypb
crw------- 1 0 0 2, 0 Jan 1 00:00 ptypc
crw------- 1 0 0 2, 0 Jan 1 00:00 ptypd
crw------- 1 0 0 2, 0 Jan 1 00:00 ptype
crw------- 1 0 0 2, 0 Jan 1 00:00 ptypf
brw------- 1 0 0 1, 0 Jan 1 00:00 ram0
brw------- 1 0 0 1, 0 Jan 1 00:00 ram1
crw------- 1 0 0 1, 0 Jan 1 00:00 random
brw------- 1 0 0 31, 0 Jan 1 00:00 rom0
brw------- 1 0 0 31, 0 Jan 1 00:00 rom1
brw------- 1 0 0 31, 0 Jan 1 00:00 rom2
brw------- 1 0 0 31, 0 Jan 1 00:00 rom3
brw------- 1 0 0 31, 0 Jan 1 00:00 rom4
brw------- 1 0 0 31, 0 Jan 1 00:00 rom5
brw------- 1 0 0 31, 0 Jan 1 00:00 rom6
brw------- 1 0 0 31, 0 Jan 1 00:00 rom7
brw------- 1 0 0 31, 0 Jan 1 00:00 rom8
brw------- 1 0 0 31, 0 Jan 1 00:00 rom9
crw------- 1 0 0 5, 0 Jan 1 00:00 tty
crw------- 1 0 0 4, 0 Jan 1 00:00 tty0
crw------- 1 0 0 4, 0 Jan 1 00:00 tty1
crw------- 1 0 0 4, 0 Jan 1 00:00 tty2
crw------- 1 0 0 4, 0 Jan 1 00:00 tty3
crw------- 1 0 0 4, 0 Jan 1 00:00 ttyS0
crw------- 1 0 0 4, 0 Jan 1 00:00 ttyS1
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp0
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp1
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp2
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp3
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp4
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp5
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp6
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp7
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp8
crw------- 1 0 0 3, 0 Jan 1 00:00 ttyp9
crw------- 1 0 0 3, 0 Jan 1 00:00 ttypa
crw------- 1 0 0 3, 0 Jan 1 00:00 ttypb
crw------- 1 0 0 3, 0 Jan 1 00:00 ttypc
crw------- 1 0 0 3, 0 Jan 1 00:00 ttypd
crw------- 1 0 0 3, 0 Jan 1 00:00 ttype
crw------- 1 0 0 3, 0 Jan 1 00:00 ttypf
crw------- 1 0 0 1, 0 Jan 1 00:00 urandom
crw------- 1 0 0 1, 0 Jan 1 00:00 zero
////////////////////////////////////////////////////////////
从设备号均为0,这是什么原因?(uClinux没有改动,我猜可能是由于从设备号无法辨识而导致串口2失效),下面是板子启动信息:
////////////////////////////////////////////////////////////
Starting kernel ...
Linux version 2.4.24-uc0 (root@hanghaiyu) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net7
Processor: Samsung S3C44B0X revision 0
Architecture: S3C44B0X
On node 0 totalpages: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0 init=/linuxrc
Calibrating delay loop... 23.85 BogoMIPS
Memory: 8MB = 8MB total
Memory: 5124KB available (2718K code, 170K data, 44K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
ttyS0 at I/O 0x1d00000 (irq = 3) is a S3C44B0
ttyS1 at I/O 0x1d04000 (irq = 2) is a S3C44B0
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x6000000:NE2000 driver modified by http://www.21spacetime.net
00 49 34 00 00 00
eth0: NE2000 found at 0x6000000, using IRQ 24
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: C0F4FE8-C2BABE7 [VIRTUAL C0F4FE8-C2BABE7] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
ipddp.c:v0.01 8/28/97 Bradford W. Johnson
ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
Linux IP multicast router 0.06 plus PIM-SM
NET4: Linux IPX 0.47 for NET4.0
IPX Portions Copyright (c) 1995 Caldera, Inc.
IPX Portions Copyright (c) 2000, 2001 Conectiva, Inc.
NET4: AppleTalk 0.18a for Linux NET4.0
802.1Q VLAN Support v1.8 Ben Greear
Other stuff added by David S. Miller
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 44K
Shell invoked to run file: /etc/rc
Command: hostname Samsung
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: /bin/expand /etc/ramfs2048.img /dev/ram1
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram1 /ramdisk
mount: Mounting /dev/ram1 on /ramdisk failed: No such file or directory
pid 13: failed 256
Command: chmod 777 /ramdisk
/ramdisk: No such file or directory
Command: mkdir /var/config
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: ifconfig eth0 192.168.0.28 netmask 255.255.255.0 up
Command: cat /etc/motd
Welcome to
____ _ _
/ __| ||_|
_ _| | | | _ ____ _ _ _ _
| | | | | | || | _ \| | | |\ \/ /
| |_| | |__| || | | | | |_| |/ \
| ___\____|_||_|_| |_|\____|\_/\_/
| |
|_|
For further information check:
http://www.uclinux.org/
Command:
Execution Finished, Exiting
init: exec rc failed
init: /bin/firewall failed!init: exec rc failed
Sash command shell (version 1.1.1)
//////////////////////////////////////////////////
小弟学习嵌入式开发不久,望各位大哥指条明路。
|
|