Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv-rootfs使用新的app后运行报错Failed to execute /init (error -8) #17

Open
cuipingzhang opened this issue May 7, 2022 · 1 comment

Comments

@cuipingzhang
Copy link

自己编译的app属性如下,使用的riscv64-unknown-elf-gcc
zcc@zcc-virtual-machine:~/toolchain/spec2006/447.dealII/build$ file dealII
dealII: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, with debug_info, not stripped

将自己编译好的文件放在rootfsimg文件夹下后 编译出的bbl.bin在运行时报错
[ 0.010000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.030000] clocksource: Switched to clocksource riscv_clocksource
[ 0.030000] Unpacking initramfs...
[ 2.430000] workingset: timestamp_bits=62 max_order=19 bucket_order=0
[ 2.440000] random: get_random_bytes called from 0xffffffff811ffc5c with crng_init=0
[ 2.540000] Freeing unused kernel memory: 18416K
[ 2.540000] This architecture does not have kernel memory protection.
[ 2.540000] Failed to execute /init (error -8)
[ 2.540000] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ 2.540000] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---

@shinezyy
Copy link
Contributor

shinezyy commented May 7, 2022

Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants