Modify reboot.c for a H5 custom board (doesn't reboot)



Recommended Posts



I have the following problem:


A custom board (H5) doesn't reboot using the reboot command. Same problem from u-boot using reset command. 


If you check the log, all is normal for the halt or power off proccess. The problem happens when the board is going to make the power on, it hangs, and you can't see anything using the debug serial.


As a solution, i can reset the voltage regulators using a digital GPIO pin. Of this way i am able to reset the board.  But i need a soft solution, and of course, if linux itself makes a reboot it should activate the digital GPIO pin in this custom board.


So my question is:  Would it be possible to recompile reboot.c or other file for activating a digital pin as last action of the reboot proccess?


Thanks a lot in advance



Link to post
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

I think i have found a dirty and very different solution but it works:   

I have created a service in systemd that is run before


The service created is:






In the i activate a digital gpio pin for runnig a HW reset using the voltage regulators.









Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.