Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on Gamecube
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Kumba
Developer
Developer


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

PostPosted: Wed Feb 09, 2005 3:07 pm    Post subject: Reply with quote

Much neatness. Like the new Google Maps. Maybe I'll have to find some time to Gentooify the Gamecube just for kicks n' giggles, and partially because the thing can run a more updated kernel than PS2 Linux can :P


--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
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2547
Location: In the city of dreaming spires

PostPosted: Wed Feb 09, 2005 3:40 pm    Post subject: Reply with quote

Hm... how would one go about cross-compiling a game cube linux system on a x86 machine?
Back to top
View user's profile Send private message
Paladine01
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2003
Posts: 131
Location: Phoenix AZ

PostPosted: Wed Feb 09, 2005 6:41 pm    Post subject: Reply with quote

http://www.voidpointer.org/gc-linux/cross_compiler.html

Here is the script I use to build my Cube's kernel. I have the script in
/home/gamecube/usr/src and the kernel lives in /home/gamecube/usr/src/linux-<version>.
Code:

#!/bin/sh

KERNEL=2.6.10

export PATH=/home/gamecube/usr/src/gcc/bin:$PATH

make -C linux-${KERNEL} ARCH=ppc CROSS_COMPILE=powerpc-gamecube-linux-gnu- $*
Back to top
View user's profile Send private message
einstein14
n00b
n00b


Joined: 30 Jun 2004
Posts: 25

PostPosted: Mon Sep 12, 2005 9:17 pm    Post subject: Reply with quote

I have followed your tutorial to make the cross compilator but during the compilation of gcc (3.4.3) i get :
Code:
In file included from ./crtstuff.c:62:
./tsystem.h:79:19: stdio.h: No such file or directory
./tsystem.h:82:23: sys/types.h: No such file or directory
./tsystem.h:85:19: errno.h: No such file or directory
./tsystem.h:92:20: string.h: No such file or directory
./tsystem.h:93:20: stdlib.h: No such file or directory
./tsystem.h:94:20: unistd.h: No such file or directory
./tsystem.h:100:18: time.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/tmp/gcc-3.4.3/gcc'
make: *** [all-gcc] Error 2


Do you have any idea?
Back to top
View user's profile Send private message
Millen
n00b
n00b


Joined: 29 Jul 2003
Posts: 16
Location: Hamburg

PostPosted: Sat Dec 17, 2005 11:37 am    Post subject: Reply with quote

@Paladine01:
Did an "emerge --sync" work on your Gentoo-Game-Cube-Linux? On mine it doesn't work, after two dozen files or so it says:
Code:

rsync: connection unexpectedly closed (2957266 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(189)

shit :x

millen
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Dec 17, 2005 1:07 pm    Post subject: Reply with quote

don't know what means your error message but i know 2 things about emerge --sync
-have problem with firewall (see gentoo handbook)
-doesn't work under bad connections (with bad wifi connection for example)
=>you can:
-emerge-webrsync
-do it manualy as in stage 3 install
-fix the problem
Back to top
View user's profile Send private message
Paladine01
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2003
Posts: 131
Location: Phoenix AZ

PostPosted: Sat Dec 17, 2005 1:52 pm    Post subject: Reply with quote

That error usually means you have run out of memory. I find it necessary to make sure I have my ARAM swap turned on, as well as have my NBD swap turned on. I usually give myself 128 megs of NBD swap. Emerge sync takes a lot of RAM.
Back to top
View user's profile Send private message
Millen
n00b
n00b


Joined: 29 Jul 2003
Posts: 16
Location: Hamburg

PostPosted: Mon Dec 19, 2005 9:12 pm    Post subject: Reply with quote

Sorry the late answer!
My swap is 16 MB aram and 128 MB nbd. So there should be no memory problem. To bypass the rsync-problem i have exported it on my nfs server. but when i want to emerge something, there happens nothing! I type in: emerge -pv mplayer, I wait and wait and nothing happens?!?!

Why is this linux so slow?
Back to top
View user's profile Send private message
Kumba
Developer
Developer


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

PostPosted: Mon Dec 19, 2005 9:32 pm    Post subject: Reply with quote

Millen wrote:
Why is this linux so slow?


Several reasons:
  • GCN has 24MB 1T-SRAM, 16MB ARAM
  • You're using a remote block device for swap
  • The network adapter itself is 10Mbit
These three factors conbined are the primary reasons for the slowness. The two biggest are the NBD for swap, and the relatively slow speed of the network adapter -- that swap has a lot of data traversing it most likely. The small amount of ram in GCN is the other factor. While GCN has more memory combined than PS2, only 24MB (based on my knowledge of GCN/Linux), is available for general memory usage, and the remaining, slower, 16MB is acting as a temp swap device. Thus, the bulk of your swap data is quite likely rocketting over your network constantly, causing the massive slowdown.


--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
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Mon Dec 26, 2005 1:15 am    Post subject: Reply with quote

you can try to obtimise NFS
mabe there are some nfs settings that are responsable for this
i don't remember if i saw all this on the gentoo wiki
Back to top
View user's profile Send private message
ThePeasant
n00b
n00b


Joined: 16 Dec 2005
Posts: 10

PostPosted: Mon Jan 09, 2006 8:35 pm    Post subject: Reply with quote

Kumba wrote:
  • The network adapter itself is 10Mbit

It isnt only 10Mbit, my cube is connected to my router and when I boot a GC disc ripper (GCOM) the 100Mbit LED on the router turns on. With some other GC programs the 10Mbit LED turns on.
Back to top
View user's profile Send private message
ThePeasant
n00b
n00b


Joined: 16 Dec 2005
Posts: 10

PostPosted: Wed Jan 18, 2006 3:43 pm    Post subject: Reply with quote

I have it working now too! :D
It is slow (syslog-ng compiled in no less than an hour :?), but it works!

A picture of my TV:
[img:7da4d28e16]http://img66.imageshack.us/img66/7905/gentoo00726rq.th.jpg[/img:7da4d28e16]
Back to top
View user's profile Send private message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Fri Jun 09, 2006 7:03 pm    Post subject: Reply with quote

GCOM is not a linux program, and does not use the linux driver.

GCOM uses the driver in libogc, modified by softdev for lwIP.

As far as I know, the linux driver is still at 10 mbit, but libogc and softdev's lwIP patched version are both open source (The LwIP version is still in CVS i believe). A 100mbit linux driver would help "the scene" immensely, considering the low ram and network swap.

Though it's not QUITE linux, those with modded cubes should really check this stuff out. Some of softdev's stuff is at http://softdev.tehskeen.com/downloads.htm and the community is at http://www.tehskeen.com/forums/index.php There are native (as in, bootab;e gamecube executable format, .dol) emulators and the like. Most of it is open source -- I've cross compiled it, but I used the cross compiler from devkitPro, specifically designed for native gamecube binaries, powerpc-gekko-gcc, as these aren't linux apps per se.

However, I do believe gc-linux has a very nice version of mplayer working, as well as apps like Supertux :)
_________________
:wq
Back to top
View user's profile Send private message
Paladine01
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2003
Posts: 131
Location: Phoenix AZ

PostPosted: Thu Jun 29, 2006 4:19 am    Post subject: Reply with quote

The network interface supports 100 Mbps. However, the bus that connects the NIC to the CPU maxes out at 27 Mbps. So we have a disconnect there. The driver throttles down to 10 Mbps because there's no way it can support 100 Mbps. Trust us, we've tried to get 100 Mbps working, but it's too unreliable.
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 Previous  1, 2
Page 2 of 2

 
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