Wii Linux (XWhiite 0.2) with working WiFi tutorial

Requirements

- BootMii (either installed as boot2 or as IOS)
- SD(HC) card (at least 1GB, 2GB recommended)
- USB keyboard

Preparing the SD card

You have to create 2 partitions. One little FAT16/32 for BootMii, HBC and the kernel and one big ext3 for the filesystem ("userland"). You can do this for example with gParted in Ubuntu. If you don`t have Ubuntu installed, use the latest LiveCD. For this tutorial it is important to set the descriptions of the partitions.

- Backup your current BootMii folder
- 1. partition: At least 32 MB, FAT16/32, "kernel" as description
- 2. partition: Remaining free space, EXT3, "filesystem" as description
- Copy your BootMii folder to the first partition

Installing the kernel

The mike kernel must be booted via BootMii! If you boot it with the homebrew channel, wifi and other things won`t work.

There are two ways to boot the kernel:

1.)
The first one (and also the recommended one) is to copy the kernel to the first partition of your sd card, for example to the BootMii folder. To boot the kernel you can use the sd card explorer in BootMii and select the kernel. It could happen that it doesn`t work and return to the BootMii main menu. If this happens try to update to the newest BootMii version (beta4). If it also doesn`t work with beta4 then you have to use the second way.

2.)
With the second way you will have to replace the executable of the BootMii GUI with the kernel. This should always work, but the disadvantage is that the kernel will boot immediately after launching BootMii. So you won`t see the GUI of BootMii. If you need the BootMii GUI you may use a second sd card for Linux only.

- Rename the file "ppcboot.elf" in the BootMii folder to "ppcboot.elf.backup"
- Download the latest mike kernel (mikep5) with your appropriate TV mode:

- 480i PAL: http://downloads.sourceforge.net/gc-linux/...480i(PAL60).elf
- 576i PAL: http://downloads.sourceforge.net/gc-linux/...i.576i(PAL).elf
- 480p PAL: http://downloads.sourceforge.net/gc-linux/...i.480p(PAL).elf
- 480i NTSC: http://downloads.sourceforge.net/gc-linux/....480i(NTSC).elf
- 480p NTSC: http://downloads.sourceforge.net/gc-linux/....480p(NTSC).elf

- Rename the kernel to ppcboot.elf and copy it to your BootMii folder
- If you have BootMii beta1 or beta2 you need to download the latest armboot.bin to prevent an error with the mike kernel: http://downloads.sourceforge.net/gc-linux/mikep1-armboot.bin. Rename it to "armboot.bin" and replace it with the one in your new BootMii folder. If you are running BootMii beta3 or later you might skip this step, because it should already include a newer version of armboot.bin

Installing the filesystem

- Download XWhiite 0.2 to your Desktop: http://hbcapps.com/debian-etch-4.0+whiite-...ite-0.2.tar.bz2
- Open a terminal and login as root (sudo su)
- Change the directory to your Desktop:
Code:
cd /home/yourusername/Desktop
- Extract the filesystem to your sd card:
Code:
tar -C /media/filesystem/ -xjvf debian-etch-4.0+whiite-0.1+xwhiite-0.2.tar.bz2
- Backup your xorg.conf:
Code:
cd /media/filesystem/etc/X11/
cp xorg.conf xorg.conf.backup
- Open your xorg.conf and set your TV mode (pal or ntsc):

Code:
gedit /media/filesystem/etc/X11/xorg.conf
- Find the Subsection "Display" in the section "Screen"
- Replace "pal_50" with "ntsc_60" if you have a NTSC TV
- If you have the problem with the "small line" try to remove the lines with "HorizSync", "VertRefresh", "Modeline "pal_50"" and "Modeline "ntsc_60"" in the section "Monitor" and the whole subsection "Display"

- Now you can try to boot your Wii with Linux.

Getting WiFi to work

- Download the necessary debian packages and put them to /media/filesystem/home/wii/:

- nano: http://ftp.us.debian.org/debian/pool/main/...ch1_powerpc.deb
- wpasupplicant: http://ftp.us.debian.org/debian/pool/main/...5-2_powerpc.deb
- wireless-tools: http://ftp.us.debian.org/debian/pool/main/...f.1_powerpc.deb
- udev: http://security.debian.org/debian-security...ch1_powerpc.deb
- libiw28: http://ftp.us.debian.org/debian/pool/main/...f.1_powerpc.deb
- libvolume: http://security.debian.org/debian-security...ch1_powerpc.deb
- wifi firmware: http://sourceforge.net/projects/gc-linux/f...tar.gz/download

- Boot your Wii Linux
- Open a terminal and login as root (pwd is "whiite")
- Install the packages:
Code:
cd /home/wii/
dpkg -i *.deb
- Extract the wifi firmware:
Code:
cd /
tar -xzvf /home/wii/openfwwf-5.2-bin.tar.gz
- Edit the wifi settings:

Code:
nano /etc/network/interfaces
- For WPA 1/2 add this:

Code:
auto wlan0
iface wlan0 inet dhcp
ÂÂÂÂÂÂÂÂwpa-ssid YOUR_SSID_GOES_HERE
ÂÂÂÂÂÂÂÂwpa-psk YOUR_SECRET_GOES_HERE
ÂÂÂÂÂÂÂÂwpa-key-mgmt WPA-PSK
ÂÂÂÂÂÂÂÂwpa-pairwise TKIP CCMP
ÂÂÂÂÂÂÂÂwpa-group TKIP CCMP
ÂÂÂÂÂÂÂÂwpa-proto WPA RSN
ÂÂÂÂÂÂÂÂwpa-ap-scan 1
ÂÂÂÂÂÂÂÂwpa-scan-ssid 1
- For WEP (ASCII string key) add this:

Code:
auto wlan0
iface wlan0 inet dhcp
ÂÂÂÂÂÂÂÂwireless-essid YOUR_SSID_GOES_HERE
ÂÂÂÂÂÂÂÂwireless-key YOUR_ASCII_SECRET_GOES_HERE

- For WEP (binary key) add this:

Code:
auto wlan0
iface wlan0 inet dhcp
ÂÂÂÂÂÂÂÂwireless-essid YOUR_SSID_GOES_HERE
ÂÂÂÂÂÂÂÂwireless-key s:0123-4567-89


- Test your wifi connection:
Code:
ifup wlan0
ping www.google.com
- If you get responses: CONGRATULATIONS! Now your Wii will automatically connect your wifi on every boot

And what now?

- Now you can update your system (as root!):
Code:
apt-get update
apt-get upgrade
- You can also install a "normal" desktop environment like XFCE4. It`s more comfortable to use, but will use more RAM and will run slower. But it`s quite usable.
Code:
apt-get install xfce4
- Install whatever you want! Have fun!

Problems and their solutions

Problem: No sound
Solution: CODEusermod -G audio


by elmurato
revision 5


PS: If something isn`t clear feel free to ask so that I can improve this tutorial. Thanks!

Sources

http://www.gc-linux.org/wiki/WL:whiite-linux
http://www.tehskeen.com/forums/showthread.php?t=9777
http://www.gc-linux.org/wiki/MINI:KernelPreviewThree
http://www.gc-linux.org/wiki/WL:Wifi_Configuration
 

hojnikb

Active Member
Newcomer
Joined
Feb 25, 2010
Messages
44
Trophies
0
Age
30
Website
Visit site
XP
75
Country
Slovenia
Could somebody post a working version of Fuse for Etch ?
Becouse i just can't start it properly and thus no NTFS support for me.
Can ntfs r/w support could be enabled in some other way (maybe if someone recompiles the MIKE kernel with ntfs included)
 

hojnikb

Active Member
Newcomer
Joined
Feb 25, 2010
Messages
44
Trophies
0
Age
30
Website
Visit site
XP
75
Country
Slovenia
fishears said:
Here's the "cube" driver compiled for Lenny if anyone wants it. Just extract to /usr/lib/xorg/modules/ after you've upgraded X but before you startx
wink.gif


I've not done a full dist image yet because I forgot to remove all the build stuff so it's massive.... Gnash plugin confirmed working with Iceweasel in Lenny
If anyone wants a basic dist image of this then I might pursue it, otherwise I'm going to get on with putting the apps I want on there.
Could you post your tarball of your linux distro ?
i just cant get x to work ... and i dont want etch ether...

Thx
 

freddofrog

New Member
Newbie
Joined
Mar 19, 2010
Messages
3
Trophies
0
XP
5
Country
fishears said:
Here's the "cube" driver compiled for Lenny if anyone wants it. Just extract to /usr/lib/xorg/modules/ after you've upgraded X but before you startx
wink.gif


I've not done a full dist image yet because I forgot to remove all the build stuff so it's massive.... Gnash plugin confirmed working with Iceweasel in Lenny
If anyone wants a basic dist image of this then I might pursue it, otherwise I'm going to get on with putting the apps I want on there.

If its at all possible to post an image that'd be great I'm just going round in circles its doin my head in!
 

hojnikb

Active Member
Newcomer
Joined
Feb 25, 2010
Messages
44
Trophies
0
Age
30
Website
Visit site
XP
75
Country
Slovenia
freddofrog said:
fishears said:
Here's the "cube" driver compiled for Lenny if anyone wants it. Just extract to /usr/lib/xorg/modules/ after you've upgraded X but before you startx
wink.gif


I've not done a full dist image yet because I forgot to remove all the build stuff so it's massive.... Gnash plugin confirmed working with Iceweasel in Lenny
If anyone wants a basic dist image of this then I might pursue it, otherwise I'm going to get on with putting the apps I want on there.

If its at all possible to post an image that'd be great I'm just going round in circles its doin my head in!
Yeah, like i said.If possible upload your tarball somewhere.
 

hojnikb

Active Member
Newcomer
Joined
Feb 25, 2010
Messages
44
Trophies
0
Age
30
Website
Visit site
XP
75
Country
Slovenia
Now i've managed to somehow run debian etch with x running! Running LXDE fine but i dont know how do i set up wiimote as mouse.I did installed cwiid and configured it for ir sensor but it seems that sensor bar is not working at all.... Is there anyway to fix this so it will work like in xwhiite 0.2 ?
 

hojnikb

Active Member
Newcomer
Joined
Feb 25, 2010
Messages
44
Trophies
0
Age
30
Website
Visit site
XP
75
Country
Slovenia
When i've enabled sensor bar via gpio the "mouse" works now.But i dont know how to make this work automatilly upon boot.Anyone knows how to do this ?
 

fishears

fishears
Member
Joined
Sep 28, 2008
Messages
696
Trophies
0
Website
code.google.com
XP
126
Country
sorry guys - been busy with other stuff
when i first got it working i offered to tar it but there were no takers - now i have all my apps and personal stuff on there...
here's how to compile your own copy of the X driver under any distro:

