Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Wii-Linux-NGX: Difference between revisions

From GameBrew
No edit summary
No edit summary
Line 1: Line 1:
{{#seo:
|title=Wii Homebrew Apps (Operating systems) - GameBrew
|title_mode=append
|image=Wiilinuxngx.jpg
|image_alt=Wii-Linux-NGX
}}
{{Infobox Wii Homebrews
{{Infobox Wii Homebrews
|title=Wii-Linux-NGX
|title=Wii-Linux-NGX
Line 18: Line 12:
|source=https://github.com/neagix/wii-linux-ngx
|source=https://github.com/neagix/wii-linux-ngx
}}
}}
'''Wii-Linux-NGX''' is a project that aims to bring the power of modern Linux to Wii consoles. The project provides a variety of resources to help users set up Linux on their Wii, including source code for a working Linux kernel, kernel single-binary releases in ELF format, and ready-to-use Debian Jessie images/rootfs.
wii-linux-ngx is a project that aims to bring the power of modern Linux to Wii consoles. The project provides a variety of resources to help users set up Linux on their Wii, including source code for a working Linux kernel, kernel single-binary releases in ELF format, and ready-to-use Debian Jessie images/rootfs.


Additionally, the project offers Gumboot support for framebuffer RGBA mode, which allows for improved graphics and a more seamless Linux experience on the Wii.
Additionally, the project offers Gumboot support for framebuffer RGBA mode, which allows for improved graphics and a more seamless Linux experience on the Wii.


With Wii-Linux-NGX, users can enjoy the benefits of Linux on their Wii consoles, including access to a wide range of software and tools, improved performance, and more.
==Installation==
 
==How to install==
Download the compressed image from the releases, decompress it (gunzip) and then flash it to an SD card with your program of choice.
Download the compressed image from the releases, decompress it (gunzip) and then flash it to an SD card with your program of choice.


==Media==
'''Running Debian Linux 5 and 8 ON A NINTENDO WII (Wii Linux Adventures) Part 1 - ([https://www.youtube.com/watch?v=VfRlwQqwMZE Parallel Productions])'''<br>
<youtube>VfRlwQqwMZE</youtube>
==How it works==
=== Wii ===
wii-linux-ngx works with an SD card (or USB mass storage) with the following layout:
wii-linux-ngx works with an SD card (or USB mass storage) with the following layout:


