XR500 just bricks how do i install?

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12904
Location: Netherlands

PostPosted: Fri Nov 05, 2021 10:45    Post subject: Reply with quote
There have been spurious reports of the same with R7800 this was due to bad sectors in the flash ram (see the R7800 install guide)

If you can return the router

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Sponsor
gnorkill
DD-WRT Novice


Joined: 03 Nov 2021
Posts: 6

PostPosted: Fri Nov 05, 2021 10:53    Post subject: Reply with quote
great, read that already. but for me it makes not much sense that stock firmware is working when there are bad sectors on the memory... anyway router is going back to amzn.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12904
Location: Netherlands

PostPosted: Fri Nov 05, 2021 11:06    Post subject: Reply with quote
When firmware is made the compiler has no knowledge of bad sectors but the first part of the boot firmware has to be written on a known good flash part otherwise it will not run

The Netgear firmware (the first part of the boot process) is either smaller or has knowledge about bad blocks and works around that

Theoretically if you know the bad sectors you can compile firmware which skips this sectors.
On OpenWRT they have instructions to do that for OpenWRT but it is extremely complicated

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
gnorkill
DD-WRT Novice


Joined: 03 Nov 2021
Posts: 6

PostPosted: Fri Nov 05, 2021 11:43    Post subject: Reply with quote
@egc, thanks for the explanation. ordered another xr500, when arrived i will test the second one. thumbs pressed.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12904
Location: Netherlands

PostPosted: Fri Nov 05, 2021 11:45    Post subject: Reply with quote
Good luck keep us posted Smile
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
mwbuss8
DD-WRT Guru


Joined: 23 Feb 2015
Posts: 751

PostPosted: Fri Nov 05, 2021 11:53    Post subject: Reply with quote
Watching the serial output while booting stock fw will identify the bad blocks. Mine were the same as the openwrt guide. My 2nd flashed via GUI without issues. I haven't tried compiling myself to avoid them, as I'm not prepared to dive in that deep.
gin-n-tonic
DD-WRT User


Joined: 30 Jun 2014
Posts: 61
Location: California

PostPosted: Fri Nov 05, 2021 19:31    Post subject: Reply with quote
If you can't return the router, you could try the procedure described on the Openwrt forum. No build or compiling required, but you do need to edit a binary file.

As I understand it, there are two sections in the factory.img file, the kernel and the rootfs, separated by padding with zeroes. The install expects the rootfs to be at a specific memory location. Bad blocks will push the rootfs into the wrong spot. Determine the number of bad blocks ( dmseg | grep bad ) and the block size (128k?). Remove that amount of zero padding between the kernel and rootfs, and you are good to go.

See https://forum.openwrt.org/t/r7800-flashing-openwrt-causes-bootloop-bad-block-in-kernel-area/49608/17, in particular the comments by @mk24 and @hnyman, for details and a better explanation.

I can not vouch for this procedure, as my XR500 did not have any bad blocks and egc's R7800 install procedure went without any problems.
gnorkill
DD-WRT Novice


Joined: 03 Nov 2021
Posts: 6

PostPosted: Fri Nov 05, 2021 19:43    Post subject: Reply with quote
egc wrote:
Good luck keep us posted Smile

i will, i've been familiar with wrt (openwrt and dd-wrt) since 2006 starting with FON2100 going over several other devices, never had issues like that.

next time i will hook up my serial console and look deeper into it.
mwbuss8
DD-WRT Guru


Joined: 23 Feb 2015
Posts: 751

PostPosted: Fri Nov 05, 2021 19:56    Post subject: Reply with quote
gnorkill wrote:
egc wrote:
Good luck keep us posted Smile

i will, i've been familiar with wrt (openwrt and dd-wrt) since 2006 starting with FON2100 going over several other devices, never had issues like that.

next time i will hook up my serial console and look deeper into it.


Post updates if you do. I identified the bad blocks on mine to confirm the issue, but wasn't ready to invest the time figuring out how to work around them. Since my bad blocks matched those in the Open-wrt forum, I've wondered if others are the same as well, and if skipping these blocks on unaffected devices would cause issues. If not problematic, could the fix be incorporated into the official builds (if the bad blocks are indeed in the same place)?
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6445
Location: UK, London, just across the river..

PostPosted: Fri Nov 05, 2021 20:20    Post subject: Reply with quote
i believe, bad blocks marking was implemented in the new age DDWRT firmwares...already...
if im not wrong... Rolling Eyes

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
mwbuss8
DD-WRT Guru


Joined: 23 Feb 2015
Posts: 751

PostPosted: Sat Nov 06, 2021 7:19    Post subject: Reply with quote
Alozaros wrote:
i believe, bad blocks marking was implemented in the new age DDWRT firmwares...already...
if im not wrong... Rolling Eyes

If it has been implemented, it's not working correctly on these devices. The serial console shows no attempt of DD-WRT skipping the bad blocks. It with the stock firmware.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12904
Location: Netherlands

PostPosted: Sat Nov 06, 2021 7:42    Post subject: Reply with quote
I do not know if it works but I think you first have get it to run before it can detect bad blocks and that is just the point you cannot get it to run Sad

So if you already have it running then it might detect bad blocks which are surfacing on subsequent upgrades?

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
mwbuss8
DD-WRT Guru


Joined: 23 Feb 2015
Posts: 751

PostPosted: Sat Nov 06, 2021 8:25    Post subject: Reply with quote
egc wrote:
I do not know if it works but I think you first have get it to run before it can detect bad blocks and that is just the point you cannot get it to run Sad

So if you already have it running then it might detect bad blocks which are surfacing on subsequent upgrades?


So if I edit the factory to DD-WRT file and get it running, the upgrade files should work. Is this correct? I'm more likely to give it a try at some point if I don't need to edit files for each upgrade as well. It's currently doing well as my primary router on DumaOS. Hybrid VPN has been decent once I figured out it's quirks. I'd love have ad blocking back though, and using vlans to have a separate VPN network across all APs makes connecting devices to the VPN extremely easy.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12904
Location: Netherlands

PostPosted: Sat Nov 06, 2021 8:40    Post subject: Reply with quote
mwbuss8 wrote:
egc wrote:
I do not know if it works but I think you first have get it to run before it can detect bad blocks and that is just the point you cannot get it to run Sad

So if you already have it running then it might detect bad blocks which are surfacing on subsequent upgrades?


So if I edit the factory to DD-WRT file and get it running, the upgrade files should work. Is this correct? I'm more likely to give it a try at some point if I don't need to edit files for each upgrade as well. It's currently doing well as my primary router on DumaOS. Hybrid VPN has been decent once I figured out it's quirks. I'd love have ad blocking back though, and using vlans to have a separate VPN network across all APs makes connecting devices to the VPN extremely easy.


I think/hope so, so if you get it to run with the trick described on OpenWRT it should upgrade again.

Please let me know if that indeed works when you try it

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
mwbuss8
DD-WRT Guru


Joined: 23 Feb 2015
Posts: 751

PostPosted: Sat Nov 06, 2021 8:47    Post subject: Reply with quote
egc wrote:
mwbuss8 wrote:
egc wrote:
I do not know if it works but I think you first have get it to run before it can detect bad blocks and that is just the point you cannot get it to run Sad

So if you already have it running then it might detect bad blocks which are surfacing on subsequent upgrades?


So if I edit the factory to DD-WRT file and get it running, the upgrade files should work. Is this correct? I'm more likely to give it a try at some point if I don't need to edit files for each upgrade as well. It's currently doing well as my primary router on DumaOS. Hybrid VPN has been decent once I figured out it's quirks. I'd love have ad blocking back though, and using vlans to have a separate VPN network across all APs makes connecting devices to the VPN extremely easy.


I think/hope so, so if you get it to run with the trick described on OpenWRT it should upgrade again.

Please let me know if that indeed works when you try it

It'll probably be a while before I get a chance to try, but I'll definitely post when/if I do. Fortunately, it's pretty easy to open, so I can see what's happening via serial. Last time I tried serial was the only way I could boot into recovery mode anyway.
Goto page Previous  1, 2, 3, 4, 5, 6  Next Display posts from previous:    Page 3 of 6
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum