What happened to the D-Link DIR-510L?


#101

I read the value from stock bootlog after i had the problems with openwrt factory.bin. But i think this question may not of importance anymore:

That was the critical hint, and not very much of crystal ball reading! I never resoldered the chip, instead i soldered some wires to the board which had a length of ~10cm before they were pin-plugged into a socket that was swapped back and forth between board and SPI programmer. From this socket there were another 20cm wires to the SOP-16 clip that was holding the chip. I thought i was making sure that the soldering was very good and accurate, but that may not have been enough with the wire length and multiple connections in between. I might had a leaking current or the chip frequency of over 100MHz may be just too high for having such long and unshielded wires between board and chip.

This question is still open, as it is not resolved with my recent progress. Is it possible that the stock firmware does not use the full communication speed of the chip, so a shift in bits may not occur, because the signal is not affected that bad?

Gentlemen, you are not only admirable experts in your field, but also detectives. I think i finally got this to work (for the moment with one of my replacement chips actually :rofl:) I have learned a lot. Let me know if i can be of assistance in any further testing. Thank you so much, again!


#102

finally compiiling from github source works fine :sunglasses:

However I' having this strange behaviour:

I have one of the wlans connected to a hotspot.

The other one, which only seems to work as a 5 ghz wlan I configured as an access point.

If I connect to it, it works. But it seems, whenever heavy traffic happens, like a speed test, the device reboots.

This happens always, with chkdsk88s firmwares and with the one I compiled from source.

No entry in logs, the device just goes away.

root@OpenWrt:~# while true; do dmesg -c ; sleep 1 ; done
[    0.000000] Linux version 4.14.101 (freetz@freetz-linux) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9395-7b74c49)) #0 Mon Feb 18 20:48:15 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is D-Link DIR-510L
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80495970, node_mem_map 81000040
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS1,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00036471
[    0.000000] Readback ErrCtl register=00036471
[    0.000000] Memory: 124748K/131072K available (3671K kernel code, 168K rwdata, 856K rodata, 160K init, 207K bss, 6324K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015470] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087720] pid_max: default: 32768 minimum: 301
[    0.097105] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110130] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.129550] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149029] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.161200] pinctrl core: initialized pinctrl subsystem
[    0.172012] NET: Registered protocol family 16
[    0.663973] PCI host bridge /pcie@10140000 ranges:
[    0.673367]  MEM 0x0000000020000000..0x000000002fffffff
[    0.683740]   IO 0x0000000010160000..0x000000001016ffff
[    0.711450] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.722488] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.735520] PCI host bridge to bus 0000:00
[    0.743517] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.757238] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.768967] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.782464] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.798253] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[    0.798292] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.798306] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    0.798377] pci 0000:00:00.0: supports D1
[    0.798387] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.798622] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.814637] pci 0000:01:00.0: [14c3:7650] type 00 class 0x028000
[    0.814686] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    0.814823] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.815042] pci 0000:01:00.1: [14c3:8650] type 00 class 0x0d1100
[    0.815083] pci 0000:01:00.1: reg 0x10: [mem 0x00000000-0x000fffff]
[    0.815210] pci 0000:01:00.1: supports D1
[    0.815220] pci 0000:01:00.1: PME# supported from D0 D1 D3hot D3cold
[    0.815410] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.815427] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.815476] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.828535] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.842343] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    0.855843] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.869351] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[    0.882847] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[    0.896343] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.906193] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    0.923513] clocksource: Switched to clocksource systick
[    0.935083] NET: Registered protocol family 2
[    0.944462] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.958241] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.970831] TCP: Hash tables configured (established 1024 bind 1024)
[    0.983645] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.995150] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.007827] NET: Registered protocol family 1
[    1.016442] PCI: CLS 0 bytes, default 32
[    1.019133] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    1.031840] Crashlog allocated RAM at address 0x3f00000
[    1.043933] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.061810] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.073313] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.102560] io scheduler noop registered
[    1.110264] io scheduler deadline registered (default)
[    1.121301] gpio-export gpio_export: 2 gpio(s) exported
[    1.131879] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.145372] 10000500.uart: ttyS0 at MMIO 0x10000500 (irq = 13, base_baud = 2500000) is a Palmchip BK-3103
[    1.164980] 10000c00.uartlite: ttyS1 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    1.184665] console [ttyS1] enabled
[    1.198426] bootconsole [early0] disabled
[    1.214865] cacheinfo: Failed to find cpu0 device node
[    1.225139] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.242639] spi spi0.0: force spi mode3
[    1.251102] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    1.261273] 4 fixed-partitions partitions found on MTD device spi0.0
[    1.273941] Creating 4 MTD partitions on "spi0.0":
[    1.283499] 0x000000000000-0x000000010000 : "jboot"
[    1.294117] 0x000000010000-0x000000210000 : "recovery"
[    1.305207] 0x000000210000-0x000000ff0000 : "firmware"
[    1.318452] 2 jimage-fw partitions found on MTD device firmware
[    1.330318] Creating 2 MTD partitions on "firmware":
[    1.340226] 0x000000000000-0x0000001816e0 : "kernel"
[    1.350949] 0x0000001816e0-0x000000de0000 : "rootfs"
[    1.361626] mtd: device 4 (rootfs) set to be root filesystem
[    1.374472] 1 squashfs-split partitions found on MTD device rootfs
[    1.386862] 0x000000430000-0x000000de0000 : "rootfs_data"
[    1.398472] 0x000000ff0000-0x000001000000 : "config"
[    1.409955] libphy: Fixed MDIO Bus: probed
[    1.427211] gsw: setting port4 to ephy mode
[    1.435620] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 0 link up (100Mbps/Full duplex)
[    1.453850] mtk_soc_eth 10100000.ethernet: generated random MAC address 32:f0:a1:53:d9:f7
[    1.470235] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.482687] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.499704] rt2880_wdt 10000120.watchdog: Initialized
[    1.510967] NET: Registered protocol family 10
[    1.523564] Segment Routing with IPv6
[    1.530966] NET: Registered protocol family 17
[    1.539899] 8021q: 802.1Q VLAN Support v1.8
[    1.556391] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.571369] Freeing unused kernel memory: 160K
[    1.580253] This architecture does not have kernel memory protection.
[    2.477269] init: Console is alive
[    2.484379] init: - watchdog -
[    2.783471] random: fast init done
[    3.782244] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.874091] usbcore: registered new interface driver usbfs
[    3.885160] usbcore: registered new interface driver hub
[    3.895884] usbcore: registered new device driver usb
[    3.912131] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.927005] ehci-platform: EHCI generic platform driver
[    3.947802] phy phy-usbphy.0: remote usb device wakeup disabled
[    3.959616] phy phy-usbphy.0: UTMI 16bit 30MHz
[    3.968492] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.979985] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.995894] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    4.017038] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    4.030489] hub 1-0:1.0: USB hub found
[    4.038433] hub 1-0:1.0: 1 port detected
[    4.050492] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.069019] init: - preinit -
[    4.710695] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.053925] hub 1-1:1.0: USB hub found
[    5.067487] hub 1-1:1.0: 4 ports detected
[    5.201390] random: procd: uninitialized urandom read (4 bytes read)
[    5.219602] 8021q: adding VLAN 0 to HW filter on device eth0
[    6.588218] jffs2: notice: (386) jffs2_build_xattr_subsystem: complete building xattr subsystem, 25 of xdatum (3 unchecked, 22 orphan) and 46 of xref (22 dead, 0 orphan) found.
[    6.621750] mount_root: switching to jffs2 overlay
[    6.676013] overlayfs: upper fs does not support tmpfile.
[    6.694153] urandom-seed: Seeding with /etc/urandom.seed
[    6.841206] procd: - early -
[    6.847051] procd: - watchdog -
[    7.496076] procd: - watchdog -
[    7.502654] procd: - ubus -
[    7.746467] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.762263] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.775595] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.789286] procd: - init -
[    8.323881] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.343284] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.364853] Netfilter messages via NETLINK v0.30.
[    8.377286] ip_set: protocol 6
[    8.423073] Loading modules backported from Linux version v4.19.23-0-g67d52fae61c1
[    8.438249] Backport generated by backports.git v4.19.23-1-0-g480a925a
[    8.456305] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.480502] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[    8.605920] xt_time: kernel timezone is -0000
[    8.698584] PPP generic driver version 2.4.2
[    8.711684] NET: Registered protocol family 24
[    8.739651] mt76x0e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[    8.752227] mt76x0e 0000:01:00.0: ASIC revision: 76100002
[    8.768854] mt76x0e 0000:01:00.0: Firmware Version: 0.1.00
[    8.898026] mt76x0e 0000:01:00.0: EEPROM ver:01 fae:00
[    8.912343] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.045698] ieee80211 phy1: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'soc_wmac.eeprom'.
[    9.102998] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[    9.118554] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[    9.132933] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[    9.168470] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.084473] urandom_read: 5 callbacks suppressed
[   10.084483] random: jshn: uninitialized urandom read (4 bytes read)
[   19.318525] 8021q: adding VLAN 0 to HW filter on device eth0
[   19.374497] device eth0 entered promiscuous mode
[   19.416867] br-lan: port 1(eth0.1) entered blocking state
[   19.427723] br-lan: port 1(eth0.1) entered disabled state
[   19.438867] device eth0.1 entered promiscuous mode
[   19.534462] br-lan: port 1(eth0.1) entered blocking state
[   19.545295] br-lan: port 1(eth0.1) entered forwarding state
[   19.556641] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   20.317934] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   23.159726] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration start
[   23.176401] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration end
[   26.013025] ieee80211 phy1: rt2800_loft_iq_calibration: Info - LOFT Calibration Done!
[   26.032207] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
[   26.060126] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 0, (gain= 0, phase=3e)
[   26.079241] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
[   26.107145] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 1, (gain= 0, phase=3e)
[   26.125378] ieee80211 phy1: rt2800_loft_iq_calibration: Info - TX IQ Calibration Done!
[   26.154614] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=-2, Ph_rx=-1
[   26.180132] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=0, Ph_rx=-2
[   26.204956] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   27.649971] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   27.688149] br-lan: port 2(wlan0) entered blocking state
[   27.698846] br-lan: port 2(wlan0) entered disabled state
[   27.709970] device wlan0 entered promiscuous mode
[   27.884918] wlan1: authenticate with 64:a6:51:1f:61:a9
[   27.923562] wlan1: send auth to 64:a6:51:1f:61:a9 (try 1/3)
[   27.936613] wlan1: authenticated
[   27.959268] wlan1: associate with 64:a6:51:1f:61:a9 (try 1/3)
[   28.058195] wlan1: RX AssocResp from 64:a6:51:1f:61:a9 (capab=0x1401 status=0 aid=1)
[   28.073967] wlan1: associated
[   28.081967] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   43.839570] random: crng init done
[   61.896300] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   61.909372] br-lan: port 2(wlan0) entered blocking state
[   61.920021] br-lan: port 2(wlan0) entered forwarding state

Fri Feb 22 21:55:38 2019 daemon.notice hostapd: wlan0: ACS-COMPLETED freq=5260 channel=52
Fri Feb 22 21:55:38 2019 daemon.notice hostapd: wlan0: interface state ACS->DFS
Fri Feb 22 21:55:38 2019 daemon.notice hostapd: wlan0: DFS-CAC-START freq=5260 chan=52 sec_chan=0, width=0, seg0=52, seg1=0, cac_time=60s
Fri Feb 22 21:55:54 2019 daemon.notice pingcheck[1315]: Scheduling 'offline' scripts for 'HOTSPOT'
Fri Feb 22 21:55:54 2019 daemon.notice pingcheck[1849]: Running 'offline' scripts for 'HOTSPOT'
Fri Feb 22 21:55:54 2019 user.notice FonLogin: Starting on HOTSPOT:wlan1 ->
Fri Feb 22 21:55:54 2019 user.notice FonLogin: Waiting 3 seconds before attempt
Fri Feb 22 21:55:57 2019 user.notice FonLogin: Attempting to login at FON
Fri Feb 22 21:55:57 2019 user.notice FonLogin: Trying to fetch a website
Fri Feb 22 21:55:59 2019 kern.notice kernel: [   43.839570] random: crng init done
Fri Feb 22 21:56:02 2019 user.notice FonLogin: Trying to get post url
Fri Feb 22 21:56:02 2019 user.notice FonLogin: Post URL found, trying to login
Fri Feb 22 21:56:04 2019 daemon.notice pingcheck[1315]: 'offline' scripts for 'HOTSPOT' cancelled
Fri Feb 22 21:56:05 2019 authpriv.info dropbear[1874]: Child connection from 192.168.1.134:63451
Fri Feb 22 21:56:05 2019 authpriv.notice dropbear[1874]: Auth succeeded with blank password for 'root' from 192.168.1.134:63451
Fri Feb 22 21:56:07 2019 user.notice FonLogin: a Trying to get logoff url
Fri Feb 22 21:56:07 2019 user.notice FonLogin: LogOff URL found; Login was successful
Fri Feb 22 21:56:07 2019 user.notice FonLogin: ...Login successfull
Fri Feb 22 22:07:52 2019 daemon.notice hostapd: handle_probe_req: send failed
Fri Feb 22 22:07:52 2019 daemon.notice hostapd: handle_probe_req: send failed
Fri Feb 22 22:08:08 2019 daemon.notice pingcheck[1315]: Scheduling 'online' scripts for 'HOTSPOT'
Fri Feb 22 22:08:08 2019 daemon.notice pingcheck[1928]: Running 'online' scripts for 'HOTSPOT'
Fri Feb 22 22:08:08 2019 user.notice FonLogin: Starting on HOTSPOT:wlan1 ->
Fri Feb 22 22:08:08 2019 user.notice FonLogin: Waiting 3 seconds before attempt
Fri Feb 22 22:08:11 2019 user.notice FonLogin: Attempting to login at FON
Fri Feb 22 22:08:11 2019 user.notice FonLogin: Trying to fetch a website
Fri Feb 22 22:08:12 2019 user.notice FonLogin: Trying to get post url
Fri Feb 22 22:08:12 2019 user.notice FonLogin: Login not needed oder not possible
Fri Feb 22 22:08:16 2019 daemon.notice hostapd: wlan0: DFS-CAC-COMPLETED success=1 freq=5260 ht_enabled=1 chan_offset=0 chan_width=1 cf1=5260 cf2=0
Fri Feb 22 22:08:16 2019 daemon.err hostapd: Using interface wlan0 with hwaddr 00:0c:43:26:60:f8 and ssid "AP409"
Fri Feb 22 22:08:18 2019 kern.info kernel: [   61.896300] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Fri Feb 22 22:08:18 2019 kern.info kernel: [   61.909372] br-lan: port 2(wlan0) entered blocking state
Fri Feb 22 22:08:18 2019 kern.info kernel: [   61.920021] br-lan: port 2(wlan0) entered forwarding state
Fri Feb 22 22:08:18 2019 daemon.notice hostapd: wlan0: interface state DFS->ENABLED
Fri Feb 22 22:08:18 2019 daemon.notice hostapd: wlan0: AP-ENABLED
Fri Feb 22 22:08:18 2019 daemon.notice netifd: Network device 'wlan0' link is up
Fri Feb 22 22:09:57 2019 authpriv.info dropbear[2066]: Child connection from 192.168.1.134:63488
Fri Feb 22 22:09:59 2019 authpriv.notice dropbear[2066]: Auth succeeded with blank password for 'root' from 192.168.1.134:63488
Fri Feb 22 22:11:57 2019 daemon.notice netifd: HOTSPOT (1619): udhcpc: sending renew to 172.17.2.1
Fri Feb 22 22:11:57 2019 daemon.notice netifd: HOTSPOT (1619): udhcpc: lease of 172.17.2.12 obtained, lease time 600
Fri Feb 22 22:13:44 2019 authpriv.info dropbear[2322]: Child connection from 192.168.1.134:63539
Fri Feb 22 22:13:46 2019 authpriv.notice dropbear[2322]: Auth succeeded with blank password for 'root' from 192.168.1.134:63539
root@OpenWrt:~# logread -f
Fri Feb 22 22:14:44 2019 daemon.info hostapd: wlan0: STA f0:99:b6:2c:b5:6a IEEE 802.11: authenticated
Fri Feb 22 22:14:44 2019 daemon.notice hostapd: wlan0: STA-OPMODE-N_SS-CHANGED f0:99:b6:2c:b5:6a 2
Fri Feb 22 22:14:44 2019 daemon.info hostapd: wlan0: STA f0:99:b6:2c:b5:6a IEEE 802.11: associated (aid 1)
Fri Feb 22 22:14:44 2019 daemon.notice hostapd: wlan0: AP-STA-CONNECTED f0:99:b6:2c:b5:6a
Fri Feb 22 22:14:44 2019 daemon.info hostapd: wlan0: STA f0:99:b6:2c:b5:6a WPA: pairwise key handshake completed (RSN)
Fri Feb 22 22:14:44 2019 daemon.info dnsmasq-dhcp[1693]: DHCPREQUEST(br-lan) 192.168.1.146 f0:99:b6:2c:b5:6a
Fri Feb 22 22:14:44 2019 daemon.info dnsmasq-dhcp[1693]: DHCPACK(br-lan) 192.168.1.146 f0:99:b6:2c:b5:6a iPhone-III
Fri Feb 22 22:14:44 2019 daemon.warn odhcpd[924]: DHCPV6 SOLICIT IA_NA from 000100012337f242f099b62cb56a on br-lan: ok fdcc:7a80:8ce8::bbf/128
Fri Feb 22 22:14:44 2019 daemon.info dnsmasq[1693]: read /etc/hosts - 4 addresses
Fri Feb 22 22:14:44 2019 daemon.info dnsmasq[1693]: read /tmp/hosts/odhcpd - 0 addresses
Fri Feb 22 22:14:44 2019 daemon.info dnsmasq[1693]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Fri Feb 22 22:14:44 2019 daemon.info dnsmasq-dhcp[1693]: read /etc/ethers - 0 addresses
Fri Feb 22 22:14:45 2019 daemon.warn odhcpd[924]: DHCPV6 REQUEST IA_NA from 000100012337f242f099b62cb56a on br-lan: ok fdcc:7a80:8ce8::bbf/128



