Coder Social home page Coder Social logo

Comments (4)

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

This is probably a version mismatch. The versions in here should match

https://github.com/sifive/freedom-u-sdk/tree/new

If you just run "make sim" it should boot Linux.

from riscv-linux.

szhou42 avatar szhou42 commented on July 28, 2024

Hi palmer, this repo seems to build a 64-bit toolchain by default, is it possible to build a 32-bit one?
nvm, i'll try to build it manually first without the provided Makefile

from riscv-linux.

szhou42 avatar szhou42 commented on July 28, 2024

I have built the riscv32-unknown-linux-gnu toolchain, and trying to build linux with this command

make -j4 ARCH=riscv vmlinux CROSS_COMPILE=riscv32-unknown-

and got lots of incompatible ABI errors for these .o files

/home/osdev/install/riscv/lib/gcc/riscv32-unknown-linux-gnu/7.1.1/../../../../riscv32-unknown-linux-gnu/bin/ld: arch/riscv/kernel/vdso/rt_sigreturn.o: ABI is incompatible with that of the selected emulation:
target emulation elf64-littleriscv' does not match elf32-littleriscv'
/home/osdev/install/riscv/lib/gcc/riscv32-unknown-linux-gnu/7.1.1/../../../../riscv32-unknown-linux-gnu/bin/ld: failed to merge target specific data of file arch/riscv/kernel/vdso/rt_sigreturn.o
/home/osdev/install/riscv/lib/gcc/riscv32-unknown-linux-gnu/7.1.1/../../../../riscv32-unknown-linux-gnu/bin/ld: arch/riscv/kernel/vdso/rt_sigreturn.o: file class ELFCLASS64 incompatible with ELFCLASS32
/home/osdev/install/riscv/lib/gcc/riscv32-unknown-linux-gnu/7.1.1/../../../../riscv32-unknown-linux-gnu/bin/ld: final link failed: File in wrong format
collect2: error: ld returned 1 exit status
VDSOLD arch/riscv/kernel/vdso/vdso-dummy.o

from riscv-linux.

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

Everything should line up now in freedom-u-sdk, and we recently added support for setting the ISA and ABI. YMMV on the 32-bit port actually working, though, as it doesn't get tested as much as it should :).

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.