1、编写Helloworld
在/usr/local/arm/real2410下建立hello目录
cd /usr/local/arm/real2410
mkdir hello
编写如下代码,保存在hello目录下,文件名为hello.c
#include <stdio.h>
int main(void)
{
printf(“Helloworld”) ;
return 0;
}
2、编译helloworld
3、把hello复制到tftpboot文件夹下。
4、打开minicom,输入命令tftp -g -r hello 192.168.253.11
5、运行hello