Page 1 of 2

GC Linux - RootFS on SD + SDHC SUPPORT!!

Posted: Mon Nov 14, 2011 8:11 am
by _Nold_
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 ^^

Re: GC Linux - RootFS on SD

Posted: Mon Nov 14, 2011 11:32 am
by liquitt
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? :)

Re: GC Linux - RootFS on SD

Posted: Mon Nov 14, 2011 11:45 am
by _Nold_
I have got nearly no idea of kernel patches but why not :D

Re: GC Linux - RootFS on SD

Posted: Mon Nov 14, 2011 11:53 am
by liquitt
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/

Re: GC Linux - RootFS on SD

Posted: Mon Nov 14, 2011 12:20 pm
by _Nold_
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.. :(

Re: GC Linux - RootFS on SD

Posted: Mon Nov 14, 2011 12:35 pm
by liquitt
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 ;)

Re: GC Linux - RootFS on SD

Posted: Mon Nov 14, 2011 12:43 pm
by _Nold_
Ok, you're right :D
So, let's have a try...

Re: GC Linux - RootFS on SD

Posted: Mon Nov 14, 2011 10:54 pm
by emu_kidid
thanks for the guide, I'll have to try it out :)

Re: GC Linux - RootFS on SD

Posted: Tue Nov 15, 2011 9:24 am
by _Nold_
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

Re: GC Linux - RootFS on SD

Posted: Tue Nov 15, 2011 8:16 pm
by _Nold_
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 :)

Re: GC Linux - RootFS on SD

Posted: Wed Nov 16, 2011 7:34 am
by _Nold_
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...

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 6:23 am
by megalomaniac
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

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 6:27 am
by _Nold_
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 ^^

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 8:31 am
by liquitt
i need an autoboot - ssh enabled - ha cluster - gc-linux :D

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 8:34 am
by _Nold_
Why HA-Cluster? High Performance :D

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 9:22 am
by liquitt
i have this project called gc-cluster where i want to have 8 gamecubes with linux clustered and one management "server"

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 9:26 am
by _Nold_
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 :/

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 9:28 am
by liquitt
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

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 9:31 am
by _Nold_
Thanks a lot for your offer but i don't like to borrow things from others :/ ...

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 9:52 am
by liquitt
also, some commands for example for SD card formatting would be useful to some :)

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 10:20 am
by _Nold_
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!

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 3:33 pm
by infact
Noldor: You may add "force_keyboard_port=4" to your kernel command line, to avoid your viper-controller-switching-thingie.

Re: GC Linux - RootFS on SD

Posted: Fri Nov 18, 2011 5:00 pm
by _Nold_
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...)

Re: GC Linux - RootFS on SD

Posted: Sat Nov 19, 2011 3:21 pm
by infact
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.

Re: GC Linux - RootFS on SD

Posted: Sat Nov 19, 2011 5:47 pm
by _Nold_
Lol - now it's working for me, too.. that's strange :D