Skip to content

gem5.bare-metal for armv8 #3

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

Open
kjnprince opened this issue Feb 21, 2017 · 9 comments
Open

gem5.bare-metal for armv8 #3

kjnprince opened this issue Feb 21, 2017 · 9 comments
Labels

Comments

@kjnprince
Copy link

Excuse me. I want to run a binary compiled with armv8 compiler in gem5 with fs bare-metal model. I find your project and want to modified for my purpose. I want to know I should change the compiler arm-none-eabi to what? And I should modified what else ? Hope your advises, thx.

@myzinsky
Copy link
Member

Actually I don't get your question yet, can you please elaborate more in detail?

@kjnprince
Copy link
Author

Sorry for not describing my questions clearly. I want to run an armv8 version application in gem5 bare metal mode. would you please tell the modifications I have to make on current project to implement it? which compiler do I have to use and what are the flags? Should I modify the boot.S and other files?

@myzinsky
Copy link
Member

myzinsky commented Feb 21, 2017

I think the important thing is that you run gem5 with this option:

--machine-type=VExpress_EMM64

in order to get the v8 architecture.

For sure, some other changes are necessary, maybe have look here:

https://github.com/freedomtan/aarch64-bare-metal-qemu

If you have a final solution, please share it with a pull request!

@kjnprince
Copy link
Author

Thanks very much. I have make some modifying based your repositories. But having mistakes also. I have described in my repository README.md. Please have a look, I don't understand the compile options. Thx!

https://github.com/kjnprince/gem5.bare-metal-armv8/blob/master/README.md

@kjnprince kjnprince reopened this Feb 22, 2017
@ghost
Copy link

ghost commented Aug 24, 2018

I wanted to check if anyone got this work. Thanks

@myzinsky
Copy link
Member

I had no time to do this so far :(

@cirosantilli2
Copy link

@myzinsky @kjnprince hi, I've described a detailed setup that works on aarch64 at: https://stackoverflow.com/questions/43682311/uart-communication-in-gem5-with-arm-bare-metal/50983650#50983650

It is recommended that you use VExpress_GEM5_V1 going forward. It handles both arm and aarch64.

@myzinsky
Copy link
Member

myzinsky commented Nov 9, 2018

@cirosantilli2 could you create a proper example and open a pull request? I would highly appreciate!

@cirosantilli2
Copy link

cirosantilli2 commented Nov 10, 2018

@myzinsky as mentioned on the Stack Overflow answer, there is a working setup on this repo You can extract it from there with --dry-run if you are interested in the Bash commands used. It is not easy to make a simple pull request that just works here as the harder part is perhaps compiling GCC from source for Newlib in aarch64.

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

No branches or pull requests

3 participants