OpenWrt 18.06.1 Don't show wifi wireless network and don't work

Hello and thank you for reading me. Sorry for my bad english.
I have a D-Link DSL-2740B type F1.

This modem is connected to another modem. Any help? Thank you in advance.

Help Me Pls?

Per: https://openwrt.org/toh/d-link/dsl-2740b

Atheros AR9287

You would install the following packages:

opkg update
opkg install kmod-ath9k wpad-mini

He did not appear.

  • Why don't I see the opkg commands?
  • Did you reboot?
  • What about the tab in LuCI?
1 Like

I installed and restarted and here's what appeared:

how do I make WiFi work?

At the command prompt, run iw list to see if the driver is active.

If that shows that there is a wifi system, build a new /etc/config/wireless by rm /etc/config/wireless then wifi config. This should result in a default config with the radio disabled. Edit /etc/config/wireless or use LuCI to turn on the wifi.

2 Likes

I followed all the steps, I restarted but it still does not work.

1 Like

No response from iw list means that the kernel wifi driver stack is not running.

Check dmesg for wifi-related errors that may have occurred during boot.

Be sure that all the following kernel packages are loaded.
kmod-cfg80211
kmod-mac80211
kmod-ath
kmod-ath9k
kmod-ath9k-common

1 Like

They are all installed

