In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "Wii-Linux"

From WiiBrew
Jump to navigation Jump to search
(grammar, rewording, style, wikification)
m (cleanup links)
Line 120: Line 120:
 
! Cost
 
! Cost
 
|-
 
|-
|[http://store.nintendo.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10001&storeId=10001&langId=-1&currency=USD&ignoreCrumbs=N&crumb1=&crumb1Ignore=&crumb2=%253CA%2BHREF%253D%2522javascript%253APassOn%2528%2527X%2527%252C%2B%2527ChooseView%2527%252C%2527%2527%252C%2B%2527%2527%2529%253B%2522%253EWii%253C%252FA%253E&crumb2Ignore=&crumb3=%253CA%2BHREF%253D%2522javascript%253APassOn%2528%2527C%2527%252C%2B%2527CategoryDisplay%2527%252C%252762707%2527%252C%2B%2527N%2527%2529%253B%2522%253EParts%2B%2526%2BAccessories%253C%252FA%253E&crumb3Ignore=&translateFrom=%C8%C9%C7&translateTo=EEC&usrSearchText=&searchText=&selSrchType=&page=&view=&productId=117712&categoryId=62707&lastAction=ProductDisplay&orderTotal=null Nintendo Wii LAN Adapter]
+
|[http://store.nintendo.com/webapp/wcs/stores/servlet/ProductDisplay?productId=117712&currency=USD&catalogId=10001&categoryId=62707 Nintendo Wii LAN Adapter]
 
|
 
|
 
|Official Nintendo Product
 
|Official Nintendo Product
|[http://store.nintendo.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10001&storeId=10001&langId=-1&currency=USD&ignoreCrumbs=N&crumb1=&crumb1Ignore=&crumb2=%253CA%2BHREF%253D%2522javascript%253APassOn%2528%2527X%2527%252C%2B%2527ChooseView%2527%252C%2527%2527%252C%2B%2527%2527%2529%253B%2522%253EWii%253C%252FA%253E&crumb2Ignore=&crumb3=%253CA%2BHREF%253D%2522javascript%253APassOn%2528%2527C%2527%252C%2B%2527CategoryDisplay%2527%252C%252762707%2527%252C%2B%2527N%2527%2529%253B%2522%253EParts%2B%2526%2BAccessories%253C%252FA%253E&crumb3Ignore=&translateFrom=%C8%C9%C7&translateTo=EEC&usrSearchText=&searchText=&selSrchType=&page=&view=&productId=117712&categoryId=62707&lastAction=ProductDisplay&orderTotal=null $24.99]
+
|[http://store.nintendo.com/webapp/wcs/stores/servlet/ProductDisplay?productId=117712&currency=USD&catalogId=10001&categoryId=62707 $24.99 US]
 
|-
 
|-
 
|Datel's LAN Adapter
 
|Datel's LAN Adapter
Line 179: Line 179:
 
* [http://www.tehskeen.com/forums/showpost.php?p=33699&postcount=19 tehskeen forum]
 
* [http://www.tehskeen.com/forums/showpost.php?p=33699&postcount=19 tehskeen forum]
  
{{Languages|/Wii_Linux}}
+
{{Languages|Homebrew_apps/Wii_Linux}}
 
[[Category:Homebrew applications]]
 
[[Category:Homebrew applications]]

Revision as of 19:04, 10 August 2008

Wii-Linux
Icon GCLinux.png
General
Author(s)GC-Linux Team
TypeOperating system
Links
[[file system Kernel|Download]]
[[GPL|Source]]
Peripherals
GameCube Controller USB Keyboard USBGecko2.svg Loads files from the Front SD slot USB mass storage device Wiimote1.svg

The Wii-Linux is a small Linux OS for the Wii, based on GC Linux.


Summary

  • Creator: GC-Linux Team
  • Software type: Operating System
  • Accessories needed: Computer running Linux, SD card with a FAT16 and an ext3 partition, USB keyboard
  • Optional accessories: GameCube controller, USB Gecko, Wiimote, Nintendo Wii LAN Adapter, USB drive
  • Best PAL mode: 480i/p
  • Loaders usable: Twilight Hack, Homebrew Channel
  • Button to return to loader: N/A
  • Alternate installation: Setup USB gecko and load the software on the PC beforehand (see the readme).

Getting Started

Isobel has made some Official Instructions.

  • 1. Make a second partition on your SD card and format as ext3. It is suggested to use the GParted Live CD if you don't use Linux or are experiencing problems. The Mame on Wii guide explains how to format an SD card using this CD. If you are using Linux then follow the whiite-linux instructions to prepare the SD card.
  • 2. Extract the debian-etch-4.0+whiite-0.1.tar.bz2 package to the ext3 partition of your SD card. You must extract the package as root if you are using Linux or files under /dev will not appear correctly.
  • 3. Copy the whiite-linux folder from the whiite-linux-0.1a.tar.bz2 archive to /apps/ for HBC or put the boot.elf on the root for the TP-Hack.
  • 4. Load the file using TP-Hack or HBC.
  • 5. Log in to access the terminal. You can now run commands and navigate directories.
  • 6. Configure bluetooth with hciconfig then type hcitool scan and press 1+2 on your wiimote to connect it.

Logging in

After you have booted Linux you will have 60 minutes to log on with the credentials below before it times out.

  • For debian-etch-4.0+whiite-0.1:
   Username: root
   Password: whiite
  • For POC:
   Username: root
   Password: cube

Things that work

The Debian release comes with a lot of news, only available if you boot using the kernel that comes with that package. You will need a USB keyboard to use this release. If you are able to boot with it and login, you will stop in a command line where you can navigate through the filesystem, and execute some applications. There are working drivers for the USB bus and internal bluetooth, but not for the internal wireless adapter. Here are some things that you can do:

Edit text files

   nano [text file]

Play MP3s

   mp3-decoder <mp3 file> 

There is an mp3 sample in the /root directory. You can play it if you type:

   mp3-decoder Synapse-Stealing_Science.mp3

You can also use this:

   mpg321 <mp3 file>

Type & after the command to have the mp3 play in the background:

   mpg321 Synapse-Stealing_Science.mp3 &

To play MP3s from a USB drive, mount the drive (see below). Navigate to the directory where they are stored on your USB stick, and use the "mp3-decoder" or the "mpg321" tool to play them.

Mount USB Drives

  • Mount an external USB hard disk

Not all USB hard disks work, but if they are formatted in FAT or EXT2 they might be recognized. Connect a pendrive to the USB, and type:

  dmesg

The dmesg command will show you the last kernel message. If the pendrive is compatible, it will show you some debug messages, and a message with the status of the new drive. If it is recogniced as sda, you can mount and navigate to that using these commands:

  mkdir mnt
  mount /dev/sda1 mnt 
  cd mnt 
  ls
  • To show the identifiers of the devices connected to the USB: Type lsusb
  • USB hubs work.

Use the internal bluetooth

There is a driver that manages the Wii internal bluetooth. You can connect to the wiimote, but there isn’t any application to manage it yet. You can type these commands to configure it:

hciconfig
Shows you the bluetooth configuration.
hcitool scan and press "1&2" on the wiimote
This will find the wiimote and show some information.

Chat on IRC

   irssi

Install Debian Packages

If you find a USB network adapter that works with this kernel such as the Nintendo USB network adapter, you will be able to install new Debian packages directly onto the Wii using apt-get. Or you can download on a PC then use dpkg to install packages manually.

  • cmatrix is confirmed to run which displays a simple curses screensaver. The font suggested for it has not been tested.
  • ninvaders is a simple curses based game played like Space Invaders. Seems to work 100%
  • pacman is a curses pacman game. Currently the Linux console is not large enough to view the lives, levels, and score. The game is compiled from scratch with wiiuse and bluetooth and ncurses devs.
    If you would like the source for pacman with wiimote support check out my website. --Skibur 22:53, 21 July 2008 (CEST)
  • sc is a curses spreadsheet application.

Install Mplayer

  • Download the source to Wii MFE
  • Copy these files to the corresponding places on your SD card:
/src/native/fs/shipped/lib/
/src/native/fs/shipped/root/
/src/native/fs/shipped/usr/
  • Extract the contents of these archives to your SD card:
/src/native/libsdl/mfe-libsdl.tar.gz
/home/zach/Desktop/src/native/mplayer/mfe-mplayer.tar.gz
  • Log on to whiite and type (you only need to do this once):
 mknod /dev/fb0 c 29 0
  • Type:
 mplayer <file>.avi

Hardware Compatibility

Compatible ethernet adapters

Device Hardware ID String Description Cost
Nintendo Wii LAN Adapter Official Nintendo Product $24.99 US
Datel's LAN Adapter $29.90
. . . .

Incompatible ethernet adapters

Device Hardware ID String Description
Linksys USB Network Adapter USB10T VID_0x066b & PID_0x2206 device not supported
. . .


Troubleshooting

I get a black screen when I load the DOL.
Something is wrong with the filesystem format your SD card and try again.
It boots up with a lot of errors saying file system read-only then it freezes.
Turn off Wiiconnect24 or load from TP-Hack.

GUI?

A GUI is still needed. XORG?

Releases

  • Debian etch 4.0 and Whiite 0.1 - Major update with many new apps and features [1]
  • Proof of Concept 0.4 - adds support for USB keyboards through the IOS keyboard interface Main Mirror
  • Proof of Concept 0.3 - adds read and write support for the front SD card slot [2]
  • Proof of Concept 0.2 [3]
  • Proof of Concept 0.1 [4]

External links

  • A video showing a playable pacman console game with wiimote support
  • A video showing how wii-linux debian boots, with some features and applications
  • A video showing T2 SDE 6.0 linux booting from an external HDD using the SD card as pivot root. X runs!
  • A video showing T2 SDE 6.0 linux booting from an external HDD using a ramdisk card as pivot root. In this video the xserver works with a driver for Wii/Gamecube and has correct colours
  • gc-linux.org
  • tehskeen forum