On Fri, Jun 03, 2016 at 03:38:44PM +0200, Stefan Sperling wrote:
> On Thu, Jun 02, 2016 at 11:04:48PM +0200, Remi Locherer wrote:
> > On Thu, Jun 02, 2016 at 08:23:24PM +0200, Stefan Sperling wrote:
> > > On Wed, Jun 01, 2016 at 11:12:25PM +0200, Remi Locherer wrote:
> > > > >Synopsis:      bsd.rd from May 31 fails to load the firmware for 
> > > > >iwm-7265-16
> > > > >Category:      kernel
> > > > >Environment:
> > > >         System      : OpenBSD 6.0
> > > >         Details     : OpenBSD 6.0-beta (GENERIC.MP) #26: Wed May 25 
> > > > 07:34:23 CEST 2016
> > > >                          
> > > > r...@mistral.relo.ch:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > > > 
> > > >         Architecture: OpenBSD.amd64
> > > >         Machine     : amd64
> > > > 
> > > > >Description
> > > > 
> > > > bsd.rd from May 31 fails to load the iwm firmware during an upgrade.
> > > > dmesg says:
> > > > 
> > > > iwm0: could not read firmware iwm-7265-16 (error 2)
> > > > iwm0: failed to load init firmware
> > > 
> > > The ramdisk kernel tries two directories, /etc/firmware and 
> > > /mnt/etc/firmware.
> > > 
> > > Perhaps the above failure is the attempt to load firmware from 
> > > /etc/firmware,
> > > which does not exist on the ramdisk? I've added the 'failed to load init
> > > firmware' message in the commit which made the dirver use newer firmware.
> > > Before that commit, this failure case was silent. So it is possible that
> > > nothing has changed, except for this message now being printed.
> > > 
> > > The following line indicates that the second attempt (from 
> > > /mnt/etc/firmware)
> > > works. It is only printed if firmware could be loaded successfully:
> > > 
> > > > iwm0: hw rev 0x210, fw ver 16.242414.0, address 5c:e0:c5:1f:ad:c4
> > > 
> > > > A generic kernel (not bsd.rd!) I built from source on May 31 can load 
> > > > the
> > > > iwm firmware and it works fine.
> > > 
> > > Are you implying that the device does not work in the ramdisk?
> > 
> > Yes. With the ramdisk kernel the status of iwm0 does not go to active 
> > anymore.
> > Last time I did a snapshot upgrade on this notebook it worked as expected.
> > That was on May 25.
> 
> Works for me with -current built today.
> This is what the upgrade process looks like over here (hand-copied
> from very small font on UEFI console, beware of typos):
> 
> root on rd0a swap on rd0b dump on rd0b
> iwm0: could not read firmware: iwm-7265-16 (error 2)
> iwm0: failed to load init firmware
> erase ^?, werase ^W, kill ^U, intr ^C, status ^T
> 
> Welcome to the OpenBSD/amd64 6.0 installation program.
> (I)nstall, (U)pgrade, (A)utoinstall, (S)hell? u
> At any prompt you can <blah blah several lines omitted>
> 
> Choose your keyboard layout('?' or 'L' for list) [default]
> Available disks are: sd0 sd1 sd2.
> Which disk the root disk? ('?' for details): [sd0] sd2
> Root filesystem? [sd2a]
> Checking root filesystem (fsck -fp /dev/sd2a)...OK.
> Mounting root filesystem (mount -o ro /dev/sd2a /mnt)...OK.
> iwm0: hw rev 0x210, fw ver 16.242414.0, address 34:13:e8:37:4d:51
> iwm0: no link ........ got link
> DHCPDISCOVER on iwm0 - interval 3
> DHCPOFFER from 217.197.84.34 (fe:e1:54:e3:c3:90)
> DHCPREQUEST on iwm0 to 255.255.255.255
> DHCPACK from 217.197.84.34 (fe:e1:54:e3:c3:90)
> bound to 217.197.84.45 -- renewal in 18000 seconds
> Force checking fo clean non-root filesystems? [no]
> 
> It has trouble finding firmware at first, which is expected since the
> ramdisk does not have it. When the system's root filesystem is mounted,
> the firmware is loaded and the device works OK.
> 
> What's different in your case?

I don't know.

On my installation the upgrade process looks like this (snapshot bsd.rd
from Jun 2):

[...]
root on rd0a swap on rd0b dump on rd0b
iwm0: could not read firmware iwm-7265-16 (error2)
iwm0: failed to load init firmware
erase ^?, werase ^W, kill Û, intr ^C, status ^T

Welcome to the OpenBSD/amd64 6.0 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? u
[...]

Choose your keyboard layout ('?' or 'L' for list) [default] sg
kbd: keyboard mapping set to sg
Available disks are: sd0 sd1.
Which disk is the root disk? ('?' for details) [sd0] sd1
Root filesystem? [sd1a]
Checking root filesystem [...]
Mounting root filesystem [...]
iwm0: hw rev 0x210, fw ver 16.242414.0, address 5c:e0:c5:1f:ad:c3
iwm0: no link ........... sleeping
Force checking of clean non-root filesystems? [no]
fsck -p [...]

Let's upgrade the sets!
Location of sets? (disk http or 'done') [http] !
Type 'exit' to return to install.
# ifconfig iwm0
iwm0: flags=208802<BROADCAST,SIMPLEX,MULTICAST,AUTOCONF6> mtu 1500
        lladr 5c:e0:c5:1f:ad:c4
        groups: wlan
        media IEEE802.11 autoselect
        status: unknown
        ieee80211: nwid tsunami wpakey 0x136...
 wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
#


My /etc/hostname.iwm0:

nwid tsunami wpakey XXXX
dhcp
inet6 autoconf
!pkill -9 -lf wifinwid
!/etc/wifinwid \$if &


Reply via email to