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
 

jeroen80

Member
Newcomer
Joined
Jul 25, 2010
Messages
17
Trophies
0
XP
75
Country
Netherlands
Wireless is already working but the problem is rtorrent and other torrent client don't work
I tought this is related to the error that it cant found the modules.dep

BTW hope you understand my english :D
 

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
Chile
That would be PPC dependant. As long as rtorrent has a PPC build, it should work, also, check the open ports on the router.

PS: The Wii's being under heavy stress while running MINI Linux, I would suggest not leaving it on for that much time if you intend to use it per prolonged amounts of time.
 

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
Chile
then that would be app dependant. Check, again, whose ports the torrent app is using, and if you have those available (otherwise closed).
 

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
Chile
Sorry for double posting but, I just re-used xwhiite installation (bluetooth, wireless wlan, XFCE (cube driver)) all in one-go, to install farter's RGB drivers (colors now showing much richer), then upgraded to 2.6.32.43 kernel, and this is just sweet! I forgot how fun was to run linux on Wii..
 

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
Chile
Me but i'm not going root while on internet xD


  • Location: C# @ wii.. Yeah! :P
  • WiiLinux is awesome!! The only problem I ran into was trying to use it as a laptop... = Not going to work. What does Wii have, like 64MB of RAM? XD


32MB(MEM2) + other kinds of ram (VRAM GDDR3,sound, etc)

edit: well, compared to dreamcast, Wii homebrew can do a lot more! xD
 

Anon10W1z

Well-Known Member
Member
Joined
Feb 18, 2012
Messages
1,112
Trophies
0
Location
Somewhere over the rainbow
XP
184
Country
United States
I don't have any idea on what you're talking about :P
He's talking about the installation process, obviously. The instructions are written for a linux OS..


cd /home/yourusername/Desktop



tar -C /media/filesystem/ -xjvf debian-etch-4.0+whiite-0.1+xwhiite-0.2.tar.bz2
So all you have to do is extract the whiite filesystem to /media/filesystem/ directory on your SD card?
 

midwest

Member
Newcomer
Joined
Sep 13, 2011
Messages
9
Trophies
0
XP
12
Country
United States
Hello

I am having a problem getting apt-get to work
my internet is working through the usb adapter and I can ping my desktop
But when I run apt-get I get a bunch of "failed to fetch" errors

Are their servers down or is there some kind of repo list problem on my setup? I haven't touched anything since installing it

Thanks

Edit: Yeah this is frustrating. SSH is up and running fine. But no apt-get. I really don't want to have to manually untar a bunch of stuff. It finds the files and determines the dependencies but then starts spitting out 404 errors and nothing can be downloaded. It won't let me update or install individual apps
Here is the contents of my /etc/apt/sources.list

 

midwest

Member
Newcomer
Joined
Sep 13, 2011
Messages
9
Trophies
0
XP
12
Country
United States
Ok fixed the problem
Basically what happened is that they stopped supporting debian 5

To fix it I had to do 2 things. replace the line in my sources.list file with
deb http://archive.debian.org/debian lenny main contrib

Then I got a an error that I didn't have public keys
I fixed that by typing in
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys xxxxxxxxxxxxx
and
gpg --armor --export xxxxxxxxxxxxxxxx | apt-key add -
The xxxxxx's represent the key value it says you need

It's working now. just upgraded and installing xfce4 right now
 

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
Chile
There's been some time since I last visited this thread. Yes, the kernel used is kinda outdated and requires updating keys so servers let you get stuff (mainly official servers).

I'll paste a TXT based on findings I found (most based on info through internet) long ago (on wii linux)
Code:
para wii:

modprobe b43 -- habilita wifi
usermod -G audio  -- habilita sonido

descomprimir el kernel mas moderno (root con modules.tar.bz2)
# tar -zxvf /tmp/nombredelprograma.tar.gz

# tar -jxvf /tmp/nombredelprograma.tar.bz2
/etc/apt/sources.list
sudo depmod -a para actualizar de kernel

cambiar a elf de farter
/etc/apt/sources.list

instalar sh:
./install.sh

su makefile

xwhiite usa lenny

apt-key update?
--


cd/etc/modules nano (agregar modprobe B43
--
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3C962022012520A0
resuelve problemas con la validacion de packages

otros servers

e.g. apt-key adv --keyserver keys.gnupg.net --recv-keys XXXXXXX
e.g. apt-key adv --keyserver pool.sks-keyservers.net --recv-keys XXXXXXX
e.g. apt-key adv --keyserver subkeys.pgp.net --recv-keys XXXXXXX
--

agregar farter XFB en ‘/etc/X11/xorg.conf’

1	Section "Device"
2   		 Identifier	  "Configured Video Device"
3   		 Driver		  "fbdev"
4   		 Option		  "UseFBDev"			  "true"
5	EndSection

--

Instalar apt-get install gcc (compilador)

--

Instalar 3G en la wii:

http://n00bsys0p.wordpress.com/2008/03/08/linux-and-3g-not-as-tough-as-youd-expect/

lsusb		   (vendor - product)
Bus 001 Device 007: ID 0421:0627

A problem which you may run in to is the OS picking up the dongle as a usb storage device,
as some of them contain the Windows drivers and programs on a flash ROM.
The commands I used to circumvent this hurdle were as follows:

dmesg

Which will output a whole bunch of really ominous looking junk.
You can ignore most of it (thank god!), and just look for the phrase usb-storage.
If it says it has ignored it, you are fine, but if it states that usb-storage has been registered
then you’ll have to remove it. Do this through the following commands:

rmmod options
rmmod usb-storage
modprobe usbserial

The next step for me was to add the dongle’s settings to my modprobe.conf. This is located in /etc in Slackware.
Add the following line to the end:

options usbserial vendor=0x12d1 product=0x1003

--
instalar install o install.sh
sudo ./install
--
modprobe.conf (modprobe levanta modulos en hardware)
ruta: /etc/module (nano)
agregar modprobe b43 (wlan card)
--
home/wii/Desktop
uname -r obtiene version del kernel
cp para copiar archivos
mv para mover

borrar
rm archivo
borrar carpeta recursiva
rm -r carpeta

modprobe b43 inicializa el wifi

--

mount -t ntfs /dev/sda1 /media/folder para montar unidades

USB disk quedan como SDA1/etc

para desmontar!
umount /dev/sda1
--

instalar debian installer + openwwf (wireless) drivers linux.

Formato SD (hdd) para debian:

particiones:

1 FAT (64MB) , 2 EXT2(1.6 GB) , 3 SWAP(128MB)

--


instalar lenny (xwhiite con entorno grafico)

luego instalar el ultimo kernel

luego cambiar al bootmii de farter

--


al iniciar con el ppc de xhiite:

instalar cube
declararlo en X11

GPU driver folder (lenny)

/usr/lib/xorg/modules/drivers

-

lenny default kernel folder: (xwhiite default)

/lib/modules/2.6.32-isobel-wii/

-

farter lenny default kernel folder:

/lib/modules/2.6.32.43/

*i need to rewrite /lib/firmware directory to do the kernel update. (from 2.6.32 isobel to farter lenny)

profit

copia recursiva (directorios y todo su interior)
cp -r

borrado recursivo (idem)
rm -r

problemas con el input device en xorg.conf

ps: if possible update wireless drivers

ps2: use farter's linux. it's better, more stable and has a nicer looking vga-driver
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs