101 (edited by hifiashish 2014-08-29 11:56:08)

Re: Nexx WT1520 support

yes, its 64 MB RAM and 8MB flash.

# cat /proc/version
Linux version 2.6.36 (root@localhost.localdomain) (gcc version 3.4.2) #87 Wed Apr 30 19:26:13 CST 2014
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "Bootloader"
mtd1: 00010000 00010000 "Config"
mtd2: 00010000 00010000 "Factory"
mtd3: 007b0000 00010000 "Kernel"
# cat modules
sd_mod 25408 2 - Live 0xc0273000
usb_storage 36736 1 - Live 0xc0255000
scsi_wait_scan 320 0 - Live 0xc0234000
sr_mod 13712 0 - Live 0xc0228000
cdrom 36272 1 sr_mod, Live 0xc0210000
scsi_mod 81328 3 sd_mod,usb_storage,sr_mod, Live 0xc01e4000
# cat iomem
00000000-03ffffff : System RAM
  00000000-0047e81b : Kernel code
  0047e81c-005533df : Kernel data
101c0000-101c0fff : rt3xxx-ehci
  101c0000-101c0fff : ehci_hcd
101c1000-101c1fff : rt3xxx-ohci
  101c1000-101c1fff : ohci_hcd
# cat cpuinfo
system type             : Ralink SoC
processor               : 0
cpu model               : MIPS 24Kc V5.0
BogoMIPS                : 386.04
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ff8, 0x0ff8, 0x05bb, 0x0ff8]
ASEs implemented        : mips16 dsp
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

I can telnet to it using nexxadmin/y1n2inc.com0755.

Hope this info will help. Please help me fixing the slow USB speed. Any solution?

Re: Nexx WT1520 support

if i flash openwrt, now i can build openwrt with patch and use web interface to change firmware?

Прошился по инструкции, теперь можно собирать прошивку и заливать через web интерфейс?
Интересует samba. Пока плохо понимаю что выкинуть из модулей.

Re: Nexx WT1520 support

Hi hackru,

I've made a patch for OpenWrt trunk to add support for the Nexx WT1520. It's here: http://pastebin.com/RVJtDtx6

Since it's basically your patch from https://github.com/hackruu/nexx-wt1520-openwrt , I wonder if you could submit it to OpenWrt or allow me to do so.

Thank you! smile

104 (edited by Maker39 2014-09-12 23:06:40)

Re: Nexx WT1520 support

hello!
I'm novice in OpenWRT rebuild
Like it came to compile the firmware.

Question to experts: what and where you need to change to get the firmware for the 64 megabit flash?
in nexx-wt1520.patch

+ Spi @ b00 {
+ Status = "okay";
+ M25p80 @ 0 {
+ # Address-cells = <1>;
+ # Size-cells = <1>;
+ Compatible = "gd25q64";
+ Reg = <0 0>;
+ Linux, modalias = "m25p80", "s25fl064k";
+ Spi-max-frequency = <10000000>;
+
+ Partition @ 0 {
+ Label = "u-boot";
+ Reg = <0x0 0x30000>;
+ Read-only;
+}
+
+ Partition @ 30000 {
+ Label = "u-boot-env";
+ Reg = <0x30000 0x10000>;
+ Read-only;
+}
+
+ Factory: partition @ 40000 {
+ Label = "factory";
+ Reg = <0x40000 0x10000>;
+ Read-only;
+}
+
+ Partition @ 50000 {
+ Label = "firmware";
+ Reg = <0x50000 0x3b0000>;
+}

Relace "reg = <0x50000 0x3b0000>" to "reg = <0x50000 0x7b0000>"   only ?

Re: Nexx WT1520 support

lordroger wrote:

Hi hackru,

I've made a patch for OpenWrt trunk to add support for the Nexx WT1520. It's here: http://pastebin.com/RVJtDtx6

Since it's basically your patch from https://github.com/hackruu/nexx-wt1520-openwrt , I wonder if you could submit it to OpenWrt or allow me to do so.

Thank you! smile

Hello! Yes, feel free to submit it to openwrt trunk, i'm really too lazy to do it myself smile

3x Nexx 1520, 2x Nexx 3020, 1x Hame A5 clone, 1x Hame A1 clone, 1x Lb-link 02, 1x D-Link 505, 1x Tp-link 703, 1x tp-link 3020, 1x tp-link 720v3, 1x AirMusic, 1x TCL-T1, 1x HiWifi HC5861

106 (edited by Maker39 2014-09-17 21:49:09)

Re: Nexx WT1520 support

I'll Answer my question.
Yes, it is enough to replace in nexx-wt1520.patch "reg = <0x50000 0x3b0000>" to "reg = <0x50000 0x7b0000>" before assembling the firmware.
cool Now I have 4M available flash! (25Q64)

[    0.500000] m25p80 spi32766.0: s25fl064k (8192 Kbytes)
[    0.520000] 4 ofpart partitions found on MTD device spi32766.0
[    0.530000] Creating 4 MTD partitions on "spi32766.0":
[    0.540000] 0x000000000000-0x000000030000 : "u-boot"
[    0.550000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.570000] 0x000000040000-0x000000050000 : "factory"
[    0.580000] 0x000000050000-0x000000800000 : "firmware"
[    0.590000] 0x00000014ebf7-0x000000800000 : "rootfs"

Re: Nexx WT1520 support

Maker39
Where did you get the flash chip (25Q64)?

Re: Nexx WT1520 support

Ebay, Aliexpress, etc.

3x Nexx 1520, 2x Nexx 3020, 1x Hame A5 clone, 1x Hame A1 clone, 1x Lb-link 02, 1x D-Link 505, 1x Tp-link 703, 1x tp-link 3020, 1x tp-link 720v3, 1x AirMusic, 1x TCL-T1, 1x HiWifi HC5861

Re: Nexx WT1520 support

so this http://www.ebay.com/itm/161422842074 may be suitable.
what about letters X 25Q64XXXXX they are important?

Re: Nexx WT1520 support

I sealed-off from the failed car DVR.
This should be suitable. But repairmen do not like Winbond
http://monitor.net.ru/forum/topic317755-5056.html mad

Re: Nexx WT1520 support

build, get /bin/ramips/
openwrt-ramips-rt305x-nexx-wt1520-squashfs-sysupgrade.bin
openwrt-ramips-rt305x-root.squashfs
openwrt-ramips-rt305x-uImage.bin
openwrt-ramips-rt305x-vmlinux.bin
openwrt-ramips-rt305x-vmlinux.elf
Can be updated via the web interface or just the console?

Можно обновить через web интерефейс или только через консоль?

Re: Nexx WT1520 support

I was not able to fill openwrt-ramips-rt305x-nexx-wt1520-squashfs-sysupgrade.bin through the web.
Only through the ssh-client + SCP

hackru wrote:

But it not the end! Download to router your openwrt-ramips-rt305x-nexx-wt1520-squashfs-sysupgrade.bin file to /tmp/ directory(via scp or wget from your server)

Connect with ssh-client to your router and go to /tmp/:

# cd /tmp/
# sysupgrade -F -v -n openwrt-ramips-rt305x-nexx-wt1520-squashfs-sysupgrade.bin
Sysupgrade is not yet supported on generic.
Image check 'platform_check_image' failed but --force given - will update anyway!
killall: watchdog: no process killed
Sending TERM to remaining processes ... dnsmasq ntpd ubusd askfirst logd netifd uhttpd
Sending KILL to remaining processes ... askfirst
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...
Upgrade completed
Rebooting system...

Your router will reboot and that's(finally) the end, you've got openwrt firmware on it!

post #52

Мне не удалось залить через вебморду, только через SSH+SCP, как  завещал hackru . сообщение #52

Re: Nexx WT1520 support

Can i brick my device flashing *-squashfs-sysupgrade.bin?
For samba support enough add luci-app-samba to packages? Depends will be add automatic?

Re: Nexx WT1520 support

johndoe_71rus wrote:

Can i brick my device flashing *-squashfs-sysupgrade.bin?
For samba support enough add luci-app-samba to packages? Depends will be add automatic?

Surely it will be depend on samba itself, so you must remove some packages at the time of firmware building, or you will not have enough free space for samba. Or you should increase flash memory to fit it.

3x Nexx 1520, 2x Nexx 3020, 1x Hame A5 clone, 1x Hame A1 clone, 1x Lb-link 02, 1x D-Link 505, 1x Tp-link 703, 1x tp-link 3020, 1x tp-link 720v3, 1x AirMusic, 1x TCL-T1, 1x HiWifi HC5861

115 (edited by johndoe_71rus 2014-09-21 18:27:16)

Re: Nexx WT1520 support

Build this packages

PACKAGES="-6relayd -hostapd -ip6tables -kmod-ip6tables -kmod-ipv6 -kmod-ipv6 -libip6tc -odhcp6c -odhcpd -wpad -wpad-mini block-mount hostapd-mini kmod-fs-ext4 kmod-fs-vfat kmod-usb-net-cdc-ether kmod-usb-ohci kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan kmod-usb-storage kmod-usb2 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 luci-i18n-russian luci-app-samba"

openwrt-ramips-rt305x-nexx-wt1520-squashfs-sysupgrade.bin size 3670020
I forgot something? ImageBuilder does not warn about exceeding the size? Find out after the fact.

ImageBuilder не предупреждает о превышении размера? Если превышает, узнаю в процессе прошивки.

add
Предупреждает. Если превышает размер файл не создается.

116 (edited by Lestor8080 2014-09-24 13:25:02)

Re: Nexx WT1520 support

after build.sh execution there are only following files in generated in OpenWrt-ImageBuilder-ramips_rt305x-for-linux-x86_64/bin/ramips folder:

[localhost ramips]$ ls -lrth
total 9.4M
 3.1M Sep 24 16:18 openwrt-ramips-rt305x-vmlinux.elf
 3.0M Sep 24 16:18 openwrt-ramips-rt305x-vmlinux.bin
1018K Sep 24 16:18 openwrt-ramips-rt305x-uImage.bin
 2.4M Sep 24 16:18 openwrt-ramips-rt305x-root.squashfs
  273 Sep 24 16:18 md5sums

and no openwrt-ramips-rt305x-nexx-wt1520-squashfs-sysupgrade.bin

Re: Nexx WT1520 support

You sure you have used correct imagebuilder? Have you changed set of packages in build.sh?
Post last 100 lines of build.sh output.

3x Nexx 1520, 2x Nexx 3020, 1x Hame A5 clone, 1x Hame A1 clone, 1x Lb-link 02, 1x D-Link 505, 1x Tp-link 703, 1x tp-link 3020, 1x tp-link 720v3, 1x AirMusic, 1x TCL-T1, 1x HiWifi HC5861

Re: Nexx WT1520 support

hackru wrote:

You sure you have used correct imagebuilder? Have you changed set of packages in build.sh?
Post last 100 lines of build.sh output.

patch package was not installed on the system. now it's ok.

Re: Nexx WT1520 support

I wonder if this would be possible to connect arduino (pro mini) to nexx 1520 different way rather than connection via usb port (usb-uart convertor)?

Re: Nexx WT1520 support

Not sure how many signals you need, but you can take serial console pins to connect(tx, rx, gnd) and you can take +5v from usb port. You can turn off messages to console after boot.

3x Nexx 1520, 2x Nexx 3020, 1x Hame A5 clone, 1x Hame A1 clone, 1x Lb-link 02, 1x D-Link 505, 1x Tp-link 703, 1x tp-link 3020, 1x tp-link 720v3, 1x AirMusic, 1x TCL-T1, 1x HiWifi HC5861

Re: Nexx WT1520 support

hackru wrote:

Not sure how many signals you need, but you can take serial console pins to connect(tx, rx, gnd) and you can take +5v from usb port. You can turn off messages to console after boot.

could you please highlight tx, rx on board which you used?

Re: Nexx WT1520 support

Lestor8080 wrote:
hackru wrote:

Not sure how many signals you need, but you can take serial console pins to connect(tx, rx, gnd) and you can take +5v from usb port. You can turn off messages to console after boot.

could you please highlight tx, rx on board which you used?

See first page, or wiki, i added some initial information there. http://wiki.openwrt.org/toh/nexx/wt1520

3x Nexx 1520, 2x Nexx 3020, 1x Hame A5 clone, 1x Hame A1 clone, 1x Lb-link 02, 1x D-Link 505, 1x Tp-link 703, 1x tp-link 3020, 1x tp-link 720v3, 1x AirMusic, 1x TCL-T1, 1x HiWifi HC5861

Re: Nexx WT1520 support

hackru wrote:

See first page, or wiki, i added some initial information there. http://wiki.openwrt.org/toh/nexx/wt1520

these two?
http://s14.postimg.org/vpnut8by9/nexx1520.png

btw my board has rev 1.3

Re: Nexx WT1520 support

just FYI back side of the board

http://s10.postimg.org/g4yn8jf3d/2_3.jpg

Re: Nexx WT1520 support

You can add photos of your revision to wiki. These two, yes.

3x Nexx 1520, 2x Nexx 3020, 1x Hame A5 clone, 1x Hame A1 clone, 1x Lb-link 02, 1x D-Link 505, 1x Tp-link 703, 1x tp-link 3020, 1x tp-link 720v3, 1x AirMusic, 1x TCL-T1, 1x HiWifi HC5861