| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Star64 Irradium (based on...
Forum: Getting Started
Last Post: tantamount
Yesterday, 08:17 AM
» Replies: 19
» Views: 15,539
|
US Tariffs & Recent Supre...
Forum: General
Last Post: evilbunny
05-10-2026, 03:18 AM
» Replies: 2
» Views: 511
|
Updated Pinebook Pro?
Forum: General Discussion on Pinebook Pro
Last Post: tllim
05-08-2026, 12:25 PM
» Replies: 1
» Views: 236
|
Volumio 3 Pine A64+ unoff...
Forum: Linux on Pine A64(+)
Last Post: tllim
05-08-2026, 12:21 PM
» Replies: 2
» Views: 237
|
Star64: All listed distro...
Forum: Getting Started
Last Post: tantamount
05-08-2026, 08:56 AM
» Replies: 0
» Views: 130
|
Unresponsive / inaccurate...
Forum: General Discussion on PineTime
Last Post: PerfectJam
05-07-2026, 03:37 AM
» Replies: 0
» Views: 114
|
Unresponsive / inaccurate...
Forum: General Discussion on PineTime
Last Post: PerfectJam
05-07-2026, 03:36 AM
» Replies: 0
» Views: 101
|
The "Should I buy a Quart...
Forum: General Discussion on Quartz64
Last Post: kapqa
05-05-2026, 07:57 AM
» Replies: 5
» Views: 20,450
|
Volumio (PINE A64-LTS / S...
Forum: Linux on PINE A64-LTS / SOPINE
Last Post: shinzuka
05-04-2026, 09:02 AM
» Replies: 9
» Views: 17,080
|
Mobian image for the Pine...
Forum: Mobian on PinePhone
Last Post: Korfou
04-27-2026, 09:57 AM
» Replies: 2
» Views: 470
|
|
|
| GPIO LED blinker using SYSFS on the Rock64 |
|
Posted by: MarkHaysHarris777 - 07-06-2017, 03:41 AM - Forum: General Discussion on ROCK64
- Replies (20)
|
 |
In the above pic I'm blinking an LED at physical pin(16) of the Rock64, GPIO3_A5, on the PI-2 bus;
... to use the sysfs method of setting the pin on|off one must first calculate the gpio# using the following:
( bank_num * 32 ) + ( pad_name * 8 ) + pad_num
where pad names = {A:0, B:1, C:2, D:3}
In the above example the bank_num is 3 , pad_name is 0*8, and the pad_num is 5 , so:
( 3 * 32 ) + ( 0 * 8 ) + 5 = 101
The following steps are used to set the gpio pin on|off:
1) sudo -i
2) echo 101 > /sys/class/gpio/export
3) echo out > /sys/class/gpio/gpio101/direction
4) echo 1 > /sys/class/gpio/gpio101/value <--ON
5) echo 0 > /sys/class/gpio/gpio101/value <--OFF
The following codes will blink gpio101 at pin(16), GPIO3_A5: blinker.sh and sysled.sh are closely related scripts. The former is a controlled loop, and the latter is a forever running loop; both are useful. Compare the two script and notice that they are almost identical.
blinker.sh
Code: #!/bin/sh
echo $1 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio$1/direction
COUNTER=0
while [ $COUNTER -lt $2 ]; do
echo 1 > /sys/class/gpio/gpio$1/value
sleep .35
echo 0 > /sys/class/gpio/gpio$1/value
sleep .65
COUNTER=$(($COUNTER+1))
done
echo $1 > /sys/class/gpio/unexport
To run blinker enter two parameters; the first the gpio#, and the second the number of times you want it to blink!
sudo ./blinker.sh 101 7
(will blink gpio101 seven times)
sysled.sh
Code: #!/bin/sh
echo $1 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio$1/direction
COUNTER=0
while [ $COUNTER -lt 10 ]; do
echo 1 > /sys/class/gpio/gpio$1/value
sleep .35
echo 0 > /sys/class/gpio/gpio$1/value
sleep .65
done
To run sysled:
sudo -b ./sysled.sh 101
(will strobe gpio101 forever)
( remember to cd into the working directory where you place the script )
( also, don't forget to make the script executable: chmod 0754 sysled.sh )
In the pic above I have attached the grey wire at ground pin(14), and the orange wire at pin(16).
The anode of the LED is attached at the orange wire, and the cathode of the LED is attached to the grey wire through the ballast resistor , which is 330 ohms. The LED is a low power (5-7ma) 3mm standard LED.
I have so far tested the blue pins ( see chart ) and the green pins. DO NOT use the blue pins if you're using the micro SD card ! If you're booting from the eMMC module (as I am) then the blue pins and most of the green pins are available to you;
|
|
|
|
| Throttling? |
|
Posted by: genosensor - 07-05-2017, 10:12 PM - Forum: Rock64 Hardware and Accessories
- Replies (8)
|
 |
I'm looking at this board as an upgrade to my Hardkernel C2.
Even with its large heatsink, the C2 reaches 72C under load, in my experience.
(but it does not throttle!)
The Rock 64 has similar power dissipation in the same form factor.
Can anyone recommend case and/or heat sink for it that will keep it from throttling under sustained load?
Thanks!
|
|
|
|
| Issues booting remixOS image |
|
Posted by: remi - 07-05-2017, 11:57 AM - Forum: Android on Pinebook
- Replies (2)
|
 |
Hi,
I have sucessfully booted android 7.1 from an external sdcard (after decrompressing the 16gb sdcard boot image using etcher), just by inserting the SDcard in the reader port and powering up the laptop, without even removing the internal eMMC which contains ubuntu MATE that came from the factory.
However I cannot get the remixOS image, decompressed to the same SD card using etcher, to boot. Upon powering up the laptop, the power led just blinks forever and nothing happens. I have tried to activate the special boot mode by pressing the power button repeatedly right after powerup with no success.
Is there anything I am missing ?
Regards
|
|
|
|
Ubuntu Release Upgrade (16.04 => 16.10 => 17.04) working |
|
Posted by: stohn - 07-05-2017, 09:03 AM - Forum: Linux on Pinebook
- Replies (19)
|
 |
I just played around with the ubuntu release upgrade which does not want to start due to insufficient space in "/boot" reported (asking for 40MB more).
Out of curiosity I booted from SD card and increased the boot partition of the integrated eMMC with "gparted" (shrink ext4 partition by 50 MB and move to right, expand boot partition by 50 MB).
Later I was able to do a release upgrade of ubuntu using the standard commands.
It took quite a while. But 2 hours and one reboot later I had Ubuntu 16.10 running on my pinebook.
The kernel itself was NOT updated (/boot stayed 100% same).
No problems so far with Ubuntu 16.10 and the old 3.10 kernel. All seems to work as expected.
So increasing the /boot partition by 40 MB seems to do the trick (even that it is not used).
Will try 17.04 upgrade next.
Just did another upgrade to 17.04. It took much longer to upgrade but it is also running ok.
Maik
|
|
|
|
| smartphone based on a pine64 |
|
Posted by: Little_Johnny - 07-05-2017, 06:32 AM - Forum: Pine A64 Projects, Ideas and Tutorials
- Replies (9)
|
 |
I want to build a smartphone based on a pine64 with android and a c4labs style case,
but i got some questions
is there a smaller lcd screen and touch pannel available for the pine64, about the same size as the pine board ?
is there a way to make it read a sim card and get a signal for calls and data ?
is it possible to put the phone and messaging apps in the pine android image ?
soz for the dumb questions im still a bit of a noob
|
|
|
|
|