I upgraded firmware, fast-gpio gives segmentation fault.
Also power-down not work because use fast-gpio.
Please fix firmware and release patch.
Thanks
I upgraded firmware, fast-gpio gives segmentation fault.
Also power-down not work because use fast-gpio.
Please fix firmware and release patch.
Thanks
I can't connect to my Onion2 by console or ssh terminal by the default password...
@Trina-Bradley Are you connected to the board?
Try by using your browser 192.168.3.1
I upgraded firmware, fast-gpio gives segmentation fault.
Also power-down not work because use fast-gpio.
Please fix firmware and release patch.
Thanks
Can I switch off the board in a good version?
I can put off the power cable, but I want close all the process before.
I can try
power-down -f
but not work.
My Onion2 haven't consol. I see only:
Index of /console/
../
modified: Tue, 07 Feb 2017 20:35:46 GMT
directory - 0.00 kbyte
lib/
modified: Tue, 07 Feb 2017 20:35:46 GMT
directory - 0.00 kbyte
I want restore factoy firmware.
This not work:
firstboot -y
sync
reboot
@WereCatf said in Omega2 does not turn off unable to use GPIO:
@Giovanni-Gentile @chris-stratton already told you that the functionality needed by fast-gpio is broken. It doesn't matter if you use it in a script or command-line, it won't work until Onion-devs release a fixed firmware.
When?
@Chris-Stratton said in Omega2 does not turn off unable to use GPIO:
@Giovanni-Gentile said in Omega2 does not turn off unable to use GPIO:
@Chris-Stratton said in Omega2 does not turn off unable to use GPIO:
/sys/class/gpio interface
-ash: /sys/class/gpio: Permission denied
It's a directory of psuedo-files, not an executable.
You can interact with it with tools like
echo
andcat
or from both high and low level languageshttps://www.kernel.org/doc/Documentation/gpio/sysfs.txt
What may be more challenging is the pin mux - my understanding is that is broken too, so you will only be able to use the pins where the bootup state has set them into GPIO mode, vs. some other function.
Indeed, you cannot use fast-gpio as that depends on /dev/mem
And it appears that due to that you also cannot change the pinmux which sets what pins are in GPIO mode vs other modes.
However you can use the /sys/class/gpio interface for those pins that are already in GPIO mode at boot.
It's correct. Now I have used this:
gpioctl dirout-high 11
and
gpioctl dirout-low 11
the GPIO 11 is free. led blink.
How can I make a new dev/mem?
@Chris-Stratton
This code:
#!/bin/ash
connected
LED_PIN=6
fast-gpio set-output $LED_PIN
while true
do
fast-gpio set $LED_PIN 1
sleep 1
fast-gpio set $LED_PIN 0
sleep 1
done
result:
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
@Chris-Stratton said in Omega2 does not turn off unable to use GPIO:
/sys/class/gpio interface
-ash: /sys/class/gpio: Permission denied
If i use the consolle I don't can shutdown the system. If I use Terminal also I can't shutdown.
Also I can't use GPIO pins. In consolle I don't can set pin 1 or 0 or input or output. Also when I use fast-led not work.
I read
Segmentation fault
Also When type in terminal
omega2-ctrl gpiomux get
I read:
I unable to open mmap
Why?