OpenWrt Forum Archive

Topic: Chinese router

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

Hi guys

Just worked a bit with it and I must say it seems somewhat hard to make it work.

For test purpose I downloaded https://github.com/qdk0901/openwrt-mt7620
I setup a build env and ran make menuconfig, set the target architecture and all this.

A snip of the .config

#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_ppc40x is not set
# CONFIG_TARGET_realview is not set
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_atheros is not set
# CONFIG_TARGET_ar71xx is not set
# CONFIG_TARGET_at91 is not set
# CONFIG_TARGET_avr32 is not set
# CONFIG_TARGET_brcm2708 is not set
# CONFIG_TARGET_bcm53xx is not set
# CONFIG_TARGET_brcm63xx is not set
# CONFIG_TARGET_brcm47xx is not set
# CONFIG_TARGET_cns21xx is not set
# CONFIG_TARGET_cns3xxx is not set
# CONFIG_TARGET_octeon is not set
# CONFIG_TARGET_ep93xx is not set
# CONFIG_TARGET_cobalt is not set
# CONFIG_TARGET_gemini is not set
# CONFIG_TARGET_mpc52xx is not set
# CONFIG_TARGET_mpc83xx is not set
# CONFIG_TARGET_mpc85xx is not set
# CONFIG_TARGET_imx6 is not set
# CONFIG_TARGET_mxs is not set
# CONFIG_TARGET_adm8668 is not set
# CONFIG_TARGET_adm5120 is not set
# CONFIG_TARGET_xburst is not set
# CONFIG_TARGET_ixp4xx is not set
# CONFIG_TARGET_lantiq is not set
# CONFIG_TARGET_malta is not set
# CONFIG_TARGET_mvebu is not set
# CONFIG_TARGET_kirkwood is not set
# CONFIG_TARGET_orion is not set
# CONFIG_TARGET_pxa is not set
# CONFIG_TARGET_mcs814x is not set
# CONFIG_TARGET_au1000 is not set
CONFIG_TARGET_ramips=y
# CONFIG_TARGET_ar7 is not set
# CONFIG_TARGET_omap is not set
# CONFIG_TARGET_uml is not set
# CONFIG_TARGET_x86 is not set
# CONFIG_TARGET_x86_64 is not set
# CONFIG_TARGET_ramips_rt305x is not set
# CONFIG_TARGET_ramips_mt7620a is not set
CONFIG_TARGET_ramips_mt7620n=y
# CONFIG_TARGET_ramips_mt7621 is not set
# CONFIG_TARGET_ramips_rt3883 is not set
# CONFIG_TARGET_ramips_rt288x is not set
CONFIG_TARGET_ramips_mt7620n_Default=y
CONFIG_HAS_SUBTARGETS=y
CONFIG_TARGET_BOARD="ramips"
CONFIG_TARGET_ARCH_PACKAGES="ramips_24kec"
CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp"
CONFIG_CPU_TYPE="24kec+dsp"
CONFIG_LINUX_3_10=y
CONFIG_DEFAULT_base-files=y
CONFIG_DEFAULT_busybox=y
CONFIG_DEFAULT_dnsmasq=y
CONFIG_DEFAULT_dropbear=y
CONFIG_DEFAULT_firewall=y
CONFIG_DEFAULT_ip6tables=y
CONFIG_DEFAULT_iptables=y
CONFIG_DEFAULT_kmod-gpio-button-hotplug=y
CONFIG_DEFAULT_kmod-ipt-nathelper=y
CONFIG_DEFAULT_kmod-leds-gpio=y
CONFIG_DEFAULT_kmod-ledtrig-usbdev=y
CONFIG_DEFAULT_kmod-rt2800-pci=y
CONFIG_DEFAULT_kmod-rt2800-soc=y
CONFIG_DEFAULT_kmod-usb-core=y
CONFIG_DEFAULT_kmod-usb-dwc2=y
CONFIG_DEFAULT_libc=y
CONFIG_DEFAULT_libgcc=y
CONFIG_DEFAULT_mtd=y
CONFIG_DEFAULT_netifd=y
CONFIG_DEFAULT_odhcp6c=y
CONFIG_DEFAULT_odhcpd=y
CONFIG_DEFAULT_opkg=y
CONFIG_DEFAULT_ppp=y
CONFIG_DEFAULT_ppp-mod-pppoe=y
CONFIG_DEFAULT_swconfig=y
CONFIG_DEFAULT_uci=y
CONFIG_DEFAULT_wpad-mini=y
CONFIG_AUDIO_SUPPORT=y
CONFIG_GPIO_SUPPORT=y
CONFIG_USB_SUPPORT=y
CONFIG_USES_DEVICETREE=y
CONFIG_USES_SQUASHFS=y
CONFIG_mipsel=y
CONFIG_ARCH="mipsel"

I wanted to build a SDK so I can build a wifidog.ipk and install it on my router, there is some problems with wifidog that I wanted to fix. Everything seemed to work and I got a SDK, unzipped it and build wifidog and got a wifidog.ipk

/wifidog_20130917-440445db60b0c3aff528ea703a828b0567293387_ramips_24kec.ipk

When I try to install it on my router I get
pkg_hash_fetch_best_installation_candidate: Packages for wifidog found, but incompatible with the architectures configured

root@ZBT-WR8305RT:~# uname -a
Linux ZBT-WR8305RT 3.3.8 #1 Thu Dec 5 14:56:21 CST 2013 mips GNU/Linux

I got a hint by configuring in the opkg.conf by adding this:

rch all 100                                          
arch ramips 200                        
arch ramips_24kec 300

so now I got this:

root@ZBT-WR8305RT:~# opkg install /root/wifidog_20130917-440445db60b0c3aff528ea703a828b0567293387_ramips_24kec.ipk 
Package luci-lib-sys version 0.11+svn286-1 has no valid architecture, ignoring.
Package kmod-sched-connmark version 3.3.8-1 has no valid architecture, ignoring.
Package libuci-lua version 2013-06-11.1-1 has no valid architecture, ignoring.
Package kmod-lib-textsearch version 3.3.8-1 has no valid architecture, ignoring.
Package libc version 0.9.33.2-1 has no valid architecture, ignoring.
Package opkg version 618-3 has no valid architecture, ignoring.
Package iptables-mod-extra version 1.4.10-5 has no valid architecture, ignoring.
Package kmod-usb-core version 3.3.8-1 has no valid architecture, ignoring.
Package libpthread version 0.9.33.2-1 has no valid architecture, ignoring.
Package ubus version 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8 has no valid architecture, ignoring.
Package ralink-utils version 1 has no valid architecture, ignoring.
Package iw version 3.6-1 has no valid architecture, ignoring.
Package luci-mod-admin-core version 0.11+svn286-1 has no valid architecture, ignoring.
Package busybox version 1.19.4-6 has no valid architecture, ignoring.
Package perlbase-bytes version 5.10.0-7 has no valid architecture, ignoring.
Package libubus-lua version 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8 has no valid architecture, ignoring.
Package glib1 version 1.2.10-1 has no valid architecture, ignoring.
Package kmod-tun version 3.3.8-1 has no valid architecture, ignoring.
Package libiwinfo-lua version 36 has no valid architecture, ignoring.
Package libiwinfo version 36 has no valid architecture, ignoring.
Package libcurl version 7.29.0-1 has no valid architecture, ignoring.
Package kmod-ipt-filter version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-lib-crc-ccitt version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-ledtrig-usbdev version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-ipt-nat-extra version 3.3.8-1 has no valid architecture, ignoring.
Package luci-theme-openwrt version 0.11+svn286-1 has no valid architecture, ignoring.
Package kmod-pppoe version 3.3.8-1 has no valid architecture, ignoring.
Package nocatsplash version 0.93pre2-2 has no valid architecture, ignoring.
Package kmod-pppox version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-ipt-conntrack version 3.3.8-1 has no valid architecture, ignoring.
Package perlbase-hostname version 5.10.0-7 has no valid architecture, ignoring.
Package base-files version 118.2-r37768 has no valid architecture, ignoring.
Package kmod-input-core version 3.3.8-1 has no valid architecture, ignoring.
Package perlbase-class version 5.10.0-7 has no valid architecture, ignoring.
Package gpioctl version 1.0-1 has no valid architecture, ignoring.
Package netifd version 2013-07-16-2674941b06c1ec67f1aff1bff9212e1372106641 has no valid architecture, ignoring.
Package autossh version 1.4b-6 has no valid architecture, ignoring.
Package dnsmasq version 2.66-2 has no valid architecture, ignoring.
Package luci-sgi-cgi version 0.11+svn286-1 has no valid architecture, ignoring.
Package iptables-mod-nat-extra version 1.4.10-5 has no valid architecture, ignoring.
Package ubusd version 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8 has no valid architecture, ignoring.
Package perlbase-ctime version 5.10.0-7 has no valid architecture, ignoring.
Package kmod-ledtrig-gpio version 3.3.8-1 has no valid architecture, ignoring.
Package luci-app-qos version 0.11+svn286-1 has no valid architecture, ignoring.
Package kmod-usb2 version 3.3.8-1 has no valid architecture, ignoring.
Package firewall version 2013-06-29 has no valid architecture, ignoring.
Package luci-app-firewall version 0.11+svn286-1 has no valid architecture, ignoring.
Package kmod-ipt-conntrack-extra version 3.3.8-1 has no valid architecture, ignoring.
Package luci-lib-ipkg version 0.11+svn286-1 has no valid architecture, ignoring.
Package tc version 3.3.0-2 has no valid architecture, ignoring.
Package libuci version 2013-06-11.1-1 has no valid architecture, ignoring.
Package liblua version 5.1.4-8 has no valid architecture, ignoring.
Package libip4tc version 1.4.10-5 has no valid architecture, ignoring.
Package perlbase-tie version 5.10.0-7 has no valid architecture, ignoring.
Package libcyassl version 1.6.5-1 has no valid architecture, ignoring.
Package kmod-ipt-extra version 3.3.8-1 has no valid architecture, ignoring.
Package iptables-mod-ipopt version 1.4.10-5 has no valid architecture, ignoring.
Package uci version 2013-06-11.1-1 has no valid architecture, ignoring.
Package lua version 5.1.4-8 has no valid architecture, ignoring.
Package luci-ssl version 0.11+svn286-1 has no valid architecture, ignoring.
Package dropbear version 2011.54-2 has no valid architecture, ignoring.
Package kmod-ledtrig-timer version 3.3.8-1 has no valid architecture, ignoring.
Package curl version 7.29.0-1 has no valid architecture, ignoring.
Package kmod-input-gpio-keys-polled version 3.3.8-1 has no valid architecture, ignoring.
Package perlbase-file version 5.10.0-7 has no valid architecture, ignoring.
Package perlbase-xsloader version 5.10.0-7 has no valid architecture, ignoring.
Package perlbase-essential version 5.10.0-7 has no valid architecture, ignoring.
Package mtd version 18.1 has no valid architecture, ignoring.
Package perlbase-config version 5.10.0-7 has no valid architecture, ignoring.
Package luci-theme-base version 0.11+svn286-1 has no valid architecture, ignoring.
Package perlbase-digest version 5.10.0-7 has no valid architecture, ignoring.
Package libjson-c version 0.11-2 has no valid architecture, ignoring.
Package libgcc version 4.6-linaro-1 has no valid architecture, ignoring.
Package libip6tc version 1.4.10-5 has no valid architecture, ignoring.
Package luci-sgi-uhttpd version 0.11+svn286-1 has no valid architecture, ignoring.
Package luci-proto-ppp version 0.11+svn286-1 has no valid architecture, ignoring.
Package luci-mod-admin-full version 0.11+svn286-1 has no valid architecture, ignoring.
Package ppp version 2.4.5-10 has no valid architecture, ignoring.
Package libubox version 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e has no valid architecture, ignoring.
Package kmod-leds-gpio version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-gpio-button-hotplug version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-input-polldev version 3.3.8-1 has no valid architecture, ignoring.
Package luci-lib-web version 0.11+svn286-1 has no valid architecture, ignoring.
Package rsync version 3.0.9-1 has no valid architecture, ignoring.
Package perlbase-fcntl version 5.10.0-7 has no valid architecture, ignoring.
Package kmod-gpio-dev version 3.3.8-1 has no valid architecture, ignoring.
Package libblobmsg-json version 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e has no valid architecture, ignoring.
Package iptables version 1.4.10-5 has no valid architecture, ignoring.
Package iptables-mod-filter version 1.4.10-5 has no valid architecture, ignoring.
Package hotplug2 version 1.0-beta-4 has no valid architecture, ignoring.
Package kmod-ipt-nathelper version 3.3.8-1 has no valid architecture, ignoring.
Package perlbase-b version 5.10.0-7 has no valid architecture, ignoring.
Package perl version 5.10.0-7 has no valid architecture, ignoring.
Package jshn version 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e has no valid architecture, ignoring.
Package perlbase-getcwd version 5.10.0-7 has no valid architecture, ignoring.
Package kmod-ipt-core version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-ppp version 3.3.8-1 has no valid architecture, ignoring.
Package uhttpd-mod-lua version 2012-10-30-e57bf6d8bfa465a50eea2c30269acdfe751a46fd has no valid architecture, ignoring.
Package maccalc version 1 has no valid architecture, ignoring.
Package perlbase-integer version 5.10.0-7 has no valid architecture, ignoring.
Package libubus version 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8 has no valid architecture, ignoring.
Package uhttpd version 2012-10-30-e57bf6d8bfa465a50eea2c30269acdfe751a46fd has no valid architecture, ignoring.
Package iptables-mod-conntrack-extra version 1.4.10-5 has no valid architecture, ignoring.
Package libxtables version 1.4.10-5 has no valid architecture, ignoring.
Package zlib version 1.2.7-1 has no valid architecture, ignoring.
Package perlbase-cwd version 5.10.0-7 has no valid architecture, ignoring.
Package luci-lib-nixio version 0.11+svn286-1 has no valid architecture, ignoring.
Package luci-i18n-chinese version 0.11+svn286-1 has no valid architecture, ignoring.
Package perlbase-base version 5.10.0-7 has no valid architecture, ignoring.
Package ralink-wifi version 1 has no valid architecture, ignoring.
Package kmod-ipt-ipopt version 3.3.8-1 has no valid architecture, ignoring.
Package luci version 0.11+svn286-1 has no valid architecture, ignoring.
Package kernel version 3.3.8-1-5f0ba2991c6defec6d7b208ae5eab8d5 has no valid architecture, ignoring.
Package libnl-tiny version 0.1-3 has no valid architecture, ignoring.
Package perlbase-net version 5.10.0-7 has no valid architecture, ignoring.
Package luci-proto-core version 0.11+svn286-1 has no valid architecture, ignoring.
Package px5g version 1 has no valid architecture, ignoring.
Package kmod-ifb version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-nls-base version 3.3.8-1 has no valid architecture, ignoring.
Package luci-i18n-english version 0.11+svn286-1 has no valid architecture, ignoring.
Package libpopt version 1.7-5 has no valid architecture, ignoring.
Package uhttpd-mod-tls version 2012-10-30-e57bf6d8bfa465a50eea2c30269acdfe751a46fd has no valid architecture, ignoring.
Package wireless-tools version 29-5 has no valid architecture, ignoring.
Package libopenssl version 1.0.1e-1 has no valid architecture, ignoring.
Package luci-lib-core version 0.11+svn286-1 has no valid architecture, ignoring.
Package qos-scripts version 1.2.1-6 has no valid architecture, ignoring.
Package perlbase-posix version 5.10.0-7 has no valid architecture, ignoring.
Package ppp-mod-pppoe version 2.4.5-10 has no valid architecture, ignoring.
Package kmod-sched-core version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-ipt-nat version 3.3.8-1 has no valid architecture, ignoring.
Package kmod-ledtrig-netdev version 3.3.8-1 has no valid architecture, ignoring.
Installing wifidog (20130917-440445db60b0c3aff528ea703a828b0567293387) to root...
Collected errors:
 * opkg_conf_parse_file: /etc/opkg.conf:6: Ignoring invalid line: `rch all 100'
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for wifidog:
 *     libc *     iptables-mod-extra *     iptables-mod-ipopt *     iptables-mod-nat-extra *     libpthread * 
 * opkg_install_cmd: Cannot install package wifidog.
root@ZBT-WR8305RT:~# 

I am pretty sure I marked threads in menuconfig as * when building and I could see that all the 3 was dependencies when building wifidog and I did compile.

Also

root@ZBT-WR8305RT:~# opkg install libpthread
Package libpthread (0.9.33.2-1) installed in root is up to date.

so I would figure is in order. This is of cause a version with no extra architecture stuff in opkg.conf.

Assuming you have used the correct architecture to build the ipk, you need to install the list of dependencies for wifidog first. Or else you can't install your wifidog.

Collected errors:
 * opkg_conf_parse_file: /etc/opkg.conf:6: Ignoring invalid line: `rch all 100'
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for wifidog:
 *     libc *     iptables-mod-extra *     iptables-mod-ipopt *     iptables-mod-nat-extra *     libpthread * 
 * opkg_install_cmd: Cannot install package wifidog.

A easier way might be to build the app inside the ROM and install the ROM instead.

(Last edited by ericwongcm on 12 May 2014, 15:06)

The del. is on the router right? When building wifidog.ipk I assume it was ok or else I couldn't have build it.

When trying to install for instance thread on the router it get this
root@ZBT-WR8305RT:~# opkg install libpthread
Package libpthread (0.9.33.2-1) installed in root is up to date.

so I would think it is installed.

Read the part I quoted. It is saying it can't install wifidog because a list of required app is not there.
The missing packages does not contain libpthread.

I ignored the rest of the errors in your log because I am not sure what you are doing wrong.
It simply looks like you didn't build the app using the correct architecture but your description says otherwise.

Able to build the ipk does not mean it will install nor even work.
I often successfully build ROM that simply brick the router when it is installed.... due to some code changes made.

I was searching forum for info about Huawei HG255d router, and from what I have read so far I concluded this:
- there is fully functional OpenWrt supprt from this router
- it comes with OpenWrt but a really old version
- it includes closed source blobs for wifi drivers
- there is no was to build current trunk image what would work on this router

Are these conclusions correct? If not please correct them. Thanks smile

Which router would you recomment I get that has usb port, 32/64MB RAM, 8/16MB flash and good wifi chip (probably some atheros).

valentt wrote:

I was searching forum for info about Huawei HG255d router, and from what I have read so far I concluded this:
- there is fully functional OpenWrt supprt from this router
- it comes with OpenWrt but a really old version
- it includes closed source blobs for wifi drivers
- there is no was to build current trunk image what would work on this router

Are these conclusions correct? If not please correct them. Thanks smile

Which router would you recomment I get that has usb port, 32/64MB RAM, 8/16MB flash and good wifi chip (probably some atheros).

Mostly wrong. Please post in the correct thread, this thread is not about Huawei HG255d router.

ericwongcm wrote:

Mostly wrong. Please post in the correct thread, this thread is not about Huawei HG255d router.

Then please correct wrong information. I searched before asking and this was only active thread where HG255d was mentioned. So there is no other active thread. This thread is generally speaking about many chinese routers that are sold on alibaba and ebay, so I don't see why are you trying to exclude HG255d from this discussion?!?

We are in a similar boat. Also looking at chinese routers. Did you have any luck finding a supported router on alibaba?

Give the mt7620 up, it is really painful to get wifi working.

I've just get 2 pieces of the ZBT-WR8305RT , they use the MT7620 and it's probably the same device you are talking about.

the one I get was already preloaded with openwrt attitude adjustment, but it's the pandora box chinese version.

The wifi works, but the clients can't reach the internet.

I've followed the recipe for routed ap, but now one of the devices it's unreachable, it's not providing ip for the wireless and lan clients, and when I try to connect using ssh the connection it's refused.

The ZBT-WR8305RT and the ZBT-WA05 are both supported by trunk...
I confirm the WiFi is working on my WR8305RT.

I think these two may actually be the same router...but...
The bootloader on the ZBT-WA05 seems to be set  @115200 baud unlike seemingly every other ralink device @57600

The ZBT-WR8305RT works really good even with the openwrt chinese clone i have mine working as a routed ap with captive portal features using the wifidog.

Now I have trouble setting the monitor mode, I've posted my troubles here
https://forum.openwrt.org/viewtopic.php?id=51608

If anyone could give me a hint about how to change the driver i would be really grateful and I promise to post my results.

Thank you.

The ZBT-WR8305RT works really good even with the openwrt chinese clone i have mine working as a routed ap with captive portal features using the wifidog.

Now I have trouble setting the monitor mode, I've posted my troubles here
https://forum.openwrt.org/viewtopic.php?id=51608

If anyone could give me a hint about how to change the driver i would be really grateful and I promise to post my results.

Thank you.

The discussion might have continued from here.