[    0.000000] Linux version 4.9.120 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt G              CC 7.3.0 r7102-3f3a2c9) ) #0 Wed Aug 15 20:42:39 2018
[    0.000000] Detected Broadcom 0x6328 CPU revision b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 64MB of RAM installed
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-106.5
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board: board name: AW4339U
[    0.000000] MIPS: machine is D-Link DSL-2740B/DSL-2741B rev F1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80432a64, node_mem_map 81005750
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 59104K/65536K available (3484K kernel code, 180K rwdata, 576K rodata, 1256K init, 217K               bss, 6432K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11945377789 ns
[    0.000020] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 13421772796ns
[    0.008112] Calibrating delay loop... 319.74 BogoMIPS (lpj=639488)
[    0.046792] pid_max: default: 32768 minimum: 301
[    0.051831] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.058628] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.076233] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.086314] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.092757] pinctrl core: initialized pinctrl subsystem
[    0.101396] NET: Registered protocol family 16
[    0.113580] Can't analyze schedule() prologue at 80373764
[    0.349829] registering PCI controller with io_map_base unset
[    0.390930] PCI host bridge to bus 0000:00
[    0.395195] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x10ffffff]
[    0.402259] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.409245] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.416235] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.424463] pci 0000:00:00.0: [14e4:6328] type 01 class 0x060400
[    0.424596] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.425039] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.433640] pci 0000:01:00.0: [168c:ff1c] type 00 class 0x020000
[    0.433718] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[    0.433923] pci 0000:01:00.0: supports D1
[    0.433943] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[    0.434382] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.434424] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.434493] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.441516] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f0ffff 64bit]
[    0.449052] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.454153] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.469327] clocksource: Switched to clocksource MIPS
[    0.477524] NET: Registered protocol family 2
[    0.484089] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.491380] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.497981] TCP: Hash tables configured (established 1024 bind 1024)
[    0.505004] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.511114] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.518125] NET: Registered protocol family 1
[    0.522753] pci 0000:01:00.0: invalid calibration data
[    0.528054] PCI: CLS 0 bytes, default 16
[    0.537167] Crashlog allocated RAM at address 0x3f00000
[    0.545903] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.569172] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.575214] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.615561] io scheduler noop registered
[    0.619617] io scheduler deadline registered (default)
[    0.626764] bcm6328-pinctrl 10000080.pin-controller: registered at mmio b0000080
[    0.635911] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.642611] 10000100.serial: ttyS0 at MMIO 0x10000100 (irq = 36, base_baud = 1562500) is a bcm63xx_uart
[    0.652365] console [ttyS0] enabled
[    0.659519] bootconsole [early0] disabled
[    0.684973] m25p80 spi1.0: mx25l6405d (8192 Kbytes)
[    0.690928] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.697590] bcm63xxpart: Partition 1 is nvram offset 7e0000 and length 20000
[    0.704828] bcm63xxpart: Partition 2 is linux offset 10000 and length 7d0000
[    0.712153] 3 bcm63xxpart partitions found on MTD device spi1.0
[    0.718259] Creating 3 MTD partitions on "spi1.0":
[    0.723182] 0x000000000000-0x000000010000 : "CFE"
[    0.731520] 0x0000007e0000-0x000000800000 : "nvram"
[    0.740746] 0x000000010000-0x0000007e0000 : "linux"
[    0.751223] parser_imagetag: rootfs: CFE image tag found at 0x0 with version 6, board type AW4339U
[    0.760502] parser_imagetag: Partition 0 is kernel offset 100 and length 15b3c4
[    0.768020] parser_imagetag: Partition 1 is rootfs offset 15b4c4 and length 674b3c
[    0.775806] parser_imagetag: Spare partition is offset 3a0004 and length 42fffc
[    0.783425] 2 bcm963xx-imagetag partitions found on MTD device linux
[    0.789982] Creating 2 MTD partitions on "linux":
[    0.794821] 0x000000000100-0x00000015b4c4 : "kernel"
[    0.803492] 0x00000015b4c4-0x0000007d0000 : "rootfs"
[    0.812850] mtd: device 4 (rootfs) set to be root filesystem
[    0.819846] 1 squashfs-split partitions found on MTD device rootfs
[    0.826255] 0x0000003a0000-0x0000007d0000 : "rootfs_data"
[    0.837102] libphy: Fixed MDIO Bus: probed
[    0.886713] b53_common: found switch: BCM63xx, rev 0
[    0.892365] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.903406] NET: Registered protocol family 10
[    0.920578] NET: Registered protocol family 17
[    0.925295] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts t              o load br_netfilter if you need this.
[    0.938650] 8021q: 802.1Q VLAN Support v1.8
[    0.955351] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.979556] Freeing unused kernel memory: 1256K
[    0.984231] This architecture does not have kernel memory protection.
[    0.998892] random: fast init done
[    2.091412] init: Console is alive
[    2.095297] init: - watchdog -
[    3.612902] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.748050] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.766174] init: - preinit -
[    5.184208] random: jshn: uninitialized urandom read (4 bytes read)
[    5.275103] random: jshn: uninitialized urandom read (4 bytes read)
[    5.524845] random: jshn: uninitialized urandom read (4 bytes read)
[    6.399191] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.405443] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[    6.412441] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 3, 100Mbps, full-duplex
[    6.420950] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[    6.561893] urandom_read: 2 callbacks suppressed
[    6.561908] random: procd: uninitialized urandom read (4 bytes read)
[    7.401379] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    9.994941] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   10.041074] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.266559] procd: - early -
[   10.269727] procd: - watchdog -
[   11.003225] procd: - watchdog -
[   11.006969] procd: - ubus -
[   11.162679] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.292689] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.299988] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.308354] procd: - init -
[   11.952897] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.968962] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.996824] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   12.005117] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   12.018388] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.043640] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   12.154766] xt_time: kernel timezone is -0000
[   12.298479] PPP generic driver version 2.4.2
[   12.308129] NET: Registered protocol family 24
[   12.404870] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.830381] random: crng init done
[   14.833840] random: 1 urandom warning(s) missed due to ratelimiting
[   35.273733] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 3, 100Mbps, full-duplex
[   35.299421] br-lan: port 1(eth0.1) entered blocking state
[   35.305015] br-lan: port 1(eth0.1) entered disabled state
[   35.311380] device eth0.1 entered promiscuous mode
[   35.316351] device eth0 entered promiscuous mode
[   35.377434] br-lan: port 1(eth0.1) entered blocking state
[   35.382999] br-lan: port 1(eth0.1) entered forwarding state
[   35.389028] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   36.169727] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   37.833414] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   37.868939] jffs2_build_filesystem(): unlocking the mtd device...
[   37.875155] done.
[   37.877072] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   66.223900] done.
[   66.225952] jffs2: notice: (1042) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdat              um (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  228.616970] br-lan: port 1(eth0.1) entered disabled state
[  228.762004] device eth0.1 left promiscuous mode
[  228.766691] device eth0 left promiscuous mode
[  228.771432] br-lan: port 1(eth0.1) entered disabled state
[  228.795326] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[  228.853757] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 3, 100Mbps, full-duplex
[  228.894831] br-lan: port 1(eth0.1) entered blocking state
[  228.900441] br-lan: port 1(eth0.1) entered disabled state
[  228.906771] device eth0.1 entered promiscuous mode
[  228.911721] device eth0 entered promiscuous mode
[  228.953590] br-lan: port 1(eth0.1) entered blocking state
[  228.959161] br-lan: port 1(eth0.1) entered forwarding state
[  244.201565] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex

That is your AR5008 chip being enumerated on the PCI bus. That should eventually trigger the loading of the ath9k drivers (the 5008 is the very first Atheros n chip, despite its 5000 part number it is in the ath9k class).

But it does not. What happens if you insmod the modules directly?

1 Like

I arrived at this point, now how do I configure the wifi?

With the "Add" button you can create networks, such as AP, Client, 802.11s and others.

1 Like

the problem that is not configured, I miss the frequencies.

Reset the router (back everything up). Simmilar issue

1 Like

if I reset the modem, the wireless interface and all the configurations will disappear

As far as I know you can backup the configuration and download it to the desktop, reset the device and restore the backup.

1 Like

The kernel driver is not starting up at all. That does not require configuration. It should always happen even if you had no /etc/config files.

what should I do?