Skip to content

I'm unable to reach any codes in bcm_2835_rng_rust.rs at runtime. #704

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

Closed
SocialistDalao opened this issue Mar 12, 2022 · 3 comments
Closed

Comments

@SocialistDalao
Copy link

These days, I'm trying to run rust4linux in qemu-system-aarch64 to figure out how rust drivers work. I choose bcm_2835_rng_rust as it is simpler than the GPIO rust driver. However, I'm unable to reach any codes of it at runtime. BCM2835 emulation configuration guide in qemu is quite hard to find.

I know that rust_random.rs has made a software rng sample. But what I really care about is the implementation of rust codes interacting with real devices. Could you tell me how can I achieve this goal? I also think this might be an important part in the future documentation.

Thank you.

@ojeda
Copy link
Member

ojeda commented Mar 14, 2022

Rust drivers use the same interfaces to userspace as the C ones. Please see #254 for more code and a very nice guide on how to run it in QEMU or in real hardware that @TheSven73 wrote.

(Also, for general questions, please ask in Zulip).

@SocialistDalao
Copy link
Author

NICE Guide!!! I'll take a look at this.

By the way, it seems that only invited persons can ask questions in Zulip. Could you please invite me?

Email: loancold@foxmail.com

@ojeda
Copy link
Member

ojeda commented Mar 15, 2022

Of course, invitation sent!

@ojeda ojeda closed this as completed Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants