Posted: Tue Mar 15, 2022 1:39 Post subject: R7800 Update Error
Hi,
I updated all of my routers (2x R7800 & 1x R9000) with the latest firmware (03-01-2022-r48432) using SSH.
All of them updated successfully apart from one of the R7800s, which failed with a bad block error (log below) and as a result the router was stuck in a boot loop until powered off.
I tried updating using the factory-to-ddwrt.img via TFTP with the same result aforementioned. So, I flashed the stock firmware (TFTP) and it booted up fine.
From the stock firmware, I then uploaded the latest firmware again using the Netgear firmware update utility. Same result.
After all of that, I then flashed the factory img for 02-20-2022-r48402 and that is what I'm using right now with no issues seemingly.
Could anybody explain why this might be? It flashed successfuly on my other R7800, so not sure why it did not work on both.
SSH Update Log:
Code:
root@myrouter:/tmp# write dd-wrt-webupgrade.bin linux && reboot
[flash] : Flash is NAND
[flash] : freeram=[367702016] bufferram=[7303168]
[flash] : The free memory is enough, writing image once.
[flash] : linux: CRC OK (0x834D9CEE)
[flash] : Writing image to flash, waiting a moment...
[flash] : Flash is NAND
[flash] : erase[0]
[flash] : erase[131072]
[flash] : erase[262144]
[flash] : erase[393216]
[flash] : erase[524288]
[flash] : erase[655360]
[flash] : erase[786432]
[flash] : erase[917504]
[flash] : erase[1048576]
[flash] : erase[1179648]
[flash] : erase[1310720]
[flash] : erase[1441792]
[flash] : erase[1572864]
[flash] : erase[1703936]
[flash] : erase[1835008]
[flash] : erase[1966080]
[flash] : erase[2097152]
[flash] : erase[2228224]
[flash] : erase[2359296]
[flash] : erase[2490368]
[flash] : erase[2621440]
[flash] : erase[2752512]
[flash] : erase[2883584]
[flash] : erase[3014656]
[flash] : erase[3145728]
[flash] : erase[3276800]
[flash] : erase[3407872]
[flash] : erase[3538944]
[flash] : erase[3670016]
[flash] : erase[3801088]
[flash] : erase[3932160]
[flash] : erase[4063232]
[flash] : erase[4194304]
[flash] : erase[4325376]
[flash] : erase[4456448]
[flash] : erase[4587520]
[flash] : erase[4718592]
[flash] : erase[4849664]
[flash] : erase[4980736]
[flash] : erase[5111808]
[flash] : erase[5242880]
[flash] : erase[5373952]
[flash] : erase[5505024]
[flash] : erase[5636096]
[flash] : erase[5767168]
[flash] : erase[5898240]
[flash] : erase[6029312]
[flash] : erase[6160384]
[flash] : erase[6291456]
[flash] : erase[6422528]
[flash] : erase[6553600]
[flash] : erase[6684672]
[flash] : erase[6815744]
[flash] : erase[6946816]
[flash] : erase[7077888]
[flash] : erase[7208960]
[flash] : erase[7340032]
[flash] : erase[7471104]
[flash] : erase[7602176]
[flash] : erase[7733248]
[flash] : erase[7864320]
[flash] : erase[7995392]
[flash] : erase[8126464]
[flash] : erase[8257536]
[flash] : erase[8388608]
[flash] : erase[8519680]
[flash] : erase[8650752]
[flash] : erase[8781824]
[flash] : erase[8912896]
[flash] : erase[9043968]
[flash] : erase[9175040]
[flash] : erase[9306112]
[flash] : erase[9437184]
[flash] : erase[9568256]
[flash] : erase[9699328]
[flash] : erase[9830400]
[flash] : erase[9961472]
[flash] : erase[10092544]
[flash] : erase[10223616]
[flash] : erase[10354688]
[flash] : erase[10485760]
[flash] : erase[10616832]
[flash] : erase[10747904]
[flash] : erase[10878976]
[flash] : erase[11010048]
[flash] : erase[11141120]
[flash] : erase[11272192]
[flash] : erase[11403264]
[flash] : erase[11534336]
[flash] : erase[11665408]
[flash] : erase[11796480]
[flash] : erase[11927552]
[flash] : erase[12058624]
[flash] : erase[12189696]
[flash] : erase[12320768]
[flash] : erase[12451840]
[flash] : erase[12582912]
[flash] : erase[12713984]
[flash] : erase[12845056]
[flash] : erase[12976128]
[flash] : erase[13107200]
[flash] : erase[13238272]
[flash] : erase[13369344]
[flash] : erase[13500416]
[flash] : erase[13631488]
[flash] : erase[13762560]
[flash] : erase[13893632]
[flash] : erase[14024704]
[flash] : erase[14155776]
[flash] : erase[14286848]
[flash] : erase[14417920]
[flash] : erase[14548992]
[flash] : erase[14680064]
[flash] : erase[14811136]
[flash] : erase[14942208]
[flash] : erase[15073280]
[flash] : erase[15204352]
[flash] : erase[15335424]
[flash] : erase[15466496]
[flash] : erase[15597568]
[flash] : erase[15728640]
[flash] : erase[15859712]
[flash] : erase[15990784]
[flash] : erase[16121856]
[flash] : erase[16252928]
[flash] : erase[16384000]
[flash] : erase[16515072]
[flash] : erase[16646144]
[flash] : erase[16777216]
[flash] : erase[16908288]
[flash] : erase[17039360]
[flash] : erase[17170432]
[flash] : erase[17301504]
[flash] : erase[17432576]
[flash] : erase[17563648]
[flash] : erase[17694720]
[flash] : erase[17825792]
[flash] : erase[17956864]
[flash] : erase[18087936]
[flash] : erase[18219008]
[flash] : erase[18350080]
[flash] : erase[18481152]
[flash] : erase[18612224]
[flash] : erase[18743296]
[flash] : erase[18874368]
[flash] : erase[19005440]
[flash] : erase[19136512]
[flash] : erase[19267584]
[flash] : erase[19398656]
[flash] : erase[19529728]
[flash] : erase[19660800]
[flash] : erase[19791872]
[flash] : erase[19922944]
[flash] : erase[20054016]
[flash] : erase[20185088]
[flash] : erase[20316160]
[flash] : erase[20447232]
[flash] : erase[20578304]
[flash] : erase[20709376]
[flash] : erase[20840448]
[flash] : erase[20971520]
[flash] : erase[21102592]
[flash] : erase[21233664]
[flash] : erase[21364736]
[flash] : erase[21495808]
[flash] : erase[21626880]
[flash] : erase[21757952]
[flash] : erase[21889024]
[flash] : erase[22020096]
[flash] : erase[22151168]
[flash] : erase[22282240]
[flash] : erase[22413312]
[flash] : erase[22544384]
[flash] : erase[22675456]
[flash] : erase[22806528]
[flash] : erase[22937600]
[flash] : erase[23068672]
[flash] : erase[23199744]
[flash] : erase[23330816]
[flash] : erase[23461888]
[flash] : erase[23592960]
[flash] : erase[23724032]
[flash] : erase[23855104]
[flash] : erase[23986176]
[flash] : erase[24117248]
[flash] : erase[24248320]
[flash] : erase[24379392]
[flash] : erase[24510464]
[flash] : erase[24641536]
[flash] : erase[24772608]
[flash] : erase[24903680]
[flash] : erase[25034752]
[flash] : erase[25165824]
[flash] : erase[25296896]
[flash] : erase[25427968]
[flash] : erase[25559040]
[flash] : erase[25690112]
[flash] : erase[25821184]
[flash] : erase[25952256]
[flash] : erase[26083328]
[flash] : erase[26214400]
[flash] : erase[26345472]
[flash] : erase[26476544]
[flash] : erase[26607616]
[flash] : erase[26738688]
[flash] : erase[26869760]
[flash] : erase[27000832]
[flash] : erase[27131904]
[flash] : erase[27262976]
[flash] : erase[27394048]
[flash] : erase[27525120]
[flash] : erase[27656192]
[flash] : erase[27787264]
[flash] : erase[27918336]
[flash] : erase[28049408]
[flash] : erase[28180480]
[flash] : erase[28311552]
[flash] : erase[28442624]
[flash] : erase[28573696]
[flash] : erase[28704768]
[flash] : erase[28835840]
[flash] :
Skipping bad block at 0x01b80000
[flash] : erase[28966912]
[flash] : erase[29097984]
[flash] : erase[29229056]
[flash] : erase[29360128]
[flash] : erase[29491200]
[flash] : erase[29622272]
[flash] : erase[29753344]
[flash] : erase[29884416]
[flash] : erase[30015488]
[flash] : erase[30146560]
[flash] : erase[30277632]
[flash] : erase[30408704]
[flash] : erase[30539776]
[flash] : erase[30670848]
[flash] : erase[30801920]
[flash] : erase[30932992]
[flash] : erase[31064064]
[flash] : erase[31195136]
[flash] : erase[31326208]
[flash] : erase[31457280]
[flash] : write block [0] at [0x00000000]
[flash] : write block [131072] at [0x00020000]
[flash] : write block [262144] at [0x00040000]
[flash] : write block [393216] at [0x00060000]
[flash] : write block [524288] at [0x00080000]
[flash] : write block [655360] at [0x000A0000]
[flash] : write block [786432] at [0x000C0000]
[flash] : write block [917504] at [0x000E0000]
[flash] : write block [1048576] at [0x00100000]
[flash] : write block [1179648] at [0x00120000]
[flash] : write block [1310720] at [0x00140000]
[flash] : write block [1441792] at [0x00160000]
[flash] : write block [1572864] at [0x00180000]
[flash] : write block [1703936] at [0x001A0000]
[flash] : write block [1835008] at [0x001C0000]
[flash] : write block [1966080] at [0x001E0000]
[flash] : write block [2097152] at [0x00200000]
[flash] : write block [2228224] at [0x00220000]
[flash] : write block [2359296] at [0x00240000]
[flash] : write block [2490368] at [0x00260000]
[flash] : write block [2621440] at [0x00280000]
[flash] : write block [2752512] at [0x002A0000]
[flash] : write block [2883584] at [0x002C0000]
[flash] : write block [3014656] at [0x002E0000]
[flash] : write block [3145728] at [0x00300000]
[flash] : write block [3276800] at [0x00320000]
[flash] : write block [3407872] at [0x00340000]
[flash] : write block [3538944] at [0x00360000]
[flash] : write block [3670016] at [0x00380000]
[flash] : write block [3801088] at [0x003A0000]
[flash] : write block [3932160] at [0x003C0000]
[flash] : write block [4063232] at [0x003E0000]
[flash] : write block [4194304] at [0x00400000]
[flash] : write block [4325376] at [0x00420000]
[flash] : write block [4456448] at [0x00440000]
[flash] : write block [4587520] at [0x00460000]
[flash] : write block [4718592] at [0x00480000]
[flash] : write block [4849664] at [0x004A0000]
[flash] : write block [4980736] at [0x004C0000]
[flash] : write block [5111808] at [0x004E0000]
[flash] : write block [5242880] at [0x00500000]
[flash] : write block [5373952] at [0x00520000]
[flash] : write block [5505024] at [0x00540000]
[flash] : write block [5636096] at [0x00560000]
[flash] : write block [5767168] at [0x00580000]
[flash] : write block [5898240] at [0x005A0000]
[flash] : write block [6029312] at [0x005C0000]
[flash] : write block [6160384] at [0x005E0000]
[flash] : write block [6291456] at [0x00600000]
[flash] : write block [6422528] at [0x00620000]
[flash] : write block [6553600] at [0x00640000]
[flash] : write block [6684672] at [0x00660000]
[flash] : write block [6815744] at [0x00680000]
[flash] : write block [6946816] at [0x006A0000]
[flash] : write block [7077888] at [0x006C0000]
[flash] : write block [7208960] at [0x006E0000]
[flash] : write block [7340032] at [0x00700000]
[flash] : write block [7471104] at [0x00720000]
[flash] : write block [7602176] at [0x00740000]
[flash] : write block [7733248] at [0x00760000]
[flash] : write block [7864320] at [0x00780000]
[flash] : write block [7995392] at [0x007A0000]
[flash] : write block [8126464] at [0x007C0000]
[flash] : write block [8257536] at [0x007E0000]
[flash] : write block [8388608] at [0x00800000]
[flash] : write block [8519680] at [0x00820000]
[flash] : write block [8650752] at [0x00840000]
[flash] : write block [8781824] at [0x00860000]
[flash] : write block [8912896] at [0x00880000]
[flash] : write block [9043968] at [0x008A0000]
[flash] : write block [9175040] at [0x008C0000]
[flash] : write block [9306112] at [0x008E0000]
[flash] : write block [9437184] at [0x00900000]
[flash] : write block [9568256] at [0x00920000]
[flash] : write block [9699328] at [0x00940000]
[flash] : write block [9830400] at [0x00960000]
[flash] : write block [9961472] at [0x00980000]
[flash] : write block [10092544] at [0x009A0000]
[flash] : write block [10223616] at [0x009C0000]
[flash] : write block [10354688] at [0x009E0000]
[flash] : write block [10485760] at [0x00A00000]
[flash] : write block [10616832] at [0x00A20000]
[flash] : write block [10747904] at [0x00A40000]
[flash] : write block [10878976] at [0x00A60000]
[flash] : write block [11010048] at [0x00A80000]
[flash] : write block [11141120] at [0x00AA0000]
[flash] : write block [11272192] at [0x00AC0000]
[flash] : write block [11403264] at [0x00AE0000]
[flash] : write block [11534336] at [0x00B00000]
[flash] : write block [11665408] at [0x00B20000]
[flash] : write block [11796480] at [0x00B40000]
[flash] : write block [11927552] at [0x00B60000]
[flash] : write block [12058624] at [0x00B80000]
[flash] : write block [12189696] at [0x00BA0000]
[flash] : write block [12320768] at [0x00BC0000]
[flash] : write block [12451840] at [0x00BE0000]
[flash] : write block [12582912] at [0x00C00000]
[flash] : write block [12713984] at [0x00C20000]
[flash] : write block [12845056] at [0x00C40000]
[flash] : write block [12976128] at [0x00C60000]
[flash] : write block [13107200] at [0x00C80000]
[flash] : write block [13238272] at [0x00CA0000]
[flash] : write block [13369344] at [0x00CC0000]
[flash] : write block [13500416] at [0x00CE0000]
[flash] : write block [13631488] at [0x00D00000]
[flash] : write block [13762560] at [0x00D20000]
[flash] : write block [13893632] at [0x00D40000]
[flash] : write block [14024704] at [0x00D60000]
[flash] : write block [14155776] at [0x00D80000]
[flash] : write block [14286848] at [0x00DA0000]
[flash] : write block [14417920] at [0x00DC0000]
[flash] : write block [14548992] at [0x00DE0000]
[flash] : write block [14680064] at [0x00E00000]
[flash] : write block [14811136] at [0x00E20000]
[flash] : write block [14942208] at [0x00E40000]
[flash] : write block [15073280] at [0x00E60000]
[flash] : write block [15204352] at [0x00E80000]
[flash] : write block [15335424] at [0x00EA0000]
[flash] : write block [15466496] at [0x00EC0000]
[flash] : write block [15597568] at [0x00EE0000]
[flash] : write block [15728640] at [0x00F00000]
[flash] : write block [15859712] at [0x00F20000]
[flash] : write block [15990784] at [0x00F40000]
[flash] : write block [16121856] at [0x00F60000]
[flash] : write block [16252928] at [0x00F80000]
[flash] : write block [16384000] at [0x00FA0000]
[flash] : write block [16515072] at [0x00FC0000]
[flash] : write block [16646144] at [0x00FE0000]
[flash] : write block [16777216] at [0x01000000]
[flash] : write block [16908288] at [0x01020000]
[flash] : write block [17039360] at [0x01040000]
[flash] : write block [17170432] at [0x01060000]
[flash] : write block [17301504] at [0x01080000]
[flash] : write block [17432576] at [0x010A0000]
[flash] : write block [17563648] at [0x010C0000]
[flash] : write block [17694720] at [0x010E0000]
[flash] : write block [17825792] at [0x01100000]
[flash] : write block [17956864] at [0x01120000]
[flash] : write block [18087936] at [0x01140000]
[flash] : write block [18219008] at [0x01160000]
[flash] : write block [18350080] at [0x01180000]
[flash] : write block [18481152] at [0x011A0000]
[flash] : write block [18612224] at [0x011C0000]
[flash] : write block [18743296] at [0x011E0000]
[flash] : write block [18874368] at [0x01200000]
[flash] : write block [19005440] at [0x01220000]
[flash] : write block [19136512] at [0x01240000]
[flash] : write block [19267584] at [0x01260000]
[flash] : write block [19398656] at [0x01280000]
[flash] : write block [19529728] at [0x012A0000]
[flash] : write block [19660800] at [0x012C0000]
[flash] : write block [19791872] at [0x012E0000]
[flash] : write block [19922944] at [0x01300000]
[flash] : write block [20054016] at [0x01320000]
[flash] : write block [20185088] at [0x01340000]
[flash] : write block [20316160] at [0x01360000]
[flash] : write block [20447232] at [0x01380000]
[flash] : write block [20578304] at [0x013A0000]
[flash] : write block [20709376] at [0x013C0000]
[flash] : write block [20840448] at [0x013E0000]
[flash] : write block [20971520] at [0x01400000]
[flash] : write block [21102592] at [0x01420000]
[flash] : write block [21233664] at [0x01440000]
[flash] : write block [21364736] at [0x01460000]
[flash] : write block [21495808] at [0x01480000]
[flash] : write block [21626880] at [0x014A0000]
[flash] : write block [21757952] at [0x014C0000]
[flash] : write block [21889024] at [0x014E0000]
[flash] : write block [22020096] at [0x01500000]
[flash] : write block [22151168] at [0x01520000]
[flash] : write block [22282240] at [0x01540000]
[flash] : write block [22413312] at [0x01560000]
[flash] : write block [22544384] at [0x01580000]
[flash] : write block [22675456] at [0x015A0000]
[flash] : write block [22806528] at [0x015C0000]
[flash] : write block [22937600] at [0x015E0000]
[flash] : write block [23068672] at [0x01600000]
[flash] : write block [23199744] at [0x01620000]
[flash] : write block [23330816] at [0x01640000]
[flash] : write block [23461888] at [0x01660000]
[flash] : write block [23592960] at [0x01680000]
[flash] : write block [23724032] at [0x016A0000]
[flash] : write block [23855104] at [0x016C0000]
[flash] : write block [23986176] at [0x016E0000]
[flash] : write block [24117248] at [0x01700000]
[flash] : write block [24248320] at [0x01720000]
[flash] : write block [24379392] at [0x01740000]
[flash] : write block [24510464] at [0x01760000]
[flash] : write block [24641536] at [0x01780000]
[flash] : write block [24772608] at [0x017A0000]
[flash] : write block [24903680] at [0x017C0000]
[flash] : write block [25034752] at [0x017E0000]
[flash] : write block [25165824] at [0x01800000]
[flash] : write block [25296896] at [0x01820000]
[flash] : write block [25427968] at [0x01840000]
[flash] : write block [25559040] at [0x01860000]
[flash] : write block [25690112] at [0x01880000]
[flash] : write block [25821184] at [0x018A0000]
[flash] : write block [25952256] at [0x018C0000]
[flash] : write block [26083328] at [0x018E0000]
[flash] : write block [26214400] at [0x01900000]
[flash] : write block [26345472] at [0x01920000]
[flash] : write block [26476544] at [0x01940000]
[flash] : write block [26607616] at [0x01960000]
[flash] : write block [26738688] at [0x01980000]
[flash] : write block [26869760] at [0x019A0000]
[flash] : write block [27000832] at [0x019C0000]
[flash] : write block [27131904] at [0x019E0000]
[flash] : write block [27262976] at [0x01A00000]
[flash] : write block [27394048] at [0x01A20000]
[flash] : write block [27525120] at [0x01A40000]
[flash] : write block [27656192] at [0x01A60000]
[flash] : write block [27787264] at [0x01A80000]
[flash] : write block [27918336] at [0x01AA0000]
[flash] : write block [28049408] at [0x01AC0000]
[flash] : write block [28180480] at [0x01AE0000]
[flash] : write block [28311552] at [0x01B00000]
[flash] : write block [28442624] at [0x01B20000]
[flash] : write block [28573696] at [0x01B40000]
[flash] : write block [28704768] at [0x01B60000]
[flash] : write block [28835840] at [0x01B80000]
[flash] :
Skipping bad block at 0x01b80000
[flash] : write block [28835840] at [0x01BA0000]
[flash] :
done [29097984]
There are many threads about this issue on the R7800/XR500. Unfortunately, bad blocks seem to be fairly common on these. The bad blocks are skipped during flashing. RootFS ends up at a slightly different location than expected and cannot be mounted. The result is a kernel panic and the bootloop you mentioned. There isn't currently a workaround on DD-WRT. There are guides for getting OpenWRT working on affected devices over on their forum. _________________ Current devices:
XR500 - gateway
5x R7500v2 - AP
OpenMediaVault server for tailscale, SMB, & Emby