您的位置:首页 > 其它

嵌入式WEB开发中常用到的一些命令和资源

2013-08-01 20:00 351 查看
虚拟机或者单板IP的临时修改,重启后不再生效

ifconfig eth0 10.144.15.13 netmask 255.255.254.0

web开发有个好处就是你只需要登录单板将对应的网页替换,刷新即可。不需要重新编译,调试使用alert,相对可视化,是比较便利的

计时需要编译webserver中的源码,也不必要每次都重新刷单板的应用层程序,单板的升级来说一般都比较耗时。

使用mount,是个高效工作的途径

普通文件上传下载 tftp 命令就可以,但是需要先开一个tftpserver  使用tftpd32.exe 就可以,非常绿色,也方便。

tftp -p -l filename dstip

tftp -g -r filename dstip

大概的一个mount和gdb过程

mount -t nfs -o nolock 192.168.0.18:/opt/STM/STLinux-2.3/devkit/arm/target/lib /lib

mount -t nfs -o nolock 192.168.0.18:/opt/STM/STLinux-2.3/devkit/arm/target/usr /usr

mount -t nfs -o nolock 192.168.0.18:/home/share/SNMP_C10_SetSSL
/mnt/app_bin0/

cd mnt/app_bin0/bin/bin_arm

./init_env

gdb -d ../.. app_arm

//避免被一些干扰打断

handle 13 nostop noprint

c

----------烧录Bin-------------

以下是在特定的单板上的操作,大概的过程概念是类似的

#reboot <- press space key when loading ->

spear310>print

spear310>setenv serverip 192.168.0.2 <- 192.168.0.2 is tftp server ip->

spear310>ping 192.168.0.2 <- except: host 192.168.0.2 is alive  ->

spear310>tftp 1000000 UPS2000Image.bin

spear310>prote off all;erase all;cp.b 1000000 50000000 $(filesize)

spear310>boot <- when :copy flash done ->

---------mac 修改-----------

====串口方式修改===

reboot(开始启动时频按空格,进入spear310> 命令提示行)

spear310>protect off all

spear310>setenv ethaddr 20:10:01:26:12:20 (设定mac地址)

spear310>saveenv (保存环境设置)

spear310>print (打印环境变量)

spear310>boot (重启单板)
重启后ifconfig 查看mac地址修改是否成功

----------[rpm 安装卸载查询]------------
http://blog.csdn.net/tea_wu/article/details/8563190
----GOAHEAD 文件上传-----
http://blog.csdn.net/GreatLiu2009/article/details/8349525 http://blog.csdn.net/reille/article/details/6876980
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: