Comments (2)
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.
Aha,everything goes well.Thx for your help.
from busybear-linux.
Related Issues (20)
- stubs-lp64.h HOT 7
- File transfer between riscv-qemu and host. HOT 5
- /sbin/init: error while loading shared libraries: libm.so.6: HOT 1
- *** failed to create busybear.bin HOT 5
- trying to create busybear.bin but it is giving error HOT 2
- qemu riscv installation issue related to busybear HOT 2
- getting tap interface to work... HOT 1
- Network doesn't work on Ubuntu HOT 2
- There are some mistakes in the README
- network doesn't works well HOT 7
- Replace bridged networking with QEMU user networking emulation
- Link error
- change_dir "/opt/riscv/sysroot/lib64" failed HOT 1
- how to build on Ubuntu w/ their version of GCC for RISCV HOT 1
- Failed to build Linux due to wrong toolchain HOT 2
- dropbear does not recognize riscv architecture HOT 2
- .Trying to build busybear in Linux Mint. HOT 13
- Consider add an updated release
- A problem in scripts/build.sh
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from busybear-linux.