Hacking (vWii) - Tri-Core Linux

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
Can you guide me about these tweaks, as I said it's not the mouse goes faaster or slower, it just doesn't register lefft/right movement.

Like I said, to resolve the issue of the mouse refusing to go left/right I just changed out the mouse with another usb mouse I had lying around and it was fine (other then the sensitivity). Trinux in its current state, just doesn't play well with all peripherals. As Ninja_Carver stated previously, he had a very limited amount of RAM to work with when he set up the generic usb mouse drivers as well as drivers for a lot of other peripherals. So compatibility is a bit flaky at the moment.
 

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
No worries :). It just means I'm down an external dvd drive atm XD.

Since I lacked one of those to work with, and seeing how I have two dead phat xbox 360s lying around, I decided to scavenge the hdd out of one of them (which is just a simple notebook/laptop hdd in a fancy shell). Okay so my next thought was, can I use THIS (its a 250gb hdd so for use with trinux this would be massive for extra storage) with trinux :). My only problem with that was that I don't own a USB enclosure XD. At that moment, I realized I have an old x360usb adapter for flashing/repairing 360 drives huzzah! Sadly, the only SATA connection for that is DATA not power rats. So instead of going out and buying a USB enclosure, like a normal human being would, I made myself a custom cable to power the sata hdd using a usb cable XD.

Now the harddrive reads perfectly fine on both my laptop and desktop (windows and linux), the issue is i've been bashing my head against a wall trying to get trinux to see it. After battling with this for many hours (lol) I realized that it isn't seeing ANY usb mass storage devices at all. I think something became broken after that last beta was released. It must've been some package I installed that didn't play well with mass storage devices. Long story short, stuff got broken software wise XD. I figured this out by trying other usb mass storage devices (that work fine on my computers) and none of them would read under trinux. Fun fact though, I could view the hdd and other devices fine using Wiixplorer via the hbc, so I know this issue is isolated to trinux.

I'm rewriting the 1.4b image to my sd card right now, heres to hoping this resolves the issue :)

View attachment 10263View attachment 10264

UPDATE: Having the same issue after rewriting the 1.4b image to my sd card :(. Is anyone else experiencing this problem? It could be that something broke between betas 1.0 and 1.4

Okay for those of you who found my little custom cable venture interesting, I had a chance today to finalize my custom usb to sata power cable. In the previous pictures (and tests) I had only spliced the cable together to see if it worked, before going through the labor of soldering everything, in case I screwed up my wiring. Anyways today I had a chance to solder all the connections together. I've attached some neat little pictures of the process, including showing the harddrive reading correctly on my Ubuntu laptop. As for getting this to read under Trinux, thats another project altogether XD. Anyways, here's some neat pics :) IMG_20140920_173920.jpgIMG_20140920_174401.jpgIMG_20140920_174606.jpgIMG_20140920_182557.jpgIMG_20140920_182752.jpgIMG_20140920_182927.jpgIMG_20140920_183021.jpgIMG_20140920_183110.jpgIMG_20140920_183200.jpgIMG_20140920_183250.jpgView attachment 10514IMG_20140920_183608.jpgIMG_20140920_183614.jpgIMG_20140920_183631.jpgIMG_20140920_183638.jpg

UPDATE: I'm currently writing Trinux 1.0b to my sd card to see if I'm able to access this harddrive using that older release.....

UPDATE 2: no dice with Trinux 1.0b :(

UPDATE 3: Something interesting happened when I plugged in my android phone and set it up as a usb mass storage, its listed under the lsusb output w00t! now we're getting somewhere. Again, I'm on Trinux 1.0b still, I'm not sure if this still works on 1.4b. That's my next test :). If everything goes well on 1.4b then I should be able to mount it from there. So I can confirm what Ninja_Carver previously stated, that some usb mass storage devices are compatible w00t! We would just need to do some serious tweaking to get more usb storage devices to work correctly

