Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chrooting - "Illegal instruction"?????
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
JayZeus
n00b
n00b


Joined: 15 Oct 2002
Posts: 9

PostPosted: Tue Oct 15, 2002 4:38 am    Post subject: Chrooting - "Illegal instruction"????? Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Oct 15, 2002 4:49 am    Post subject: Reply with quote

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
View user's profile Send private message
JayZeus
n00b
n00b


Joined: 15 Oct 2002
Posts: 9

PostPosted: Tue Oct 15, 2002 4:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Curious
Bodhisattva
Bodhisattva


Joined: 13 May 2002
Posts: 395
Location: Sydney, Australia

PostPosted: Tue Oct 15, 2002 5:08 am    Post subject: Reply with quote

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
View user's profile Send private message
JayZeus
n00b
n00b


Joined: 15 Oct 2002
Posts: 9

PostPosted: Tue Oct 15, 2002 5:20 am    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Oct 15, 2002 5:24 am    Post subject: Reply with quote

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
View user's profile Send private message
timbo
Apprentice
Apprentice


Joined: 29 Jul 2002
Posts: 231
Location: New Zealand

PostPosted: Fri Oct 18, 2002 7:42 pm    Post subject: Reply with quote

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
8)
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue May 25, 2004 8:14 pm    Post subject: Reply with quote

Duplicate of https://forums.gentoo.org/viewtopic.php?t=3801&highlight=chroot+illegal+instruction
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum