View previous topic :: View next topic |
Author |
Message |
Kumba Developer
Joined: 16 Jul 2002 Posts: 393 Location: Sigma 957
|
Posted: Wed Feb 09, 2005 3:07 pm Post subject: |
|
|
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 |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Wed Feb 09, 2005 3:40 pm Post subject: |
|
|
Hm... how would one go about cross-compiling a game cube linux system on a x86 machine? |
|
Back to top |
|
|
Paladine01 Tux's lil' helper
Joined: 17 Dec 2003 Posts: 131 Location: Phoenix AZ
|
Posted: Wed Feb 09, 2005 6:41 pm Post subject: |
|
|
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 |
|
|
einstein14 n00b
Joined: 30 Jun 2004 Posts: 25
|
Posted: Mon Sep 12, 2005 9:17 pm Post subject: |
|
|
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 |
|
|
Millen n00b
Joined: 29 Jul 2003 Posts: 16 Location: Hamburg
|
Posted: Sat Dec 17, 2005 11:37 am Post subject: |
|
|
@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
millen |
|
Back to top |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Sat Dec 17, 2005 1:07 pm Post subject: |
|
|
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 |
|
|
Paladine01 Tux's lil' helper
Joined: 17 Dec 2003 Posts: 131 Location: Phoenix AZ
|
Posted: Sat Dec 17, 2005 1:52 pm Post subject: |
|
|
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 |
|
|
Millen n00b
Joined: 29 Jul 2003 Posts: 16 Location: Hamburg
|
Posted: Mon Dec 19, 2005 9:12 pm Post subject: |
|
|
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 |
|
|
Kumba Developer
Joined: 16 Jul 2002 Posts: 393 Location: Sigma 957
|
Posted: Mon Dec 19, 2005 9:32 pm Post subject: |
|
|
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 |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Mon Dec 26, 2005 1:15 am Post subject: |
|
|
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 |
|
|
ThePeasant n00b
Joined: 16 Dec 2005 Posts: 10
|
Posted: Mon Jan 09, 2006 8:35 pm Post subject: |
|
|
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 |
|
|
ThePeasant n00b
Joined: 16 Dec 2005 Posts: 10
|
|
Back to top |
|
|
Xithix Apprentice
Joined: 31 Dec 2004 Posts: 228
|
Posted: Fri Jun 09, 2006 7:03 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Paladine01 Tux's lil' helper
Joined: 17 Dec 2003 Posts: 131 Location: Phoenix AZ
|
Posted: Thu Jun 29, 2006 4:19 am Post subject: |
|
|
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 |
|
|
|