Jump to content

ClearFog Pro: Problems with DTS and Intel Wi-Fi issues


D.Cent

Recommended Posts

I recently got a ClearFog Pro board and wanted to replace my router with it. In order to add Wi-Fi functionality, I installed an Intel 4965 AGN PCI-E extension card.

So far I have tried the following two images in order to get it to work:

 

 

Mainline 4.9.7

 

The mainline kernel neither detected my Wi-Fi module nor the additional, built-in LAN ports. However, after updating the kernel with "apt upgrade" to 4.10.x, the "iwlegacy" driver necessary for the Intel Wi-Fi module started to work. However, the LAN ports are still missing. Entering "ip link" gives the following output:

 

Quote

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 532
   link/ether 00:50:43:25:fb:84 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 532
   link/ether 00:50:43:84:25:2f brd ff:ff:ff:ff:ff:ff
4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 532
   link/ether 00:50:43:0d:19:18 brd ff:ff:ff:ff:ff:ff

 

Usually, there should be lan1, lan2, lan3... for all built-in ports, but they are completely missing.

 

So no problem I thought and tried the other image...

 

 

LTS 4.4.45
 
Using this kernel, the LAN ports were detected automatically:
 
Quote

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 532
   link/ether 00:50:43:25:fb:84 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 532
   link/ether 00:50:43:84:25:2f brd ff:ff:ff:ff:ff:ff
4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 532
   link/ether 00:50:43:0d:19:18 brd ff:ff:ff:ff:ff:ff
5: lan5@eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000
   link/ether 00:50:43:84:25:2f brd ff:ff:ff:ff:ff:ff
6: lan4@eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000
   link/ether 00:50:43:84:25:2f brd ff:ff:ff:ff:ff:ff
7: lan3@eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000
   link/ether 00:50:43:84:25:2f brd ff:ff:ff:ff:ff:ff
8: lan2@eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000
   link/ether 00:50:43:84:25:2f brd ff:ff:ff:ff:ff:ff
9: lan1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
   link/ether 00:50:43:84:25:2f brd ff:ff:ff:ff:ff:ff

 

But unfortunately, in this kernel version, the Intel Wi-Fi module isn't detected correctly. Loading the "iwlegacy" and "iwl4965" drivers causes an error (extracted from dmesg):
 
Quote

[  375.101577] iwl4965: Intel(R) Wireless WiFi 4965 driver for Linux, in-tree:
[  375.101586] iwl4965: Copyright(c) 2003-2011 Intel Corporation
[  375.102186] iwl4965 0000:01:00.0: enabling device (0000 -> 0002)
[  375.102270] iwl4965 0000:01:00.0: Detected Intel(R) Wireless WiFi Link 4965AGN, REV=0xFFFFFFFF
[  375.119640] ------------[ cut here ]------------
[  375.119666] WARNING: CPU: 1 PID: 2173 at drivers/net/wireless/iwlegacy/common.c:116 _il_grab_nic_access+0x70/0xa4 [iwlegacy]()
[  375.119671] Timeout waiting for ucode processor access (CSR_GP_CNTRL 0xffffffff)
[  375.119674] Modules linked in: iwl4965(+) iwlegacy cpufreq_userspace cpufreq_stats mac80211 cfg80211 firmware_class rfkill marvell_c
esa des_generic rtc_armada38x uio_pdrv_genirq uio mv_cesa fuse autofs4 btrfs xor xor_neon zlib_deflate raid6_pq ehci_orion [last unload
ed: iwlegacy]
[  375.119729] CPU: 1 PID: 2173 Comm: modprobe Tainted: G        W       4.4.51-mvebu #5
[  375.119733] Hardware name: Marvell Armada 380/385 (Device Tree)
[  375.119746] [<c010da9d>] (unwind_backtrace) from [<c0109a49>] (show_stack+0x11/0x14)
[  375.119756] [<c0109a49>] (show_stack) from [<c0360465>] (dump_stack+0x81/0xa8)
[  375.119766] [<c0360465>] (dump_stack) from [<c011d2e5>] (warn_slowpath_common+0x79/0x90)
[  375.119774] [<c011d2e5>] (warn_slowpath_common) from [<c011d31f>] (warn_slowpath_fmt+0x23/0x2c)
[  375.119794] [<c011d31f>] (warn_slowpath_fmt) from [<bfb727f1>] (_il_grab_nic_access+0x70/0xa4 [iwlegacy])
[  375.119849] [<bfb727f1>] (_il_grab_nic_access [iwlegacy]) from [<bfb72aa3>] (il_wr_prph+0x22/0x70 [iwlegacy])
[  375.119879] [<bfb72aa3>] (il_wr_prph [iwlegacy]) from [<bfb73a17>] (il_apm_init+0xd2/0x17c [iwlegacy])
[  375.119908] [<bfb73a17>] (il_apm_init [iwlegacy]) from [<bfb7412f>] (il_eeprom_init+0x3e/0x170 [iwlegacy])
[  375.119942] [<bfb7412f>] (il_eeprom_init [iwlegacy]) from [<bfb8b933>] (il4965_pci_probe+0x236/0x9dc [iwl4965])
[  375.119967] [<bfb8b933>] (il4965_pci_probe [iwl4965]) from [<c0394829>] (pci_device_probe+0x59/0xa4)
[  375.119975] [<c0394829>] (pci_device_probe) from [<c03d2c2f>] (driver_probe_device+0xe3/0x200)
[  375.119982] [<c03d2c2f>] (driver_probe_device) from [<c03d2d8d>] (__driver_attach+0x41/0x54)
[  375.119991] [<c03d2d8d>] (__driver_attach) from [<c03d1933>] (bus_for_each_dev+0x2f/0x60)
[  375.119998] [<c03d1933>] (bus_for_each_dev) from [<c03d24c3>] (bus_add_driver+0x8f/0x178)
[  375.120004] [<c03d24c3>] (bus_add_driver) from [<c03d3555>] (driver_register+0x5d/0x84)
[  375.120024] [<c03d3555>] (driver_register) from [<bfb9e04b>] (il4965_init+0x4a/0xfff [iwl4965])
[  375.120045] [<bfb9e04b>] (il4965_init [iwl4965]) from [<c01017ed>] (do_one_initcall+0xdd/0x170)
[  375.120054] [<c01017ed>] (do_one_initcall) from [<c01e50f5>] (do_init_module+0x4d/0x328)
[  375.120063] [<c01e50f5>] (do_init_module) from [<c018b553>] (load_module+0x123f/0x1908)
[  375.120071] [<c018b553>] (load_module) from [<c018bd65>] (SyS_finit_module+0x45/0x60)
[  375.120079] [<c018bd65>] (SyS_finit_module) from [<c0106081>] (ret_fast_syscall+0x1/0x18)
[  375.120084] ---[ end trace fb4c9f2cc6815c15 ]---
[  375.137366] iwl4965 0000:01:00.0: bad EEPROM signature,EEPROM_GP=0x00000007
[  375.137374] iwl4965 0000:01:00.0: EEPROM not found, EEPROM_GP=0xffffffff                                                             
[  375.137399] iwl4965 0000:01:00.0: Unable to init EEPROM                                                                              
[  375.137460] iwl4965: probe of 0000:01:00.0 failed with error -2

 

Basically I'd love to run the latest kernel, but it seems like there are problems with the DTS configuration not enabling the LAN ports and the LTS kernel doesn't work for me either because of a crashing Wi-Fi driver :/ Does anyone have an idea on how to get either the LTS kernel or the 4.10.x kernel to work?

Link to comment
Share on other sites

Hm.

[    3.884648] Distributed Switch Architecture driver version 0.1
[    3.884683] mvneta f1030000.ethernet eth1: [0]: could not detect attached switch
[    3.884689] mvneta f1030000.ethernet eth1: [0]: couldn't create dsa switch instance (error -22)

 

@Igor

Can you test the mvebu-next kernel with all additional patches disabled (except for packaging)? This may kill SFP support, but it is possible that it is already partially broken on this branch and DSA issues IMO are a higher priority problem.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines