Intel Edison开机自动加载Arduino代码
来源:互联网 发布:归并排序算法过程图解 编辑:程序博客网 时间:2024/05/16 06:31
1.You can re-flash the Edison with the previous image which doesn'tpresent this issue. The previous image can be downloaded from thefollowing site: Intel Edison Software Release 2.1
2.The other suggestion would be the workaround described in thisthread: Run Arduino sketch on boot Workaround. With this workaroundyou will be able to keep using the latest yocto image.
由https://communities.intel.com/thread/93732
可以按1的方法降级到1.6.1后能自动运行。
如果不想降image可以按照下面的方法进行。打开PuTTY,串口连接Edison。
若您第一次使用 init.d 启动脚本,必须首先创建目录,之后跳至第 2 步:
第 1 步
现在进入目录,
第 2 步。
root@edison:~# cd /etc/init.d
接下来,我们要在文件中创建一个包含启动命令的 bash 脚本。 在本案例中,我们要对 Arduino sketch进行自动化处理,以便其在启动时运行。
在任何情况下,打开您的首选文本编辑器,创建脚本 automateSketch.sh:
root@edison:/etc/init.d# vi automateSketch.sh
将以下内容添加至该脚本。
#!/bin/sh
exec /sketch/sketch.elf /dev/ttyGS0 /dev/ttyGS0
只需两条指令,本教程就已接近尾声。
现在我们用 chmod 更改许可,以便该脚本成为可执行脚本。
root@edison:/etc/init.d# chmod +x/etc/init.d/automateSketch.sh
root@edison:/etc/init.d# chmod +x automateSketch.sh
为确保 linux 每次启动时都可以执行该脚本,发送以下命令,并等待返回,如下所示
root@edison:/etc/init.d# update-rc.d automateSketch.shdefaults
Adding system startup for /etc/init.d/automateSketch.sh
好的,完成了!我们来看看它是否可行!
root@edison:/etc# reboot
现在,您可以看看 Arduino sketch 是否自动运行。
查看全文
- Intel Edison开机自动加载Arduino代码
- Intel Edison arduino代码驱动OLED(SSD1306)
- Intel Edison 换完Debian 后开机自动设置 Wifi
- intel edison 设置wifi自动连接
- intel edison 设置wifi自动连接
- Intel XDK 上对Edison + Arduino 编程
- Intel Edison Arduino 温度检测并上传至网站
- Intel Edison程序开机自启动设置方法
- Intel Edison了解
- Intel Edison 移植boa
- intel edison固件更新
- Intel Edison 移植mjpg-stream
- Intel Edison 装Debian系统
- Intel Edison Debian 设置JAVA
- Intel Edison上使用jasoncpp
- Intel Edison开发板使用指南
- 驱动程序开机自动加载
- 开机自动加载磁盘
- HDU 1846 Brave Game(博弈)
- 欢迎使用CSDN-markdown编辑器
- Leetcode add-two-numbers
- NASA 美国国家航空航天局开源项目列表
- SSH安装
- Intel Edison开机自动加载Arduino代码
- hdu 5067 Harry And Dig Machine (TSP类,简单)
- 1095. Cars on Campus (30)
- Python 也能干大事 —— 解方程
- git命令cherrypick
- 189. Rotate Array
- 前端工程师的Java路-一些唠叨与经验总结
- uC/OS-III 函数整理
- 142. linkedlist cycle