How to identify the original openwrt's flash image?

hello

i have been given a router few days ago, with an already openwrt running on it.
i can see with /etc/banner the version.
i can see the board and cpu with dmesg and /proc/cpuinfo
but i dont know how to check both the RamMB/FlashMB..
i dont know neither how to know what exact file image was used from download.openwrt.org?
is there a trick to identify what image was used to put openwrt on it?
it's much more regarding officially unsupported routers, where a nerd looks like to get working successful openwrt on a board, booting-up and starting well until openwrt started well.

problem is, i have to test several releases of openwrt, but i dont know which one in downloads to test, as i'd like to get this information from within the openwrt?

thank you

A lot of information comes from here:

ubus call system board

What is the output from that?

You can also get info about memory and storage from this:

free
df -h
mount
1 Like

The date is set to the commit date/time of the last commit. That is the normal default behaviour. See Revision Number

Please be aware that it might be a manufacturer-supported fork of OpenWrt, not the real thing. So, the "exact file image from downloads.openwrt.org" might not even exist.

1 Like

That’s very true, but most of the manufacturer-supported forks seldom populate the revision info in ubus call system board.

With no revision value supplied, git log will just log the
HEAD of whatever branch/br-Snapshot/Main you’re building from. Entering a bogus OpenWrt commit hash git log bogus_commit_hash will return the same.

1 Like

Can’t we just save time and you say what router model you are dealing with?

It should be in plain text on a sticker probably underneath the router.

4 Likes