嵌入式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
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
相关文章推荐
- 开发嵌入式linux/android常用的一些linux命令
- 开发嵌入式linux/android常用的一些linux命令
- 一些web开发中常用的、做成cs文件的js代码 - 搜刮来的
- 一些web开发中常用的、做成cs文件的js代码
- 嵌入式开发中常用的Linux 网络命令
- iOS开发零基础教程之Git的一些常用命令
- 一些web开发中常用的、做成cs文件的js代码 - 搜刮来的
- Linux Java Web开发菜鸟级常用命令
- 【WebView加载本地资源图片 字体等】一些不常用的用法集合
- iOS开发零基础教程之Git的一些常用命令
- 开发中常用的一些linux命令,留下以备后用
- android开发需要掌握的一些常用命令
- linux web开发中常用命令总结
- [导入]一些web开发中常用的、做成cs文件的js代码 - 搜刮来的
- iOS开发零基础教程之Git的一些常用命令
- Web开发中一些常用的在线工具
- 7.24 一些常用的Web前端开发工具和浏览器简介
- 学习嵌入式Linux系统开发基础 第二课(Linux常用命令)
- 移动前端开发中添加一些webkit专属的HTML5头部标签,帮助浏览器更好解析html代码,更好地将移动web前端页面表现出来。本文整理一些常用的meta标签
- Java开发一些常用命令