Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Octane installation problems
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Sun Oct 16, 2005 6:12 pm    Post subject: Octane installation problems Reply with quote

After successfully netbooting my Octane, I created partitions etc.

At first I downloaded the stage1-mips3 which was probably wrong because after many compiling hours it gave me a "Bus error" ,
I googled a bit and found that I should download the stage3-mips4.

After downloading the stage3-mips4 and followed the gentoo handbook instructions I could not find the .config file for the kernel , so I just gave it a try with the defaults. (Where can I find this? The site that the handbook refers to mentions some configs but has no download files.)

Anyway , I just started to compile the kernel and immediately got a pretty message stating that it could not find the "gnu-mips-gcc"

Any suggestions?

Thanks in advance
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Mon Oct 17, 2005 3:45 am    Post subject: Reply with quote

I believe geoman has already answered your question on IRC... but just for the sake of the archives...

With the Octane and Octane2, you need to apply special patches to mips-sources to support the Octane. This includes things like ImpactSR, VPro, IOC3 and other bits and pieces.

This is done for you by setting ip30 in your USE flags. This will gain you the sources you need.

The other alternative is to fetch raw sources from the Linux/MIPS Git repository, then patch them using Skylark's SpeedRacer patches. Do this at your own perril though. ;-)

IP28 users, likewise, should have USE=ip28, and, if they wish to roll-their-own source, should use patches from Peter Fuerst's site. The USE=ip28 is especially important though, as it enables the cache barriers patch, required to work around a (hardware) caching issue on the Indigo2 R10000.

IP27 users, again, USE=ip27. I'm not sure where you get the patches for this platform though, these machines are somewhat complex by nature.

Note that it's not possible to use vanilla kernel.org sources on MIPS, nor is it possible to use any of the other source trees available in sys-kernel.

For the .config -- if someone has contributed one, you can look for it in the hardware compatability database and use one of the configs there, or, there's one distributed with the kernel. To use the in-kernel one, use make ip30_defconfig. To use one of the "canned" configs, download the text file, save as .config, drop it in your kernel tree and run make oldconfig. (Ohh, and if you have a config that works, do us a favour and contribute your .config and notes unless it's identical to one already present :-D)

On 64-bit systems, such as those above, unless you're running a n32 userland (which is strongly discouraged at present), you'll need to also emerge a 64-bit capable GCC. emerge gcc-mips64 should look after this.

This is stuff I know belongs in the guide... hopefully now that some of this uni stuff is through, I should have the time to make some of the necessary updates.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Mon Oct 17, 2005 7:47 am    Post subject: Reply with quote

Thanks a lot for your help , I also needed to 'emerge binutils' for 'make' to work.

I think the USE="ip30" made the job

As you have probably noticed I am extremely noob in Gentoo and Octane so I need more time to get into it.

'make ip30_defconfig' does not work , make oldconfig worked and asked me a few questions , afterwards i went through make menuconfig and noticed that everything related to SGI was already selected , so I went for make && make modules_install

We will find out today what happened.
Back to top
View user's profile Send private message
Galahad
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2003
Posts: 126

PostPosted: Mon Oct 17, 2005 11:14 pm    Post subject: Reply with quote

May I ask what the status of VPro is and what will be supported in an upcoming driver? Just console or X, too? And if, will X be accelerated or shadowfb like Impact.
I guess all that would be needed would be an accelerated X over opengl driver.
When it has progressed that far, I'll happily betatest everything I can get my hands on. I even bought a second HD for my octane in anticipation ;) .
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Tue Oct 18, 2005 7:23 am    Post subject: Reply with quote

At the moment I cannot even build the kernel.

I started the whole procedure from scratch and now it says that it cannot build an 64bit kernel with abi 32.

:evil: :evil: :evil:

It will not get away , I will make it.
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Tue Oct 18, 2005 12:33 pm    Post subject: Reply with quote

Galahad wrote:
May I ask what the status of VPro is and what will be supported in an upcoming driver? Just console or X, too? And if, will X be accelerated or shadowfb like Impact.
I guess all that would be needed would be an accelerated X over opengl driver.
When it has progressed that far, I'll happily betatest everything I can get my hands on. I even bought a second HD for my octane in anticipation ;) .


I don't think there's a VPro driver for X as yet.... shadowfb or otherwise.
In fact, I don't even think Skylark's figured out DMA on VPro yet -- which will hurt performance rather bad.

cioannou wrote:
At the moment I cannot even build the kernel.
I started the whole procedure from scratch and now it says that it cannot build an 64bit kernel with abi 32.


You sure you selected everything right? What's the exact error message?
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Tue Oct 18, 2005 2:07 pm    Post subject: Reply with quote

Quote:

You sure you selected everything right? What's the exact error message?


I am not sure , since the docs are not very helpful when it comes to Octane.

After some docs reading and some IRC I tried to build a guide by myself which says:

1) fdisk , add partitions ext2 and -j ext2
2) wget and extract stage3-mips4 , chmod 0755 , portage
3) mount (slight problems here since after netbooting the initial / is ro) and when I mount the ext2 filesystems I get some errors which I ignore.
3.a) (mirrorselect does not run)
4) chroot , env-update , source /etc/profile
5) emerge --sync
6) ln -s <path_to_profile>/mips/mips64/2005.0 /etc/make.profile
7) USE="ip30 kde qt alsa"
8) I don't touch locales
9) set timezone GMT+2
10) emerge mips-sources
11) emerge mips-gcc64
12) make oldconfig (make help does not contain an ip30_defconfig)
13) make menuconfig and save (All SGI IP30/Octane related options are already selected , don't know if I have to select anything else)
14) make && make modules_install

Didn't keep yesterday's error message because I was very angry with me for not doing it right again but the idea is that I cannot build a mips64 system with a 32 abi (-mabi=32 is defined in make.conf)

Since I am a total noob with SGI and Gentoo I cannot even guess where should I search for mistakes so I start everything from chroot and forth
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Wed Oct 19, 2005 12:05 am    Post subject: Reply with quote

Well, the lack of an Octane here has a lot to do with the docs being somewhat lacking in Octane support. They need a full update again, as they were rewritten prior to Octane becomming stable.

http://dev.gentoo.org/~kumba/mips/misc/ip30.conf <-- There's a kernel config for Octane on Linux 2.6.10 -- you could try that.
http://dev.gentoo.org/~kumba/mips/netboot/configs/ <-- or there's these, one was used to generate the netboot you're probably using.

If you have any updates for the documentation, then please, do tell... I somewhat rely on feedback to get things fixed. :-)
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Wed Oct 19, 2005 6:50 am    Post subject: Reply with quote

Redhatter wrote:
Well, the lack of an Octane here has a lot to do with the docs being somewhat lacking in Octane support. They need a full update again, as they were rewritten prior to Octane becomming stable.

If you have any updates for the documentation, then please, do tell... I somewhat rely on feedback to get things fixed. :-)


Thanks for your answer , if I get to any stable steps I will sure tell.

If I ever make it to work I would gladly give you shell access to the Octane.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Wed Oct 19, 2005 7:25 am    Post subject: Reply with quote

By the way , I was always wondering , how do you find all this info, especially for not current hardware. And most important how did you learn to program this stuff?

C and C++ have always been a "I have to learn" for me but never made it through. Unfortunately there are no seminars or training centers here in Greece that could help and books are not very helpful when things get tough.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Sun Oct 23, 2005 4:53 pm    Post subject: Reply with quote

Thanks a lot for the help ,

at least with the ip30.conf it starts compiling.

Will let you know.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Sun Oct 23, 2005 7:21 pm    Post subject: Reply with quote

It actually compiled and I started emerging things up to......

* Arcboot does not work on systems that can only boot pure 64bit
* ELF binaries. Arcboot needs some work to be able to compile as
* an ELF64 object. Patches are welcome!

!!! ERROR: sys-boot/arcboot-0.3.8.6-r1 failed.
!!! Function pkg_setup, Line 39, Exitcode 0
!!! No ELF64 Support
!!! If you need support, post the topmost build error, NOT this status message.

Any suggestions?
Back to top
View user's profile Send private message
Galahad
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2003
Posts: 126

PostPosted: Mon Oct 24, 2005 1:12 pm    Post subject: Reply with quote

You have 2 options:

- use arcload
- use no bootloader at all, the prom can load a linux kernel directly
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Mon Oct 24, 2005 2:06 pm    Post subject: Reply with quote

Heh, I don't program the stuff... I just compile, test, package & document it. :-) That said, I do have skills in C/C++ programming -- my C knowledge being self-taught, and I've learned C++ at uni.

With the bootloader -- use arcload. Apparently there's an issue with IP30 and IP32 with booting from the volume header. Also, arcboot only handles IP22 and IP32.
arcload is not covered in the handbook, as it didn't exist at the time. However, now that it does exist (and I've figured out how to use it), you can expect a new section shortly. ;-)
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Tue Oct 25, 2005 8:53 am    Post subject: Reply with quote

Arcload works "fine".....

There is a small catch, the VolHdr must be large enough for the bootloader and the kernel.

It finds the kernel loads it and stops at: "Entering Kernel" , some guy from the Irc told me that the .config does not include support for the graphics console.

I will re-compile the kernel and let you know.

Another thing I noticed is that I have to ln -s various utils like "ld" , "ar" etc to their binary because during compilation it looks for other names than the ones installed.
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Tue Oct 25, 2005 11:22 pm    Post subject: Reply with quote

Let me guess... mips64-linux-gnu-{as,ld,gcc}? If so, turn off Are You Using a Cross Compiler in the Kernel Hacking section of the kernel config.
Then, when building, just pass make vmlinux modules CROSS_COMPILE=mips64-unknown-linux-gnu-
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
Galahad
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2003
Posts: 126

PostPosted: Wed Oct 26, 2005 3:36 pm    Post subject: Reply with quote

That was the good with n32, no need to cross compile, unfortunately some apps have their own .so loaders, and these don't like n32.
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Thu Oct 27, 2005 9:21 am    Post subject: Reply with quote

I wouldn't recommend n32 though unless you're ancipating a very bumpy ride!

Yes, some stuff works, and works very well... but then some stuff is totally FUBAR (Fscked Up Beyond All Recognition). This is the reason why n32 is not officially supported.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
Galahad
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2003
Posts: 126

PostPosted: Fri Oct 28, 2005 11:48 am    Post subject: Reply with quote

I noticed that ;)

xorg for example doesn't work at all.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Mon Oct 31, 2005 7:25 am    Post subject: Reply with quote

You are at a good point , I still can't get it to boot.
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Mon Oct 31, 2005 7:43 am    Post subject: Reply with quote

Are you seeing anything at all, either via the screen, or via serial console?
Have you got your .config somewhere handy for us to have a look at?
Have you tried using the .config from the netboot (/proc/config.gz)?
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Mon Oct 31, 2005 12:02 pm    Post subject: Reply with quote

Redhatter wrote:
Are you seeing anything at all, either via the screen, or via serial console?
Have you got your .config somewhere handy for us to have a look at?
Have you tried using the .config from the netboot (/proc/config.gz)?


All I can see is

"Entering kernel"

the config file I used is:

http://dev.gentoo.org/~kumba/mips/misc/ip30.conf

I was away for a few days and I hope that today I will retry to check the config file if it includes support for the graphics console.

The netboot config is a good idea , will try that too.

Txs
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Mon Oct 31, 2005 12:24 pm    Post subject: Reply with quote

cioannou wrote:
Redhatter wrote:
Are you seeing anything at all, either via the screen, or via serial console?
Have you got your .config somewhere handy for us to have a look at?
Have you tried using the .config from the netboot (/proc/config.gz)?


All I can see is

"Entering kernel"


Do you see that on the monitor or serial console?
Have you tried plugging in a serial terminal, and watching that as you boot the machine?

Quote:
the config file I used is:

http://dev.gentoo.org/~kumba/mips/misc/ip30.conf

I was away for a few days and I hope that today I will retry to check the config file if it includes support for the graphics console.


I just had a look now, I believe the config option you're after is one of CONFIG_FB_IMPACT, CONFIG_FB_IMPACTSR or CONFIG_FB_VPRO(?). I don't see any of those for that kernel config. ;-)

Quote:
The netboot config is a good idea , will try that too.


I suggested it, as presumably, it worked well enough for an installation, and so has the necessary options set. :-)
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
spbecker
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 73

PostPosted: Wed Nov 02, 2005 2:01 am    Post subject: false Reply with quote

Galahad wrote:
I noticed that ;)

xorg for example doesn't work at all.


Sorry, as the maintainer of all things X on gentoo/mips, I can say that this statement is definitely wrong. Xorg has no problems running on n32 userland.
Back to top
View user's profile Send private message
spbecker
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 73

PostPosted: Wed Nov 02, 2005 2:04 am    Post subject: coincidence != causation Reply with quote

Galahad wrote:
That was the good with n32, no need to cross compile, unfortunately some apps have their own .so loaders, and these don't like n32.


Are you alluding the xorg's module loader here? Again, this is a false statement. The .so loader was universally broken on mips, forcing folks to compile with USE="static" before. However, dlloader works just fine now. If you put dlloader in your USE flags, you will have no such problems anymore.
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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