主题 : 通过串口下载到板子里的程序怎么运行 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 3501
精华: 0
发帖: 52
金钱: 530 两
威望: 530 点
综合积分: 104 分
注册时间: 2009-01-14
最后登录: 2009-06-16
楼主  发表于: 2009-03-02 19:24

 通过串口下载到板子里的程序怎么运行

我将最简单的hello ,程序下载到了本子里,已编译成可执行文件,可是不知道怎么运行,望指教
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-03-02 23:08
#cd /where/hello/downloaded
#chmod a+x ./hello
#./hello
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 3501
精华: 0
发帖: 52
金钱: 530 两
威望: 530 点
综合积分: 104 分
注册时间: 2009-01-14
最后登录: 2009-06-16
2楼  发表于: 2009-03-19 22:27

 回 1楼(kasim) 的帖子

那是通过超级终端吧,可不可以直接从板子运行?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-03-20 07:55
如果板上有GUI的话,可以做个快捷方式放到桌面上
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 3501
精华: 0
发帖: 52
金钱: 530 两
威望: 530 点
综合积分: 104 分
注册时间: 2009-01-14
最后登录: 2009-06-16
4楼  发表于: 2009-03-23 20:14

 回 3楼(kasim) 的帖子

GUI是什么? 不好意思 请赐教
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-03-23 23:20
就是像Qtopia那样的图形用户界面
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 3501
精华: 0
发帖: 52
金钱: 530 两
威望: 530 点
综合积分: 104 分
注册时间: 2009-01-14
最后登录: 2009-06-16
6楼  发表于: 2009-03-24 19:52

 回 5楼(kasim) 的帖子

如果没有呢
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2009-03-24 23:26

 回 6楼(cocies) 的帖子

那是通过超级终端吧,可不可以直接从板子运行?

那你认为如何实现?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 4249
精华: 0
发帖: 2
金钱: 20 两
威望: 20 点
综合积分: 4 分
注册时间: 2009-03-05
最后登录: 2009-03-25
8楼  发表于: 2009-03-25 23:51
就是把你的程序拷到板子上的/sbin目录下,然后# /sbin/hello 就可以了。手册上都写的很清楚。