OpenWrt Forum Archive

Topic: Need help to activate lan and wlan in MT7620A based router

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
I have a Chinese made MT7620A based router with 128MB RAM and 16MB SPI flash. I have selected dhcp server while configuring the menuconfig. I successfully compiled the firmware using the following patch-

https://github.com/Akagi201/hiwifi-hc56 … 5661.patch

While booting, I can see (through the serial port) it successfully recognizing lan.

ralink_soc_eth 10100000.ethernet: connected port 4 to PHY at mdio-bus:04 [uid=03a2940d, driver=Generic PHY]
ralink_soc_eth 10100000.ethernet: connected port 5 to PHY at mdio-bus:05 [uid=0000ffff, driver=Generic PHY]
ralink_soc_eth 10100000.ethernet: loaded mt7530 driver
eth0: done loading

I can see the link going down and up while disconnecting and connecting the lan again.

eth0: port 3 link down
eth0: port 3 link up (100Mbps/Full duplex)

However, after successful boot, the lan remains disabled. While trying the following command, it says the ra0 is not supported.

root@OYE:/# /etc/init.d/network reload
ra0(ralink): Interface type not supported
'radio0' is disabled
ra0(ralink): Interface type not supported
'radio0' is disabled

At the same time, from bootleg, it seems that the alan is detected as well

[   12.100000] cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:  DFS Master region: unset
cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
PPP generic driver version 2.4.2
NET: Registered protocol family 24
ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected

But can't find it active either. What am I doing wrong? How can I activate both lan with dhcp server and wlan for this router?

Finally the router works! I had to "make kernel_menuconfig" and then select the "MT7620A eval kit" which is in the Machine selection >> Device tree selection. It's kind of hidden, and I don't understand why the evaluation board settings is in the kernel config file instead of the general menu config file. But after changing this settings, and then compiling, USB, LAN and WLAN works pretty fine!

Thanks guys for your contribution. Not sure if it's too late to mention that I'm loving openwrt more and more! wink

mmrasheed wrote:

Finally the router works! I had to "make kernel_menuconfig" and then select the "MT7620A eval kit" which is in the Machine selection >> Device tree selection. It's kind of hidden, and I don't understand why the evaluation board settings is in the kernel config file instead of the general menu config file. But after changing this settings, and then compiling, USB, LAN and WLAN works pretty fine!

Thanks guys for your contribution. Not sure if it's too late to mention that I'm loving openwrt more and more! wink

smile

this is because the eth/usb code you were using is released from ralink, and integrated into openwrt as kernel patch.

normally openwrt developers would rewrite the code and provide a package in menuconfig. that's why they call it eval kit.

mmrasheed wrote:

Finally the router works! I had to "make kernel_menuconfig" and then select the "MT7620A eval kit" which is in the Machine selection >> Device tree selection. It's kind of hidden, and I don't understand why the evaluation board settings is in the kernel config file instead of the general menu config file. But after changing this settings, and then compiling, USB, LAN and WLAN works pretty fine!

Thanks guys for your contribution. Not sure if it's too late to mention that I'm loving openwrt more and more! wink

Well done. Tks for yr infos. ^^

The discussion might have continued from here.