Phone is unplugged:
phonenotpluggedin.jpg
Phone is plugged in:
phonepluggedin.jpg

UPDATE 4: I'm trying to rewrite 1.4b to my sd card, but its giving me trouble.....

UPDATE 5: Looks like my sd card crapped the bed on me, ugh. I've tried everything. But to be fair i've had this card for many years now and its gone through zillions of reads/writes so I'm not surprised it finally croaked. Unfortunately, I don't know where any of my other sd cards are at the moment :(. Well, I'm heading to bed for now. Goodnight all *sighs*. Another piece of hardware bytes the dust (pun intended) as a result of the Trinux project XD. First my external dvd drive (which was entirely my fault) and now coincidentally, my sd card. Gotta love it..........
 

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
It might just be an issue with firefox on Ubuntu 14.04, not sure.
It's an issue with Firefox. I tried tagging you with Firefox but I can't add more than 3 letters. However Chromium works fine (I'll use Firefox anyway).
If your SD stopped working try to create a new partition table using GParted. If it doesn't work at all try another USB adapter.
Anyway, how do you build Trinux images? Maybe I can try to make my own...
 

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 tried just about any tool I could think of to wipe it and recreate the partitions etc etc, but I can't even format it. it keeps giving me a "write protect error." I've checked the switch on the side of the card and tried playing around with it, in case it was off kilter, but to no avail. I also tried covering the notch across from it with a small piece of scotch tape to bypass the write protection, but no change. I haven't tried gparted yet, but I will give that a shot, before declaring it clinically dead lol. I also have a 2gb card lying around that will suffice, only problem is I just need to find it XD.

As for building the trinux image, that would be a question for Ninja_Carver

It's an issue with Firefox. I tried tagging you with Firefox but I can't add more than 3 letters. However Chromium works fine (I'll use Firefox anyway).
If your SD stopped working try to create a new partition table using GParted. If it doesn't work at all try another USB adapter.
Anyway, how do you build Trinux images? Maybe I can try to make my own...
 

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
Hey everyone! I still haven't been able to find my 2gb sd card sadly, however, I just realized that I can launch homebrew apps through HBC off my usb/internal hdd I set up before! w00t! Homebrew apps are now launching from this hdd no problem now! That being said, the Trinux launcher is configured only to boot from sd after initiating the race attack, so after the PPC (Espresso) is reset, it tries to boot into linux then hangs. This would just require some tweaking to get it to launch from usb. Of course even if we do get it to launch from a usb device, there's also the potential driver issue popping up again, which may cause things to also go twitch thud die during boot up with my specific drive (and certain other usb mass storage devices). Maxternal or Ninja_Carver if either of you have the time, could you look into tweaking the current trinux launcher to get it to load trinux off of a usb device? This has a lot of potential! Far more than booting off an sd card would, plus assuming that we could smooth out any driver issues (for most devices anyways) we could have the Trinux installation on pretty much any size drive, with TONS of storage and the ability to make some massive swap files to utilize to help Trinux run a lot better :)
 
  • Like
Reactions: nastys and VinsCool

Ninja_Carver

Well-Known Member
OP
Member
Joined
Dec 27, 2012
Messages
364
Trophies
0
Age
39
XP
652
Country
United States
you can edit the kernel boot parameters in a hex editor if you're feeling frisky and have it boot the linux partition from the corresponding /dev/sdaXX entry... but, I will not/cannot support that experiment :P

It does work though, I've done it before.
 
  • 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
B Okay I might take a stab at it when I get a chance :-P

you can edit the kernel boot parameters in a hex editor if you're feeling frisky and have it boot the linux partition from the corresponding /dev/sdaXX entry... but, I will not/cannot support that experiment :P

It does work though, I've done it before.
 
  • Like
Reactions: Ray Lewis

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
WARNING TO USERS OF TRINUX!!!!

A new bug has been discovered for Mac OS and Linux. I caught this on the news this morning. This is called the "Bash Bug." It can potentially be more "dangerous" than the heartbleed vulnerability.

That being said, while most people wouldn't bother attempting to make a payment under Trinux, I'm still putting this out there, reason being is I don't want anyone in Trinux to be held liable for the actions of stupid criminals. In most cases, when trying to load a site with an SSL certificate under Trinux, due to the limited amount of RAM, the Wii U will mostly crawl to a halt. This is NOT always the case however. DO NOT UNDER ANY CIRCUMSTANCES MAKE ANY TRANSACTION UNDER TRINUX AT THIS TIME, IF YOU DO, AND YOUR INFO IS STOLEN TEAM TRINUX IS NOT LIABLE FOR THIS! You have been warned.

As far as I know, Canonical (the makers of Ubuntu, which is what Trinux is based off of) has yet to release a security patch for this. Even when they do, I don't recommend installing it under Trinux until we hear from our resident expert Ninja_Carver on whether or not the patch will need some tweaking to get it to work on the Wii U. There's a good chance that it will need some tweaking, otherwise it could potentially trash your Trinux installation.

More info about the bash bug here: https://www.google.com/search?hl=en....3.0.0.99.355.5.5.0...0.0...1ac.1.dHZt42O6cQ4
 

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
Random thought! This is totally unrelated to the post directly above about the security breach.

Okay, I'm currently learning MATLAB (Programming Language/Development Environment/Engineering swiss army knife app of mathematical awesomeness) in one of the classes I'm taking this semester. Her0e's what I'm thinking.... FreeMAT (a free open source alternative to MATLAB) is available for Linux. The windows version is able to run on versions as low as 2000/XP, so clearly its not much of a resource hog at all. While hardware requirements don't seem to be available ANYWHERE, I'm thinking, maybe just maybe, we could run this on Trinux for ubernerdiness. Also FreeMAT has the ability to convert MATLAB programs to other languages such as C++/Fortran etc. This might be pretty handy. My only concern is that this app may not run properly on a Powerpc processor (which is what the Espresso in the Wii U is). In fact Trinux is based of a PowerPC compatible distro of Ubuntu. Otherwise it wouldn't run.

I don't have a replacement sd card just yet, but if anyone is willing to give this a shot and make a video I would love you forever (no homo lol). NOTE, if this package doesn't play well with PowerPC, there's a good chance, you could trash your Trinux setup, so make sure you back it up first!!!!
 

Ninja_Carver

Well-Known Member
OP
Member
Joined
Dec 27, 2012
Messages
364
Trophies
0
Age
39
XP
652
Country
United States
WARNING TO USERS OF TRINUX!!!!

A new bug has been discovered for Mac OS and Linux. I caught this on the news this morning. This is called the "Bash Bug." It can potentially be more "dangerous" than the heartbleed vulnerability.

That being said, while most people wouldn't bother attempting to make a payment under Trinux, I'm still putting this out there, reason being is I don't want anyone in Trinux to be held liable for the actions of stupid criminals. In most cases, when trying to load a site with an SSL certificate under Trinux, due to the limited amount of RAM, the Wii U will mostly crawl to a halt. This is NOT always the case however. DO NOT UNDER ANY CIRCUMSTANCES MAKE ANY TRANSACTION UNDER TRINUX AT THIS TIME, IF YOU DO, AND YOUR INFO IS STOLEN TEAM TRINUX IS NOT LIABLE FOR THIS! You have been warned.

As far as I know, Canonical (the makers of Ubuntu, which is what Trinux is based off of) has yet to release a security patch for this. Even when they do, I don't recommend installing it under Trinux until we hear from our resident expert Ninja_Carver on whether or not the patch will need some tweaking to get it to work on the Wii U. There's a good chance that it will need some tweaking, otherwise it could potentially trash your Trinux installation.

More info about the bash bug here: https://www.google.com/search?hl=en&gl=us&tbm=nws&authuser=0&q=bash bug&oq=bash bug&gs_l=news-cc.3..43j43i53.1134.2563.0.2812.8.5.0.3.0.0.99.355.5.5.0...0.0...1ac.1.dHZt42O6cQ4



It's called "shellshock" not "bash bug" lol. But anyhow while there is no fix yet. There is no way to gain remote code execution without having some inbound port and service open from the internet. So in other words, unless you're running an Apache web server on Trinux and have that NAT/PAT there is no way it will affect you.
 

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
Random thought! This is totally unrelated to the post directly above about the security breach.

Okay, I'm currently learning MATLAB (Programming Language/Development Environment/Engineering swiss army knife app of mathematical awesomeness) in one of the classes I'm taking this semester. Her0e's what I'm thinking.... FreeMAT (a free open source alternative to MATLAB) is available for Linux. The windows version is able to run on versions as low as 2000/XP, so clearly its not much of a resource hog at all. While hardware requirements don't seem to be available ANYWHERE, I'm thinking, maybe just maybe, we could run this on Trinux for ubernerdiness. Also FreeMAT has the ability to convert MATLAB programs to other languages such as C++/Fortran etc. This might be pretty handy. My only concern is that this app may not run properly on a Powerpc processor (which is what the Espresso in the Wii U is). In fact Trinux is based of a PowerPC compatible distro of Ubuntu. Otherwise it wouldn't run.

I don't have a replacement sd card just yet, but if anyone is willing to give this a shot and make a video I would love you forever (no homo lol). NOTE, if this package doesn't play well with PowerPC, there's a good chance, you could trash your Trinux setup, so make sure you back it up first!!!!
You can run apps for other CPUs using Qemu and installing the libraries for that CPU (I've seen Pinball on Android using Ubuntu/chroot+VNC with Qemu and Wine). I can't test this because I don't have a LAN adapter. If only I could get the tethering working...
 

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
Ah so the media sensationalizes anotheer thing they don't have a clue about XD.
Big surprise there XD. Thanks for the clarification
It's called "shellshock" not "bash bug" lol. But anyhow while there is no fix yet. There is no way to gain remote code execution without having some inbound port and service open from the internet. So in other words, unless you're running an Apache web server on Trinux and have that NAT/PAT there is no way it will affect you.
 

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
Why didn't I think of that! You are awesome! I wish I could try it lout myself too haha

You can run apps for other CPUs using Qemu and installing the libraries for that CPU (I've seen Pinball on Android using Ubuntu/chroot+VNC with Qemu and Wine). I can't test this because I don't have a LAN adapter. If only I could get the tethering working...
 

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
Youtube the procedure. That's what I had to do the very first time I ran it. I was following a tex tutorial and kept missing a crucial part when in the game itself. I don't remember what it was now, but it was something really stupid lol. I bet your stuck on the same thing, either that or its something else stupid lol

I have 2gb microSD and SD adapter(smash stacks plus hackmii on it),but smash stacks isn't working.
 

Maxternal

Peanut Gallery Spokesman
Member
Joined
Nov 15, 2011
Messages
5,210
Trophies
0
Age
40
Location
Deep in GBAtemp addiction
Website
gbadev.googlecode.com
XP
1,709
Country
I have no idea whether or not this would be exploitable. Its certainly worth looking into however :). I never even thought of it, maybe we could force it into rebooting into Wii U mode somehow and then launch some unsigned code to bypass a lot of the Wii U's security. Because when you reboot from Trinux (even in the GUI), it attempts to reboot the Wii U entirely, but hangs shortly after the Wii U tries to fire back up. While you won't get a video output on your tv when this happens, it shows the normal Wii U boot up splash screen on the Gamepad then hangs (and eventually the gamepad becomes disconnected). Thoughts on this? I would tag the usual experts ie Marionumber1, NWPlayer123, Maxternal, Ninja_Carver etc etc, but unfortunately, tagging doesn't seem to be working correctly at the moment ><. It might just be an issue with firefox on Ubuntu 14.04, not sure. I'm on that partition on my laptop right now, so that's where I'm posting from....
This requires a simple, little kernel patch
https://code.google.com/p/gbadev/so...8899902bdb3e408796023e2ac895263e3&repo=kernel
because the method that wii linux uses doesn't quite do the trick for wii U
the method in this patch works for both wii and wii u, though



another point about hacking vulnerabilities, you have to consider that a hack would have to be specifically targetting PPC linux
 

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
This requires a simple, little kernel patch
https://code.google.com/p/gbadev/so...8899902bdb3e408796023e2ac895263e3&repo=kernel
because the method that wii linux uses doesn't quite do the trick for wii U
the method in this patch works for both wii and wii u, though



another point about hacking vulnerabilities, you have to consider that a hack would have to be specifically targetting PPC linux


Do you think this could *potentially* give us full access to the Wii U's hardware? Of course we would still need to write instructions for everything, but I'm just thinking outloud. Nothing additional will just "magically work" without telling Trinux how to utilize it of course.

Also that looks like a C source code file. Unfortunately, I haven't learned any C yet ><. I learned ASM using microprocessors and I'm currently taking a class that's teaching us MATLAB, but I'm not sure I'd be much help trying to tweak that file you posted.

Is this something you would be able to work on at all Maxternal?

EDIT: I mean the comments in the source code are definitely helpful, but again I'm not familiar with any higher level languages at this time (unless you count HTML as a language XD), so it would be difficult for me to modify this without knowing the appropriate language...
 

Maxternal

Peanut Gallery Spokesman
Member
Joined
Nov 15, 2011
Messages
5,210
Trophies
0
Age
40
Location
Deep in GBAtemp addiction
Website
gbadev.googlecode.com
XP
1,709
Country
Do you think this could *potentially* give us full access to the Wii U's hardware? Of course we would still need to write instructions for everything, but I'm just thinking outloud. Nothing additional will just "magically work" without telling Trinux how to utilize it of course.
Unfortunately, no. You lose control completely of the Wii U when you reset it this way.
Is this something you would be able to work on at all Maxternal?
Unfortunately, my life has become considerably more complicated in the last 6 months. It's on my growing to-do list but there are a few things I need to get through first.
 

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
Unfortunately, no. You lose control completely of the Wii U when you reset it this way.Unfortunately, my life has become considerably more complicated in the last 6 months. It's on my growing to-do list but there are a few things I need to get through first.


ah okay. Well if you're able to write me up a flowchart or someother representation of the algorithm necessary to allow the Wii U to reboot, I could always write it in another language then convert it to C..... I mean its all going to run as machine language anyways XD. Of course converting across multiple languages can certainly increase the chance of errors being made during conversion, but it might work

EDIT: so this wouldn't be exploitable in any way I take it?
 

Maxternal

Peanut Gallery Spokesman
Member
Joined
Nov 15, 2011
Messages
5,210
Trophies
0
Age
40
Location
Deep in GBAtemp addiction
Website
gbadev.googlecode.com
XP
1,709
Country
ah okay. Well if you're able to write me up a flowchart or someother representation of the algorithm necessary to allow the Wii U to reboot, I could always write it in another language then convert it to C..... I mean its all going to run as machine language anyways XD. Of course converting across multiple languages can certainly increase the chance of errors being made during conversion, but it might work

EDIT: so this wouldn't be exploitable in any way I take it?

It's a pretty simple change.
All the Wii code does to reset is set the first bit to 0 in a register at memory address 0x0d800194.
This doesn't quite do the trick on Wii U but there's another register at memory address 0x0d8005e0 that can also be used to reset the console.
You do the same thing to that register, set the lowest bit to 0, and it will reset the console on both Wii and Wii U

In the code, basically all you do is replace 0x0d800194 with 0x0d8005e0 and you're done

and no, it is no more exploitable than it is to just hit the power button to turn on the console when you first plug it in.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Nut on the hill