Giter Club home page Giter Club logo

Comments (2)

michaeljclark avatar michaeljclark commented on June 10, 2024

Thanks for the bug report.

I reproduced this issue on my system and believe I have a fix for it.

I noticed there was an issue when building with a multilib toolchain. The script copies /lib into the image but does not copy /lib64 into the image. The dynamic linker, /lib/ld-linux-riscv64-lp64d.so.1 points to /lib64/lp64d/libc-2.26.so, which is not in the image, and thus /sbin/init does not load because the dynamic loader cannot be found when following the symlink. NoteL /sbin/init is a symlink to ../bin/busybox which should indeed exist.

You could fetching the latest revision from master where i've made the fix to copy /lib64 into the image:

You can see the multilib lib directory here:

$ find lib -ls
     4097      1 drwxr-xr-x   3 root     root         1024 Jul  2 20:45 lib
       29      0 lrwxrwxrwx   1 root     root           24 Jun 29 21:18 lib/ld-linux-riscv64-lp64.so.1 -> ../lib64/lp64/ld-2.26.so
       28      0 lrwxrwxrwx   1 root     root           26 Jun 29 21:19 lib/ld-linux-riscv32-ilp32d.so.1 -> ../lib32/ilp32d/ld-2.26.so
       27      0 lrwxrwxrwx   1 root     root           25 Jun 29 21:19 lib/ld-linux-riscv32-ilp32.so.1 -> ../lib32/ilp32/ld-2.26.so
       30      0 lrwxrwxrwx   1 root     root           25 Jun 29 21:18 lib/ld-linux-riscv64-lp64d.so.1 -> ../lib64/lp64d/ld-2.26.so
       13      1 drwxr-xr-x   2 root     root         1024 Aug 20 21:12 lib/modules

Let me know how you go...

from busybear-linux.

truelv avatar truelv commented on June 10, 2024

Aha,everything goes well.Thx for your help.

from busybear-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.