稍后我写个软蔽神件测试一下,然后再贴出结果
\ | /
- RT - Thread Operating System
/ | \ 1.2.0 build Aug 23 2016
2006 - 2013 Copyright by rt-thread team
----------------------------------------
<boot>Booting...
<袜并档boot>----------- sys info ------------
<boot>rom = 512 KB
<boot>ram = 64 KB @0x20000000
<boot>xram = 512 KB @0x68000000
<boot>heap = 512 KB @0x68000000
<boot>freq = 72 Mhz
<boot>----------- app info ------------
<boot>bin = 161 KB @0x08003000
<boot>mem = 45 KB (static req)
<boot>............................[PASS]
----------------------------------------
<xram>Testing...
<xram>16 bit
<xram>512 KB OK
<xram>............................[PASS]
----------------------------------------
<SPI>Testing...
<SPI>Finding Next...
<SPI>ID = 00BF2541
<i2c>Configuration...
<i2c>............................[PASS]
----------------------------------------
<告乱cat9555>Testing...
<cat9555>EXIO0 @0x40
<cat9555>[cfg = 0x00c0]
init OK!
<cat9555>........................[PASS]
----------------------------------------
<Nand>Testing...
<Nand>ID = 2C,D3,90,A6,64
<Nand>Type = 1024M
<Nand>...........................[PASS]
----------------------------------------
<Nor>Testing...
<Nor>ID = 0001,227E,2221,2201
<Nor>...........................[PASS]
----------------------------------------
<CH374T>Testing...
<CH374T>Detect OK
<CH374T>LibInit OK
<CH374T>.........................[PASS]
----------------------------------------
<RTC>Testing...
<RTC>External Reset occurred
<RTC>No need to configure RTC
<RTC>............................[PASS]
----------------------------------------
<wm89xx>Testing...
<wm89xx>Find chip
<wm89xx>.........................[PASS]
----------------------------------------
<FileSystem>Init...
<FileSystem>Nor FS initialized!
<FileSystem>....................[PASS]
----------------------------------------
os : system memory alloc 1120 bytes
flsh: UFFS consume spare data size 18
os : system memory alloc 41360 bytes
os : system memory alloc 6288 bytes
os : system memory alloc 65536 bytes
tree: found bad block 412
tree: DIR 1, FILE 21, DATA 0
<FileSystem>Nand FS initialized!
<FileSystem>.....................[PASS]
----------------------------------------
<DSP>Testing...
<DSP>...........................[PASS]
----------------------------------------
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
>>Write /dev/FILE0.TXT ok
>>Write /dev/FILE1.TXT ok
>>Write /dev/FILE2.TXT ok
>>Write /dev/FILE3.TXT ok
finsh>>
finsh>>ls("/dev/")
Directory /dev/:
log <DIR>
devTst 4
NAND_DEMO 4
info_index 26
LOG.TXT 14
TABLE.DYB 35032
list_index 120
FILE0.TXT 100
FILE1.TXT 100
FILE2.TXT 100
FILE3.TXT 100
0, 0x00000000
finsh>>cat("/dev/FILE0.TXT")
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 0, 0x00000000
finsh>>
如果需要代码可以再贴出来
1、首先/dev/tty1不是目录,是个设备文件,通常使用tty来简称各种类型的终端设备。tty是Teletype的缩写。你可以在各种终端(显示器终端,串口,远程putty)分别敲几个命令感受可能更直观一些:悔桥禅
a)、w
b)、tty
c)、ps -ef
2、连接显示器登陆控制台(/dev/ttyn, /dev/console)
在Linux系统中,计算机显示器通常被称为控制台终端或控制台(Console)。它仿真了类型为Linux的一种终端,
并且有一些设备特殊文件与之相关联:tty0、tty1、tty2
等。当你在控制台上登录时,使用的是tty1。使用Alt+[F1—F6]组合键时,我们就可以切换到tty2、tty3等上面去。tty1 –tty6等称为虚拟终端,而tty0则是当前所使用虚拟终端的一个别名,
Linux系统所产生的信息都会发送到该终端上。因此不管当前我们正在使用哪个虚拟终端,系统信息都会发送到我们的屏幕上。
3、用串口登陆串行碧尘端口终端(/dev/ttySn)
串行端口终端(Serial Port Terminal)是使用计算机串行端口连接的终端设备。计算机把每个串行端口都看作是一个字符设备。
/dev/ttyS0和/dev/ttyS1分别对应COM1和COM2
可以给linux安装minicom调试cisco设备。
你的linux也可以通过串口被调试。
4、用putty或者SecureCRT登陆伪终端(/dev/pts/n),用w或者who命令体会一下
伪终端或者虚拟终端(Pseudo Terminal)是成对的逻辑终端设备,pts就是定义虚拟终端的
5、能力有限,说得可能比较消缓乱,man 4 tty会给你更多帮助
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)