Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chroot and 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
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Sun Oct 08, 2006 4:44 pm    Post subject: chroot and illegal instruction Reply with quote

Code:
livecd gentoo # uname -a
Linux livecd 2.6.12-gentoo-r10 #1 SMP Fri Nov 4 19:25:01 UTC 2005 i686 VIA Samuel 2 CentaurHauls GNU/Linux
livecd gentoo # ls -la |grep stage
-rw-r--r--   1 root root 112603344 Aug 25 12:18 stage3-i686-2006.1.tar.bz2
livecd gentoo # chroot /mnt/gentoo /bin/bash
Illegal instruction
livecd gentoo #   


I think ive downloaded the correct stage
Have I ?
Ive followed the instructions (twice!)

so what have i done wrong ?
_________________
join the optout - http://nhsconfidentiality.org
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4560
Location: Saint Amant, Acadiana

PostPosted: Sun Oct 08, 2006 5:02 pm    Post subject: Reply with quote

For gcc Via Samuel 2 is i586. LiveCD won't work, nor i686 stage tarball.
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Sun Oct 08, 2006 5:05 pm    Post subject: Reply with quote

so wheres the stage I need ?

http://gentoo.blueyonder.co.uk/releases/x86/2006.1/stages/

just lists i686 stages
_________________
join the optout - http://nhsconfidentiality.org
Back to top
View user's profile Send private message
bitdecay
n00b
n00b


Joined: 02 Oct 2004
Posts: 10

PostPosted: Wed Oct 11, 2006 3:16 pm    Post subject: Reply with quote

thecooptoo wrote:
so wheres the stage I need ?

http://gentoo.blueyonder.co.uk/releases/x86/2006.1/stages/

just lists i686 stages


Same problem here (Same CPU)... A bit of a miss making the x86 stages i686 instead of x86 :-)
I understand stage 1 is nolonger supported. But does stage1 still work? If so, what is it compiled for?
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Oct 11, 2006 3:32 pm    Post subject: Reply with quote

Just take any live cd that runs on your architecture (e.g. a 2006.0 installcd, knoppix, ...) and a 2006.0 stage3-i586. When you reach the step "Choosing the Right Profile" (Gentoo Handbook), choose a 2006.1 profile.
Back to top
View user's profile Send private message
bitdecay
n00b
n00b


Joined: 02 Oct 2004
Posts: 10

PostPosted: Wed Oct 11, 2006 3:56 pm    Post subject: Reply with quote

chrbecke wrote:
Just take any live cd that runs on your architecture (e.g. a 2006.0 installcd, knoppix, ...) and a 2006.0 stage3-i586. When you reach the step "Choosing the Right Profile" (Gentoo Handbook), choose a 2006.1 profile.


OK, I will try that too. Im trying this right now. (Wrote the instructions first, now waiting for bootstrap to complete)

Here is how I hope to get Gentoo running on my VIA machine. (Still compiling)

Follow the original instrustions untill you are told to get a stage3 tarball, get stage1 instead. After this you should follow the instructions again (Adjusting the commands to fit the stage1 files name of cause)
When you reach the end of "5.e. Configuring the Compile Options" you need to do things differently.


Now its time to chroot.
Code:

# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile



Time to bootstrap the system.
Code:

# cd /usr/portage/scripts
# ./bootstrap.sh

After the bootstrapping is done (Some time later...) you should be able to rebuild the system.
Code:

# emerge -e system


You should now be able to jump back in the original instructions at "6.b. Configuring Portage"
Good luck! :-)

BTW. This is how my make.conf looked before I picked a mirror with mirror select.
--- make.conf ---
Code:

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=c3 -m3dnow -Os -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ALSA_CARDS="via82xx"
VIDEO_CARDS="cle266"

--- End ---
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Oct 11, 2006 4:10 pm    Post subject: Reply with quote

bitdecay wrote:
OK, I will try that too. Im trying this right now. (Wrote the instructions first, now waiting for bootstrap to complete)

No need to try it if your method succeeds. It would just have spared you the bootstrapping (i.e. some compile time). :)
Back to top
View user's profile Send private message
bitdecay
n00b
n00b


Joined: 02 Oct 2004
Posts: 10

PostPosted: Wed Oct 11, 2006 4:42 pm    Post subject: Reply with quote

chrbecke wrote:
bitdecay wrote:
OK, I will try that too. Im trying this right now. (Wrote the instructions first, now waiting for bootstrap to complete)

No need to try it if your method succeeds. It would just have spared you the bootstrapping (i.e. some compile time). :)


Hmmm..... It seems I had forgotten how much time it took to bootstrap one of these steam powered computers. I would suggest that anyone else who try this get an old live cd and try that aproch instead. ;-)
Back to top
View user's profile Send private message
nixnut
Administrator
Administrator


Joined: 09 Apr 2004
Posts: 10973
Location: the dutch mountains

PostPosted: Sun Nov 05, 2006 11:31 am    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
See https://forums.gentoo.org/viewtopic-p-12448.html#12448
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
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