本帖最后由 tll 于 2013-6-21 16:23 编辑
【这英文真没救了,看中文即可,如有人帮忙指出错误就更好了 Please look at the Chinese because my English is bad】
-----Only Chinese but I have some pictures for All people-----
帖子写了半小时,GPIO调试近2小时,重要的是辐射……台式机开着,正在轰鸣……
好了,不说,上图
这是开着的
这是关闭了的
我的接口,是U14的2和4,既靠近SATA那排下面那行第一个和第二个
------------------------------------------------------------------
今天谷歌乱搜索,找到一个帖子
I found a page
一个IMG,自称集成GPIO
a IMG file,it has GPIO
心动不已(因为以前弄WindLand的不完美GPIO失败数次从未成功)
I'm happy because WinLand's ugly GPIO can't work on my CubieBoard
于是下载之。
so I download it
链接:https://www.miniand.com/forums/forums/development--5/topics/linaro-ubuntu-custom-server-images-armhf
Link:https://www.miniand.com/forums/forums/development--5/topics/linaro-ubuntu-custom-server-images-armhf
下载V4的IMG,用dd或者win32diskimager写入到卡里
please download "V4" version's IMG file and use dd command or win32diskimage to write it to sdcard
*-------------------------------------
如果你想升级到V5,可以下载V5内核包然后覆盖lib文件夹和UImage文件
#If you want to update to "V5" version,you can download the "V5" kernel package and copy lib directory to your system's lib directory and your UImage file
--------------------------------------
上电启动
boot your CubieBoard
HDMI无信号,因为这是基于server版本弄的,把HDMI驱动删了
#your screen will be black beacuse it doesn't have HDMI driver
所以你必须去路由里面看IP
so you must find your CubieBoard's IP in your router
然后SSH控制(用户名:linaro 密码:linaro)
then use SSH to control(username:linaro password:linaro)
输入以下命令:
Enter these command:
----命令 Command----
sudo su
#进ROOT
echo 1 > /sys/class/gpio/export
#设置1口为输出
cd /sys/class/gpio
for x in */direction
do
echo out > $x
done
cd gpio1_pd1
---------------------------
然后拿个排线掰掉两个接上板子(接口PD1和GND[U14的2和4],我图最上面,排线从电脑掰的,我的电脑啊……前置USB废了)
Then take two cable lines and connect to your CubieBoard(connect to PD1)
拿个万用表测测,没电
#take a ammeter to connect your cable lines,it will show you 0
输入echo 1 > value,电来了,大约3.22V
Enter "echo 1 > value",your ammeter will show you a number about 3.22V
然后输入echo 0 > value,又没电了
and enter "echo 0 > value",it will show you 0 again
如果没错,你成功了!
if alright,you win!
祝你成功~
| 如果成功,务必回复 If it's working on your device,please click the "回复" button now!
|
|