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

0.7.0-rc.0 Kernel Panic #3

Closed
mobileoverlord opened this issue Sep 20, 2016 · 9 comments
Closed

0.7.0-rc.0 Kernel Panic #3

mobileoverlord opened this issue Sep 20, 2016 · 9 comments

Comments

@mobileoverlord
Copy link
Owner

Herman reported a KP when trying to run the fw from
https://s3.amazonaws.com/nerves/test/branch/nerves_system_linkit-v0.7.0-rc.0.fw

[    1.179274] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    1.207417] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
@mobileoverlord
Copy link
Owner Author

mobileoverlord commented Sep 20, 2016

I checked for init by returning the file attributes from

unsquashfs -n -ll nerves_system_linkit-v0.7.0-rc.0/data/rootfs.img

-rwxr-xr-x root/wheel            23300 2016-09-20 11:27 squashfs-root/sbin/init

@mobileoverlord
Copy link
Owner Author

@fhunleth /cc

@fhunleth
Copy link
Collaborator

The problem is that init is trying to load the C library and Linux can't find it. I'm not sure why the library changed names and moved somewhere else. Since I don't have time to investigate, here's a workaround. In a project, just add the following to your rootfs-additions:

ln -s /usr/lib/libc.so rootfs-additions/lib/ld-musl-mipsel.so.1

Obviously, we don't want this, but it's the best I got for now.

@fhunleth
Copy link
Collaborator

I looked into it some more, and I think this is the best I can do for now. I committed the symlink, and a clean build works for me now.

@mobileoverlord
Copy link
Owner Author

Thanks @fhunleth :)

@aselder
Copy link

aselder commented Nov 4, 2016

I'm getting the same error when running nerves_system_linkit 0.7.0:

[    1.067802] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    1.095942] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

nerves 0.3.4

Let me know if there is any other info I can provide to help debug. Same code works fine when nerves_system_linkit pinned to 0.6.2

@aselder
Copy link

aselder commented Nov 7, 2016

It looks like a badly packaged tarball on hex.pm. When I download https://repo.hex.pm/tarballs/nerves_system_linkit-0.7.0.tar, and expand it out, the symlink doesn't exist where it should.

@fhunleth
Copy link
Collaborator

fhunleth commented Nov 7, 2016

Thanks - Maybe that's why @mobileoverlord didn't close this issue. We'll have to make a new release. For the time being, 0.7.0 has no improvements for the LinkIt Smart over 0.6.2, so you're not missing out on anything.

@fhunleth
Copy link
Collaborator

fhunleth commented Feb 5, 2017

This is fixed by 21b148e.

@fhunleth fhunleth closed this as completed Feb 5, 2017
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

3 participants