我已經在cubieboard A10, 上安裝archlinux,但我沒有在cubieboard中找到任何/ sys/class/gpio文件。在Cubieboard a10的ARCHLINUX GPIO
我想知道,我怎麼會訪問cubieboard GPIO引腳,使LED閃爍
我已經在cubieboard A10, 上安裝archlinux,但我沒有在cubieboard中找到任何/ sys/class/gpio文件。在Cubieboard a10的ARCHLINUX GPIO
我想知道,我怎麼會訪問cubieboard GPIO引腳,使LED閃爍
作爲noobi我發現很難開始Arch Linux的。我發現cubian + xfce4很容易用python + wiring-cb進行編程。您可以按照此頁面瞭解更多信息
https://github.com/cubieplayer/Cubian/wiki/Get-started-with-Cubian
要閃爍的LED在Python:http://www.cubieforums.com/index.php?topic=766.0 我寫一個python腳本來檢查cubieboard1的精確定位/頭。請隨時詢問您是否需要它。
編輯
好吧,我很抱歉。我以爲他是像我這樣的初學者。我真的很長時間尋找答案,找不到一個清晰的答案。所以我給了一個簡單的方法。 所以難以找到答案的路徑就是這樣開始的。
檢查你的script.bin是否啓用了gpio,並且你的內核已經內置在sunxi gpio中?
[1] In kernel it should be enabled: Kernel with SUN4I_GPIO_UGLY = y
[2] Use bin2fex tool from sunxi-tools to check your script.bin usually in /boot.
./bin2fex /path/to/script.bin > script.fex
nano script.fex
如:script.fex的最後一段應該包含
[gpio_para]
gpio_used = 1
gpio_num = 67
gpio_pin_1 = port:PG03<1><default><default><1>
gpio_pin_2 = port:PB19<1><default><default><1>
gpio_pin_3 = port:PB18<1><default><default><1>
~to
gpio_pin_66 = port:PB10<1><default><default><1>
gpio_pin_67 = port:PH07<1><default><default><1>
其實我有隻使用的Archlinux的限制,我從安裝的Archlinux [鏈接] http://archlinuxarm.org/platforms/armv7/allwinner/cubieboard。但是在這裏有NO/sys/class/gpio文件 – user2870353