[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#488267: lenny-beta2-netinst: wifi interface renaming causes big glitch on first reboot



Otavio Salvador wrote:
Hello Barry,

Looking at the output data I fail to see how this mess happened. I'd
like to ask you to do another test for us. Please boot d-i and after
wireless has been properly setup grab the following information:

/proc/net/dev
lspci -knn

My current bet is that wireless is using a different module, but it's
a guess and I'd like to confirm that.


Hi Otavio!

Thanks for your emails. I'm delighted my installation report is being taken seriously, and I'm very happy to try to help out. It was a great day for me when the d-i started to support wifi devices for netinstall (unlike ubuntu still, I think!) because my ethernet sockets are in awkward places and wifi is so much easier especially for laptops. So I'm happy to try to help make this easy for others too.

I shall be particularly glad if we can get to understand this ifrename stuff. It has plagued me before (mainly with PCMCIA wifi cards) but is just easy enough to work around that there's little incentive to find the real mend. I always had a suspicion that it was udev (don't you just love and hate udev?) and it does seem to play a role, even if not the main role (see syslog extract below).

Anyway, here's the info you asked for, followed by some you didn't.

****************** with installer kernel running, eth1=wifi up
cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth1:    4654      14    0    0    0     0          0         0     1125       5    0    0    0     0       0          0

lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation 82830 830 Chipset Host Bridge [8086:3575] (rev 04)
00:02.0 VGA compatible controller [0300]: Intel Corporation 82830 CGC [Chipset Graphics Controller] [8086:3577] (rev 04)
00:02.1 Display controller [0380]: Intel Corporation 82830 CGC [Chipset Graphics Controller] [8086:3577]
00:1d.0 USB Controller [0c03]: Intel Corporation 82801CA/CAM USB Controller #1 [8086:2482] (rev 02)
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd
00:1d.1 USB Controller [0c03]: Intel Corporation 82801CA/CAM USB Controller #2 [8086:2484] (rev 02)
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd
00:1d.2 USB Controller [0c03]: Intel Corporation 82801CA/CAM USB Controller #3 [8086:2487] (rev 02)
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev 42)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801CAM ISA Bridge (LPC) [8086:248c] (rev 02)
00:1f.1 IDE interface [0101]: Intel Corporation 82801CAM IDE U100 Controller [8086:248a] (rev 02)
	Kernel driver in use: PIIX_IDE
	Kernel modules: piix
00:1f.3 SMBus [0c05]: Intel Corporation 82801CA/CAM SMBus Controller [8086:2483] (rev 02)
00:1f.5 Multimedia audio controller [0401]: Intel Corporation 82801CA/CAM AC'97 Audio Controller [8086:2485] (rev 02)
00:1f.6 Modem [0703]: Intel Corporation 82801CA/CAM AC'97 Modem Controller [8086:2486] (rev 02)
02:02.0 FireWire (IEEE 1394) [0c00]: Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link) [104c:8023]
	Kernel driver in use: firewire_ohci
	Kernel modules: firewire-ohci
02:05.0 CardBus bridge [0607]: Ricoh Co Ltd RL5c475 [1180:0475] (rev 80)
	Kernel driver in use: yenta_cardbus
	Kernel modules: yenta_socket
02:08.0 Ethernet controller [0200]: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller [8086:1031] (rev 42)
	Kernel driver in use: e100
	Kernel modules: e100, eepro100
02:0b.0 Network controller [0280]: Intersil Corporation Prism 2.5 Wavelan chipset [1260:3873] (rev 01)
	Kernel driver in use: orinoco_pci
	Kernel modules: orinoco_pci

and for good measure, showing up hermes (and yenta):
lsmod
Module                  Size  Used by
orinoco_pci 6784 0 orinoco 38932 1 orinoco_pci
hermes                  7040  2 orinoco_pci,orinoco
e100 33804 0 mii 5248 1 e100 nls_iso8859_1 4096 1 isofs 32164 1 zlib_inflate 14336 1 isofs
ide_generic             1152  0 [permanent]
sd_mod 27024 0 vga16fb 13068 2 vgastate 8192 1 vga16fb fan 4740 0 sg 33440 0 sr_mod 16420 1 cdrom 32416 1 sr_mod firewire_sbp2 14092 0 pcmcia 36780 0 firmware_class 9088 1 pcmcia ide_disk 15360 2 generic 4356 0 [permanent] usb_storage 76736 1 scsi_mod 141068 5 sd_mod,sg,sr_mod,firewire_sbp2,usb_storage parport_pc 33316 0 parport 33096 1 parport_pc floppy 54148 0 yenta_socket 24716 1 rsrc_nonstatic 11776 1 yenta_socket firewire_ohci 17664 0 piix 7300 0 [permanent]
pcmcia_core            36624  3 pcmcia,yenta_socket,rsrc_nonstatic
firewire_core          39232  2 firewire_sbp2,firewire_ohci
crc_itu_t               2048  1 firewire_core
ide_core              106456  4 ide_generic,ide_disk,generic,piix
uhci_hcd 22800 0 usbcore 130924 3 usb_storage,uhci_hcd thermal 15900 0 processor 28336 2 thermal

***************** end of installer stuff

For illumination(??) here's the diff between lspci -knn on the installer and on the installed system:

diff lspci-knn lspci-knn-on-installed-sys
	Kernel driver in use: agpgart-intel
	Kernel modules: intel-agp
2a6
	Kernel modules: intelfb
13a18
	Kernel modules: shpchp
14a20
	Kernel modules: intel-rng, iTCO_wdt
18a25,26
	Kernel driver in use: i801_smbus
	Kernel modules: i2c-i801
19a28,29
	Kernel driver in use: Intel ICH
	Kernel modules: snd-intel8x0
20a31,32
	Kernel driver in use: Intel ICH Modem
	Kernel modules: snd-intel8x0m
31,32c43,44
< 	Kernel driver in use: orinoco_pci
< 	Kernel modules: orinoco_pci
---
	Kernel driver in use: hostap_pci
	Kernel modules: orinoco_pci, hostap_pci

and here's lsmod on the installed system:
bari@obelix:~$ lsmod
Module                  Size  Used by
i915 22048 2 drm 74132 3 i915 binfmt_misc 11240 1 rfcomm 36784 0 l2cap 22880 5 rfcomm
bluetooth              53636  4 rfcomm,l2cap
ppdev 8804 0 lp 11076 0 dock 10384 0 container 4864 0 sbs 14376 0 sbshc 6848 1 sbs speedstep_ich 5296 0 speedstep_lib 5348 1 speedstep_ich cpufreq_powersave 1856 0 cpufreq_userspace 4260 0 cpufreq_ondemand 8492 1 cpufreq_stats 5184 0 freq_table 4512 3 speedstep_ich,cpufreq_ondemand,cpufreq_stats cpufreq_conservative 7560 0 ipv6 240836 26 loop 16804 0 snd_intel8x0 32028 1 snd_intel8x0m 16844 0 snd_ac97_codec 92932 2 snd_intel8x0,snd_intel8x0m joydev 11360 0 ac97_bus 2176 1 snd_ac97_codec snd_pcm_oss 38272 0 snd_pcm 71780 4 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss
snd_mixer_oss          15296  1 snd_pcm_oss
pcmcia 37036 0 firmware_class 9312 1 pcmcia snd_seq_dummy 3780 0 snd_seq_oss 29472 0 snd_seq_midi 8160 0 snd_rawmidi 22624 1 snd_seq_midi
snd_seq_midi_event      6976  2 snd_seq_oss,snd_seq_midi
parport_pc 33668 1 parport 34280 3 ppdev,lp,parport_pc
snd_seq                46544  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
sd_mod 27200 0 serio_raw 6660 0 snd_timer 21092 2 snd_pcm,snd_seq
snd_seq_device          7820  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
orinoco_pci 6848 0 orinoco 37652 1 orinoco_pci
hermes                  7104  2 orinoco_pci,orinoco
psmouse 36464 0 snd 48612 13 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss,snd_pcm,snd_mixer_oss,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               7552  1 snd
snd_page_alloc         10056  3 snd_intel8x0,snd_intel8x0m,snd_pcm
hostap_pci 50448 2 hostap 97988 1 hostap_pci pcspkr 3200 0 ieee80211_crypt 5888 1 hostap yenta_socket 24844 1 rsrc_nonstatic 11872 1 yenta_socket
pcmcia_core            36884  3 pcmcia,yenta_socket,rsrc_nonstatic
rtc 13052 0 battery 13572 0 ac 6116 0 sony_laptop 28480 0 video 18672 0 output 3744 1 video i2c_i801 9328 0 i2c_core 22432 1 i2c_i801 button 8432 0 shpchp 31028 0 iTCO_wdt 11268 0 pci_hotplug 27712 1 shpchp intel_agp 23412 1 agpgart 31688 3 drm,intel_agp sg 33264 0 evdev 11104 6 sr_mod 16708 0 cdrom 32512 1 sr_mod firewire_sbp2 14252 0 ext3 122920 1 jbd 43732 1 ext3
mbcache                 8288  1 ext3
ide_disk 15648 3 ata_generic 7428 0 libata 144624 1 ata_generic
generic                 4388  0 [permanent]
usb_storage 77664 0 scsi_mod 141164 6 sd_mod,sg,sr_mod,firewire_sbp2,libata,usb_storage floppy 54628 0 firewire_ohci 17760 0 firewire_core 39232 2 firewire_sbp2,firewire_ohci
crc_itu_t               2176  1 firewire_core
e100 33836 0 mii 5312 1 e100
piix                    7492  0 [permanent]
uhci_hcd 23376 0 ide_core 108292 3 ide_disk,generic,piix
usbcore               133004  3 usb_storage,uhci_hcd
thermal 16028 0 processor 36552 2 thermal fan 4772 0

(sorry, wasn't sure whether to send you the complete lsmod, but just in case).

Finally, here are the amazing (to me) lines in syslog on (currently) booting the installed system, each group being consecutive lines: I don't think I've omitted anything relevant, but I could send you more if you want. There was no cable plugged into the ethernet eth0. Note the line where udev "renames" wifi0 to eth1:

(no previous mention of eth1, wlan nor wifi)
****
Jun 28 08:08:46 obelix kernel: Yenta: CardBus bridge found at 0000:02:05.0 [104d:8100]
Jun 28 08:08:46 obelix kernel: ieee80211_crypt: registered algorithm 'NULL'
Jun 28 08:08:46 obelix kernel: input: PC Speaker as /class/input/input6
Jun 28 08:08:46 obelix kernel: Yenta: ISA IRQ mask 0x0cb8, PCI irq 9
Jun 28 08:08:46 obelix kernel: Socket status: 30000006
Jun 28 08:08:46 obelix kernel: Yenta: Raising subordinate bus# of parent bus (#02) from #02 to #06
Jun 28 08:08:46 obelix kernel: pcmcia: parent PCI bridge I/O window: 0x3000 - 0x3fff
Jun 28 08:08:46 obelix kernel: cs: IO port probe 0x3000-0x3fff: clean.
Jun 28 08:08:46 obelix kernel: pcmcia: parent PCI bridge Memory window: 0xe0200000 - 0xe02fffff
Jun 28 08:08:46 obelix kernel: pcmcia: parent PCI bridge Memory window: 0xe0500000 - 0xe05fffff
Jun 28 08:08:46 obelix kernel: ACPI: PCI Interrupt 0000:02:0b.0[A] -> Link [LNKD] -> GSI 9 (level, low) -> IRQ 9
Jun 28 08:08:46 obelix kernel: hostap_pci: Registered netdevice wifi0
Jun 28 08:08:46 obelix kernel: wifi0: Original COR value: 0x2
Jun 28 08:08:46 obelix kernel: prism2_hw_init: initialized in 204 ms
Jun 28 08:08:46 obelix kernel: wifi0: NIC: id=0x8013 v1.0.0
Jun 28 08:08:46 obelix kernel: wifi0: PRI: id=0x15 v1.1.0
Jun 28 08:08:46 obelix kernel: wifi0: STA: id=0x1f v1.4.3
Jun 28 08:08:46 obelix kernel: wifi0: defaulting to host-based encryption as a workaround for firmware bug in Host AP mode WEP
Jun 28 08:08:46 obelix kernel: wifi0: defaulting to bogus WDS frame as a workaround for firmware bug in Host AP mode WDS
Jun 28 08:08:46 obelix kernel: wifi0: Intersil Prism2.5 PCI: mem=0xe0500000, irq=9
Jun 28 08:08:46 obelix kernel: wifi0: registered netdevice wlan0
Jun 28 08:08:46 obelix kernel: orinoco 0.15 (David Gibson <hermes@gibson.dropbear.id.au>, Pavel Roskin <proski@gnu.org>, et al)
Jun 28 08:08:46 obelix kernel: orinoco_pci 0.15 (Pavel Roskin <proski@gnu.org>, David Gibson <hermes@gibson.dropbear.id.au> & Jean Tourrilhes <jt@hpl.hp.com>)
Jun 28 08:08:46 obelix kernel: Driver 'sd' needs updating - please use bus_type methods
Jun 28 08:08:46 obelix kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
Jun 28 08:08:46 obelix kernel: input: PS/2 Mouse as /class/input/input7
Jun 28 08:08:46 obelix kernel: input: AlpsPS/2 ALPS GlidePoint as /class/input/input8
Jun 28 08:08:46 obelix kernel: parport_pc 00:0a: reported by Plug and Play ACPI
Jun 28 08:08:46 obelix kernel: parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
Jun 28 08:08:46 obelix kernel: udev: renamed network interface wifi0 to eth1
****
(no further mention of eth1, wlan nor wifi until:)
****
Jun 28 08:08:46 obelix kernel: prism2: wlan0_rename: operating mode changed 3 -> 2
Jun 28 08:08:46 obelix kernel: eth1: LinkStatus=1 (Connected)
Jun 28 08:08:46 obelix kernel: eth1: LinkStatus: BSSID=00:16:01:f4:9d:ab
Jun 28 08:08:46 obelix kernel: NET: Registered protocol family 10
****

I hope you can make something of this. I'm still at a loss to understand where wlan0 gets renamed to wlan0_rename and "by whom" - it does seem to be some part of the kernel, rather than userspace (?).

Let me know if you'd like me to try anything else. I'm a bit busy today (Sat 28th June), so I won't be able to try the daily image (for the firewire CD bit) till at least tomorrow, sorry.

Best wishes,

Barry





Reply to: