Discussion:
LFS for PowerPC
Mohammad Reza Heidari
2005-02-10 16:43:27 UTC
Permalink
Hi,
I have finished my first LFS, but now I woud like to recompile it for
a Power PC processor, embedded in a FPGA.
If anybody has ever attempted the LFS on PowerPC, I would
be grateful to hear about the exprience.
Thanks,
MR


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20050210/c8975e09/attachment.html>
Ken Moffat
2005-02-10 18:29:45 UTC
Permalink
Post by Mohammad Reza Heidari
Hi,
I have finished my first LFS, but now I woud like to recompile it for
a Power PC processor, embedded in a FPGA.
If anybody has ever attempted the LFS on PowerPC, I would
be grateful to hear about the exprience.
Thanks,
MR
If you are building it on the ppc, LFS needs very little different for
a different architecture. The linker and specfile, and of course the
bootloader, and sometimes an alternative to fdisk (e.g. for macs).
I've done it in the past for mac (with pmac-utils, mac-fdisk, yaboot)
and AmigaOne (with u-boot). In fact, your hardest problems might be
configuring the kernel and working out what package changes are
required. The processor packaging is unlikely to make any difference,
but if it is an embedded system that is obviously a lot harder to play
with.

But, you sound as if you're thinking of building on a different
architecture, such as x86. If that's the case, check out Ryan's
cross-lfs scripts [ at www.linuxfromscratch.org/~ryan I think ].
Cross-compiling is not for the feint-hearted, and there are a lot of
issues to get your head around. It's also worth searching for Dan
Kegel's cross-build stuff.

Ken
--
das eine Mal als Trag?die, das andere Mal als Farce
Jim Gifford
2005-02-10 18:50:44 UTC
Permalink
Post by Mohammad Reza Heidari
Hi,
I have finished my first LFS, but now I woud like to recompile it for
a Power PC processor, embedded in a FPGA.
If anybody has ever attempted the LFS on PowerPC, I would
be grateful to hear about the exprience.
Thanks,
MR
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
We are also going to start a multi-architecture book, any issue you
have, please let me know so I can add them to the new book. Thanx.
--
------
jim at linuxfromscratch.org
lfs at jg555.com

LFS User # 2577
Registered Linux User # 299986
William
2005-02-10 22:48:20 UTC
Permalink
My experience with LFS on my mac

I use a powermac 6500 with a 603ev processor. It is a nice old world mac.
I followed the book to a T except when it mentioned some stuff about PPC,
and my linker for the specs changes was ld.so.1. May be different
elsewhere, check that stuff. I used slackintosh to build on my old world
mac and it did great. Took a week, but was fun. It's been ticking away as
this: Linux cation 2.4.27-pre6 #3 Sun Aug 15 20:36:57 CDT 2004 ppc unknown
unknown GNU/Linux

16:45:05 up 177 days, 2:45, 2 users, load average: 3.00, 3.00, 3.00

I used LFS 5.1.1 on it when I built it last summer. Built Xorg and some
cool stuff, even had the sucker playing audio. Pretty cool. Put festival
on there to make it talk to me. Anyways, copy the right headers and and
build the kernel for PPC with the right options (hehe, it was sometimes a
feat to get the right otions in the kernel for me) and you should be good
to go. I have not dealt with new world macs. I hope they are easier
to deal with. Open firmware and quik are fun to configure. Took me a few
hours to figure it all out. If you need any help, come around here or in
the IRC rooms and some PPC LFS'ers will be around, somewhere, out there........

William
Ken Moffat
2005-02-10 23:39:50 UTC
Permalink
Post by William
My experience with LFS on my mac
I use a powermac 6500 with a 603ev processor. It is a nice old world mac.
Cool, I didn't realise anybody was running LFS on old-world. Yet
another variation in the boot loader department (quik?).

Ken
--
das eine Mal als Trag?die, das andere Mal als Farce
Jeremy Utley
2005-02-11 00:14:12 UTC
Permalink
Post by Ken Moffat
Post by William
My experience with LFS on my mac
I use a powermac 6500 with a 603ev processor. It is a nice old world mac.
Cool, I didn't realise anybody was running LFS on old-world. Yet
another variation in the boot loader department (quik?).
Ken
I've got LFS on an Old World machine as well (9500/120, 604e processor,
96MB Ram).

Instead of quik, I'm using the very antique BootX as a bootloader - the
build is LFS-6 based, but using LinuxThreads instead of NPTL, since NPTL
on PPC requires at least a G3 Processor.

-J-
J. Greenlees
2005-02-11 00:49:39 UTC
Permalink
Post by Jeremy Utley
Post by Ken Moffat
Post by William
My experience with LFS on my mac
I use a powermac 6500 with a 603ev processor. It is a nice old world mac.
Cool, I didn't realise anybody was running LFS on old-world. Yet
another variation in the boot loader department (quik?).
Ken
I've got LFS on an Old World machine as well (9500/120, 604e processor,
96MB Ram).
Instead of quik, I'm using the very antique BootX as a bootloader - the
build is LFS-6 based, but using LinuxThreads instead of NPTL, since NPTL
on PPC requires at least a G3 Processor.
-J-
this one I'm trying to get running is a g3.
with 768 mb ram and a 6 gb hard drive.
it doesn't have an os on it at all right now, as the macosx install
failed. and the bootable mdkppc won't boot.

so now I'm going to have to figure out how to get a ppc boot disk
recognised by this thing to install anything on it.
J. Greenlees
2005-02-10 23:48:43 UTC
Permalink
Post by William
My experience with LFS on my mac
I use a powermac 6500 with a 603ev processor. It is a nice old world mac.
I followed the book to a T except when it mentioned some stuff about PPC,
and my linker for the specs changes was ld.so.1. May be different
elsewhere, check that stuff. I used slackintosh to build on my old world
mac and it did great. Took a week, but was fun. It's been ticking away as
this: Linux cation 2.4.27-pre6 #3 Sun Aug 15 20:36:57 CDT 2004 ppc unknown
unknown GNU/Linux
16:45:05 up 177 days, 2:45, 2 users, load average: 3.00, 3.00, 3.00
I used LFS 5.1.1 on it when I built it last summer. Built Xorg and some
cool stuff, even had the sucker playing audio. Pretty cool. Put festival
on there to make it talk to me. Anyways, copy the right headers and and
build the kernel for PPC with the right options (hehe, it was sometimes a
feat to get the right otions in the kernel for me) and you should be good
to go. I have not dealt with new world macs. I hope they are easier
to deal with. Open firmware and quik are fun to configure. Took me a few
hours to figure it all out. If you need any help, come around here or in
the IRC rooms and some PPC LFS'ers will be around, somewhere, out there........
William
hmm,
got any suggestions to help get an oldworld ppc g3 with no os to boot
from a linux-ppc cdrom?
( my employer just got himself one, tried to update from 8.x to osx.2 (
last that will run )
it errored during install, bad disc.
now he wants to check a ppc linux os. I downloaded and burned mdk 10.1
ppc for him but it won't boot from the cd.
and can't find the boot image for the ppc version to boot from floppy
into the cdrom install
William
2005-02-11 03:04:54 UTC
Permalink
Hello,

I did all this without a prior OS on the system. To boot the system
just enter the firmware and use the commands to boot whatever you want,
cd, floppy, zip, etc etc. Ya should be able to access it all from there.
What you need to do is find online the commands for open firmware for
the system in question. I do not remember the site, but I quickly just
searched for OpenFirmware and some other terms. For the bootup keyboard
sequence ya need, ya can find those on the net, too. Trying to remember
the site for something helpeful..."searching...."

Ahhh this may help you: http://www.penguinppc.org

William

Loading...