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

Problem in part II with rootfs. #9

Closed
nigelatta opened this Issue Feb 3, 2014 · 6 comments

Comments

Projects
None yet
3 participants
@nigelatta

nigelatta commented Feb 3, 2014

Thanks for the interesting blog. Just looking for some pointers with creating the rootfs. I have tried following the procedure several times. Everything seems to build ok and the SD card looks good, but the boot process fails just after the root file system mounts with the following:-

VFS: Mounted root (ext3 filesystem) on device 179:2.
devtmpfs: mounted
Freeing init memory: 260K
/sbin/init: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

There is a link for libc.so.6 in the lib folder pointing to libc-2.18-2013.10.so. Any clues as to what I'm missing?

Thanks,

Nigel.

@nigelatta nigelatta closed this Feb 3, 2014

@nigelatta nigelatta reopened this Feb 3, 2014

@zhemao

This comment has been minimized.

Show comment
Hide comment
@zhemao

zhemao Feb 3, 2014

Owner

Well that's rather odd. Have you checked that libc-2.18-2013.10.so? You are using Buildroot, right? I don't see any reason why this would be happening.

Owner

zhemao commented Feb 3, 2014

Well that's rather odd. Have you checked that libc-2.18-2013.10.so? You are using Buildroot, right? I don't see any reason why this would be happening.

@zhemao

This comment has been minimized.

Show comment
Hide comment
@zhemao

zhemao Feb 4, 2014

Owner

Could you try this image and tell me if it works?

Owner

zhemao commented Feb 4, 2014

Could you try this image and tell me if it works?

@nigelatta

This comment has been minimized.

Show comment
Hide comment
@nigelatta

nigelatta Feb 4, 2014

Yes, I am using Buildroot-2013.11, and I can confirm that using the image above boots ok. I have also followed the Arrow sockit flow and built using Yocto which also boots ok.
I see that in your image the linked file is libc-2.15.so and mine is libc-2.18-2013.10.so, although I don't see why that would be a problem as the file has the correct permissions.

nigelatta commented Feb 4, 2014

Yes, I am using Buildroot-2013.11, and I can confirm that using the image above boots ok. I have also followed the Arrow sockit flow and built using Yocto which also boots ok.
I see that in your image the linked file is libc-2.15.so and mine is libc-2.18-2013.10.so, although I don't see why that would be a problem as the file has the correct permissions.

@kmonkey331

This comment has been minimized.

Show comment
Hide comment
@kmonkey331

kmonkey331 Feb 4, 2014

It sounds like the same problem I had...
https://bugs.launchpad.net/gcc-linaro/+bug/1208945

My solution was to add two symbolic links to the rootfs before copying it to the sd-card.
ln -s /lib /lib/arm-linux-gnueabihf
ln -s /usr/lib /usr/lib/arm-linux-gnueabihf

kmonkey331 commented Feb 4, 2014

It sounds like the same problem I had...
https://bugs.launchpad.net/gcc-linaro/+bug/1208945

My solution was to add two symbolic links to the rootfs before copying it to the sd-card.
ln -s /lib /lib/arm-linux-gnueabihf
ln -s /usr/lib /usr/lib/arm-linux-gnueabihf

@zhemao

This comment has been minimized.

Show comment
Hide comment
@zhemao

zhemao Feb 4, 2014

Owner

@nigelatta What version of the cross compiler are you using? Perhaps using a different version will solve your problem.

Owner

zhemao commented Feb 4, 2014

@nigelatta What version of the cross compiler are you using? Perhaps using a different version will solve your problem.

@nigelatta

This comment has been minimized.

Show comment
Hide comment
@nigelatta

nigelatta Feb 4, 2014

I was trying to follow your steps so I was using the linked to version (4.8-2013.11). The symbolic links mentioned above fix the issue. Many thanks to you both for your help.

nigelatta commented Feb 4, 2014

I was trying to follow your steps so I was using the linked to version (4.8-2013.11). The symbolic links mentioned above fix the issue. Many thanks to you both for your help.

@nigelatta nigelatta closed this Feb 4, 2014

@zhemao zhemao referenced this issue Feb 9, 2014

Closed

kernel panic #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment