Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified to compile under OS X. Added reset functionality #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Modified to compile under OS X. Added reset functionality #4

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 14, 2014

Hi, and thanks for a great boot loader.

I've modified raspbootcom.cc to reset the rpi when it receives a SIGUSR1 signal. This is done by toggling the DTR line on the serial line high, then low. A standard NPN transistor is needed on the rpis P6.

I'm sure there's room for improvement, as I'm just beginning to understand all this.

I've also modified the source to cleanly compile on OS X.

Sending you this in case you're interested.

@mrvn
Copy link
Owner

mrvn commented Oct 3, 2020

  1. this breaks compiling on non OS X since they have endian.h where it is now
  2. When SIGUSR1 happens the error code is EINTR. Only then the error should be ignored and select restarted.
  3. All other error checks need the same.

This looks like a nice little feature at first. Unfortunately I'm not sure how useful it will be to the general public. Proper serial ports are a dying breed and the USB serial adaptors don't have a DTR line. Plus you need some extra hardware and soldering. I just have a push button connected to the RUN pin so I can reset the PI manually.

If you still want to see this included in raspbootcom this needs to be cleaner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant