View previous topic :: View next topic |
Author |
Message |
JayZeus n00b
Joined: 15 Oct 2002 Posts: 9
|
Posted: Tue Oct 15, 2002 4:38 am Post subject: Chrooting - "Illegal instruction"????? |
|
|
Okay, I'm trying to install Gentoo 1.2 on my box to serve as a firewall.
Anyway, I'm doing everything pretty much step by step as the installation guide says (with minor changes), but when it comes to chrooting after I type chroot /mnt/gentoo /bin/bash (or /bin/sh). I get "Illegal operation" message. What does that mean?
Here's exactly what I'm doing:
After it boots:
1)I set up my partitions (since it's going to be a linux only box) /dev/hda1 as Linux Swap (128 meg partition since I only have 64 megs of ram), then the rest of the drive (/dev/hda2) as Linux
2)mke2fs /dev/hda2
3)mkswap /dev/hda1
4)tune2fs -j /dev/hda2
5)mkdir /mnt/gentoo
6)mount -t ext3 /dev/hda2 /mnt/gentoo
7)swapon /dev/hda1
8)mount /dev/cdroms/cdrom0 /mnt/cdrom -t iso9660
9)cd /mnt/cdrom
10)cp stage3-i686t.2.tbz2 /mnt/gentoo
11)cd /mnt/gentoo
12)tar xvjpf stage3-i686t.2.tbz2
13)mount /proc /mnt/gentoo/proc -o bind
After doing this I'm trying to chroot:
14)chroot /mnt/gentoo /bin/sh (or /bin/bash)
After I enter this I get "Illegal Instruction" message...
Any ideas?
Did I forget about something? |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Oct 15, 2002 4:49 am Post subject: |
|
|
Chances are you're using a 686 tarball on a non-686 machine. What kind of CPU is this firewall? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
JayZeus n00b
Joined: 15 Oct 2002 Posts: 9
|
Posted: Tue Oct 15, 2002 4:56 am Post subject: |
|
|
rac wrote: | Chances are you're using a 686 tarball on a non-686 machine. What kind of CPU is this firewall? |
Well, it's a Pentium 200 MMX.
And notice that I haven't even gotten to compiling my kernel (I only untared the stage3 tarball), so how would it know anyway? |
|
Back to top |
|
|
Curious Bodhisattva
Joined: 13 May 2002 Posts: 395 Location: Sydney, Australia
|
Posted: Tue Oct 15, 2002 5:08 am Post subject: |
|
|
JayZeus wrote: | Well, it's a Pentium 200 MMX. |
Thats an i586 class machine.
JayZeus wrote: | And notice that I haven't even gotten to compiling my kernel (I only untared the stage3 tarball), so how would it know anyway? |
I don't think you understand what the "Illegal Instruction" means. It means the executable ( chroot in this case ) is trying to execute machine code that doesn't "gel" on this architecture.
So a 686 Chroot might have optimisations that don't work on a 586.
-- Curious _________________ Are you down with the Hawk? |
|
Back to top |
|
|
JayZeus n00b
Joined: 15 Oct 2002 Posts: 9
|
Posted: Tue Oct 15, 2002 5:20 am Post subject: |
|
|
Curious wrote: | JayZeus wrote: | Well, it's a Pentium 200 MMX. |
Thats an i586 class machine.
JayZeus wrote: | And notice that I haven't even gotten to compiling my kernel (I only untared the stage3 tarball), so how would it know anyway? |
I don't think you understand what the "Illegal Instruction" means. It means the executable ( chroot in this case ) is trying to execute machine code that doesn't "gel" on this architecture.
So a 686 Chroot might have optimisations that don't work on a 586.
-- Curious |
Well then should I use stage3-ppc-1.2.tbz2 tarball instead (progress as with i686 stage3), or I need to start from stage 1? |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Oct 15, 2002 5:24 am Post subject: |
|
|
JayZeus wrote: | Well then should I use stage3-ppc-1.2.tbz2 tarball instead |
Seeing as how that's for the PowerPC, I doubt it will be helpful.
Quote: | I need to start from stage 1? |
If you can't find a 586 stage 3, then you will have to start from stage 1. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
timbo Apprentice
Joined: 29 Jul 2002 Posts: 231 Location: New Zealand
|
Posted: Fri Oct 18, 2002 7:42 pm Post subject: |
|
|
Well that answered my question too.
Setting up a server got stage1 on ok but can't chroot even forcing the issue with the tomsrb disk. The server box has no cdrom only eth0 to this main box with cd's and modem to the internet.
oh well looks like more downloading. Should I gentoo 1.4 or just go with 1.2 since this box has 1.2?
Regards
Tim
|
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
|
Back to top |
|
|
|