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

Missing gateware hangs Beta on axiom_start.sh #165

Open
herbertp opened this issue Aug 16, 2020 · 2 comments
Open

Missing gateware hangs Beta on axiom_start.sh #165

herbertp opened this issue Aug 16, 2020 · 2 comments

Comments

@herbertp
Copy link
Member

In case the gateware for the Main SoC is missing (e.g. a broken symlink) or in the wrong format (.bit or .bin with wrong byteorder), FPGA manager cannot load the gateware sucessfully.

Unfortunately this is only commented by an output from 'echo' like this ...

/usr/axiom/script/axiom_start.sh: line 9: echo: write error: No such file or directory
/usr/axiom/script/axiom_start.sh: line 9: echo: write error: Invalid argument

... which then leads to a complete lockup once the memory mapped gateware registers are being accessed.

@rroohhh
Copy link
Member

rroohhh commented Aug 17, 2020

We should definitely check the return code of the echo that load the bitstream and abort the axiom_start.sh script when that fails.

Do you think that would be enough, or do you think translating the error message from echo into something clearer would also be needed?

@herbertp
Copy link
Member Author

I think aborting is probably enough (prevents the lockup :) but of course it would be nice to explain the possible reasons based on the error code.

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

No branches or pull requests

2 participants