I'm trying to set up a cross-compiler on my laptop for the RPi. For that I need a RPi system image that I can update with all the libraries that may be necessary for compiling.
I saw that one way to do that is to mount the partition somewhere on my laptop into it and then use chroot (http://alexchamberlain.github.com/raspb ... ge%3F.html - I used 'the hard way' for Debian/Ubuntu (I'm running 32-bit Ubuntu 12.10)).
The chroot seems to work (I get a prompt and can issue basic commands), but when I try to use 'aptitude update' or 'aptitude upgrade' or even 'ping' I am getting
Code: Select all
qemu: uncaught target signal 4 (Illegal instruction) - core dumped Illegal instruction (core dumped)
- copied the /etc/hosts file to the RPi filesystem (because I was getting 'unable to resolve host' messages when running commands with sudo)
- tried to look at the core dump file, but couldn't find any (interestingly, running 'find / -name core' from the chroot jail also produced the 'illegal instruction' error - I had to run this command from outside chroot)
- tried to run 'dhclient eth0', eth0 being the name of my Ethernet adapter. This gives the errors:
Code: Select all
Unsupported setsockopt level=41 optname=49 ../../../../lib/isc/unix/socket.c:2375: setsockopt(21, IPV6_RECVPKTINFO) failed: Protocol not available Unsupported setsockopt level=41 optname=24 Unsupported setsockopt level=41 optname=23 Unsupported setsockopt level=41 optname=26 ../../../../lib/isc/unix/socket.c:5636: setsockopt(21, IPV6_V6ONLY) failed: �?@X��@ qemu: uncaught target signal 4 (Illegal instruction) - core dumped Illegal instruction (core dumped)
If anyone could provide any assistance with this, I would be grateful.