Uboot web recovery access problem Dlink DIR842

Hi folks. I don't posses the internet searching skills to solve this problem, so I'm asking you for some directions.

I was trying to install openwrt onto a Dlink DIR 842 C1, but wasn't able to reach the recovery web form after powering up with the rese button pressed.

The browser i used was IE11 on win7 and Firefox 113.0.2 (64-bit) on Ubuntu and got no response whatsoever. The switch led blinks but there is zero Rx packet registered by my pc's NIC.

By the way, the router works fine with its firmware.

Here is the U-boot output from the onboard serial:

Reset button held while during powerup, until power led starts blinking

U-Boot 1.1.4 (Feb 14 2017 - 10:15:54)

SVN revision: 1372
ap152 - Dragonfly 1.0DRAM:  
sri
ath_ddr_initial_config(278): (ddr2 init)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Tap values = (0xf, 0xf, 0xf, 0xf)
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 236k for U-Boot at: 87fc4000
Reserving 192k for malloc() at: 87f94000
Reserving 44 Bytes for Board Info at: 87f93fd4
Reserving 36 Bytes for Global Data at: 87f93fb0
Reserving 128k for boot params() at: 87f73fb0
Stack Pointer at: 87f73f98
Now running in RAM - U-Boot at: 87fc4000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Power up PLL with outdiv = 0 then switch to 3
In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200 
athr_mgmt_init ::done
Dragonfly  ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x4b962100
Hit any key to stop autoboot:  0 
Reset button pressed

Emergency web server start......IP is 192.168.0.1 

Trying eth0
eth0 link down
FAIL
Press 'ctrl+c' to quit.

Maybe this FAIL shouldn't be here. But if you can help me interpret this, then please do so.

I wanted to add a normal startup log, but was limited by post length, i could split it up per request.

Thank you in advance. If you can't help me directly but steer me towards a plausible solution that would be helpful too.

the original pull request says you can do it via the normal firmware update
but there is a bit more involved you have to read
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=030fc6ab6cc1f4982809b65edf9c874d9117cd1f

as for the failsafe interface
did you set your pc's ip to 192.168.0.2
disable he firewall
and try connecting to 192.168.0.1

with normal firmware update for the factory.bin found at https://openwrt.org/toh/d-link/dir-842 the interface responds "Firmware Upgrade failed!"

If I try with the failsafe option, there is no response from the router. Here you can see the disabled firewall, the configured static ip, and the default route. But there is no incrementing RX count if i try to load the form with Firefox nor with curl.

notram@DESKTOP-5511:~$ sudo ifconfig eno1 192.168.0.2 netmask 255.255.255.0
notram@DESKTOP-5511:~$ sudo ifconfig eno1
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::f21f:afff:fe2d:afe3  prefixlen 64  scopeid 0x20<link>
        ether f0:1f:af:2d:af:e3  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 153  bytes 17065 (17.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7900000-f7920000  

notram@DESKTOP-5511:~$ ip r
default via 192.168.0.1 dev eno1 
notram@DESKTOP-5511:~$ sudo ufw status
Status: inactive
notram@DESKTOP-5511:~$ curl 192.168.0.1
curl: (7) Failed to connect to 192.168.0.1 port 80: No route to host
notram@DESKTOP-5511:~$ sudo ifconfig eno1
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::f21f:afff:fe2d:afe3  prefixlen 64  scopeid 0x20<link>
        ether f0:1f:af:2d:af:e3  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 224  bytes 23630 (23.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7900000-f7920000

on my DIR-825-B1 I have to use an copy of Netscape navigator
on windows 10 to upload the firmware to work
I'm sure the page comes up in modern browsers but fails

I do also know on the DIR-878-A1 & DIR-1960-A1 you can't use linux
only really work under windows tho lots keep trying
I use Firefox in Private mode "no cache" on those models

I'll leave it to someone who has that specific model

Thank you Lucky1, Netscape solved my problem and I was able to access the failsafe Uboot upgrade form.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.