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

Repair this program for 2015. #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Repair this program for 2015. #11

wants to merge 4 commits into from

Conversation

kousu
Copy link

@kousu kousu commented Nov 29, 2014

Per #8, I've committed @dmitry-pervushin's fix to the asm code (which I would have had no idea how to fix, so thanks Dimitry), and I've also dug deep with packet sniffers and solved why this version wasn't booting my phone and @wkpark's was: this version was not giving the 2nd stage time to orient itself. The 2nd stage is running on a slower machine than my (and probably your) host, and can be swamped out and confused if you talk to it too quickly; also the USB endpoint should be reopened to notify the 2nd stage that it has someone to talk to; with the sleep() but without the reopen, mostly the boot goes properly, but sometimes it fails. Adding the reopen makes it so far 100% reliable for me. Plus TI does it too.

I hae not edited the Makefile in this patch, because I do not know if the arm-eabi- -> arm-none-eabi- change was archlinux specific or broader.

@kousu
Copy link
Author

kousu commented Nov 30, 2014

I was wrong. The reopen is unimportant, and I've removed that part. sleep(5) was the only key, and that is entirely because the 2nd stage needs a moment to boot.

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

Successfully merging this pull request may close these issues.

1 participant