Netgear R7800 - only 19MB Flash available?

Not exactly :slight_smile: Many users looking on flash capacity when searching new router (as me) to avoid extroot. So if You get 19 instead 100MB, there is something that makes You searching deeper. Believe me, there are many users that use firmware with expanded flash not default in LEDE, especially on Netgears. The only way is custom build. So, make backup and free Your router :smile:

So even if the 128MB flash available to one. Is there any firmware that can take advanatage. Like say PFSENSE is almost an OS. A mini version of it.

LEDE? :smile: It's a comlete system with bunch of packages. You can do what You want - it's clean Linux. If there's something missing, You could write Your own program/package/script. It's flexible and open. And that's why You need as much flash as possible to avoid extroot.

If You use minimal image even 8MB flash will be enough, but try to use more services, install packages and popular 16MB is not enough.
As routers're going more and more powerful why should we be limited to basic services? Todays routers are like servers in not-so-far past: compare R7800 to i.e. basic Sun SparcStation II :slight_smile:

I made the DTS changes as mentioned in the second post and compiled using hnymans build environment and its working for me now.

So cezary when is the next snapshot build due?. Are there some interesting changes?

@avx seing that it worked for you, i've done the same and yep it works nicely. I've also restored the mtdblock backups @Wally recommended doing prior modifying the DTS to see if i could go back to OEM firmware and it also works.

I find @hnyman's build very interesting, and i think i'll stick with this one.

Wally mentions writing the partitions back from backup to return to stock but I found a simple tftp flash to stock got me back and my settings are automatically restored, so no need to setup up again in stock firmware. But yeah, still best to keep a backup of the partitions in case something goes wrong or gets corrupted.

TFTP always work - this is the beauty of R7800 :wink: You can't softbrick it. You can flash OFW without restoring backup, it will work but some things could be missed, I didn't tested everything but looking at partiton dump I saw some strings related to languages, settings etc. I suggest restore to get state as before modification. Just in case.

1 Like

You could restore back to ofw because even you remapped partitions, data there has not been overwritten yet. If you fill up your nand flash then you may have troubles coming back.

True, thanks for the replies guys. Still learning, I'm still a noob :blush:.

@dissent1 you're right, but it's true only if You dont use storage (any kind). So flash modified, check, flash OFW, check. In any other case when You use storage You don't have any control where data is written (phisical sector): it could be written on begining or in any place that was marked as less used. So if You want to mitigate problems, always restore orginal (removed) partitions from backup before flashing OFW. Just in case...

I made some changes to partition layout (on 18.06) - I've removed netgear and reserved partitions. Looks like second one contains some language files for OEM interface but if I remember they are downloaded after first login. of course I made binary backup of these (in fact all mtds) partitions.

Could someone check if these changes are correct:

                    kernel@1480000 {
                        label = "kernel";
                        reg = <0x1480000 0x0400000>;

                    ubi@1880000 {
                        label = "ubi";
                        reg = <0x1880000 0x6780000>;

                    firmware@1480000 {
                        label = "firmware";
                        reg = <0x1480000 0x6B80000>;

The utilisation of Netgear partition got committed into master a few hours ago.
Now there should be 68 MB more space by default.

Hopefully the same will get backported to 18.06.

1 Like

is there any chance we could get this done for the D7800 too?

Perhaps, but it will need a lot more attention to detail before claiming it 'safe' (as the netgear partition might contain crucial information for the included VDSL modem).

ah, i was wondering about that. unfortunately the D7800 that i have access to is in my parents' house on the other side of the world (literally). even sysupgrade is a bit of a fraught experience (did not add my cron scripts to reinstall openvpn to the persisted config, and i forgot about ddns anyway), cannot imagine trying to get mum to TFTP upgrade it will be very practical :joy_cat:!

in any case, i assume this is the procedure to follow if i want to do a full backup (in case i do attempt the process at some point):

No, that works only for spi-nor flash, while yours comes with NAND flash (which needs nanddump/ nandwrite to deal with the badblock information).

Hi @hnyman, this solution would work for an Unifi AC Mesh?

That would be something for you to find out, it depends on the OEM partitioning, what's going to be lost when resizing partitions and if the OEM firmware can still recreate the overwritten bits and pieces. You will need to get very familiar with contents and purpose of the relevant partitions, find out how exactly the OEM firmware behaves in the absence of its expected contents there - and then determine if something like that might be safe to do, or not.

The only safe answer is 'no', for any other answer, you have to do the digging and development.

Any specific reason why you bump a 4 y.o thread, just to get the same reply as you got in your own ?