Unable to create wireless device

Hi

Facing issues trying to create wireless device: ifconfig wlan0 create wlandev iwm0.
Code:
ifconfig: SIOCIFCREATE2 (wlan0): Device not configured
.

How to proceed?

Thanks
rraj
 
Hi

The issue happened after a major version release from 14.3 to 15.0 did not complete. I then rolled back the upgrade. After a subsequent restart facing this issue.

I do not have switch working for wi-fi, from ever since i purchased the laptop.

Thanks
rraj
 
Which interface is the wifi device connected to on your machine?

USB, then: usbconfig

PCIe, then: pciconf -lv | grep -B3 network
 
First time I see such an error massage from pciconf(8). Was the command executed as user or "root"?


What does freebsd-version -kru show?
Hi

The command pciconf -lv was executed as root. Now even multiuser boot option boots in single user mode.

The freebsd version is 14.3.

Thanks
rraj
 
Is this still the case or is the system booting in multi-user mode?


What exactly does freebsd-verison -kru show (-k : installed kernel, -r : running kernel, -u : installed userland).
Hi T-Daemon

Multiuser boot still acts as single user boot!

freebsd-version is 14.3 release p3 for k & r, whereas 14.3 release p4 for u.

Thanks
rraj
 
Post the error (there's a reason why it drops back to single user mode).
Hi SirDice

Sorry for being cryptic but multiuser boots in as root by default, similar to what is in single user mode! Since network is not there can’t post the error.

Anything else that i may try.

P.S-Working in command line mode, GUI not working.

Thanks
rraj
 
Sorry for being cryptic but multiuser boots in as root by default, similar to what is in single user mode!
If it correctly boots to multiuser mode you will eventually get a "Login:" prompt. If there's an error (bad fstab, syntax error in rc.conf) it will break off the boot process, and you get a question "Enter full pathname or RETURN for /bin/sh:". Pressing ENTER will drop you in single user mode at a root prompt. Is that what you're seeing? Just above that question there's an error telling you what went wrong.

Edit: I normally hate pictures of text, but if you can take a picture with your phone that'll be good.
 
If it correctly boots to multiuser mode you will eventually get a "Login:" prompt. If there's an error (bad fstab, syntax error in rc.conf) it will break off the boot process, and you get a question "Enter full pathname or RETURN for /bin/sh:". Pressing ENTER will drop you in single user mode at a root prompt. Is that what you're seeing? Just above that question there's an error telling you what went wrong.

Edit: I normally hate pictures of text, but if you can take a picture with your phone that'll be good.
Hi SirDice

Sorry for delay in reply. Yes i am getting the question, asking press enter to drop at root prompt.

Attaching picture of error screen.

Tried fsck -y,
mount -u /
mount -a -t ufs
swapon -a, no luck.

Thanks
rraj
 

Attachments

  • IMG_0645.jpg
    IMG_0645.jpg
    471.9 KB · Views: 39
You have an error in your /etc/fstab, that's what's causing it to drop to user mode.

Remove those /compat/linux mounts.
 
You have an error in your /etc/fstab, that's what's causing it to drop to user mode.

Remove those /compat/linux mounts.
Hi SirDice

It worked now i am able to do multiuser login, but still face issues with respect network as originally i.e unable to create wireless device.

pciconf -lv yields
Code:
pciconf: ioctl(PCIOCGETCONF): Operation not permitted
.

Thanks
rraj
 
The issue happened after a major version release from 14.3 to 15.0 did not complete.

freebsd-version is 14.3 release p3 for k & r, whereas 14.3 release p4 for u.
14.3-RELEASE is at patch level p7/p6. You should have upgraded 14.3 to the latest patch level before upgrading to 15.0. This is the recommended procedure.

Try to upgrade 14.3 to the latest patch level and check pciconf(8) again.
 
The problem is version mismatch on those Linux Mounts probably exists much deeper.

System is seriously out of wack. First look at freebsd-version -kru to evaluate your rollback. Hopefully freebsd-update can fix it.

Since you are using iwm wireless on FreeBSD 14.3 it may have changed interface names in FreeBSD 15.0-RELEASE. There were major driver changes for Intel Wireless.
 
The problem is version mismatch on those Linux Mounts probably exists much deeper.

System is seriously out of wack. First look at freebsd-version -kru to evaluate your rollback. Hopefully freebsd-update can fix it.

Since you are using iwm wireless on FreeBSD 14.3 it may have changed interface names in FreeBSD 15.0-RELEASE. There were major driver changes for Intel Wireless.
Hi Phishfry

Rollback completed successfully, i believe freebsd -update requires network connection which is the issue at hand.

Thanks
rraj
 
So somehow you need to get a temporary connection to bring the machine up to date with patches and the upgrade. Do you have any other method like USB-Ethernet dongle?

My wireless adapter is not identified, even may be not detected, what to do in such a scenario?
The first thing to look at is pciconf -lv. Near the bottom should be some sort of information about an Intel wireless adapter. Model number is important in this case.
That will direct you to which driver on FreeBSD-15.0-RELEASE you should be loading. It may have changed from the previous version.
 
Back
Top