#103

That is interesting, in the .dts it is configured as 50MHz just as the datasheet states (30pF + 1TTL Load, but the lines are very short, it should be okay as long as they are not extended :wink: )

MT7620 programming guide says the default SPI speed ist System Clock / 32, which would be around 18 MHz for a CPU speed of 580 MHz.
Now I wonder what D-Link uses, but I'm currently too tired / lazy to re-open the device to measure, but maybe there is also memread in stock firmware (or the register content could just be copied from /dev/mem via dd) :thinking:

The register address for SPI 0 configuration should be 0x10000B50, the last three bits of that 32bit register define the clock divisor:

0: SPICLK rate = system clock rate/ 2
1: SPICLK rate = system clock rate / 4
2: SPICLK rate = system clock rate / 8
3: SPICLK rate = system clock rate / 16
4: SPICLK rate = system clock rate / 32
5: SPICLK rate = system clock rate / 64
6: SPICLK rate = system clock rate / 128
7: SPICLK is disabled

I'll grab the device and check with stock firmware tomorrow (if no one else will be faster :grin: ).

Well, it's MT7610E after all, none of the devs really like this chip :grin:

Could you rebase from master to 18.06 or even back to LEDE, just to see if there might be any change that decreased stability of the driver? (which afaik is still considered a horrible mess in the first place...)


#104

@lowmaster

Mt7610e is supported since ~4 months. At this moment this driver IMO isn't stable.


#105

After merging your 510l branch with the openwrt master I got the latest drivers and kernel.

With that, the connections seem to stay stable on all interfaces.

Very nice! Thank you.

edit:
As requested by some people here they are:
openwrt-ramips-mt7620-dlink_dir-510l-squashfs-factory.bin

openwrt-ramips-mt7620-dlink_dir-510l-squashfs-sysupgrade.bin


#106

@CHKDSK88
I just saw there have been a few comments on the pull request by a maintainer recently :slight_smile:

Maybe you could check the suggestions made, I hope the device can still make it for 19.01 :grinning:


#107

@s_2

I'm on holiday. I will do it in next week. :slight_smile:

wt., 5 mar 2019, 18:00 użytkownik Sebastian Schaper via OpenWrt Forum mail@forum.openwrt.org napisał:


#108

Changes was done. I hope, that mkresin add PR before 19.0x fork.


#109

@s_2

Could You test final (I hope) version?

https://www.dropbox.com/s/f79m2jd4ugjk0mg/openwrt-ramips-mt7620-dlink_dir-510l-squashfs-factory.bin?dl=0
https://www.dropbox.com/s/x6mbcrsbj9zy6io/openwrt-ramips-mt7620-dlink_dir-510l-squashfs-sysupgrade.bin?dl=0

Important case:
Is still both USB work?


#110

Actually, no. There is also no way of

echo "1" > /sys/class/gpio/usb_enable1/value

apparently you had to change it for the PR due to /sys/class/gpio being deprecated for ramips?

Do I have to erase all config / flash factory via emergency bootloader / just call firstboot / ..?

I will try later in the evening :smiley:

// edit: ok it works now after calling firstboot and resetting :smiley: :+1:


#111

I pushed changes. I hope, it is enough.


#112

@s_2

Could You install snapshot image and paste bootlog to wiki?

https://openwrt.org/toh/d-link/d-link_dir-510l_a1