1. Current Location: Home >  Router Encyclopedia >  What is the difference between router flash memory and memory? The night I couldn't install the plugin while flashing OpenWrt, I completely distinguished between the two

What is the difference between router flash memory and memory? The night I couldn't install the plugin while flashing OpenWrt, I completely distinguished between the two

Differences between router flash storage and memory: comparing storage and tablets, symptoms of insufficient flash storage versus insufficient memory, and three levels of purchase configuration recommendations

Last week,

helped a friend tinker with an old TP-LINK, hoping to flash OpenWrt into it as a bypass router. I downloaded the firmware smoothly, but halfway through the flashing tool progress bar, a line popped up saying "Not enough space." We were both stunned: Isn't this router labeled 128M? How did it have insufficient space?

later realized that this model is an older model with 16MB flash storage. The firmware I installed is the "full-function version" designed for 128MB flash machines, so it's normal that it can't fit. It was also that night that I completely distinguished between flash memory and memory. Write it down for others who are just as confused.

to get straight to the point: flash memory is a warehouse, memory is a cutting board

router does completely different jobs for these two chips; the kitchen at home is the most intuitive analogy.

flash memory is a warehouse. The router's firmware file, the plugins you installed later, the WiFi name and password you changed—all in the full code. Its biggest feature is that it doesn't lose power — just unplug and plug it in, and everything in the warehouse remains intact.

memory is the cutting board. When the CPU is working, it moves the data to be processed from the warehouse to the cutting board for cutting, and the used temporary data is left there. The feature of the cutting board is that when the power is off, it forgets — if you restart the router, all devices reconnect and the ledger is re-recorded, which is exactly the principle. Every connected phone, TV, or robot vacuum occupies a space in memory. I previously calculated router memory capacity that article.

so don't be swayed by the marketing hype when looking at the specs. Some product pages mention "16MB large capacity storage," referring to flash storage, which has nothing to do with RAM. The two names differ by just one character, but the matters they manage are worlds apart.

my crash: installed the wrong firmware for the wrong "rice load"

back to that old TP-LINK. After checking the label on the back and the official specs, I confirmed that its entire setup is 16MB flash memory paired with 64MB of RAM. This configuration was mainstream around 2014.

the firmware I downloaded clearly had a download page labeled "128M flash model only," so I didn't look closely. The firmware with the full set of plugins is aimed at 20MB, and the 16MB warehouse simply can't fit it. The flashing tool was lucky—it stopped automatically because it showed insufficient space halfway through writing. If you run into a machine that doesn't check and tries to force it in, restarting will only show a red light and stay on steadily. In that case, you need to follow the steps to save the bricks. Previously, I wrote OpenWrt you must check before flashing, and the steps for derailing the derailment bricks are a safety net for such situations.

Since then, I always do one thing before flashing: first check how many MB of flash memory this machine has, then go to the firmware download page and check "Applicable Capacity." OpenWrt machines often have two or three versions on the same machine—the Lite version gives 4MB or 8MB of small flash memory, the Standard version gets 16MB, and the full-featured version gets 128MB. The small text on the download page is much more important than the firmware version number.

insufficient flash memory and insufficient memory are two completely different symptoms

these two "not enough" behaviors on the router, I tested each one and compared them to remember them clearly:

where is it lacking typical your current actions
insufficient flash memory plugin errors during installation, failed configuration saving, firmware flash fails remove plugins to make space, or switch to a simplified firmware version
insufficient memory devices will disconnect or cast in circles, then restart and clear the device list again or switch to a larger memory machine

I've experienced both. The first time was when a friend's OpenWrt plugin was installed. When I installed it on Docker, it gave an error and exited. After checking, the /overlay was less than 1MB left, indicating the flash memory was full; Another time, at home, the Xiaomi router works fine during the day, but at seven or eight in the evening, the TV casts and spins, the camera drops at once, and a restart fixes it. This is typical when memory is fully consumed by the connection count during the evening rush hour. Both are 'lag'—one wants to delete things, the other needs to reduce load. If you use the prescription backwards, it's just wasted effort.

pay attention to the detail of "restarting and everything goes smoothly": restarting is just clearing the ledger in memory and starting over—it's a temporary fix, not the root cause. With fifty or sixty smart devices at home filling up the memory, the reboot method takes less than two days, and disconnections keep dropping when needed. In that article How many devices can Xiaomi routers connect at most I made 62 of them slimmed down, essentially to reduce memory load.

how do you check how big these two types of your router are

are divided into three types, ranging from easy to troublesome:

    For machines
  • factory firmware: go to the background and check 'About This Machine' or 'System Status'; some will directly label it; If it's not listed, go to the product details page and look for 'hardware specifications.' It will be written as 'MT7981 + 256MB DDR3 + 128MB flash memory,' with the two numbers after the plus sign representing memory and flash memory.
  • the OpenWrt machine: ssh enters and just enters with two commands to get it. Free -m depends on memory, focusing on the total line; df -h checks the flash memory, focusing on the overlay line, which shows how many plugins you can still install; If you want to see the original partition table, add another cat /proc/mtd line;
  • Xiaomi phones that don't open the backend: if the official specs page doesn't show it, just search for teardown posts. On photos taken by players of the board, the silkscreen models of both chips can be recognized.

customer service also has some tricks when asking: "How much RAM is there?" Don't just ask "How much memory is there"—otherwise, I've actually encountered situations where 16MB flash is being used to evade you.

the flash is full, don't rush to reflash the machine

those who have flashed OpenWrt have probably encountered this: plugins are installed, /overlay space runs out, and configuration saves start causing errors. Don't rush to restore the factory just yet; here are three simple methods to try in order:

First, remove the plugin to make space. Open the management interface and uninstall all the unnecessary plugins one by one. Each is just a few MB, and the freed-up space is instantly visible. My machine removed three plugins, and the remaining space went from 4% back to 41%.

second, replace with a simplified firmware version. The machine is still the same one, but the firmware has been changed from the full suite to the simplified version, saving about half the space, but at the cost of missing some features.

third, extend the USB drive to extend capacity and transfer the system to the USB drive. This trick can help you in emergencies, but I don't recommend it for beginners: if you pull out a USB drive, the whole machine crashes, and low-quality USB drives often drop speeds or drive drops. Trying to save trouble ends up setting yourself in the dark.

a quick reminder: flash memory does have a write lifespan. Frequent firmware upgrades and scheduled restarts every day require daily flash write-in operations. Be careful. I have written about switching automatic upgrades to manual in the whether to open firmware automatic upgrades. Don't set scheduled restarts to once a day; once a week is enough.

how to equip a router with these two things

when it comes to shopping, you can use this machine according to your plan

you don't flash your device and use the original firmware until retirement, whether the flash is 8MB or 16MB doesn't really matter. The factory firmware has already calculated it for you, so 128MB or more of RAM is fine. In this range, you can pick any 200-yuan machine from a major brand.

want to install a few plugins and do a bit of effort, 16MB flash is the minimum requirement; ideally, 128MB is best, and RAM should be at least 256MB. The Xiaomi AX3000T is a typical example of this setup: 256MB RAM plus 128MB flash storage, so flashing lightweight firmware and installing seven or eight plugins is no problem.

hardcore users start with 128MB flash plus 512MB of RAM, or just go for the N100 soft router—memory is measured in GB, firmware can be tinkered with however you like, and whether soft router is a waste of money The three types of people in that article are suitable, and the first is that you don't need these two.

to wrap things up: flash memory determines how much the machine can hold, and memory determines how much it can do simultaneously. Neither directly determines the internet speed. Next time you look at the configuration sheet, try to separate these two numbers—you'll be clearer than most buyers.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《What is the difference between router flash memory and memory? The night I couldn't install the plugin while flashing OpenWrt, I completely distinguished between the two
Article URL: https://www.shunot.com/en/lybk/842.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow