Giter Site home page Giter Site logo

linux_for_riscv_em's People

Contributors

franzflasch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

linux_for_riscv_em's Issues

Linux 32 bit build issue

I seem to have an issue building the Linux 32 bit payload on Ubuntu 21.10:

nico@lenovo:~/perso/git/linux_for_riscv_em$ ./riscv_em_rv32_mmu_linux.sh  
...
>>> host-m4 1.4.18 Building
PATH="/home/nico/perso/git/linux_for_riscv_em/output_mmu_rv32/buildroot-2021.02.1/output/host/bin:/home/nico/perso/git/linux_for_riscv_em/output_mmu_rv32/buildroot-2021.02.1/output/host/sbin:~/bin:/home/nico/Downloads/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin:~/bin:/home/nico/Downloads/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin:/home/nico/.cargo/bin:/home/nico/.local/bin:/home/nico/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/nico/perso/git/riscv-gnu-toolchain/the_install/bin:/home/nico/perso/git/vade:/home/nico/perso/git/riscv-gnu-toolchain/the_install/bin" PKG_CONFIG="/home/nico/perso/git/linux_for_riscv_em/output_mmu_rv32/buildroot-2021.02.1/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/nico/perso/git/linux_for_riscv_em/output_mmu_rv32/buildroot-2021.02.1/output/host/lib/pkgconfig:/home/nico/perso/git/linux_for_riscv_em/output_mmu_rv32/buildroot-2021.02.1/output/host/share/pkgconfig"  /usr/bin/make   -C /home/nico/perso/git/linux_for_riscv_em/output_mmu_rv32/buildroot-2021.02.1/output/build/host-m4-1.4.18/
/usr/bin/make  all-recursive
Making all in .
make[4]: Nothing to be done for 'all-am'.
Making all in examples
make[4]: Nothing to be done for 'all'.
Making all in lib
  GEN      alloca.h
  GEN      configmake.h
  GEN      c++defs.h
  GEN      arg-nonnull.h
  GEN      warn-on-use.h
  GEN      unused-parameter.h
  GEN      limits.h
  GEN      sys/types.h
  GEN      fcntl.h
  GEN      locale.h
  GEN      langinfo.h
  GEN      math.h
  GEN      signal.h
  GEN      spawn.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/wait.h
  GEN      time.h
  GEN      unistd.h
  GEN      wchar.h
  GEN      wctype.h
/usr/bin/make  all-am
  CC       binary-io.o
  CC       gl_avltree_oset.o
  CC       c-ctype.o
  CC       c-stack.o
  CC       c-strcasecmp.o
  CC       c-strncasecmp.o
  CC       clean-temp.o
  CC       cloexec.o
  CC       close-stream.o
  CC       closein.o
  CC       closeout.o
  CC       dirname.o
  CC       basename.o
  CC       dirname-lgpl.o
  CC       basename-lgpl.o
  CC       stripslash.o
  CC       execute.o
  CC       exitfail.o
In file included from /usr/include/signal.h:328,
                 from ./signal.h:52,
                 from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
   55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
      |                          ^~~~~~~~
  CC       fatal-signal.o
  CC       fd-hook.o
make[5]: *** [Makefile:1915: c-stack.o] Error 1
make[5]: *** Waiting for unfinished jobs....
  CC       fd-safer-flag.o
make[4]: *** [Makefile:1674: all] Error 2
make[3]: *** [Makefile:1572: all-recursive] Error 1
make[2]: *** [Makefile:1528: all] Error 2
make[1]: *** [package/pkg-generic.mk:250: /home/nico/perso/git/linux_for_riscv_em/output_mmu_rv32/buildroot-2021.02.1/output/build/host-m4-1.4.18/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2

Do you have an idea of what's happening or something I missed ?
Note that I didn't follow your first step as I already had a riscv32 (rv32g) toolchain installed according to this doc:
https://github.com/nsauzede/myrv
Maybe the error actually comes from the alternate riscv toolchain ?

Links to toolchain collections are broken

Hi,
I've tried the two links for the RISCV32 and RISCV64 toolchain zip archives, and they are both broken. The error message is:

Error 404 โ€“ Not Found
GitHub produced an error for the download of artifact #359688336.
Usually this means that the artifact has expired (>90 days).

Greetings, Hans-Georg

fw_payload.bin does not display any output in riscv_em

I got this to build, but when I run the payload bin in riscv_em, it just sits there with no output no matter how long I wait. I'm not sure what the issue could be. Do you have a known working fw_payload.bin for RV32 MMU that I could try?

image

Building and dtc, dtb

Hi!

I compiled the firmware and emulator. What is dtc? I don't know how to build the dtb file.

riscv32 toolchain is already included in the buildroot?

I have tried to set PATH to linux_for_riscv_em/output_mmu_rv32/buildroot/output/host/bin/, I built the Linux kernel and it runs successfully in your emulator.

I think buildroot has built the toolchain already, so there is no need to download your pre-built binaries from https://github.com/franzflasch/gcc-build-tools. Should we mention this in the README?

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.