# ls /proc
1 147 3 440 597 cmdline fs loadavg scsi umap vmstat
1033 149 324 441 6 consoles graphics locks self uptime zoneinfo
1034 150 341 451 609 cpu interrupts media-mem slabinfo version
1143 152 357 456 658 cpuinfo iomem meminfo softirqs vfmw
1162 158 358 461 661 crypto ioports misc stat vfmw_chn
1163 169 359 466 663 devices irq modules sys vfmw_dbg
1165 181 360 471 679 diskstats kallsyms mounts sysrec vfmw_dec
1166 182 361 476 7 driver key-users mtd sysvipc vfmw_dnr
1171 2 4 5 8 execdomains kmsg net timer_list vfmw_prn
1183 264 434 507 buddyinfo fb kpagecount pagetypeinfo tnk vfmw_scd
1186 270 437 513 bus filesystems kpageflags partitions tty vmallocinfo
# ls /proc/tty
driver drivers ldisc ldiscs
# ls /proc/tty/driver
ttyAMA
# ls /proc/tty/driver/ttyAMA
/proc/tty/driver/ttyAMA
# ls /proc/tty/driver/ttyAMA -al
-r--r--r-- 1 root root 0 Jul 22 09:12 /proc/tty/driver/ttyAMA
# cat /proc/tty/driver/ttyAMA
serinfo:1.0 driver revision:
0: uart:PL011 rev2 mmio:0x20080000 irq:40 tx:87763 rx:0 RTS|CTS|DTR|DSR|CD|RI
1: uart:PL011 rev2 mmio:0x20090000 irq:41 tx:0 rx:0 DSR|CD|RI
# dmesg | grep tty*
Kernel command line: mem=208M console=ttyAMA0,115200 ip=192.168.1.10::192.168.1.1:255.255.255.0:localhost:eth0:off root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),16M(rootfs),9M(app),1536K(config),512K(logo)
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
SGI XFS with security attributes, large block/inode numbers, no debug enabled
ata1.00: hard resetting link
ata1.01: hard resetting link
ata1.02: hard resetting link
ata1.03: hard resetting link
ata1.04: hard resetting link
ata2.00: hard resetting link
ata2.01: hard resetting link
ata2.02: hard resetting link
ata2.03: hard resetting link
ata2.04: hard resetting link
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Attached SCSI disk
阅读(4795) | 评论(0) | 转发(0) |