First, after you've upgraded, make sure you're in the terminal (you should be anyway cos X won't start)
Enter the following
Code:
apt-get install cvs
cvs -d:pserver:[email protected]:/cvsroot/gc-linux loginÂÂÂÂÂÂ
cvs -z3 -d:pserver:[email protected]:/cvsroot/gc-linux co -P xf86-video-cube
That will have installed CVS and got you the latest source of Nuvalo's driver. Then get the build requirements (you might have to install gcc as well):
Code:
apt-get install module-init-tools pkg-config xserver-xorg-dev x11proto-randr-dev libxrandr-dev x11proto-video-dev x11proto-fonts-dev
Now, if you're happy with the standard 640x480 screen mode you can skip editing and go straight to compiling (below). If you want to be able to enter ANY values for width/height to make the display fit your screen better then you need to edit the /xf86-video-cube/src/cube_driver.c
I used nano to do this.
Code:
cd xf86-video-cube/src/
nano cube_driver.c
At line 951, "return false", change to "match = TRUE" as indicated below:
Code:
if (width == 640 && ((height == 480)||(height == 576)))
ÂÂ{
ÂÂÂÂmatch = TRUE;
ÂÂ}

ÂÂif (!match)
ÂÂ{
ÂÂÂÂxf86DrvMsg(pScrn->scrnIndex, X_ERROR,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ "Selected width = %d and height = %d is not supported by cube/wii
\n", width, height);
ÂÂÂÂ//first we allow the Xorg to start up no matter what resolution is given...
ÂÂÂÂmatch=TRUE; //* THIS IS THE CHANGE (used to read "return false;" )

ÂÂ}
Then right near the end of the file (lines starting from 1162 -> 1170)
Code:
static void
CUBERefreshAll(ScrnInfoPtr pScrn)
{
ÂÂBoxRec box;
ÂÂbox.x1 = 0;
ÂÂbox.x2 = pScrn->currentMode->HDisplay; //* CHANGE THIS!
ÂÂbox.y1 = 0;
ÂÂbox.y2 = pScrn->currentMode->VDisplay; //* CHANGE THIS!
ÂÂCUBERefreshArea(pScrn, 1, &box);
}
After this, compile the driver:
Code:
cd ..
./configure && make && make install
The driver installs itself to wrong location, so:
Code:
cp /usr/local/lib/xorg/modules/drivers/cube_driver.* /usr/lib/xorg/modules/
Then just edit your xorg.conf (if you need to). I use these settings to get fullscreen on my 32" 16:9 LCD - 640x460 works well for me:
Code:
Modeline "pal_50" 23.72 640 656 720 800 460 577 580 593 -HSync +Vsync
That should be that. startx...

credit goes to Wiibewfan4 for his findings - i've fixed some errors in the original...
wink.gif
 

hojnikb

Active Member
Newcomer
Joined
Feb 25, 2010
Messages
44
Trophies
0
Age
30
Website
Visit site
XP
75
Country
Slovenia
Great, too bad you can't post your tarball, guess i was too late ;(. I'm still having trouble getting NTFS to work as some modules in /lib/modules are missing and i dont know how to compile them from 2.6.32 kernel.
If anyone knows how to setup ntfs correctly, write here
wink.gif

I want to use it as a torrentbox with my external hdd but i dont want to format it to something else just becouse this kernel cant support ntfs.FAT32 would be ok without 4gb limit
frown.gif
 

freddofrog

New Member
Newbie
Joined
Mar 19, 2010
Messages
3
Trophies
0
XP
5
Country
Thanks for the detailed instructions fishears great stuff!

I just have one problem at the moment tho. When upgrading to lenny i lose power to the usb keyboard about halfway thru while restarting services. I just have to press enter but can't do it! Any ideas?
 

fishears

fishears
Member
Joined
Sep 28, 2008
Messages
696
Trophies
0
Website
code.google.com
XP
126
Country
freddofrog said:
Thanks for the detailed instructions fishears great stuff!

I just have one problem at the moment tho. When upgrading to lenny i lose power to the usb keyboard about halfway thru while restarting services. I just have to press enter but can't do it! Any ideas?
I had that one time with my wireless KB - I used a wired KB the next time.
When I upgraded I first changed the dist name in sources-list to "lenny" from "etch". Then did an update followed by an upgrade. Then I did a dist-upgrade. Pretty sure that's the sequence I used and I was able to use the KB all the way through. HTH

edit: I just remembered, I sometimes have lost the KB when in X and to get around this I call up the OSK using the wiimote/mouse... the USB KB always comes back on reboot
 

hojnikb

Active Member
Newcomer
Joined
Feb 25, 2010
Messages
44
Trophies
0
Age
30
Website
Visit site
XP
75
Country
Slovenia
Is there a gui app for debian that could run a command at startup or something like Startup folder in Windows ?
I just dont like messing around with txt files... I want my gpio sensor bar to be up and wiimote driver working... It works manually but i need mouse and keyboard to do it ... ;(
 

hojnikb

Active Member
Newcomer
Joined
Feb 25, 2010
Messages
44
Trophies
0
Age
30
Website
Visit site
XP
75
Country
Slovenia
Now i was able to startup Sensor bar with some tuturial but wminput is not so happy; when it starts it says that bluetooth is not available, soo i have to somehow figure out how to start this command after the bluetooth initializes... but i atleast sensor bar is working ....
smile.gif
 

fishears

fishears
Member
Joined
Sep 28, 2008
Messages
696
Trophies
0
Website
code.google.com
XP
126
Country
hojnikb said:
Now i was able to startup Sensor bar with some tuturial but wminput is not so happy; when it starts it says that bluetooth is not available, soo i have to somehow figure out how to start this command after the bluetooth initializes... but i atleast sensor bar is working ....
smile.gif
Keep trying. Whatever you find will be useful to us all!
 

freddofrog

New Member
Newbie
Joined
Mar 19, 2010
Messages
3
Trophies
0
XP
5
Country
Big thanks to you fishears I have upgraded to lenny and have xfce running. Took a while! But now I have a strange problem. When trying to run apps (iceweasel vlc etc) I'm getting segmentation fault error every time. Guess due to memory problems. Any ideas how to fix this?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Skelletonike @ Skelletonike:
    3h left until work finishes, bah
  • Skelletonike @ Skelletonike:
    link doesn't work
    +2
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
    K3N1 @ K3N1: Plug in*