嵌入式学习日记.docxVIP

  • 21
  • 0
  • 约7.41万字
  • 约 21页
  • 2017-01-02 发布于贵州
  • 举报
2015.1.131.登陆时用管理员身份root登陆2.mv /mnt/OK2440/hello /usr/src 移动改名: mv prog.c test.c2.1 gcc hello.c –o hello普通编译运行在Linux系统中./hello运行文件2.2 /usr/src/usr/arm/3.4.1/arm-linux-gcc hello.c –o helloarm 交叉编译运行在开发板上 ./helloarm3.NFS配置ifconfig eth0 192.168.0.22 up 配置PC机IP地址 Ifconfig eth0 192.168.0.11 up 配置板子IP地址ping 192.168.0.11 PC机中:service portmap restart service nfs restart 在 /etc/exports中输入/ *(rw,sync,no_root_squash)其中/代表根目录开发板中:mnt 192.168.0.11:/ /mnt表示把PC机/根目录中的文件共享到开发板的mnt文件下4. 多进程编程实验fork(分叉)新进程的系统调用#include unistd.hpid_t pid;pid=fork();getpid()函数得到该进程的ID号进程的结束:1.#include stdlib.h void exit(int st

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档