Coder Social home page Coder Social logo

Comments (2)

palmer-dabbelt avatar palmer-dabbelt commented on July 28, 2024

I just merged QEMU support into freedom-u-sdk's master branch. It's still a bit rough around the edges, but on a clean build I can "make qemu" and get into a shell with a DHCP lease.

from riscv-linux.

michaeljclark avatar michaeljclark commented on July 28, 2024

You can use the riscv-qemu branch in freedom-u-sdk. If you do, make sure to unset RISCV environment variable if you have it set (as it needs a specific version of riscv-gnu-toolchain), then run make qemu and the SDK will build qemu, a buildroot rootfs and linux-kernel, then start it up:

unset RISCV
git clone --recursive https://github.com/sifive/freedom-u-sdk.git
cd freedom-u-sdk
make qemu

If you want SMP support, you'll need a more recent version of QEMU. The default riscv-qemu riscv-next branch has relatively solid SMP support:

To build an SMP linux-kernel, run menuconfig, enable "Platform Type" -> "Symmetric Multi-Processing"

make ARCH=riscv menuconfig

To enable smp in QEMU, add -smp cpus=4 to the command line.

I've tested SMP kernels in latest qemu using the riscv-linux-4.14 and riscv-linux-4.15 branches.

You can also take a look at the QEMU wiki. I'll add freedom-u-sdk instructions to the QEMU wiki, no i've figured out how to get it building (you must unset RISCV environment variable).

from riscv-linux.

Related Issues (20)

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.