Coder Social home page Coder Social logo

Comments (4)

a0u avatar a0u commented on July 28, 2024

Support for deprecated system calls was recently removed from the kernel port, but riscv-tools still points to an older revision of riscv-gnu-toolchain which predates the ABI change. In this case, the -ENOSYS ("Function not implemented") error arose from glibc's open(3) function invoking sys_open (now non-existent) instead of sys_openat.

Until we bump the submodules (after some consistency checks), you can resolve the mismatch by switching to the master branch of riscv-gnu-toolchain and rebuilding statically-linked BusyBox with the updated riscv64-unknown-linux-gnu toolchain. If BusyBox is dynamically linked, then it should only be necessary to recopy the shared libraries from the sysroot to the filesystem image.

Also, I noticed that the inittab(5) example in the Linux/RISC-V Installation Manual is slightly outdated with respect to the device node naming:

::sysinit:/bin/busybox mount -o remount,rw /dev/htifbd0 /

should instead be

::sysinit:/bin/busybox mount -o remount,rw /dev/htifblk0 /

from riscv-linux.

samfin avatar samfin commented on July 28, 2024

That fixes the issue, thank you very much!

On Mon, Feb 16, 2015 at 6:46 PM, Albert Ou [email protected] wrote:

Support for deprecated system calls was recently removed from the kernel
port, but riscv-tools still points to an older revision of
riscv-gnu-toolchain which predates the ABI change. In this case, the
-ENOSYS ("Function not implemented") error arose from glibc's open(3)
function invoking sys_open (now non-existent) instead of sys_openat.

Until we bump the submodules (after some consistency checks), you can
resolve the mismatch by switching to the master branch of
riscv-gnu-toolchain and rebuilding BusyBox with the updated
riscv64-unknown-linux-gnu toolchain.

Also, I noticed that the inittab(5) example in the Linux/RISC-V
Installation Manual is slightly outdated with respect to the device node
naming:

::sysinit:/bin/busybox mount -o remount,rw /dev/htifbd0 /

should instead be

::sysinit:/bin/busybox mount -o remount,rw /dev/htifblk0 /


Reply to this email directly or view it on GitHub
#21 (comment).

from riscv-linux.

************ avatar ************ commented on July 28, 2024

@a0u any updates on this? I feel it is not very good for the project to have master "broken" for so long, maybe the consistency checks you mention could be done on another branch?

from riscv-linux.

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

I'm closing this as it's quite old.

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.