Re: How to get rid of sungem at boot time?
On Thu, Oct 13, 2005 at 09:57:00AM +1000, Benjamin Herrenschmidt wrote:
> On Thu, 2005-10-13 at 00:12 +0200, Wolfgang Pfeiffer wrote:
>
> > So anyone knows which app/config at boot time might be responsible for
> > loading the sungem stuff?
> > I already completely removed discover to fix this:
>
> sungem is your built-in ethernet. It show up on the PCI bus, thus
> hotplug will automatically load the driver. Besides, it's a good thing
> anyway as the sungem driver will deal with power management of the chip
> even when you are not using it, for example, for sleep mode. It's just a
> wrong way of thinking that you should remove drivers for HW you do not
> use in fact :)
>
> The problem here is assuming any kind of stability of the ethX numbers.
[ ... ]
I've done tests this afternoon, and what I found is that the devices
change that the system "sees" from one reboot to another. Specifically
it is this device on a Titanium IV that the system knows about in one
instance, that it does not know about any more at another reboot:
# ifconfig -a
eth0 Link encap:UNSPEC HWaddr 00-03-93-FF-FE-CD-E4-C4-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
$ macchanger -s eth0
Current MAC: 00:03:93:ff:fe:cd (Apple Computer, Inc.)
What is 00:03:93:ff:fe:cd : The modem?
With the device above seen by the system having set the orinoco card in
the /etc/network/interfaces file to eth2 everything is fine: The access
point will be recognised at boot-up, and WLAN is working right after
booting the machine ... eth1 in this scenario seems to be the ethernet card:
$ macchanger -s eth1
Current MAC: 00:03:93:cd:e4:c4 (Apple Computer, Inc.)
If the eth0 device above is missing at another system boot the whole
devices order is shifting, and changed, and as a consequence
previous eth2 (radio card) simply does not exist any more, thus
rendering my settings in the /etc/network/interfaces useless ... :)
... :
eth0 Link encap:Ethernet HWaddr 00:03:93:CD:E4:C4
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:41 Base address:0x7400
eth1 Link encap:Ethernet HWaddr 00:30:65:28:E4:78
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:57
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1089 errors:0 dropped:0 overruns:0 frame:0
TX packets:1089 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:270203 (263.8 KiB) TX bytes:270203 (263.8 KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@ 18:10:11]# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
sit0 no wireless extensions.
eth1 IEEE 802.11-DS ESSID:"" Nickname:"HERMES I"
Mode:Managed Frequency:2.422 GHz Access Point: 00:00:00:00:00:00
Bit Rate:11 Mb/s Tx-Power=15 dBm Sensitivity:1/3
Retry limit:4 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
$ macchanger -s eth0
Current MAC: 00:03:93:cd:e4:c4 (Apple Computer, Inc.)
$ macchanger -s eth1
Current MAC: 00:30:65:28:e4:78 [wireless] (Apple Airport Card 2002)
$ cat /proc/cpuinfo
processor : 0
cpu : 7455, altivec supported
clock : 867MHz
revision : 0.2 (pvr 8001 0302)
bogomips : 865.18
machine : PowerBook3,5
motherboard : PowerBook3,5 MacRISC2 MacRISC Power Macintosh
detected as : 80 (PowerBook Titanium IV)
pmac flags : 0000001b
L2 cache : 256K unified
memory : 768MB
pmac-generation : NewWorld
HTH
Best Regards
Wolfgang
--
Wolfgang Pfeiffer
http://profiles.yahoo.com/wolfgangpfeiffer
Key ID: E3037113
Key fingerprint = A8CA 9D8C 54C4 4CC1 0B26 AA3C 9108 FB42 E303 7113
Reply to: