Hacking (vWii) - Tri-Core Linux

Ray Lewis

Banned!
Banned
Joined
Dec 30, 2012
Messages
1,518
Trophies
0
XP
419
Country
United States
ANY kernel? Debian, Ubuntu, Kali, whatever?
Ahhhh, well regardless of the kernel and appearance it is a very limited version of Linux that will run. You can run Ubuntu or any other flavor of Linux on other platforms that can do more than vWii Linux in every way imaginable. Running a different kernel here does not really improve anything major. Changing the kernel has not helped with SMP also.
 

Ninja_Carver

Well-Known Member
OP
Member
Joined
Dec 27, 2012
Messages
364
Trophies
0
Age
39
XP
652
Country
United States
Booting off a flash drive sadly isn't possible yet. That's going to require hex editing the linux kernel that's being used XD, no guarantee that will ever work (wouldn't even know where to start editing XD). USB mass storage devices are however supported for adding additional storage as I'm using an older linux kernel. The latest linux kernel for wii/gc, which is what the official release of Trinux uses, broke compatibility with usb mass storage devices. An unfortunate side effect of something that was changed in the latest version :(. WiiUOS is actually based off Easy Wii Linux by a guy who calls himself "linus" over at the wiibrew forums. He released this a few years ago. Its based off debian, as opposed to Ubuntu like the official trinux release is. Debian runs so much smoother with the limited resources trinux currently has access too. Ubuntu is just too bloated to use right now. When tri core SMP is implemented, I'm sure Ubuntu will run great, but for now, we need to be realistic :P.

I will let you know once the tutorial for WiiUOS is done and I'll send you the sd card image so you can host it :). Thanks man!

this is possible if you modify the boot= string in the kernel source prior to compiling. i've had it working before and its actually faster than an sd card.
 

Ninja_Carver

Well-Known Member
OP
Member
Joined
Dec 27, 2012
Messages
364
Trophies
0
Age
39
XP
652
Country
United States
Wii Linux has existed for years. The only benefit for Wii U is to have 3 cores and the cores "talking" together. Without the SMP part, which nobody here can make, all Linux on vWii can be is a polished and updated Wii Linux. May as well keep the Wii and call it WiiOS.

not entirely true, WiiLinux was based off of an ancient debian release, which is like 10 years old now? at least ubuntu is a well known platform and as far as i know unless TSK has changed it, running a long-term-support ubuntu version with package management.
 

Ninja_Carver

Well-Known Member
OP
Member
Joined
Dec 27, 2012
Messages
364
Trophies
0
Age
39
XP
652
Country
United States
ANY kernel? Debian, Ubuntu, Kali, whatever?

guys, its linux. use any kernel you want. keep in mind that the base filesystem is ubuntu, so make sure whatever kernel you end up using will place nicely with the filesystem. thats basically what this project was all about when i started (continued?) it. Pairing a recent streamline filesystem (ubuntu) with a custom Wii kernel. I've got to say, I check this thread periodically, and I am continually amazed by the amount of absolute crap / misinformation i'm reading. TSK- If you still have the original Trinux we built on your laptop (before all of your extra "add-ons") you should get that out there so people have a clean baseline to work from. This was meant to be a clean, clutter free linux environment to use as a baseline for development once SMP support is implemented. This platform is absolutely useless without it. There is no reason to use it for anything other than educational and developmental purposes. The reason I stopped working on this project is because I hit the brick SMP wall. I didn't (and still don't) possess the skill to integrate it. However, it is my understanding that once its ported to WiiU mode, things will fall into place a bit easier.
 

Marionumber1

Well-Known Member
Member
Joined
Nov 7, 2010
Messages
1,234
Trophies
3
XP
4,045
Country
United States
However, it is my understanding that once its ported to WiiU mode, things will fall into place a bit easier.


Not quite, as marcan has pointed out before, you have to do the same work to get SMP support, no matter which mode you're in. Being in Wii U mode does give you access to the new hardware, like the extra memory, the new GPU, and the DRH.
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
guys, its linux. use any kernel you want. keep in mind that the base filesystem is ubuntu, so make sure whatever kernel you end up using will place nicely with the filesystem. thats basically what this project was all about when i started (continued?) it. Pairing a recent streamline filesystem (ubuntu) with a custom Wii kernel. I've got to say, I check this thread periodically, and I am continually amazed by the amount of absolute crap / misinformation i'm reading. TSK- If you still have the original Trinux we built on your laptop (before all of your extra "add-ons") you should get that out there so people have a clean baseline to work from. This was meant to be a clean, clutter free linux environment to use as a baseline for development once SMP support is implemented. This platform is absolutely useless without it. There is no reason to use it for anything other than educational and developmental purposes. The reason I stopped working on this project is because I hit the brick SMP wall. I didn't (and still don't) possess the skill to integrate it. However, it is my understanding that once its ported to WiiU mode, things will fall into place a bit easier.
Ninja_Carver you're back! I still have the 1.4b release of trinux on my laptop, ill re upload it when i get a chance as the current link was falsely reported as copyright infringement ><.

If you change your mind and want to continue working together on this, im all for it, but if not, i understand completely. I was being really arrogant and shouldve taken the advice from people who know more than i do.

Whether you choose to work with me or not, you're an awesome guy and trinux wouldnt exist without you :)

EDIT: Re-Uploading Trinux 1.4b (ubuntu) overnight. Here's to hoping my connection doesn't crap out XD.

Let's build Trinux together as a community, SMP and all!
 

Ninja_Carver

Well-Known Member
OP
Member
Joined
Dec 27, 2012
Messages
364
Trophies
0
Age
39
XP
652
Country
United States
Ninja_Carver you're back! I still have the 1.4b release of trinux on my laptop, ill re upload it when i get a chance as the current link was falsely reported as copyright infringement ><.

If you change your mind and want to continue working together on this, im all for it, but if not, i understand completely. I was being really arrogant and shouldve taken the advice from people who know more than i do.

Whether you choose to work with me or not, you're an awesome guy and trinux wouldnt exist without you :)

EDIT: Re-Uploading Trinux 1.4b (ubuntu) overnight. Here's to hoping my connection doesn't crap out XD.

Let's build Trinux together as a community, SMP and all!


Not "back", and not working on this. As I explained earlier, before anything else is even remotely worthwhile, SMP is needed. Otherwise you have the equivalent of an Intel 586.
The best thing you could do for this project, in my humble opinion, is build some interest in capable folks to hack the kernel up and work towards SMP support. While you're in there, fix USB Mass Storage bugs. DeltaRosera (or something) is a great resource, though when i started working on this, he didn't have a WiiU. He posted in this thread early on.
 
  • Like
Reactions: TeamScriptKiddies

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
Not "back", and not working on this. As I explained earlier, before anything else is even remotely worthwhile, SMP is needed. Otherwise you have the equivalent of an Intel 586.
The best thing you could do for this project, in my humble opinion, is build some interest in capable folks to hack the kernel up and work towards SMP support. While you're in there, fix USB Mass Storage bugs. DeltaRosera (or something) is a great resource, though when i started working on this, he didn't have a WiiU. He posted in this thread early on.


I came across this recently, its a nice proof of concept on how to initialize all 3 cores by Team f0f, I really have no idea how I missed this before XD: https://fail0verflow.com/blog/2013/espresso.html I fail (lame pun intended). Of course this is powerpc assembly, I'm not familiar with the powerpc instruction set, but I'm certainly willing to learn. Once all 3 cores are initialized we're going to need to hardcode support for it into the kernel, I take it, otherwise, it will either break the kernel entirely or it will initialize all 3 cores but only utilize one and ignore the other 2?

As for getting others involved, absolutely :). Couldn't agree with you more on this. The usb mass storage issue is isolated to 3.0+, I'll reach out to DeltaRosera, I've seen his work before (the current Wii linux kernel wouldn't exist without him) and see if he has any insight.

Thanks for all you have done for this project and for dropping in to lead us on the right path :)!

Also here is the download link for Trinux 1.4b: http://www.4shared.com/rar/inNj_-QGce/trinux-14b.html

If you wouldn't mind replacing the dead link in the OP for 1.4b with this new one, that would be much appreciated :).

Anybody who wants to contribute to this project download the latest beta :)
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
I don't know about this, seems to work though....Who knows! Maybe one day my Wii U Will be running Windows 7 (Since the hardware supports it!).


You can "stream" it to the wii/wiiU as I did in an earlier video, when I was "streaming" pc games I was remotely controlling my Win 7 desktop from an original Wii. Win 7 running on the powerpc architecture is going to require some resource heavy cpu emulation and likely wouldn't be usable (way too slow). Maybe with SMP, but even then idk if it would be do able. Windows 2000/ME would be more realistic (using CPU emulation, something like Qemu) as that isn't resource heavy at all, so I would imagine the resources eaten up by CPU emulation wouldn't inhibit performance by much at all.
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
Ninja_Carver TeamScriptKiddies where is the source code of Trinux and the kernel?

Let me take a look at my files and see if I can find it....

EDIT: In accordance with the GPL, it was supposed to be release with trinux (woops!), if we missed that, the situation needs to be rectified ASAP

UPDATE: I don't see to have a source code for it at all....Ninja_Carver ?

TRINUX UPDATE: Just increased the swap file size using gparted on my laptop from 2gb to 9gb XD. Gonna test it later. Unfortunately, I have to test it on my original wii, but it should launch okay as long as I don't use the Trinux launcher and just execute the elf for it directly.
 

nastys

Well-Known Member
Member
Joined
Aug 5, 2014
Messages
1,732
Trophies
1
Age
26
Location
Earth
XP
1,815
Country
Italy
TRINUX UPDATE: Just increased the swap file size using gparted on my laptop from 2gb to 9gb XD. Gonna test it later. Unfortunately, I have to test it on my original wii, but it should launch okay as long as I don't use the Trinux launcher and just execute the elf for it directly.
Increasing the swap size won't increase the performance. This is useful if you need e.g. to render a very memory intensive Blender scene, otherwise it crashes.
If you want to increase performance, try tuning up the swappiness, use a swap partition and add it to fstab.

Anyway, how can you not have the source code? I tought you changed something in the kernel... And how did you build Trinux anyway? :blink:
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
Increasing the swap size won't increase the performance. This is useful if you need e.g. to render a very memory intensive Blender scene, otherwise it crashes.
If you want to increase performance, try tuning up the swappiness, use a swap partition and add it to fstab.

Anyway, how can you not have the source code? I tought you changed something in the kernel... And how did you build Trinux anyway? :blink:


I've been more of a tester than anything here. I mean I've added functionality along the way using my linux skill set, but none what I did required the source code. Ninja_Carver did mostly everything he would have access to the source code. Sadly I do not. It might be possible to reverse the assembler process for trinux and get the source code that way, I'm just not sure. I know in special cases you can decompile C programs to get the source code....

If carver doesn't get back to us in a reasonable amount of time, I'll try playing around with it.....
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @BigOnYa, Last job Ancient went to, he got fired for drinking on the job. +1