Omega2 won't reboot?



  • @Larry-Pinney said in Omega2 won't reboot?:

    and since the reset button seems non functional .
    try this using another gpio.

    I changed it from KEY_WPS_something to KEY_RESTART in my dts, I haven't tried if it works in my dts or not, but it is entirely possible that is the reason why it doesn't work in the official dts. Feel free to try.



  • @Larry-Pinney said in Omega2 won't reboot?:

    Ticket #4088
    Reset button does not work.

    Kinda useless without mentioning the repo you're opening the ticket against.



  • @WereCatf

    Kinda doesn't matter...none of them will work



  • The reset button should be :

    linux,code = <KEY_RESTART>;

    However it needs to be mapped to the correct GPIO.



  • @Larry-Pinney It is mapped to the correct GPIO. It just seems that the pin is pulled LOW by default and it's active HIGH.



  • @WereCatf

    Really and you tested it how?



  • @Larry-Pinney By reading the GPIO-pin's state, then connecting the pin to 3.3V and reading it again! Magic.



  • @WereCatf

    And it's correctly mapped...yet it doesn't work?

    Did you add
    #include <dt-bindings/gpio/gpio.h>
    NO
    no...or didn't push it yet anyway

    did you make the change to
    GPIO_ACTIVE_LOW ? no or failed to push that change as well.

    did you you read the magic with a meter?
    or is it smoke and mirror magic ?



  • @Larry-Pinney said in Omega2 won't reboot?:

    did you you read the magic with a meter?
    or is it smoke and mirror magic ?

    No, I just said, I read the GPIO-pin's state. GPIO38 is LOW by default, but when I connect 3.3V to the reset-pin it becomes HIGH, so yes, the GPIO-number is correct.



  • @WereCatf

    It's NOT on gpio 38 otherwise known as gpio1 6...
    apparently that gpio is locked by the "stock" dts file
    Please try gpio 0 11

    And also let's try be so hard to get along with ....
    I do not need to establish a reputation (I have numerous commits to OpenWrt/LEDE)
    I'm only trying to help make this toy work properly....and do not need additional BS...I actually have better things to do.



  • @Larry-Pinney said in Omega2 won't reboot?:

    It's NOT on gpio 38 otherwise known as gpio1 6...
    apparently that gpio is locked by the "stock" dts file

    Yes, it is. You can use the command fast-gpio to read the GPIO's state directly from mmap'ed registers, so it doesn't matter that the GPIO-pin is already defined as being in use by the dts, as fast-gpio bypasses that.

    And also let's try be so hard to get along with ....

    You're the one trying to insult me.



  • The End...



  • Well, I can confirm the official dts has a bug, changing gpios = <&gpio1 6 1>; to gpios = <&gpio1 6 0>; fixed the reset-button and it's now working in my version of the dts, ie. the button is active HIGH, but the official dts configures it as active LOW.



  • @WereCatf

    LOL
    quit screwing around and use the dt-bindings macros



  • For anyone watching this thread, the issue has been fixed in recent firmware:

    https://community.onion.io/topic/1282/omega2-reboot-and-sd-card-fixed


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.