LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2019, 06:21 AM   #1
reverse_cheese_process
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Rep: Reputation: Disabled
Unable to detect wifi hardware on an owasys microcontroller running debian 9.


Initially after SSHing into the microcontroller I was able to get the wifi on with this line.


Code:
ip link set mlan0 up
Subsequent running of iwconfig would display mlan0 in the list of the devices.

Next day after the microcontroller has been switched of for the night I am unable to replicate that set up.

Output of runnng lsmod:

Quote:
Module Size Used by

musb_dsps 20480 0

musb_hdrc 98304 1 musb_dsps

udc_core 28672 1 musb_hdrc

usbcore 204800 1 musb_hdrc

phy_am335x 16384 2

phy_am335x_control 16384 1 phy_am335x

phy_generic 16384 1 phy_am335x

usb_common 16384 5 phy_am335x,udc_core,musb_hdrc,musb_dsps,usbcore

c_can_platform 16384 0

c_can 20480 1 c_can_platform

mcp251x 20480 0

snd_soc_tlv320aic31xx 36864 1

can_dev 24576 2 mcp251x,c_can

musb_am335x 16384 0

omap_wdt 16384 0

sd8xxx 552960 0

mlan 430080 1 sd8xxx

cfg80211 266240 1 sd8xxx

ppp_generic 36864 0

slhc 16384 1 ppp_generic

owa4x_gpio 16384 0

ip_tables 24576 0

x_tables 32768 1 ip_tables

output of running iwconfig -a does not list mlan0, which it did first time around:

Quote:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500

inet 192.168.8.244 netmask 255.255.255.0 broadcast 192.168.8.255

inet6 fe80::eb2:b7ff:fed8:9bd6 prefixlen 64 scopeid 0x20<link>

inet6 fdf4:7177:49ee:0:eb2:b7ff:fed8:9bd6 prefixlen 64 scopeid 0x0<global>

ether*:b2:b7:d8:9b:d6 txqueuelen 1000 (Ethernet)

RX packets 456 bytes 40141 (39.2 KiB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 346 bytes 59107 (57.7 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

device interrupt 51


eth0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500

inet 192.168.10.1 netmask 255.255.255.0 broadcast 0.0.0.0

ether :b2:b7:d8:9b:d6 txqueuelen 1000 (Ethernet)

device interrupt 51


lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536

inet 127.0.0.1 netmask 255.0.0.0

inet6 ::1 prefixlen 128 scopeid 0x10<host>

loop txqueuelen 1000 (Local Loopback)

RX packets 0 bytes 0 (0.0 B)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 0 bytes 0 (0.0 B)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

this is what I get if I run dmesg:

Quote:
[ 5.939860] mlan: loading out-of-tree module taints kernel.

[ 6.398869] systemd-journald[107]: Received request to flush runtime journal from PID 1

[ 6.418469] wlan: Loading MWLAN driver

[ 6.480709] wlan: Driver loaded successfully
I suspect `loading out-of-tree module taints kernel` maybe is an issue but I do not know how to proceed further.

In all other logs there is no mention of anything relating to wlan/mlan.


I have tried unloading the modules in question and restarting the whole networking:


Code:
sudo rmmod sd8xxx

sudo rmmod mlan

modprobe sd8xx

modprobe man

/etc/init.d/networking restart

This still has not fixed the problem.


Besides refreshing the whole system and hoping it works just like the first time I do not really know how to proceed with trying to fix this issue or even what further debugging to undertake.

Thanks for your help.

Last edited by reverse_cheese_process; 11-18-2019 at 02:47 PM.
 
Old 11-18-2019, 08:51 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
Does the command lspci detect the wireless chipset?
 
Old 11-19-2019, 05:33 AM   #3
reverse_cheese_process
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
lspci gives out no output, I think it's possible this MCU does not have a PCI. Many ARM SOCs indeed don't have a PCI bus.

I can navigate to /proc/bus/pci but the file is empty.

hwinfo --short gives this list which is missing mlan

Quote:
network:
eth0 ARM Ethernet 0
can2 ARM Ethernet 0
can1 ARM Ethernet 0
network interface:
can4 Network Interface
can2 Network Interface
sit0 Network Interface
lo Loopback network interface
can3 Network Interface
can1 Network Interface
eth0 Ethernet network interface

running hwinfo gives

Quote:
arm
description: ARMv7 Processor rev 2 (v7l)
product: Owa4x board 1.0.10
width: 32 bits
*-core
description: Motherboard
physical id: 0
*-cpu:0
description: CPU
product: cpu
physical id: 0
bus info: cpu@0
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
*-cpu:1 DISABLED
description: CPU
product: idle-states
physical id: 1
bus info: cpu@1
*-memory
description: System memory
physical id: 2
size: 494MiB
*-usbhost:0
product: MUSB HDRC host driver
vendor: Linux 4.14.67-1.0.7+ musb-hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 4.14
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-usbhost:1
product: MUSB HDRC host driver
vendor: Linux 4.14.67-1.0.7+ musb-hcd
physical id: 2
bus info: usb@2
logical name: usb2
version: 4.14
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-network
description: Ethernet interface
physical id: 3
logical name: eth0
serial: :b2:b7:d8:9b:d6
capabilities: ethernet physical
configuration: broadcast=yes driver=cpsw driverversion=1.0 ip=192.168.8.244 link=yes multicast=yes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
68HC11 Microcontroller programming in linux skilambi Linux - Newbie 2 05-25-2008 09:57 AM
Use main CPU as microcontroller DeltaXFX Programming 16 11-04-2007 10:45 AM
Crosscompiling C sources for an OS-less ARM microcontroller - is it possible? winterhunter Programming 2 03-26-2007 11:30 AM
Need help compiling for microcontroller jorisb Linux - Software 0 01-12-2006 04:16 PM
microcontroller programming pantera Programming 4 03-18-2005 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration