Giter Site home page Giter Site logo

Comments (4)

yhzhang0128 avatar yhzhang0128 commented on May 18, 2024

I'm really interested in this project, unfortunately it seems it is nailed to RV32 as for now.

However, SBCs like VisionFive2 and Star64 emerge, and there will be more RV64 actual hardware in the future.

Are there plans to port it to RV64? Run on real hardware?

from egos-2000.

yhzhang0128 avatar yhzhang0128 commented on May 18, 2024

Sorry I accidentally pressed the close button and closed this issue.

Although I don’t have this plan, I think it is not difficult. I guess the key is to modify ‘grass/context.S’ since most other parts of this OS are written in C so that you can compile them to RV64 with the right compiler flag.

from egos-2000.

strlcat avatar strlcat commented on May 18, 2024

Are there any other specifics to keep in mind? Does it talk 16550A style uart? Is changing base address 0x20400000 is enough to keep it going? So many questions, I hope to see answers :)
VF2's config:
16550A uart is at 0x10000000
Kernel load address 0x40200000 (OpenSBI sits at 0x40000000), S-Mode.
If one might want to run from M-Mode, then SRAM is available at 0x08000000, but idk how U-Boot SPL calls it.

from egos-2000.

yhzhang0128 avatar yhzhang0128 commented on May 18, 2024

You may wish to take a look at earth/bus_uart.c. In particular, the uart_put and uart_get functions are just few lines and you may need to modify them for VF2. For example, use the address 0x10000000.

In terms of adjusting memory map, please refer to issue #4.

I don’t have a good answer to the S-mode or M-mode part. You may need to modify several assembly. For example, change mret, mstatus, etc. to sret, sstatus, etc.

from egos-2000.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.