* first partition, FAT32 with MINI and [https://neagix.github.io/wii-linux-ngx/gumboot Gumboot] (Bootmii is provided as fallback)
* First partition, FAT32 with MINI and [https://neagix.github.io/wii-linux-ngx/gumboot Gumboot] (Bootmii is provided as fallback)
* second partition with ext3 Linux rootfs
* Second partition with ext3 Linux rootfs


You can add other partitions of your choice; performance of SD cards is better than USB mass storage.
You can add other partitions of your choice; performance of SD cards is better than USB mass storage.
Line 45: Line 31:


See also:
See also:
* [https://neagix.github.io/wii-linux-ngx/gumboot Gumboot]
* [https://neagix.github.io/wii-linux-ngx/gumboot Gumboot]
* [https://github.com/neagix/mini customized MINI]
* [https://github.com/neagix/mini customized MINI]


=== GameCube ===
==User guide==
Currently not tested on GameCube.
===Default credentials===
 
=== vWii ===
Currently not tested on virtual Wii.
 
==Useful Information==
=== Default credentials ===
The SD image and rootfs have <code>root:root</code> credentials.
The SD image and rootfs have <code>root:root</code> credentials.


Line 65: Line 44:


To change mode to 32bit:
To change mode to 32bit:
<pre>fbset -xres 576 -yres 432 -vxres 576 -vyres 432 -depth 32</pre>
<pre>fbset -xres 576 -yres 432 -vxres 576 -vyres 432 -depth 32</pre>


Line 95: Line 75:
&gt;OK: 3201336 bytes written</pre>
&gt;OK: 3201336 bytes written</pre>


=== Connecting via Ethernet dongle ===
===Networking===
Connection will work automatically and it uses regular Debian configuration files.
====Connecting via Ethernet dongle====
 
*Connection will work automatically and it uses regular Debian configuration files.
===Connecting to Wi-Fi ===
The <code>whiite-ez-wifi-config</code> script is included in <code>/root</code> to easily connect to a Wi-Fi network.
 
Supported modes (from http://en-americas-support.nintendo.com/app/answers/detail/a_id/498/~/compatible-wireless-modes-and-wireless-security-types):


====Connecting to Wi-Fi====
*The <code>whiite-ez-wifi-config</code> script is included in <code>/root</code> to easily connect to a Wi-Fi network.
*Supported modes (from http://en-americas-support.nintendo.com/app/answers/detail/a_id/498/~/compatible-wireless-modes-and-wireless-security-types):
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">


Line 109: Line 88:
Wireless Security Modes: WEP, WPA-PSK (TKIP), WPA-PSK (AES), WPA2-PSK (AES)</pre>
Wireless Security Modes: WEP, WPA-PSK (TKIP), WPA-PSK (AES), WPA2-PSK (AES)</pre>


=== Network troubleshooting resources ===
==== Network troubleshooting resources ====
 
* http://www.gc-linux.org/wiki/WL:Wifi_Configuration
* http://www.gc-linux.org/wiki/WL:Wifi_Configuration
* http://www.linux-tips-and-tricks.de/overview#english
* http://www.linux-tips-and-tricks.de/overview#english
Line 135: Line 113:
* http://www.gc-linux.org/wiki/Building_a_GameCube_Linux_Kernel_%28ARCH%3Dpowerpc%29
* http://www.gc-linux.org/wiki/Building_a_GameCube_Linux_Kernel_%28ARCH%3Dpowerpc%29


=== ZRAM ===
==== ZRAM ====
The zram-config v0.5 files are provided in <code>/root/zram-config</code>, there is no init integration though.
The zram-config v0.5 files are provided in <code>/root/zram-config</code>, there is no init integration though.


Line 152: Line 130:
* http://gionn.net/2012/03/11/zram-on-debian-ubuntu-for-memory-overcommitment/
* http://gionn.net/2012/03/11/zram-on-debian-ubuntu-for-memory-overcommitment/


== Mounting a disc ==
==== Mounting a disc ====
Create a &quot;dvd&quot; folder (as root) in the &quot;/media&quot; directory (only if the folder doesn't exist) with the command:
Create a &quot;dvd&quot; folder (as root) in the &quot;/media&quot; directory (only if the folder doesn't exist) with the command:


Line 169: Line 147:
Additional packages such as libdvdcss &amp; libdvdread may need to be installed for DVD playblack (may need to search package manager as naming standards aren't consistant). Mplayer and Xine seem to work the best but support will vary depending on the operating system.
Additional packages such as libdvdcss &amp; libdvdread may need to be installed for DVD playblack (may need to search package manager as naming standards aren't consistant). Mplayer and Xine seem to work the best but support will vary depending on the operating system.


=== Related pages: ===
====Related pages====
* http://fartersoft.com/blog/2011/08/17/debian-installer-for-wii/
http://fartersoft.com/blog/2011/08/17/debian-installer-for-wii/


==Frequently Asked Questions==
===FAQ===
'''Does the ethernet dongle work?'''<br>
'''Q. Does the ethernet dongle work?'''
Yes


'''Does the Wi-Fi work?'''<br>
Yes.
Yes
 
'''Q. Does the Wi-Fi work?'''
 
Yes.
 
'''Q. Can I run Xorg on it?'''


'''Can I run Xorg on it?'''<br>
Yes, with the framebuffer driver.
Yes, with the framebuffer driver.


'''Does it work on GameCube?'''<br>
'''Q. Does it work on GameCube?'''
 
It should. GameCube is supported but author cannot test on it.
It should. GameCube is supported but author cannot test on it.


'''Does SD/SDHC/USB work?'''<br>
'''Q. Does SD/SDHC/USB work?'''
Yes


'''What type of multimedia/gaming applications can I use?'''<br>
Yes.
Anything that works on a framebuffer will do. But forget about video playback, 3D or high end games. There is no hardware acceleration support so far.


== Known issues ==
'''Q. What type of multimedia/gaming applications can I use?'''
 
Anything that works on a framebuffer will do. But forget about video playback, 3D or high end games.
 
There is no hardware acceleration support so far.
 
==Media==
'''Running Debian Linux 5 and 8 ON A NINTENDO WII (Wii Linux Adventures) Part 1 - ([https://www.youtube.com/watch?v=VfRlwQqwMZE Parallel Productions])'''<br>
<youtube>VfRlwQqwMZE</youtube>
 
==Known issues==
Boot from MINI is well tested, but not boot from IOS. Xorg framebuffer driver is also not tested.
Boot from MINI is well tested, but not boot from IOS. Xorg framebuffer driver is also not tested.


Line 205: Line 195:
==Changelog==
==Changelog==
'''v0.3.6 neagix'''
'''v0.3.6 neagix'''
* added Gumboot bootloader
* Added Gumboot bootloader.
* switched first partition to FAT32
* Switched first partition to FAT32.


'''v0.3.5 neagix'''
'''v0.3.5 neagix'''
* use LABEL= on root command line to allow booting from SD/USB
* Use LABEL= on root command line to allow booting from SD/USB.
* fixed login on tty (thanks to DeltaResero for reporting)
* Fixed login on tty (thanks to DeltaResero for reporting).


'''v0.3.4 neagix'''
'''v0.3.4 neagix'''
* working RGBA mode (some console glitches)
* Working RGBA mode (some console glitches).
* added example PNG
* Added example PNG.


'''v0.3.3 neagix
'''v0.3.3 neagix
* fix tty1 display logo
* Fix tty1 display logo.


'''v0.3.2 neagix'''
'''v0.3.2 neagix'''
* kernel v3.15.10
* Kernel v3.15.10.
* fixed missing eth0 network configuration
* Fixed missing eth0 network configuration.
* added a framebuffer visualization tool (fbv)
* Added a framebuffer visualization tool (fbv).
* installed fbset
* Installed fbset.


'''v0.3.1 neagix'''
'''v0.3.1 neagix'''
* added Farter's framebuffer patch
* Added Farter's framebuffer patch.
* aesthetical fix to first boot initialization
* Aesthetical fix to first boot initialization.


'''v0.3.0 neagix'''
'''v0.3.0 neagix'''
* fixed INIT error on ttyS0
* Fixed INIT error on ttyS0.
* kernel v3.14.19
* Kernel v3.14.19.


'''v0.2.0 neagix'''
'''v0.2.0 neagix'''
* first rootfs+bootmii+disk image+kernel release
* First rootfs+bootmii+disk image+kernel release.


'''v0.1.0 neagix'''
'''v0.1.0 neagix'''
* initial kernel images released
* Initial kernel images released.


==Thanks==
==Credits==
Thanks to the following people/organizations/groups:
Thanks to the following people/organizations/groups:
* the Linux Kernel developers
* The Linux Kernel developers.
* the GC-Linux team
* The GC-Linux team.
* DeltaResero
* DeltaResero.
* marcan
* marcan.
 
Chronological history of Linux for Wii/GameCube:
*[http://www.gc-linux.org/wiki/MINI:KernelPreviewFive gc-linux (v2.6-based) MIKEp5] - this is the original project and corresponds to the bulk work done to bring Linux to the Wii.
*[https://github.com/DeltaResero/GC-Wii-Linux-Kernels DeltaResero's fork (unofficial MIKEp7)] - considerable work done by DeltaResero to bring up the GC/Wii patches into a v3.x kernel.
*this project, wii-linux-ngx - continuation of the previous work, distribution packaging and maintenance.
 
The original (2.6.32 and prior) gcLinux work can be found at http://sourceforge.net/projects/gc-linux/; at the time of writing project has not seen activity since 2013.


==External Links==
==External Links==
* Official Site - https://neagix.github.io/wii-linux-ngx/
* Official website - https://neagix.github.io/wii-linux-ngx/
* Github - https://github.com/neagix/wii-linux-ngx
* GitHub - https://github.com/neagix/wii-linux-ngx
* Gbatemp - https://gbatemp.net/threads/wii-linux-ngx-release-v0-3-4-with-rgba-support.481031/
* gc-forever - https://www.gc-forever.com/forums/viewtopic.php?f=27&t=3829
* GBAtemp - https://gbatemp.net/threads/wii-linux-ngx-release-v0-3-4-with-rgba-support.481031/

Revision as of 01:18, 13 February 2023

Wii-Linux-NGX
File:Wiilinuxngx.jpg
General
Authorneagix
TypeOperating systems
Version0.3.6
LicenseMixed
Last Updated2017/08/25
Links
Download
Website
Source

wii-linux-ngx is a project that aims to bring the power of modern Linux to Wii consoles. The project provides a variety of resources to help users set up Linux on their Wii, including source code for a working Linux kernel, kernel single-binary releases in ELF format, and ready-to-use Debian Jessie images/rootfs.

Additionally, the project offers Gumboot support for framebuffer RGBA mode, which allows for improved graphics and a more seamless Linux experience on the Wii.

Installation

Download the compressed image from the releases, decompress it (gunzip) and then flash it to an SD card with your program of choice.

wii-linux-ngx works with an SD card (or USB mass storage) with the following layout:

  • First partition, FAT32 with MINI and Gumboot (Bootmii is provided as fallback)
  • Second partition with ext3 Linux rootfs

You can add other partitions of your choice; performance of SD cards is better than USB mass storage.

You can use Priiloader to make Bootmii your default choice, effectively creating this chain:

Wii power on -> MINI -> (Gumboot selection with power/eject buttons ->) Linux kernel zImage

See also:

User guide

Default credentials

The SD image and rootfs have root:root credentials.

If you prefer to login via USB serial console, edit the last line of /etc/inittab in order to use ttyUSB0 as a login terminal; you might need to recompile the kernel with your serial-over-USB driver as only the PL2303 driver is included.

Framebuffer support

Current version has framebuffer support with Farter's Deferred I/O Framebuffer patch (http://fartersoft.com/) and neagix (author)'s support for RGBA.

To change mode to 32bit:

fbset -xres 576 -yres 432 -vxres 576 -vyres 432 -depth 32

Change the last parameter to go back to 16bit.

To display an image:

$ fbv mario.png

Xorg using framebuffer works fine.

Changing bootargs with baedit

It is possible to change kernel command line arguments (also known as bootargs from the DTS file) with a hex editor, with (very careful) usage of sed, or with the provided baedit tool.

To show current bootargs embedded in the kernel:

$ baedit zImage
>OK: 3201336 bytes read
current  bootargs = 'root=/dev/mmcblk0p2 console=tty0 console=ttyUSB0,115200 force_keyboard_port=4 video=gcnfb:tv=auto loader=mini nobats rootwait

To change the arguments, just pass them as second parameter to baedit:

$ baedit zImage 'your new arguments here'
>OK: 3201336 bytes read
current  bootargs = 'root=/dev/mmcblk0p2 console=tty0 console=ttyUSB0,115200 force_keyboard_port=4 video=gcnfb:tv=auto loader=mini nobats rootwait       
replaced bootargs = 'your new arguments here                                                                                                                              '
>OK: 3201336 bytes written

Networking

Connecting via Ethernet dongle

  • Connection will work automatically and it uses regular Debian configuration files.

Connecting to Wi-Fi

Wireless Frequency: 2.4 GHz Frequency
Wireless Modes: 802.11b, 802.11g
Wireless Security Modes: WEP, WPA-PSK (TKIP), WPA-PSK (AES), WPA2-PSK (AES)

Network troubleshooting resources

Swap

It is suggested to create a swap partition and enable it to speed up operations, since the Wii has little memory available (~80M).

Installing packages

The Jessie rootfs is stripped down so you will need to run apt-get update before being able to install any package.

Building the kernel

Compiling this kernel will has some dependencies that must be installed. On a Debian-based system, these dependecies can be installed by running the following command:

sudo apt-get install advancecomp autoconfig automake bash build-essential bzip2 ccache coreutils fakeroot file gcc g++ gzip libmpfr-dev libgmp-dev libnurses5-dev make strip

Give a look to DeltaResero's script to see how to use ccache for kernel compilation

(Cross) Compiling the Kernel

Remember to edit the corresponding dts file (arch/powerpc/boot/wii.dts for the Wii when not using the default boot method from SD card (/dev/mmcblk0p2). Enabling zcache and other kernel options requres editing the default bootargs. You can alter the bootargs of an already compiled kernel by using the provided tool baedit (it's found in the rootfs image or you can run/build it with Go).

Related pages:

ZRAM

The zram-config v0.5 files are provided in /root/zram-config, there is no init integration though.

You can verify whether zRam ha started by running the following command as root:

    swapon -s

zRam swapping can be turned off with the following command:

swapoff /dev/zram0

Change the command accordingly to which device should be stopped.

Related readings:

Mounting a disc

Create a "dvd" folder (as root) in the "/media" directory (only if the folder doesn't exist) with the command:

    mkdir /media/dvd

Then run the following (also as root):

    mount /dev/rvl-di /media/dvd

DVDs can be inserted/switched anytime but should be unmount prior to ejecting and then remount again after to prevent errors. To unmount a disc, enter the following command as root:

    umount /dev/rvl-di /media/dvd

Additional packages such as libdvdcss & libdvdread may need to be installed for DVD playblack (may need to search package manager as naming standards aren't consistant). Mplayer and Xine seem to work the best but support will vary depending on the operating system.

Related pages

http://fartersoft.com/blog/2011/08/17/debian-installer-for-wii/

FAQ

Q. Does the ethernet dongle work?

Yes.

Q. Does the Wi-Fi work?

Yes.

Q. Can I run Xorg on it?

Yes, with the framebuffer driver.

Q. Does it work on GameCube?

It should. GameCube is supported but author cannot test on it.

Q. Does SD/SDHC/USB work?

Yes.

Q. What type of multimedia/gaming applications can I use?

Anything that works on a framebuffer will do. But forget about video playback, 3D or high end games.

There is no hardware acceleration support so far.

Media

Running Debian Linux 5 and 8 ON A NINTENDO WII (Wii Linux Adventures) Part 1 - (Parallel Productions)

Known issues

Boot from MINI is well tested, but not boot from IOS. Xorg framebuffer driver is also not tested.

Bugs probably introduced in the port of MIKEp5 from v2.6 to v3.x tree:

  • In IOS mode, external swap partitions don't mount correctly as of kernel version 2.6.39. As a workaround, use a local swapfile (This bug should be relatively easy to find using git bisect)
  • Both IOS and MINI modes seem to have a bug that prevents Linux from booting if a GameCube Controller is inserted in one of the ports while the serial port is enabled in the config. This bug is caused by a glitch that was created when forward porting from 2.6.32 to 2.6.33. It should be possible to find this bug using git bisect.
  • Both IOS and MINI also still suffer from the same hardware limitations that they did in 2.6.32.y. For example, wireless and disc support for Wii consoles is still limited to MINI mode. Also, DVDs can be mounted as they were in version 2.6.32.y, but due to hardware limitations, it's unable to write to any disc and is unable to read CDs and certain types of DVD's
    • Support for DVD-RW and DVD-DL disc seems to vary. Currently, -R and +R (both mini & full-size) DVDs are know to work on both GameCube and Wii consoles. All WiiU as well as some of the newer Wii disc drives, lack support for DVDs as they don't contain the same type of disc drive. In other words, support will vary on the age of the console, but most standard GameCube consoles should be able to read mini DVDs (full-sized DVDs are too big for unmodified Gamecube consoles, but they can be read).

See open issues.

Changelog

v0.3.6 neagix

  • Added Gumboot bootloader.
  • Switched first partition to FAT32.

v0.3.5 neagix

  • Use LABEL= on root command line to allow booting from SD/USB.
  • Fixed login on tty (thanks to DeltaResero for reporting).

v0.3.4 neagix

  • Working RGBA mode (some console glitches).
  • Added example PNG.

v0.3.3 neagix

  • Fix tty1 display logo.

v0.3.2 neagix

  • Kernel v3.15.10.
  • Fixed missing eth0 network configuration.
  • Added a framebuffer visualization tool (fbv).
  • Installed fbset.

v0.3.1 neagix

  • Added Farter's framebuffer patch.
  • Aesthetical fix to first boot initialization.

v0.3.0 neagix

  • Fixed INIT error on ttyS0.
  • Kernel v3.14.19.

v0.2.0 neagix

  • First rootfs+bootmii+disk image+kernel release.

v0.1.0 neagix

  • Initial kernel images released.

Credits

Thanks to the following people/organizations/groups:

  • The Linux Kernel developers.
  • The GC-Linux team.
  • DeltaResero.
  • marcan.

Chronological history of Linux for Wii/GameCube:

  • gc-linux (v2.6-based) MIKEp5 - this is the original project and corresponds to the bulk work done to bring Linux to the Wii.
  • DeltaResero's fork (unofficial MIKEp7) - considerable work done by DeltaResero to bring up the GC/Wii patches into a v3.x kernel.
  • this project, wii-linux-ngx - continuation of the previous work, distribution packaging and maintenance.

The original (2.6.32 and prior) gcLinux work can be found at http://sourceforge.net/projects/gc-linux/; at the time of writing project has not seen activity since 2013.

External Links

Advertising: