开发板调试笔记

来源:互联网 发布:sql group by sum 编辑:程序博客网 时间:2024/06/09 18:11

 进程
ps au
pstree

替换
shift:
:1,$s/原/新/g               global{全文有效}
:1,$s/Tom/David/g          大写
:1,$s//<[Tt]om/>/David/g   大小写


ps aux | grep root

------------------板子-------------------------------
Retry count exceeded; starting again
Using ADM5120 Switch device
TFTP from server 172.20.4.87; our IP address is 172.20.4.45
Filename 'vmlinuz-ADM5120'.
Load address: 0xbfc20000
Loading: ################################################################             ################################################################
done
Bytes transferred = 3655218 (37c632 hex)
ADM5120 #reset

----------------虚拟机---------------------------------
[root@localhost /]# ifconfig eth0 172.20.4.87
[root@localhost /]# service iptables stop
清除防火墙规则:                                           [确定]
把 chains 设置为 ACCEPT 策略:filter                       [确定]
正在卸载 Iiptables 模块:                                  [确定]
[root@localhost /]# service nfs start
启动 NFS 服务:                                            [确定]
关掉 NFS 配额:                                            [确定]
启动 NFS 守护进程:                                        [确定]
启动 NFS mountd:                                          [确定]
[root@localhost /]#



-----------------------------板子----------------
Error for wireless request "Set Tx Power" (8B26) :
    SET failed on device ath0 ; No such device.
SIOCSIFADDR: No such device
mode=-1
TAPI Demo Version 0.9.6.1
gethostname() returned adm5120.infineon.com.
chmode=.
Wrong format of IP address, it should be <xxx.xxx.xxx.xxx>.
+-------------------------------------+
| Welcome to Linux/MIPS ADM5120 System|
+-------------------------------------+

------------------------vi /nv/rc.conf---------
#<< system_update
update_server="192.168.1.6"
update_filename="adm5120.tar.gz"
update_method="0"
#>> system_update
mode="n"
chmod="b"
phonenumber="11"
~
------------------------------------------------------


-----------------------------------------
/ # mount -t nfs -o nolock 192.168.1.31:/mnt /home
mount: RPC: Unable to receive; errno = No route to host
mount: nfsmount failed: Bad file descriptor
nfs warning: mount version newer than kernel
NFS: mount program didn't pass remote address!
mount: Mounting 192.168.1.31:/mnt on /home failed: Invalid argument

注意查看mac地址,以及网络联接
erase 1:8
set ethaddr 00:00:11:32:2B:XX
ping 172.16.200.25



---------------------------------------
[root@localhost cgic205]# mipsel-linux-gcc -o login.cgi login.c -L./ -lcgic
login.c:4:22: cgic.h: No such file or directory
login.c: In function `cgiMain':
login.c:65: error: `cgiFormSuccess' undeclared (first use in this function)
login.c:65: error: (Each undeclared identifier is reported only once
login.c:65: error: for each function it appears in.)


把cgic.h和libcgic.a放在cgic205中,不然会出现上面的错误

-----------------------------------------------------------------
 printf(" var s11=document.form1.number.value; ");
//printf(" alert(/'check start/'); ");
 printf("    var pattern=////s//  ;");
 printf("   if(pattern.test(s11)){alert(/"请不要输入空格! /");return false;} ");

------------------------------------------------------------------------
printf("<tr><td align=/"center/">本机号码:</td><td colspan=/"2/">    ");
printf("<input type=/"text/" name=/"number/" value=/"");
printf("%s",number);
printf("/">");

----------------------------------------------------------------------
saveenv

原创粉丝点击