• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 … 40 41 42 43 44 … 117 Next »

Execution of simple network devkitPro GC example in Dolphin
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Execution of simple network devkitPro GC example in Dolphin
07-26-2014, 05:51 AM
#1
shiroiken
Unregistered
 
Question 
Hi all, awesome Dolphin community,

I'm doing some GC development, and I bumped into trying to use the network capabilities of the GC, to try some things out.

Concretely, I'm building the examples given with devkitPro for GameCube development,
<devkitpro>/examples/gamecube/devices/network/sockettest

The example builds fine.

On the other hand, Dolphin is configured with a BBA inside, and the bridge trick has been done, as described in,
http://code.google.com/p/dolphin-emu/wiki/BBA

I have tried this both on Windows and Linux, but the output I get in the Dolphin emulated window is,

"network configuration failed!". Adding errno to the equation, gives us the utmost descriptive: "Error no: 0"

Has anybody compiled and executed some GC examples? From reading around, it seems people have experienced with the BBA to get MKBig GrinD and the sort working, but I wonder if this has been used for development so far.

Thanks!
Reply
07-27-2014, 03:16 PM (This post was last modified: 07-27-2014, 03:43 PM by skid.)
#2
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
Yes, when shuffle2 developed the BBA emulation, he tested it with GC homebrew. Let us know how it goes and if Dolphin's BBA emulation requires any additions.
Find
Reply
07-27-2014, 04:24 PM
#3
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,563
Threads: 31
Joined: Feb 2013
I got Mario Kart Double Dash and Kirby Air Ride working earlier tonight without issues. Are you trying to use multiple Dolphin's on one computer?
Find
Reply
07-28-2014, 10:29 AM
#4
tueidj Offline
Senior Member
****
Posts: 552
Threads: 0
Joined: Apr 2013
Have you tested it on real hardware? BBA/lwip support has been broken in devkitpro for a couple of years.
Find
Reply
07-28-2014, 11:00 AM
#5
shuffle2 Offline
godisgovernment
*
Project Owner  Developers (Administrators)
Posts: 698
Threads: 17
Joined: Mar 2009
I may have had to hack it to match my network setup or something, I don't really remember - but it probably wasn't that hard to fix.
or - now that I think about it a bit, maybe it was something about the packet checksum...I really forget. Either way, should be easy to fix since *I* managed it...
Find
Reply
08-05-2014, 04:23 PM
#6
shiroiken
Unregistered
 
I've found some more time to play with this.

For the GC, I'm configuring the BBA, and doing the following (the previous thread in google docs dissappeared)
Code:
openvpn --mktun --dev Dolphin --dev-type tap
brctl addbr br0
brctl addif br0 Dolphin
brctl addif br0 eth0    # or whatever your network interface is
ip l set Dolphin up
ip l set Dolphin promisc on

The vanilla socket file builds fine, returns the following:
Code:
Network configuration failed! Ret value: -116, Error no: 0

Playing with the DHCP parameter made it go over the if_config func once, but now I can't reproduce it. Ie., the following code crashes,

Code:
char localip[16] = "192.168.1.10";
char gateway[16] = "192.168.1.1";
char netmask[16] = "255.255.255.0";
ret = if_config (localip, netmask, gateway, FALSE);

On the other hand, I have no way of setting up the Wii example. By setting DHCP to FALSE, the example fails. Setting it to TRUE will make the emulator always automagically get IP 192.168.1.150, but no chance to reach it.

TL;DR
Let's put it this way, if someone gets any socket example working on either the GC or the Wii, I'd be glad to know. Right now, none are working. (Not surprisingly, since this page reports the same).
Reply
08-06-2014, 12:17 AM
#7
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
Uh... hwtests and hwfifoplayer both use sockets and work inside Dolphin. neobrain might know more.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
08-06-2014, 01:43 AM
#8
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
I don't know much more other than that indeed sockets work fine for all the limited purposes I've used them for so far Smile
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
08-06-2014, 02:31 AM
#9
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
Aren't some versions of devkitppc/libogc just broken for network stuff? I seem to remember something like that.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
08-07-2014, 04:23 AM
#10
shiroiken
Unregistered
 
neobrain, could I have some code example to do sockets on GC/Wii? What are you using?
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma