From: howard s. <how...@ho...> - 2004-07-10 08:37:45
|
<html><div style='background-color:'><DIV class=RTE> <P>Hi Gwenole,</P> <P>Could you be a bit more specific about the changes to be made to kpx_cpu/sheepshaver_glue.cpp ?</P> <P>A code snippet would be great!</P> <P>Best wishes</P> <P>Howard<BR><BR></P></DIV> <DIV></DIV>>From: Gwenole Beauchesne <gb...@di...> <DIV></DIV>>Reply-To: bas...@li... <DIV></DIV>>To: bas...@li... <DIV></DIV>>Subject: Re: [B2-devel] Ethernet/Internet Networking? <DIV></DIV>>Date: Sat, 10 Jul 2004 07:36:42 +0200 <DIV></DIV>> <DIV></DIV>>Hi, <DIV></DIV>> <DIV></DIV>>>How does one use tun/tap to get SheepShaver to connect to the net? <DIV></DIV>>>I've spent 3 days on it and can't figure it out at all. Sorry to <DIV></DIV>>>be a <DIV></DIV>>>bother =/. <DIV></DIV>> <DIV></DIV>>First, if you build SheepShaver from sources yourself on a non big <DIV></DIV>>endian system (e.g. x86), ethernet support is not enabled by <DIV></DIV>>default, you will have to change kpx_cpu/sheepshaver_glue.cpp for <DIV></DIV>>that. <DIV></DIV>> <DIV></DIV>>Second, I got the TUN virtual device working only at home through a <DIV></DIV>>DSL connection (ethernet modem). <DIV></DIV>> <DIV></DIV>>Make sure you have the following prefs items set up correctly in <DIV></DIV>>~/.sheepshaver_prefs: <DIV></DIV>>ether tun <DIV></DIV>>etherconfig /path/to/tunconfig <DIV></DIV>> <DIV></DIV>>Make sure you have sudo working for your user for the following <DIV></DIV>>binaries: <DIV></DIV>>/sbin/ifconfig <DIV></DIV>>/sbin/iptables <DIV></DIV>> <DIV></DIV>>Or you will have to run SheepShaver as root or run tunconfig through <DIV></DIV>>a wrapper script that calls kdesu or whatever. <DIV></DIV>> <DIV></DIV>>Next, in the MacOS side, set up a static IP in this form: <DIV></DIV>>172.20.XX.2 <DIV></DIV>>Where XX is generally 40, you can check that with /sbin/ifconfig for <DIV></DIV>>the IP of the tun0 device. Use another IP in that network. <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------- <DIV></DIV>>This SF.Net email sponsored by Black Hat Briefings & Training. <DIV></DIV>>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - <DIV></DIV>>digital self defense, top technical experts, no vendor pitches, <DIV></DIV>>unmatched networking opportunities. Visit www.blackhat.com <DIV></DIV>>_______________________________________________ <DIV></DIV>>basilisk-devel mailing list <DIV></DIV>>bas...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/basilisk-devel <DIV></DIV></div><br clear=all><hr>Speel games online met je vrienden via MSN Messenger <a href="http://g.msn.com/8HMANLNL/2746??PS=47575">klik hier</a> </html> |
From: howard s. <how...@ho...> - 2004-07-11 07:41:02
|
Gwenole, Erik, Thanks a bunch! Ethernet is working now. The only command I needed was the first "echo 1 > /proc/sys/net/ipv4/ip_forward" After that packets started flowing in and out of the tun device. I guess adding ip-forwarding to the line in tunconfig that actually configures ip_tables should do the trick? and, oh yeah, this: I was writing this message form within SheepShaver, but twice ethernet gave up on me, freezing SheepShaver. So even though it is working, it is quirky. Nevertheless, great job. Howard >From: Erik Arnson <ea...@gm...> >Reply-To: bas...@li... >To: bas...@li... >Subject: Re: [B2-devel] Ethernet/Internet Networking? >Date: Sat, 10 Jul 2004 10:43:52 -0500 > >Actually I did a hack job of it. Here's what I did to get it working: > >1) Edit kpx_cpu/sheepshaver_glue.cpp add a line near the top that says >"#define WORDS_BIGENDIAN". This, I assume, tricks the compiler into >thinking we're using a big endian processor. >2) Compile >3) Following Gwenole's instuctions I modified my config with his settings. >4) The Internet still didn't work. Thanks to Google I think I found >my problem. ARP. How to fix? >Eth0 is my NIC to the router and tun0 is my tunnel. These commands >enable proxy ARP and IP forwarding. I'm not sure you'll need the last >two or any of them at all. But, they're here to save you headachs ;). > If you find that you DID need them all please tell me. > >echo 1 > /proc/sys/net/ipv4/ip_forward >echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp >echo 1 > /proc/sys/net/ipv4/conf/tun0/proxy_arp > >If you have anymore questions feel free to post. I'd *LOVE* to save >someone the 3 days I spent on this! > > >-Erik Arnson >----- Original Message ----- >From: howard spoelstra <how...@ho...> >Date: Sat, 10 Jul 2004 10:36:50 +0200 >Subject: Re: [B2-devel] Ethernet/Internet Networking? >To: bas...@li... > > > > > > >Hi Gwenole, > > >Could you be a bit more specific about the changes to be made to >kpx_cpu/sheepshaver_glue.cpp ? > > >A code snippet would be great! > > >Best wishes > > >Howard > > > > >From: Gwenole Beauchesne <gb...@di...> > > >Reply-To: bas...@li... > > >To: bas...@li... > > >Subject: Re: [B2-devel] Ethernet/Internet Networking? > > >Date: Sat, 10 Jul 2004 07:36:42 +0200 > > > > > > > >Hi, > > > > > >>How does one use tun/tap to get SheepShaver to connect to the net? > > >>I've spent 3 days on it and can't figure it out at all. Sorry to > > >>be a > > >>bother =/. > > > > > >First, if you build SheepShaver from sources yourself on a non big > > >endian system (e.g. x86), ethernet support is not enabled by > > >default, you will have to change kpx_cpu/sheepshaver_glue.cpp for > > >that. > > > > > >Second, I got the TUN virtual device working only at home through a > > >DSL connection (ethernet modem). > > > > > >Make sure you have the following prefs items set up correctly in > > >~/.sheepshaver_prefs: > > >ether tun > > >etherconfig /path/to/tunconfig > > > > > >Make sure you have sudo working for your user for the following > > >binaries: > > >/sbin/ifconfig > > >/sbin/iptables > > > > > >Or you will have to run SheepShaver as root or run tunconfig through > > >a wrapper script that calls kdesu or whatever. > > > > > >Next, in the MacOS side, set up a static IP in this form: > > >172.20.XX.2 > > >Where XX is generally 40, you can check that with /sbin/ifconfig for > > >the IP of the tun0 device. Use another IP in that network. > > > > > > > > > > > >------------------------------------------------------- > > >This SF.Net email sponsored by Black Hat Briefings & Training. > > >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > > >digital self defense, top technical experts, no vendor pitches, > > >unmatched networking opportunities. Visit www.blackhat.com > > >_______________________________________________ > > >basilisk-devel mailing list > > >bas...@li... > > >https://lists.sourceforge.net/lists/listinfo/basilisk-devel > > >________________________________ >Speel games online met je vrienden via MSN Messenger klik hier > > >------------------------------------------------------- >This SF.Net email sponsored by Black Hat Briefings & Training. >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >digital self defense, top technical experts, no vendor pitches, >unmatched networking opportunities. Visit www.blackhat.com >_______________________________________________ >basilisk-devel mailing list >bas...@li... >https://lists.sourceforge.net/lists/listinfo/basilisk-devel > > > > >-- >-Erik Arnson > > >------------------------------------------------------- >This SF.Net email sponsored by Black Hat Briefings & Training. >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >digital self defense, top technical experts, no vendor pitches, >unmatched networking opportunities. Visit www.blackhat.com >_______________________________________________ >basilisk-devel mailing list >bas...@li... >https://lists.sourceforge.net/lists/listinfo/basilisk-devel _________________________________________________________________ MSN Zoeken helpt je om de gekste dingen te vinden! http://search.msn.nl |
From: howard s. <how...@ho...> - 2004-07-11 08:06:45
|
<html><div style='background-color:'><DIV class=RTE> <P>For easy access, I have accumulated the information about networking through the tun device on this page:</P> <P><A href="http://www.ou.nl/open/hsp/engels/SheepShaver_Help/networking_2_6.htm">http://www.ou.nl/open/hsp/engels/SheepShaver_Help/networking_2_6.htm</A></P> <P><BR>Howard</P></DIV> <DIV></DIV>>From: Erik Arnson <ea...@gm...> <DIV></DIV>>Reply-To: bas...@li... <DIV></DIV>>To: bas...@li... <DIV></DIV>>Subject: Re: [B2-devel] Ethernet/Internet Networking? <DIV></DIV>>Date: Sat, 10 Jul 2004 10:43:52 -0500 <DIV></DIV>> <DIV></DIV>>Actually I did a hack job of it. Here's what I did to get it working: <DIV></DIV>> <DIV></DIV>>1) Edit kpx_cpu/sheepshaver_glue.cpp add a line near the top that says <DIV></DIV>>"#define WORDS_BIGENDIAN". This, I assume, tricks the compiler into <DIV></DIV>>thinking we're using a big endian processor. <DIV></DIV>>2) Compile <DIV></DIV>>3) Following Gwenole's instuctions I modified my config with his settings. <DIV></DIV>>4) The Internet still didn't work. Thanks to Google I think I found <DIV></DIV>>my problem. ARP. How to fix? <DIV></DIV>>Eth0 is my NIC to the router and tun0 is my tunnel. These commands <DIV></DIV>>enable proxy ARP and IP forwarding. I'm not sure you'll need the last <DIV></DIV>>two or any of them at all. But, they're here to save you headachs ;). <DIV></DIV>> If you find that you DID need them all please tell me. <DIV></DIV>> <DIV></DIV>>echo 1 > /proc/sys/net/ipv4/ip_forward <DIV></DIV>>echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp <DIV></DIV>>echo 1 > /proc/sys/net/ipv4/conf/tun0/proxy_arp <DIV></DIV>> <DIV></DIV>>If you have anymore questions feel free to post. I'd *LOVE* to save <DIV></DIV>>someone the 3 days I spent on this! <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>-Erik Arnson <DIV></DIV>>----- Original Message ----- <DIV></DIV>>From: howard spoelstra <how...@ho...> <DIV></DIV>>Date: Sat, 10 Jul 2004 10:36:50 +0200 <DIV></DIV>>Subject: Re: [B2-devel] Ethernet/Internet Networking? <DIV></DIV>>To: bas...@li... <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Hi Gwenole, <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Could you be a bit more specific about the changes to be made to <DIV></DIV>>kpx_cpu/sheepshaver_glue.cpp ? <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>A code snippet would be great! <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Best wishes <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Howard <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> >From: Gwenole Beauchesne <gb...@di...> <DIV></DIV>> <DIV></DIV>> >Reply-To: bas...@li... <DIV></DIV>> <DIV></DIV>> >To: bas...@li... <DIV></DIV>> <DIV></DIV>> >Subject: Re: [B2-devel] Ethernet/Internet Networking? <DIV></DIV>> <DIV></DIV>> >Date: Sat, 10 Jul 2004 07:36:42 +0200 <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Hi, <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >>How does one use tun/tap to get SheepShaver to connect to the net? <DIV></DIV>> <DIV></DIV>> >>I've spent 3 days on it and can't figure it out at all. Sorry to <DIV></DIV>> <DIV></DIV>> >>be a <DIV></DIV>> <DIV></DIV>> >>bother =/. <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >First, if you build SheepShaver from sources yourself on a non big <DIV></DIV>> <DIV></DIV>> >endian system (e.g. x86), ethernet support is not enabled by <DIV></DIV>> <DIV></DIV>> >default, you will have to change kpx_cpu/sheepshaver_glue.cpp for <DIV></DIV>> <DIV></DIV>> >that. <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Second, I got the TUN virtual device working only at home through a <DIV></DIV>> <DIV></DIV>> >DSL connection (ethernet modem). <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Make sure you have the following prefs items set up correctly in <DIV></DIV>> <DIV></DIV>> >~/.sheepshaver_prefs: <DIV></DIV>> <DIV></DIV>> >ether tun <DIV></DIV>> <DIV></DIV>> >etherconfig /path/to/tunconfig <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Make sure you have sudo working for your user for the following <DIV></DIV>> <DIV></DIV>> >binaries: <DIV></DIV>> <DIV></DIV>> >/sbin/ifconfig <DIV></DIV>> <DIV></DIV>> >/sbin/iptables <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Or you will have to run SheepShaver as root or run tunconfig through <DIV></DIV>> <DIV></DIV>> >a wrapper script that calls kdesu or whatever. <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Next, in the MacOS side, set up a static IP in this form: <DIV></DIV>> <DIV></DIV>> >172.20.XX.2 <DIV></DIV>> <DIV></DIV>> >Where XX is generally 40, you can check that with /sbin/ifconfig for <DIV></DIV>> <DIV></DIV>> >the IP of the tun0 device. Use another IP in that network. <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >------------------------------------------------------- <DIV></DIV>> <DIV></DIV>> >This SF.Net email sponsored by Black Hat Briefings & Training. <DIV></DIV>> <DIV></DIV>> >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - <DIV></DIV>> <DIV></DIV>> >digital self defense, top technical experts, no vendor pitches, <DIV></DIV>> <DIV></DIV>> >unmatched networking opportunities. Visit www.blackhat.com <DIV></DIV>> <DIV></DIV>> >_______________________________________________ <DIV></DIV>> <DIV></DIV>> >basilisk-devel mailing list <DIV></DIV>> <DIV></DIV>> >bas...@li... <DIV></DIV>> <DIV></DIV>> >https://lists.sourceforge.net/lists/listinfo/basilisk-devel <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>________________________________ <DIV></DIV>>Speel games online met je vrienden via MSN Messenger klik hier <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------- <DIV></DIV>>This SF.Net email sponsored by Black Hat Briefings & Training. <DIV></DIV>>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - <DIV></DIV>>digital self defense, top technical experts, no vendor pitches, <DIV></DIV>>unmatched networking opportunities. Visit www.blackhat.com <DIV></DIV>>_______________________________________________ <DIV></DIV>>basilisk-devel mailing list <DIV></DIV>>bas...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/basilisk-devel <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>-- <DIV></DIV>>-Erik Arnson <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------- <DIV></DIV>>This SF.Net email sponsored by Black Hat Briefings & Training. <DIV></DIV>>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - <DIV></DIV>>digital self defense, top technical experts, no vendor pitches, <DIV></DIV>>unmatched networking opportunities. Visit www.blackhat.com <DIV></DIV>>_______________________________________________ <DIV></DIV>>basilisk-devel mailing list <DIV></DIV>>bas...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/basilisk-devel <DIV></DIV></div><br clear=all><hr>MSN Zoeken, voor duidelijke zoekresultaten! <a href="http://g.msn.com/8HMBNLNL/2728??PS=47575">klik hier</a> </html> |
From: Gwenole B. <gb...@di...> - 2004-07-10 09:54:05
|
Hi, > A code snippet would be great! Sorry, something like this. ;-) @@ -1000,7 +1000,7 @@ static void NativeOp(int selector) GPR(3) = (int32)(int16)VideoDoDriverIO((void *)GPR(3), (void *)GPR(4), (void *)GPR(5), GPR(6), GPR(7)); break; -#ifdef WORDS_BIGENDIAN +#if 1 case NATIVE_ETHER_IRQ: EtherIRQ(); break; |
From: Erik A. <ea...@gm...> - 2004-07-10 15:43:58
|
Actually I did a hack job of it. Here's what I did to get it working: 1) Edit kpx_cpu/sheepshaver_glue.cpp add a line near the top that says "#define WORDS_BIGENDIAN". This, I assume, tricks the compiler into thinking we're using a big endian processor. 2) Compile 3) Following Gwenole's instuctions I modified my config with his settings. 4) The Internet still didn't work. Thanks to Google I think I found my problem. ARP. How to fix? Eth0 is my NIC to the router and tun0 is my tunnel. These commands enable proxy ARP and IP forwarding. I'm not sure you'll need the last two or any of them at all. But, they're here to save you headachs ;). If you find that you DID need them all please tell me. echo 1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp echo 1 > /proc/sys/net/ipv4/conf/tun0/proxy_arp If you have anymore questions feel free to post. I'd *LOVE* to save someone the 3 days I spent on this! -Erik Arnson ----- Original Message ----- From: howard spoelstra <how...@ho...> Date: Sat, 10 Jul 2004 10:36:50 +0200 Subject: Re: [B2-devel] Ethernet/Internet Networking? To: bas...@li... Hi Gwenole, Could you be a bit more specific about the changes to be made to kpx_cpu/sheepshaver_glue.cpp ? A code snippet would be great! Best wishes Howard >From: Gwenole Beauchesne <gb...@di...> >Reply-To: bas...@li... >To: bas...@li... >Subject: Re: [B2-devel] Ethernet/Internet Networking? >Date: Sat, 10 Jul 2004 07:36:42 +0200 > >Hi, > >>How does one use tun/tap to get SheepShaver to connect to the net? >>I've spent 3 days on it and can't figure it out at all. Sorry to >>be a >>bother =/. > >First, if you build SheepShaver from sources yourself on a non big >endian system (e.g. x86), ethernet support is not enabled by >default, you will have to change kpx_cpu/sheepshaver_glue.cpp for >that. > >Second, I got the TUN virtual device working only at home through a >DSL connection (ethernet modem). > >Make sure you have the following prefs items set up correctly in >~/.sheepshaver_prefs: >ether tun >etherconfig /path/to/tunconfig > >Make sure you have sudo working for your user for the following >binaries: >/sbin/ifconfig >/sbin/iptables > >Or you will have to run SheepShaver as root or run tunconfig through >a wrapper script that calls kdesu or whatever. > >Next, in the MacOS side, set up a static IP in this form: >172.20.XX.2 >Where XX is generally 40, you can check that with /sbin/ifconfig for >the IP of the tun0 device. Use another IP in that network. > > > >------------------------------------------------------- >This SF.Net email sponsored by Black Hat Briefings & Training. >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >digital self defense, top technical experts, no vendor pitches, >unmatched networking opportunities. Visit www.blackhat.com >_______________________________________________ >basilisk-devel mailing list >bas...@li... >https://lists.sourceforge.net/lists/listinfo/basilisk-devel ________________________________ Speel games online met je vrienden via MSN Messenger klik hier ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ basilisk-devel mailing list bas...@li... https://lists.sourceforge.net/lists/listinfo/basilisk-devel -- -Erik Arnson |
From: Gwenole B. <gb...@di...> - 2004-07-10 16:36:46
|
Hi, > If you have anymore questions feel free to post. I'd *LOVE* to save > someone the 3 days I spent on this! Thanks, the list is archived and your tips may help other people. Let me know if you get strange SheepShaver lock ups or crashes when=20 running your ethernet connection. I have seen this happening with B2=20 sheep_net driver on x86, hence I left network support disabled. Strange=20= thing is this magically gets fixed when I use MOL's sheep_net driver. Bye, Gwenol=E9.= |
From: Erik A. <ea...@gm...> - 2004-07-10 21:22:54
|
Hello, It does freeze pretty regularly on my x86. Was thinking of running it on one of my UltraSPARCs seeing as those are Big Endian machines. Does SheepShaver run on an UltraSPARC or does it require PPC, x86, or x86_64? Thanks! -Erik Arnson |