OpenWrt Forum Archive

Topic: Nexx WT1520 support

The content of this topic has been archived between 31 Mar 2018 and 30 Apr 2018. Unfortunately there are posts – most likely complete pages – missing.

hackru

I finally received my wt1520's and followed your steps and they worked like a charm, however I could not get openvpn installed on the router. Can you please help me with this or point me in the right direction. Below is output from ssh. Thank you again!



BusyBox v1.22.1 (2014-06-28 02:57:51 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
-----------------------------------------------------
BARRIER BREAKER (Bleeding Edge, r41360)
-----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
-----------------------------------------------------
root@OpenWrt-wt1520:~# opkg update; opkg install openvpn-openssl
Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker.
Installing openvpn-openssl (2.3.4-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … 24kec.ipk.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
*      kernel (= 3.10.49-1-8cbc1bf8b948a4cac6095c9c7e7fedee) *
* opkg_install_cmd: Cannot install package openvpn-openssl.
root@OpenWrt-wt1520:~#



***Update***
Tried the following below but still failed.

root@OpenWrt-wt1520:~# opkg install openvpn-openssl --force-depends
Installing openvpn-openssl (2.3.4-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … 24kec.ipk.
Installing kmod-tun (3.10.49-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … 24kec.ipk.
Installing liblzo (2.08-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … 24kec.ipk.
Installing libopenssl (1.0.1h-1) to root...
Configuring kmod-tun.
Configuring liblzo.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
*      kernel (= 3.10.49-1-8cbc1bf8b948a4cac6095c9c7e7fedee) *
* verify_pkg_installable: Only have 104kb available on filesystem /overlay, pkg libopenssl needs 659
* opkg_install_cmd: Cannot install package openvpn-openssl.

(Last edited by Cholera on 5 Aug 2014, 23:26)

opkg tells you that there's 1) current kernel version in trunk differs from image's kernel 2) not enough free space on internal flash to install openvpn

you can only fix these two problems by compiling your own firmware, all needed patches for this you can find in this topic, please read it carefully. and if you try to compile your image with openvpn, you should compile it with openvpn-polarssl, not with openvpn-openssl, because polarssl is smaller than openssl.

ps it seems that current trunk is slightly different from trunk i made patches for some time ago, so i uploaded unpatched trunk imagebuilder i used to compile to yandex.disk hosting:
https://yadi.sk/d/_HzmX73eYi8iY
update 10 Sep 2014, just use github repo, i updated patch.

(Last edited by hackru on 3 Oct 2014, 13:40)

hackru
Please, compiling your firmware with newer modules. Linux I do not have. I can not install dlna.

Пожалуйста скомпилируйте вашу прошивку с использованием свежих модуле. Линукс я не имею, и ничего в нём не понимаю. Я тоже не могу установить dlna сервер, появляется ошибка описанная выше.

Sergun, there's no need for any modules for dlna. Read openwrt wiki about ExtRoot(http://wiki.openwrt.org/doc/howto/extroot#openwrt.barrier.breaker.trunk) on external disk. Then you should have free space needed for dlna-server. I can't compile firmware with dlna, because there's no free space on internal flash for it, only with external disk.

I have connected an external drive and moved the system.

recently I have got one of this Nexx. and flash it to openwrt. have a question: can i flash it now to another build openwrt from webface? tnx

(Last edited by loderunner84 on 14 Aug 2014, 14:13)

hackru wrote:

What you will need to upgrade to openwrt firmware:

Hi hackru,
I'm following you instructions on github how to build new image, but the build fails:

./build.sh 
patching file .gitignore
patching file target/linux/ramips/base-files/etc/diag.sh
patching file target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
Hunk #1 FAILED at 86.
1 out of 1 hunk FAILED -- saving rejects to file target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom.rej
patching file target/linux/ramips/base-files/etc/uci-defaults/01_leds
patching file target/linux/ramips/base-files/etc/uci-defaults/02_network
Hunk #1 FAILED at 96.
1 out of 1 hunk FAILED -- saving rejects to file target/linux/ramips/base-files/etc/uci-defaults/02_network.rej
can't find file to patch at input line 67
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
|index 8538c13..83fbcde 100644
|--- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
|+++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
patching file target/linux/ramips/base-files/lib/ramips.sh
Hunk #1 succeeded at 157 (offset 3 lines).
patching file target/linux/ramips/base-files/lib/upgrade/platform.sh
Hunk #1 succeeded at 52 (offset 1 line).
patching file target/linux/ramips/dts/NEXXWT1520.dts
patching file target/linux/ramips/image/Makefile
Hunk #1 succeeded at 434 (offset 2 lines).
Hunk #2 succeeded at 604 (offset 8 lines).
patching file target/linux/ramips/rt305x/profiles/nexx.mk
make[1]: Entering directory `/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64'
echo 'Building images for ramips - NEXX WT-1520'
Building images for ramips - NEXX WT-1520
echo 'Packages: base-files block-mount busybox dnsmasq dropbear firewall fstools hostapd-mini iptables kernel kmod-fs-ext4 kmod-fs-vfat kmod-gpio-button-hotplug kmod-ipt-nathelper kmod-leds-gpio kmod-ledtrig-usbdev kmod-rt2800-soc kmod-usb-core kmod-usb-net-cdc-ether kmod-usb-ohci kmod-usb-rt305x-dwc_otg kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan kmod-usb-storage kmod-usb2 libc libgcc libuci libxtables luci luci-app-ddns luci-proto-3g mtd netifd opkg ppp ppp-mod-pppoe procd swconfig uboot-envtools ubox ubus ubusd uci usb-modeswitch'
Packages: base-files block-mount busybox dnsmasq dropbear firewall fstools hostapd-mini iptables kernel kmod-fs-ext4 kmod-fs-vfat kmod-gpio-button-hotplug kmod-ipt-nathelper kmod-leds-gpio kmod-ledtrig-usbdev kmod-rt2800-soc kmod-usb-core kmod-usb-net-cdc-ether kmod-usb-ohci kmod-usb-rt305x-dwc_otg kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan kmod-usb-storage kmod-usb2 libc libgcc libuci libxtables luci luci-app-ddns luci-proto-3g mtd netifd opkg ppp ppp-mod-pppoe procd swconfig uboot-envtools ubox ubus ubusd uci usb-modeswitch
echo

rm -rf /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips
mkdir -p /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/bin/ramips /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/tmp
if [ ! -f "/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/packages/Packages" ] || [ ! -f "/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/packages/Packages.gz" ] || [ "`find /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/packages -cnewer /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/packages/Packages.gz`" ]; then \
        echo "Package list missing or not up-to-date, generating it.";\
        make package_index; \
    else \
        mkdir -p /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp; \
        IPKG_TMP="/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/tmp/ipkgtmp" IPKG_INSTROOT="/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips" IPKG_CONF_DIR="/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/tmp" IPKG_OFFLINE_ROOT="/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips" /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/opkg -f /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/repositories.conf --force-depends --force-overwrite --force-postinstall --cache /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/dl --offline-root /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips --add-dest root:/ --add-arch all:100 --add-arch ramips_24kec:200 update; \
    fi
/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/find: line 4: /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/bundled/lib/ld-linux-x86-64.so.2: cannot execute binary file
/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/find: line 4: /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/bundled/lib/ld-linux-x86-64.so.2: Success
/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/opkg: line 4: /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/bundled/lib/ld-linux-x86-64.so.2: cannot execute binary file
/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/opkg: line 4: /home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/bundled/lib/ld-linux-x86-64.so.2: Success
make[1]: *** [_call_image] Error 126
make[1]: Leaving directory `/home/adminuser/nexx/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64'
make: *** [image] Error 2

Could you tell me what I'm doing wrong, please?

I need to add kmod-usb-serial-cp210x, serial2file, serial2mysql, digitemp and ohci_hcd for USB. I'm trying to run USB based temperature sensor on my nexx box.

Thanks!

nexxt, see post 28

hackru wrote:

edit 06 aug 2014 ps it seems that current trunk is slightly different from trunk i made patches for some time ago, so i uploaded unpatched trunk imagebuilder i used to compile to yandex.disk hosting:
https://yadi.sk/d/_HzmX73eYi8iY

hackru, do you planning update your patch for new trunk?

(Last edited by Snegohod on 14 Aug 2014, 15:41)

it is better to submit patches so that router is officially added to the trunk and people would not need to compile on their own

Snegohod wrote:

nexxt, see post 28

hackru wrote:

edit 06 aug 2014 ps it seems that current trunk is slightly different from trunk i made patches for some time ago, so i uploaded unpatched trunk imagebuilder i used to compile to yandex.disk hosting:
https://yadi.sk/d/_HzmX73eYi8iY

hackru, do you planning update your patch for new trunk?

I'm sorry for my stupid questions, but I have a problem with the architecture. I'm getting this error:

/home/adminuser/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/opkg: line 4: /home/adminuser/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/staging_dir/host/bin/bundled/lib/ld-linux-x86-64.so.2: cannot execute binary file

I'm running this on VirtualBox with Debian:

Linux debian-i386-vdi 3.2.0-4-686-pae #1 SMP Debian 3.2.41-2 i686 GNU/Linux

file ld-linux-x86-64.so.2
ld-linux-x86-64.so.2: ld-linux-x86-64.so.2: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xf224763ad69b4f2771f1d5e38dc02bb7e08e7f1f, stripped


What I'm doing wrong?

OK, it worked with this one:

Linux localhost.localdomain 3.11.7-300.fc20.x86_64 #1 SMP Mon Nov 4 15:07:39 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Now, let's see how add/remove packages :-)

Any idea what is what here and which bin file I have to use to flash my router? I don't want to brick it
                                                                                         
-rw-rw-r--. 1 adminuser adminuser 2359296 Aug 15 07:07 openwrt-ramips-rt305x-root.squashfs                                                                   
-rw-r--r--. 1 adminuser adminuser 1042066 Aug 15 07:07 openwrt-ramips-rt305x-uImage.bin                                                                     
-rwxr-xr-x. 1 adminuser adminuser 3091292 Aug 15 07:07 openwrt-ramips-rt305x-vmlinux.bin                                                                     
-rwxr-xr-x. 1 adminuser adminuser 3157684 Aug 15 07:07 openwrt-ramips-rt305x-vmlinux.elf

nexxt wrote:

Any idea what is what here and which bin file I have to use to flash my router? I don't want to brick it
                                                                                         
-rw-rw-r--. 1 adminuser adminuser 2359296 Aug 15 07:07 openwrt-ramips-rt305x-root.squashfs                                                                   
-rw-r--r--. 1 adminuser adminuser 1042066 Aug 15 07:07 openwrt-ramips-rt305x-uImage.bin                                                                     
-rwxr-xr-x. 1 adminuser adminuser 3091292 Aug 15 07:07 openwrt-ramips-rt305x-vmlinux.bin                                                                     
-rwxr-xr-x. 1 adminuser adminuser 3157684 Aug 15 07:07 openwrt-ramips-rt305x-vmlinux.elf

First time you used i386 debian, not x86_64 one. Fedora was x64, so worked fine.
All four you listed are not what should you achieve, look at name of my firmware. I think you didn't patched imagebuilder. Or you want too many packages and they didn't fit into image.

gently wrote:

it is better to submit patches so that router is officially added to the trunk and people would not need to compile on their own

Gently, stop repeating this, if you want this in the trunk - make contribution to opensource send patch to openwrt, feel free to use my openwrt patches.

Hi hackru!
Help to build me firmware with LED, USB HDD (samba server), Wi-Fi. Would it be possible without connecting to the Internet from a flash drive via wifi to transmit data to mobile devices? What programs on mobile devices you want to use for this? The Ipad for example.

Hello hackru,


I received my Nexx yesterday and I have a problem.

I cannot use the WiFi Repeater mode. It cannot connect to my existing AP.

Appreciate if you can help me out.

Hello, shay_13_my, sorry, but i can't help you, unless you're using openwrt firmware. Original firmware is off topic here.

Hackru,


I'm a noob. Can you tell me step by step to how to install this firmware of yours.

I hope with your firmware I can get the Wifi repeater functioning as it supposed to be.

hackru wrote:
gently wrote:

it is better to submit patches so that router is officially added to the trunk and people would not need to compile on their own

Gently, stop repeating this, if you want this in the trunk - make contribution to opensource send patch to openwrt, feel free to use my openwrt patches.

Hi Hackru,
I'd like to try to push your patch to the trunk if you don't mind.
Waiting till I get a router to test the upgrade procedure.
I have a questions for you:
1. Where did you take mtd3.bin? During regular build only *-sysupgrade.bin created.
2. May I use mtd to write a *-sysupgrade.bin image (as written in wiki) instead of writing mtd3, and then doing sysupgrade? What could be implication?

(Last edited by Romanp on 24 Aug 2014, 03:21)

I don't mind, feel free to push it, because i don't really have time for this. There is some unneeded lines in patch, like nonexistent LED, you'll see.
1. It's flash dump of mine openwrt mtd partition, i'm not sure, maybe it's not needed
2. You could try if you have spi programmer, probably it should work, but again, i'm not sure.
update, 2. tested on router like this(i will post jailbreak intructions little bit later), mtd3 is not needed, you can write openwrt sysupgrade directly, without mtd3 file.

(Last edited by hackru on 25 Aug 2014, 18:50)

hackru wrote:

I don't mind, feel free to push it, because i don't really have time for this. There is some unneeded lines in patch, like nonexistent LED, you'll see.
1. It's flash dump of mine openwrt mtd partition, i'm not sure, maybe it's not needed
2. You could try if you have spi programmer, probably it should work, but again, i'm not sure.
update, 2. tested on router like this(i will post jailbreak intructions little bit later), mtd3 is not needed, you can write openwrt sysupgrade directly, without mtd3 file.

Thanks a lot for the update, I've prepared a changes on latest trunk, build for new target works fine. Will post it once I'll be able to test it. This could take about month since I didn't get a router yet.

PS: If there is any volunteer(s) to test a patch, let me know I'll send a patch file to you in PM to keep this branch clear.

Hi all,

I recently purchased newly launched model by nexx - WT3020H
I am getting very slow read speed from the USB storage connected to the device - max that I can see is around 1MB/s
Can someone please confirm what is the read/write speeds you are getting on your devices (wt1520).
Also is it possible to flash openwrt on this wt3020h device? This device has MT7620N chipset 8MB flash 64Mb ram.
Thanks.

Romanp wrote:
hackru wrote:

update, 2. tested on router like this(i will post jailbreak intructions little bit later), mtd3 is not needed, you can write openwrt sysupgrade directly, without mtd3 file.

Thanks a lot for the update, I've prepared a changes on latest trunk, build for new target works fine. Will post it once I'll be able to test it. This could take about month since I didn't get a router yet.

Well, but still i recommend flashing twice, first time with mtd_write, second - with sysupgrade. Seriously. Sometimes filesystem with mtd_write becomes non-critical corrupted, don't know why.

hifiashish wrote:

Hi all,

I recently purchased newly launched model by nexx - WT3020H
I am getting very slow read speed from the USB storage connected to the device - max that I can see is around 1MB/s
Can someone please confirm what is the read/write speeds you are getting on your devices (wt1520).
Also is it possible to flash openwrt on this wt3020h device? This device has MT7620N chipset 8MB flash 64Mb ram.
Thanks.

You sure about flash and ram? Then it will be very hackable device. BUT. There's no official openwrt for it, because of no open-source wifi drivers. I saw sdk from vonets based on ralink sdk and some chinese openwrt fork.

(Last edited by hackru on 28 Aug 2014, 20:15)