Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto Gentoo on other architectures
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
heini
n00b
n00b


Joined: 20 Sep 2002
Posts: 32

PostPosted: Mon Sep 23, 2002 6:47 am    Post subject: Howto Gentoo on other architectures Reply with quote

Hello,

I was just looking over gentoo.org, trying to find out how to port the different stages (at least stage 1) to another architecture (m68k), but couldn't find this information anywhere (maybe I'm just blind). Could someone point me to the right direction?

Thanx...

Heini (aka Dirk Heinrichs)
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Sep 23, 2002 7:40 am    Post subject: Reply with quote

I would start with trying to compile the non-Python bits of Portage, which are notably libsandbox and the missingos Python extension. The source code to Portage is contained in /usr/portage/sys-apps/portage/files/ on a Gentoo system, or that can be extracted out of a portage tree snapshot from http://cvs.gentoo.org/snapshots/.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
xphyr
n00b
n00b


Joined: 09 Sep 2002
Posts: 16
Location: Rochester, NY

PostPosted: Wed Sep 25, 2002 1:25 pm    Post subject: Here is how I am doing it (your mileage may varry) Reply with quote

Here is how I am doing it (working on MIPS based (MIPSEL, to be exact)) and here is the steps I have taken thus far to get it working:

First off have a semi-modern working distrobution that you are developing on. (The first mistake I made was trying to get things to work on a Linux 2.0 kernel with very old libraries. Not a good idea.)

Second, I got a copy of Python 2.2 compiled for the machine.

Third, is to get a copy of portage installed on your machine. I looked at the portage ebuild file to figure out how to install it and where the different parts should go. Once the portage files are resting happily in thier correct directories, run an emerge rsync. I ran into a problem with this right off the bat, and had to make a small comment in the code for it to work. Sorry I dont remember it off the top of my head, but it had to do with trying to free a variable "x" that hadent been used. If you get some error like this let me know I can probbably talk you through it.

Fourth DONT RSYNC again.... (at least not for now, any changes you make will be erased if you do). Go into the /usr/portage/profiles directory and create a new directory for your architechture (in my case I created a default-mipsel-1.4 directory) Copy the files from one of the other profile directories into your newly created one and start editing....

Fifth, create a new "root" directory for your new system (in my case I created a /u01/gentooroot directory). Set ROOT=<your new gentoo root> and export it. After that you will need to start editing the ebuild files ... I found that if you editied the "Keyword" entry in each of the e-build files and added your architecture name to them, that you could get the files to build.

I found that after doing this, and then doing an emerge -p portage, and editing the ebuilds for each of the requirements specified that I was able to get a system to "emerge". I am still in the early stages of this, (it takes a while to build on a 250MHz MIPS processor) but I will be more than happy to help answer any questions if I can.

--NOTE-- I don't know if this is the correct way to do this, I will not be held responsible if you fsck your system, or if all the work you do is in vain and never works ... etc... etc.... etc...
Back to top
View user's profile Send private message
heini
n00b
n00b


Joined: 20 Sep 2002
Posts: 32

PostPosted: Tue Oct 22, 2002 6:08 am    Post subject: Thank you very much Reply with quote

First, sorry for the late reply :-(

I think I will give it a try if I find the time. But don't expect things to arrive soon. The machine I want to use is 50 MHz m68060.

I'll start using debian woody (the only one distribution for m68k machines today). I think they have Python 2.2 in testing/unstable. If not, I'll build it myself.

What's not clear to me by now is how to get a stageX tarball out of it, once I'm done.

Some kind of "Howto Bootstrap Gentoo on a new Platform" with step-by-step instructions would be nice to have.

Bye...

Dirk
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 373
Location: Sigma 957

PostPosted: Mon Oct 28, 2002 10:14 pm    Post subject: Reply with quote

Hmm, I will definitely have to pay attention to this thread. I won an eBay auction for a second-hand SGI Indigo2 R4600 machine, and I plan on trying to give linux a shot on it. I guess I'll have to also start off with debian's mips port and see if I can get gentoo's portage system running....Should be interesting, to say the least.

--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
torgeir
n00b
n00b


Joined: 08 Dec 2002
Posts: 3

PostPosted: Sun Dec 08, 2002 5:53 pm    Post subject: automate creation of stage1 and boot-image for new archs? Reply with quote

I just started yesterday with making a gentoo for my Indy, before i discovered some valuable info here in the forums ;)

Now I'm thinking about trying to automatize the process to simplify it for not only ourselves but those that come after us.
This process is obviously not easy (if possible) to fully automatize, but alot can be done - with building a boot-image, a stage1-system, and some scripts to automatize updating KEYWORD in the ebuilds.
This, accompanied with info on how to get a working kernel and a bootable medium (floppy,cdrom,tftp) - future porting should be way easier..

Does anyone else feel the same way?
Back to top
View user's profile Send private message
bahkyp
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2002
Posts: 86
Location: Sydney Australia

PostPosted: Fri Dec 13, 2002 11:43 pm    Post subject: Reply with quote

Step by step cross compile would also be nice. (so you can compile on a fast mechine and cross it over to a slow one)
_________________
I'm so small, I can fit under the door.
I was here yesterday, this is a recording.
Back to top
View user's profile Send private message
torgeir
n00b
n00b


Joined: 08 Dec 2002
Posts: 3

PostPosted: Sat Dec 14, 2002 4:34 pm    Post subject: Reply with quote

Hehe, this was just too god not to share; I'm currently trying to compile gcc-3.2 on my indy, and checked the uptime;

indy:/tmp/gcc-3.2.1# uptime
17:44:51 up 7 days, 55 min, 1 user, load average: -359538626972463141629054847463408713596141135051689993197834953606314521560057077521179117265533756343080917907028764928468642653778928365536935093407075033972099821153102564152490980180778657888151737016910267884609166473806445896331617118664246696549595652408289446337476354361838599762500808052368249716736.00, 1.02, 0.92
indy:/tmp/gcc-3.2.1# uptime
17:44:58 up 7 days, 55 min, 1 user, load average: 1.05, 1.02, 0.92

Can we count a negative load-value as the system wanting more to do? ;)

(PS: this IS actually for real, no fake! I'm guessing that some operation that should have been atomic isn't ;)
Back to top
View user's profile Send private message
drandy
n00b
n00b


Joined: 31 Dec 2002
Posts: 1

PostPosted: Tue Dec 31, 2002 11:38 pm    Post subject: automating the builds Reply with quote

I'm wondering if the code base is currently set up to make cross compiling straightforward.

If there are existing scripts for building the CD images and the tarballs, I'm wondering where
they can be found.

It certainly is feasible to build for any architecture on any architecture; gcc certainly can handle that, and it should be possible to build a disk on one paltform, and then boot off it
on another.

it's even possible that it could be done with a combination of cflags and path tricks; just a matter of keeping the current runtime from tripping over the new builds.

I'd like to try to do it, and would like to know how to buiild the CD's for some cross platform testing. It would be straiightforward from there to be able to build a binary install CD, that just dumps the stage 3 tarball. I already have some code that might be useful here.
Back to top
View user's profile Send private message
drteeth
n00b
n00b


Joined: 15 Jan 2003
Posts: 9

PostPosted: Wed Jan 15, 2003 4:28 am    Post subject: Reply with quote

Quote:
...emerge rsync. I ran into a problem with this right off the bat, and had to make a small comment in the code for it to work. Sorry I dont remember it off the top of my head, but it had to do with trying to free a variable "x" that hadent been used. If you get some error like this let me know I can probbably talk you through it.

:]

I'm trying to get gentoo on working on my Netwinder(ARM). I've got Debian 3.0 installed, and semi-successfully got portage working. I'm having two problems.

1) there is a problem calculating dependencies.
Code:
Calculating dependencies \
!!! all ebuilds that could satisfy ">=sys-libs/ncurses-5.2-r2" have been masked.
!!!    (dependency required by "app-editors/joe-2.9.5" [ebuild])

!!! Error calculating dependancies. Please correct.

2) emerge has trouble wget-ing packages, which seems to have to do with ${x} in portage.py. When getting sources, emerge complains:
Code:
>>> Downloading http://switch.dl.sourceforge.net/sourceforge/joe-editor/joe-2.9.5.tgz
wget: missing URL

any help whatsoever would greatly appreciated.
Back to top
View user's profile Send private message
seemant
Retired Dev
Retired Dev


Joined: 16 Nov 2002
Posts: 61
Location: Oakland, CA

PostPosted: Sun Jun 15, 2003 1:34 am    Post subject: just watching Reply with quote

see subject :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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