GC Linux - RootFS on SD + SDHC SUPPORT!!

Discussion for GC-Linux on Gamecube & Wii
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by _Nold_ » Mon Nov 14, 2011 8:11 am

Hi,

some time ago, i was thinking about GC Linux and WHY THE F*** i need a NFS to use it ^^
So i started creating a GC-Linux which has it's root Filesystem on the second partition of my SD-Adapter... I dokumented it pretty good (i think.. at least better than my other projects xD)

But i had trouble with creating a nice and usefull root FS, so i just used the one from MFE which is useable. You could even create one using debootstap with ppc binarys, but it becomes pretty big... so after some trys i got bored, since videos are not really playable.. but mp3 should be fine..


So here are the files:

Kernel is 2.6.32 with mikep5 Patch
The Documentation: http://www.gc-forever.com/wiki/index.ph ... otFS_on_SD
Needed Config files: http://nold.freeunix.net/devnull/Downlo ... config.zip (root=/dev/gcnsda2 - gc-linux.org wiki paths are wrong)
Dol-File + RootFS: http://nold.freeunix.net/devnull/Downlo ... pha.tar.gz

Here you can download the complete sourcecode if you don't want to search the files ^^
http://ubuntuone.com/p/JsX/

Here you can see it booting: http://www.youtube.com/watch?v=pQwy9SYk5TI :)


Hope someone has some use for it - everything can be modified as you want it and feel free to ask me for help.



//Edit:
As may some of you noticed did i finish a SDHC driver for GC-Linux :)
Here is now my Beta release, would be cool if some of you could try it out, and give me some feedback.

The 16/32 stands for the SPI Clock (Known from SWISS) and the a/b for the port of the SD-Card.
gc-linux-sdhc-16.zip
(2.79 MiB) Downloaded 291 times
gc-linux-sdhc-32.zip
32MHz SPI
(2.79 MiB) Downloaded 300 times
And here is the driver:
gcn-sd.c.zip
(10.86 KiB) Downloaded 299 times
(Goes into drivers/block/)
It's not really nice written but it works... but since i never did something like that before, i'm actually pretty pround on myself ^^
Last edited by _Nold_ on Mon Feb 13, 2012 4:11 pm, edited 4 times in total.
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
liquitt
Posts: 1761
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland
Contact:

Re: GC Linux - RootFS on SD

Post by liquitt » Mon Nov 14, 2011 11:32 am

nice to see you here!
you seem to be somewhat into linux etc. - wanna help develop a mikep5-like patch for a more up-to-date kernel? :)
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Mon Nov 14, 2011 11:45 am

I have got nearly no idea of kernel patches but why not :D
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
liquitt
Posts: 1761
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland
Contact:

Re: GC Linux - RootFS on SD

Post by liquitt » Mon Nov 14, 2011 11:53 am

gamecube is still present in the 3.x kernels that recently came out, but it needs a lot of patching :(
why did mike stop after mikep5 :P

i created a googlecode for this. wanna get in? pm me your mailaddress
http://code.google.com/p/gc-linux-patch/
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Mon Nov 14, 2011 12:20 pm

Hmm... on the one hand it would be a real interessting and cool project but on the other hand i don't see the point for doing that much work... in my eyes the GC-Scene is nearly dead, next gen is coming and the gc is not really powerfull to do anything usefull under linux.. :(
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
liquitt
Posts: 1761
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland
Contact:

Re: GC Linux - RootFS on SD

Post by liquitt » Mon Nov 14, 2011 12:35 pm

Noldor wrote:Hmm... on the one hand it would be a real interessting and cool project but on the other hand i don't see the point for doing that much work... in my eyes the GC-Scene is nearly dead, next gen is coming and the gc is not really powerfull to do anything usefull under linux.. :(
the gc-scene is dead? your registration to this forum should've shown you that this is not true ;)
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Mon Nov 14, 2011 12:43 pm

Ok, you're right :D
So, let's have a try...
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
emu_kidid
Site Admin
Posts: 4507
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: GC Linux - RootFS on SD

Post by emu_kidid » Mon Nov 14, 2011 10:54 pm

thanks for the guide, I'll have to try it out :)
Image
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Tue Nov 15, 2011 9:24 am

I just updated the guide a little bit... I wrote it really fast, so there are a lot of mistakes >.< sorry for that...

And i found the mplayer settings i think mfe uses:

Code: Select all

mplayer -slave -noconsolecontrols -quiet -nojoystick -framedrop -cache 4096 -subfont-autoscale 1 -subpos 70 -sub-fuzziness 1
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Tue Nov 15, 2011 8:16 pm

I just noticed there are a lot of mistakes in my ducomentation f.e. the device node path's are wrong >.<
I will correct that tomorrow but for now i've got a working rootfs with mplayer, init, audio-ram-swap, fstab,...
Kernel.dol is included, too. Don'T forget to unpack as root, so the device nodes are created correctly!

Download: http://nold.freeunix.net/devnull/Downlo ... pha.tar.gz
Here you can see it booting: http://www.youtube.com/watch?v=pQwy9SYk5TI :)
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Wed Nov 16, 2011 7:34 am

I transfered my Documentation into the gc-forever wiki and updated it with right fstab and init-script :)
http://www.gc-forever.com/wiki/index.ph ... otFS_on_SD

Edit: Updated 1st Post...
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: GC Linux - RootFS on SD

Post by megalomaniac » Fri Nov 18, 2011 6:23 am

Noldor wrote:I transfered my Documentation into the gc-forever wiki and updated it with right fstab and init-script :)
http://www.gc-forever.com/wiki/index.ph ... otFS_on_SD

Edit: Updated 1st Post...
good job..
linked your wiki page to main page to make it easier for others to find
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Fri Nov 18, 2011 6:27 am

My Keyboard Adapter just arrived yesterday so could just try it out.. It only seems to work in Slot-1 what sucks a little bit because my viper gc needs a controller in no. 1 -.- but ok..
One Problem i had was mounting the root read-write, couldn't remount because "Device is busy".. same on the first partition vfat...
But i forgot that i compiled a kernel.dol with rw.. need to try that one..

And then i will start building a better rootfs. Think i will use debootstrap in first place...
Damn, i need a BBA ^^
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
liquitt
Posts: 1761
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland
Contact:

Re: GC Linux - RootFS on SD

Post by liquitt » Fri Nov 18, 2011 8:31 am

i need an autoboot - ssh enabled - ha cluster - gc-linux :D
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Fri Nov 18, 2011 8:34 am

Why HA-Cluster? High Performance :D
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
liquitt
Posts: 1761
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland
Contact:

Re: GC Linux - RootFS on SD

Post by liquitt » Fri Nov 18, 2011 9:22 am

i have this project called gc-cluster where i want to have 8 gamecubes with linux clustered and one management "server"
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Fri Nov 18, 2011 9:26 am

Wow thats kinda cool ^^ ..
My biggest problem is that i have no BBA. That makes testing really slow.. Trying to get one, but i think i need to join the collective order for the next year :/
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
liquitt
Posts: 1761
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland
Contact:

Re: GC Linux - RootFS on SD

Post by liquitt » Fri Nov 18, 2011 9:28 am

btw thanks for the tutorial but maybe you should add another one that makes use of your already compiled stuff etc.

on the bba: i can borrow one for the time being
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Fri Nov 18, 2011 9:31 am

Thanks a lot for your offer but i don't like to borrow things from others :/ ...
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
liquitt
Posts: 1761
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland
Contact:

Re: GC Linux - RootFS on SD

Post by liquitt » Fri Nov 18, 2011 9:52 am

also, some commands for example for SD card formatting would be useful to some :)
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Fri Nov 18, 2011 10:20 am

i used cfdisk for that, but you could even use gparted oder the drive-utilty that comes with ubuntu or mint (Which is really handy btw)..
i will take a look on that later ^^


I just wrote a short tut how to prepare your SD with fdisk and mkfs: http://www.gc-forever.com/wiki/index.ph ... with_fdisk

hf!
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
infact
Posts: 347
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: GC Linux - RootFS on SD

Post by infact » Fri Nov 18, 2011 3:33 pm

Noldor: You may add "force_keyboard_port=4" to your kernel command line, to avoid your viper-controller-switching-thingie.
infact
Image Image
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Fri Nov 18, 2011 5:00 pm

thanks man! I knew there was something with 4! But i deleted it since i didn't hab a keyboard adapter before >.<

EDIT: I just recompiled with force_keyboard, rw and rootwait... seems to work good but keyboard @ port 4 dosn't work even if he says it's forced:

[ 6.119620] input: keyboard as /class/input/input0
[ 6.127626] gcn-si: port 1: keyboard
[ 6.135406] gcn-si: port 4 forced to keyboard mode
[ 6.143177] input: keyboard (forced) as /class/input/input1
[ 6.150805] gcn-si: port 4: keyboard (forced)

(Port 1 is my real keyboard...)
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
User avatar
infact
Posts: 347
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: GC Linux - RootFS on SD

Post by infact » Sat Nov 19, 2011 3:21 pm

Strange. For me it works like this:
Wavebird receiver in port 1, ps/2 keyboard adapter in port 4 and "force_keyboard_port=4" in the kernel command line.
infact
Image Image
User avatar
_Nold_
Posts: 213
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Sat Nov 19, 2011 5:47 pm

Lol - now it's working for me, too.. that's strange :D
| DOL-001 (EUR) Indigo | WKF Plug'n'Play Diskdrive Replacement | BBA |
| Internalised: WaveBird, Keyboard Adapter, MemoryCard, SD-Adapter |

| DOL-001 (EUR) | >> First Gamecube Portable - Worklog
Post Reply