Jump to content


Photo

I Fixed The Problem With Mac All 00000000


  • Please log in to reply
14 replies to this topic

#1 SlaYer

SlaYer

    X-S X-perience

  • Members
  • PipPip
  • 478 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 24 January 2003 - 06:41 PM

01/25/03 UPDATE: MY SCRIPT HAS BEEN MADE INTO AN OFFICIAL TEMPORARY FIX FOR 0.1.0 MAC BUG! laugh.gif

Just do:
"apt-get update"
and then
"apt-get install xbox-macfix"
=========================================

I have solved a major problem related to the bug in Debain whereas the MAC was being read as all 00000's. The MAC being all 000's causes a major problem with any real firewall like a PIX since it has no way of returning packets to that machine.

See my previous post HERE! With more details.

Credits for solving this go to myself and some of the wonderfull folks on the #xbox-linux IRC channel. (ed, toface, tjfontaine, etc...)

If you experience networking problems and the MAC is ALL 0000's do this:

1) Create a script file called something like "macfix" and place it in the "/etc/network/if-pre-up.d" directory

2) Make the file executable with "chmod ug+x macfix"

3) The file contents should be like this (just get rid of the #---begin--- and #----end--- lines!):

#--------begin macfix-------------
#!/bin/sh
# made by 1wolf1 a.k.a SlaYer
#
if [ $IFACE != "eth0" ]; then
exit 0
fi
echo "Configuring MAC for ${IFACE}..."
/sbin/ifconfig eth0 hw ether `read_mac`
/sbin/ifconfig eth0 promisc
#--------end macfix-------------

4) Now, go to "/etc/network/" and run "nano interfaces" to edit the intrfaces file and make sure all IP/SM/Gateway are all OK. If they are just press CTRL-X to exit, or if you made changes, just press CTRL-O, ENTER, CTRL-X

That's it, reboot and when it comes back up it will work, have the correct MAC address, and you can ping anywhere, even through a PIX!

Edited by 1wolf1, 26 January 2003 - 01:50 AM.


#2 MosaX

MosaX

    X-S Member

  • Members
  • Pip
  • 75 posts

Posted 25 January 2003 - 07:48 AM

Ahhh, thanks for hunting that fix down! At last, after trying for 2 weeks, I'm up on the net with Linux!
beerchug.gif beerchug.gif beerchug.gif beerchug.gif beerchug.gif and a pop.gif

Now it's on 2 adjusting the screen, if possible...

#3 SlaYer

SlaYer

    X-S X-perience

  • Members
  • PipPip
  • 478 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 25 January 2003 - 08:02 PM

QUOTE (MosaX @ Jan 25 2003, 07:48 AM)
Ahhh, thanks for hunting that fix down! At last, after trying for 2 weeks, I'm up on the net with Linux!
beerchug.gif beerchug.gif  beerchug.gif  beerchug.gif  beerchug.gif  and a  pop.gif

Now it's on 2 adjusting the screen, if possible...

LOL, enjoy! it was my second day messing with it, but the #xbox-linux folks are most helpfull so best bet is to hang in the channel. See ya there...

BTW, my handle there is <xSlaYer>

Edited by 1wolf1, 25 January 2003 - 08:03 PM.


#4 SlaYer

SlaYer

    X-S X-perience

  • Members
  • PipPip
  • 478 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 26 January 2003 - 12:22 AM

UPDATE: OFFICIAL FIX FOR MAC BUG AVAILABLE!

Just do: "apt-get install xbox-macfix to install"


#5 MosaX

MosaX

    X-S Member

  • Members
  • Pip
  • 75 posts

Posted 26 January 2003 - 12:23 PM

Thanks for that info, slayer.

Btw, where did U find it announced? I didn't se anything about it on the sourceforge site.

Also, R U required 2 remove the temp fix? I suppose so...

#6 MosaX

MosaX

    X-S Member

  • Members
  • Pip
  • 75 posts

Posted 26 January 2003 - 12:55 PM

apt-get can't find xbox-macfix for me.

Which mirror did U find it on?

I have tried to apt-get update, and also added an additional (already have 3 local ones) source ftp.debian.org, which I'd guess is a 'master'. Maybe it takes time for the fix to propagate 2 all the mirrors?

====
Later that day:

I solved it by uncommenting these 2 lines in sources.list
deb http://localhost:9999/xbox-debian woody main
deb-src http://localhost:9999/xbox-debian woody main

Apperently they have something 2 do with finding xbox-related downloads using apt-get.

Edited by MosaX, 26 January 2003 - 08:13 PM.


#7 SlaYer

SlaYer

    X-S X-perience

  • Members
  • PipPip
  • 478 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 27 January 2003 - 12:09 AM

QUOTE (MosaX @ Jan 26 2003, 12:23 PM)
Thanks for that info, slayer.

Btw, where did U find it announced? I didn't se anything about it on the sourceforge site.

Also, R U required 2 remove the temp fix? I suppose so...

Well, I found it by just hanging out in the #xbox-linux IRC channel.

However the "fix" for now is "MY" fix. However it's a catch 22, since in order to get the fix you need to be online laugh.gif So best bet is to follow my instuctions and make it yourself as the "fix" just places my "macfix" file in the "/etc/network/if-pre-up.d" directlry.

Apparently there has been a kernel level fix implemented, it's in CVS, but it requires at least a partial re-compile of the kernel and I shy away from that for now. Next release will more than likely have it fixed from the getgo.

Remember your best place for latest info and support is #xbox-linux on IRC so come on in and say hi to me "xSlayer" when you're there laugh.gif

#8 Yackom

Yackom

    X-S Enthusiast

  • Members
  • 16 posts

Posted 28 January 2003 - 04:56 AM

what irc server are you talking about? in #xbox-linux?

thanks for the fix, even tho i have yet to do it.

#9 trotyl

trotyl

    X-S Enthusiast

  • Members
  • 18 posts

Posted 29 January 2003 - 08:48 AM

Hi,

i Got problem with this fix and net on my Debian sad.gif
My xbox is 192.168.0.2 and works fine i can login via ssh but he cant ping sad.gif
My pc is 192.168.0.1.
On Pc i got second lan card that conects to the net i got IP trotyl.pai.net.pl and dns 172.16.1.1. When i conect to xbox i cant ping sad.gif
In interface i got:

iface lo inet loopback

iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

i Think it is good but dunno sad.gif

In resolv.conf i got:

domain trotyl.pai.net.pl
nameserver 172.16.1.1
nameserver 172.16.1.2

....

So i want to do macfix...
i enter dir
/etc/network/if-pre-up.d
and type vi macfix
and in macfix i got:


#!/bin/sh
# made by 1wolf1 a.k.a SlaYer
#
if [ $IFACE != "eth0" ]; then
exit 0
fi
echo "Configuring MAC for ${IFACE}..."
/sbin/ifconfig eth0 hw ether `read_mac`
/sbin/ifconfig eth0 promisc

exit by esc :x enter
and then i type
chmod ug+x macfix

and reset the net by ifdown eth0; ifup eth0 and i got Configuring MAC for eth0...

then i type ping -c 4 google.ca

ping: unknown host google.ca

So i dont have net to my xbox sad.gif Dunno what to do now sad.gif

Plz help... Thx
Greetz smile.gif



#10 trotyl

trotyl

    X-S Enthusiast

  • Members
  • 18 posts

Posted 29 January 2003 - 09:14 AM

Ok it works smile.gif My Windows Xp dont get Internet Sharing sad.gif now it works... must fight:)

#11 SlaYer

SlaYer

    X-S X-perience

  • Members
  • PipPip
  • 478 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 30 January 2003 - 09:26 PM

QUOTE (trotyl @ Jan 29 2003, 09:14 AM)
Ok it works smile.gif My Windows Xp dont get Internet Sharing sad.gif now it works... must fight:)

Great, good to hear it... well now you can play with linux... :-)

#12 gulizi

gulizi

    X-S Enthusiast

  • Members
  • 1 posts

Posted 01 February 2003 - 11:18 PM

thx man, you saved me, spent a few hours trying to figure this out, even trying to recompile kernel...

Edited by gulizi, 01 February 2003 - 11:19 PM.


#13 mustang79

mustang79

    X-S Enthusiast

  • Members
  • 13 posts

Posted 11 March 2003 - 05:57 AM

Hi, I'm not sure if my problem is related, but i'm going try and post it here anyway smile.gif

I installed Ed's Debian 0.1.0 and the installation went fine. Did the mac address fix, also because that was necessary.

I have to go through a proxy for both http, and ftp at my college. I've edited the wgetrc file in /etc to reflect the http, and ftp proxy's. I'm not able to do "apt-get update" because it times out. It cycles through a bunch of "hits", and I guess it's retrieving the list of packages, but it times out just seconds later. The last message said something about wine. I'm not sure if it's actually connecting because it only mentions localhost (which from what i understand is then passed on apt-proxy).

I also don't seem to be able to ping correctly. I added http_proxy and ftp_proxy in my .profile in case that would help, but it didn't.

I'm not at all sure what I'm doing wrong at this point, but I've tried a lot of things. I would very much appreciate some help, if anyone can make heads or tails of my problem.

SlaYer, your work on the XBox is VERY well appreciated on this end!

Thanks,
Carl (larsoncs1@gcc.edu)

#14 CamJ256

CamJ256

    X-S Member

  • Members
  • Pip
  • 67 posts

Posted 25 March 2003 - 10:29 PM

QUOTE (trotyl @ Jan 29 2003, 09:48 AM)
exit by esc :x enter
and then i type
chmod ug+x macfix


Im doing nano macfix to make the file then i get to the part where
i am supposed to type vi macfix(to make it an executable i guess im not sure, im really new to linux) and i cant get back out to do the rest of the process no matter what i do i am stuck in the vi macfix screen. Whats the problem with this????

So i have tried to do this by skipping the vi macfix stage but it says something about chmod ug+x macfix not being a executable. I dont really know what vi mac fix is even supposed to do so im having lots of problems getting this to work. Any ideas on what i should do would be very appreciated. Mabye i should just get an older version of Linux, like 7 8 or 9, though i have searced for places to download these and havent found any.

Edited by CamJ256, 29 March 2003 - 02:48 AM.


#15 CamJ256

CamJ256

    X-S Member

  • Members
  • Pip
  • 67 posts

Posted 29 March 2003 - 02:39 AM

ahh damn someone please help and respond to my above post.

sad.gif sad.gif sad.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users