GC Linux - RootFS on SD + SDHC SUPPORT!!

Discussion for GC-Linux on Gamecube & Wii
User avatar
Kalifornia Jani
Posts: 8
Joined: Sun Sep 05, 2010 5:20 pm
Location: Finland

Re: GC Linux - RootFS on SD

Post by Kalifornia Jani » Sun Nov 20, 2011 8:08 pm

I got debian 6 (stable) running successfully now on my gamecube!!! I had power mac G4 running linux so it was easy to install it with debootsrap and then chroot to it using /bin/bash as a shell, I installed aram swap as a device etc. I want to move working advance mame files to it now and then i will do tar-package from it, and it fits in second partition of 2gb sd-card (1.70 gb as a size). Who is interested on it? SSH shell is included as well as kernel support for keyboard etc. I will make second (virtual)swap also inside the file system :lol:
Image
User avatar
liquitt
Posts: 1810
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland

Re: GC Linux - RootFS on SD

Post by liquitt » Sun Nov 20, 2011 9:31 pm

always interested!
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
deku_scrub
Posts: 172
Joined: Thu Apr 01, 2010 7:34 pm
Location: Balneário Camboriú, Santa Catarina - Brasil

Re: GC Linux - RootFS on SD

Post by deku_scrub » Sun Nov 20, 2011 11:55 pm

Will ever be a guide for dummyes to run Linux on GC like you guys are doing? Maybe a ready to use package?

Are you guys using with GUI?
__ deku_scrub __ Wii D3-2 | System 4.3 | HC installed using Smash Stack | WODE Jukebox
Xbox 360 Slim 4GB | 320GB Hacked HDD | x360key
User avatar
_Nold_
Posts: 212
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Mon Nov 21, 2011 6:35 am

There is a ready to use package: http://nold.freeunix.net/devnull/Downlo ... pha.tar.gz (See 1st post)
And there is a guide in the wiki. The only thing you need to do, is to create 2 partitions on your SD-Card

one normal fat for your gcImage.dol
and one ext3 for your filesystem

then just start the gcImage.dol as every dol-file... But there is no gui or something, without ssh (BBA) or Keyboard Adapter it's pretty useless at the moment ^^

but as i can see, you have got a wii, so take a look at whiite linux, it has a gui and runs great as far as i remember..
| 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
deku_scrub
Posts: 172
Joined: Thu Apr 01, 2010 7:34 pm
Location: Balneário Camboriú, Santa Catarina - Brasil

Re: GC Linux - RootFS on SD

Post by deku_scrub » Mon Nov 21, 2011 9:17 am

Oh yeah, I need to update this sign and put my cubes again :p

Gonna take a loot at Whiite Linux... it's been a long time since I heared about it last time! ^^
__ deku_scrub __ Wii D3-2 | System 4.3 | HC installed using Smash Stack | WODE Jukebox
Xbox 360 Slim 4GB | 320GB Hacked HDD | x360key
julius
Posts: 201
Joined: Thu Nov 04, 2010 5:11 pm

Re: GC Linux - RootFS on SD

Post by julius » Mon Nov 21, 2011 5:24 pm

I saw this thing around two years ago in another site. In that time I prepared my micro sds (2 gb and 1gb) with the fat and ext2 partitions, but it didn´t work. Several weeks ago I tried again with those micro sds plus 1 more (512 mb), this time only worked the 512 mb micro sd, and only started fme mortimor (wich is not so good as mplayer for gc); advance mame, nes or snes emulator did not work. The other two micro sds do not work yet, maybe because should reformat again the cards, the matter is I do not know nothing about Linux and do not know how formatting the cards. Any suggestion?
User avatar
_Nold_
Posts: 212
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD

Post by _Nold_ » Thu Dec 22, 2011 9:31 pm

@Kalifornia Jani: I would be really interessted in your rootfs!
Few days ago, i was playing around with debootstrap but the problem is, that i don't have a ppc :/
Tryed to set up a qemu with debian but it crashes on installation :(
| 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: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: GC Linux - RootFS on SD

Post by emu_kidid » Thu Jan 05, 2012 10:14 pm

finally tried this out last night - very nice work on getting it all together :)
Image
User avatar
liquitt
Posts: 1810
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland

Re: GC Linux - RootFS on SD

Post by liquitt » Thu Jan 05, 2012 10:17 pm

emu_kidid wrote:finally tried this out last night - very nice work on getting it all together :)
nice! did you have any trouble installing/running it?
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: 212
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by _Nold_ » Mon Feb 13, 2012 4:12 pm

Updated first post with Kernels supporting SDHC!

Hope that some people could give it a try and give me some feedback...
Thanks a lot :)
| 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: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by infact » Wed Feb 22, 2012 5:53 pm

My feedback:
SDHC works so far for me, but only when i reconnect the SDGecko, when the Kernel looks for the rootfs.
Maybe you forgot to initialize something, if it is already plugged in, but do it properly when it is connected at runtime?
infact
Image Image
User avatar
_Nold_
Posts: 212
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by _Nold_ » Wed Feb 22, 2012 6:13 pm

it should ^^ and with my card it does! .. that's why i need beta testers :D
I havn't tried other card.. as i just see it's a no-name class 2 card, maybe there could the problem begin ^^
i should have left my dbg output in so everybody could see where the problem is..
i will compile a beta-testing kernel tomorrow, so we get more usefull error messages..

But the problem dosn't really seem to be the init-process, since it works after you plug it in again :/
we'll see..

//Edit: Did you try both: 16 and 32MHz SPI?
| 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: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by emu_kidid » Wed Feb 22, 2012 9:56 pm

infact, perhaps the issue here is that your card is already initialized via Swiss then it's attempted to be re-initialized?
Image
User avatar
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by infact » Wed Feb 22, 2012 10:24 pm

maybe, but i think it worked with my sd card before... have to retry it.
infact
Image Image
User avatar
_Nold_
Posts: 212
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by _Nold_ » Thu Feb 23, 2012 4:37 am

I used swiss, too. That shouldn't be the problem since the sd-card is getting resetted by the initialisation of the gcn-sd-driver, too...
| 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: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by infact » Thu Feb 23, 2012 11:51 pm

I built a new debian squeeze rootfs (<200mb), but can't get it to work with your kernel. it seems you disabled all network related stuff, even sockets.

EDIT: okay, i tried it with my kernel, compiled a couple of weeks (months? :lol:) ago and it works like a charm. will wikify my notes on building the rootfs soon.
infact
Image Image
User avatar
_Nold_
Posts: 212
Joined: Mon Nov 14, 2011 7:55 am
Location: Germany
Contact:

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by _Nold_ » Fri Feb 24, 2012 6:37 am

Nice! If you have time i would like to get something running tonight?!

Yea i noticed that i deactivated Network-Support years ago in my config ^^ now they are back in an running great.
I Tryed around with the rootfs from gc-linux.org but had some problems with apt and the libc version, gues it's simply to old to upgrade from testing. But other repos didn't work, either.

I already set up a git for the kernel, maybe you could set one up for the rootfs so we can get it running :)

And I'm really thinking about parting the SD and SDHC driver, because the sd-driver is really cpu-heavy. Takes about <=85%.. parting may bring it to 80% but we need all we can get, and i have really no idea of drivers, so i really have no idea how to "tune" it...

//Edit:
And what about your SDHC problem?
| 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: 1810
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by liquitt » Fri Feb 24, 2012 8:34 am

good you mention the repository thing, i thought about it yesterday too
is there any we can use? will we set one up for ourselves? questions, questions
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
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by infact » Fri Feb 24, 2012 1:41 pm

The problem is, i dont know how a repository treats special files (device nodes, etc) and directory permissions.

Currently i did it like that:
  • Create a 2 gb file, and make it ext2
    Debootstrap squeeze in it
    do some fiddeling with the config
    apt-get some stuff
    write it to sd and profit
the benefits:
  • instant backup file
    easy to copy to sd in one step
    i can do everything locally on my pc
And here it is: http://www.mediafire.com/file/rwr426f3a ... ii.tar.bz2 71 mb (<250 mb extracted)
Just extract the included debgc folder to an ext* (ext2 preferred) formatted partition on sd card and boot the kernel from another.
hostname is cubii, root password too, network is dhcp enabled, a ssh server and midnight commander are included.

Nold: i have yet to try your 16 mhz sdhc image, but currently i am happy with my old kernel and my 256 mb sd card (until it is full :lol:)
infact
Image Image
User avatar
alzen
Posts: 186
Joined: Wed Aug 15, 2012 5:45 am
Location: Poland / UK(W.Yorkshire)

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by alzen » Wed May 29, 2013 11:35 am

Keep on rocking guys, gc-scene dead? Hope this never happens... :lol:
Take a look at my YouTube channel - totally dedicated to retro shooters
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by emu_kidid » Wed May 29, 2013 1:44 pm

need to get SDHC support into the proper repo then we can see something better, not all these hardcoded SDHC builds :)
Image
User avatar
liquitt
Posts: 1810
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by liquitt » Sun Jun 02, 2013 1:18 pm

man, i have to get going on this...
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
Kalifornia Jani
Posts: 8
Joined: Sun Sep 05, 2010 5:20 pm
Location: Finland

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by Kalifornia Jani » Sun Feb 02, 2014 11:05 pm

https://github.com/DeltaResero/

newest kernel patches for wii and gamecube found on the net :)

2 years ago I used cross compiler with kubuntu to build kernels on amd64 architechture, but now i only use my powermac g4 with debian 7.0, I could try to update my rootfs, but chrooting doesnt work anymore...any tips on chrooting (with debian) filesystem turorials maybe?
Image
User avatar
Sierron
Posts: 160
Joined: Mon Apr 18, 2016 11:33 pm
Location: Germany

Re: GC Linux - RootFS on SD + SDHC SUPPORT!!

Post by Sierron » Mon Sep 19, 2016 3:12 am

Does someone have the files for the gamecube linux? Wanted to try it out myself, but all the files from op are dead except for the one uploaded on this forum. infacts zip is also a dead link. :(
Own a couple PAL and JPN cubes. And three BBAs. Homeland and PSO I/II.
Post Reply