Skip to content

Repair this program for 2015. - #11

Open
kousu wants to merge 4 commits into
swetland:masterfrom
kousu:master
Open

Repair this program for 2015.#11
kousu wants to merge 4 commits into
swetland:masterfrom
kousu:master

Conversation

@kousu

@kousu kousu commented Nov 29, 2014

Copy link
Copy Markdown

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

kousu commented Nov 30, 2014

Copy link
Copy Markdown
Author

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