Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ppc64 install on rs/6000 7044/170p fails make kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
bnl
n00b
n00b


Joined: 05 Aug 2011
Posts: 10

PostPosted: Sat Aug 06, 2011 7:10 pm    Post subject: ppc64 install on rs/6000 7044/170p fails make kernel Reply with quote

Hi!
I have an old RS/6000 that runs crux ppc linux.
I'd like to convert it to gentoo.

Actually, it got crux since I could not make it boot the gentoo livecd.
However, I now have a working cruxppc system on it.

it has two disks, sda and sdb.
sda is used for crux, sdb is empty.
So I mounted sdb1 as /mnt/gentoo, and followed the handbook from
step 4.f - mounting
I then get the stage3 tarball, portage files,
I configure make.conf (leaving cflag to -02 -pipe)

i edit the crux yaboot.conf to boot the existing crux-kernel,
with the new sdb1 as root

I cp -rp /lib/modules/kernel... /mnt/gento/lib/modules/kernel

so I have some modules at hand at reboot.

emerge kernel-sources (chrooted)

I use the working config from crux via
zcat /proc/config.gz > /mnt/gentoo/usr/src/linux/.config

I (chrooted) make menuconfig and append a new prefix to the kernel.

reboot, into the sdb environmet.
some complaints but it boots :-)

now the bad things:
make gives me :

cc1 : error :- m64 not supported in this configuration

needless to say, no kernel for me...

I used stage3 ppc64-ul32 ie kernel 64 bits and userland 32 bit.

any suggsestions? (it is a power3 cpu, 64 bit)

/Björn
_________________
--
Björn
Back to top
View user's profile Send private message
bnl
n00b
n00b


Joined: 05 Aug 2011
Posts: 10

PostPosted: Sun Aug 07, 2011 8:32 pm    Post subject: Reply with quote

After rereading the handbook, i found:
Quote:

# cd /usr/src/linux
Important: In case you are in 32-bit userland, you must edit the top
level Makefile in /usr/src/linux and change the CROSS_COMPILE option to
CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run
make menuconfig or it may result in kernel compilation problems.
# make menuconfig


Looks better, it has compiled for 10 minutes now :D
/björn
_________________
--
Björn
Back to top
View user's profile Send private message
bnl
n00b
n00b


Joined: 05 Aug 2011
Posts: 10

PostPosted: Mon Aug 08, 2011 9:55 pm    Post subject: Reply with quote

Replying to myself again
Kernel compile went fine.
Added an en entry for the new kernel, and reboot
There the fun stopped
Yaboot complaints on the kernel is ' not a valid elf image'
Running 'file' on the kernels, both the good one and the new one
Provides the same output
Quote:

ELF 64-bit MSB executable,
64-bit PowerPC or cisco 7500,
Version 1 (SYSV), statically linked, not stripped

Googling a bit suggests that relocatable kernels had problems with yaboot
Long time ago but they were compiled with option
CONFIG_RELOCATABLE which i do not use.

They also had another output from file.

Strange that yaboot likes one kernel, but not another, when file says the same thing about them.
Suggestions?

/björn
_________________
--
Björn
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Wed Aug 10, 2011 6:28 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on PPC, hopefully you'll get more help here.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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