Hi,
We have a few devices (RUT950) which have the mtd1 config partition corrupted (mostly “FF” at every byte). Which has a direct consequence that MAC-addresses for interfaces will get randomly generated instead of using the documented/fixed value. This cases lots of issues in our environment and needs to be corrected.
root@dev1:~# hexdump -C /dev/mtd1
00000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00000070 ff ff ff ff 7f 71 fc 30 ff ff ff ff 7f c2 5f 50 |.....q.0......_P|
00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00010000
After comparing other devices in our environment with correct values in their mtd1-partition, we’ve identified mostly which fields should contain what information (mac-address, model-no, serial, batch-no, wifi-pw,admin-pw-hash). But there are some data we don’t understand exactly what it is, or what it should be.
We’ve successfully tested erasing and rewriting the data onto the flash storage via /sbin/mtd on test-devices, but we want to make sure to get all the fields correct, before deploying to production devices.
I’ve seen several other posts in this forum regarding this issue, and all seem to have had help via “remote support”. This option is not available for us, due to the environment our devices are located in, so we’d like to fix it ourself.
I’ve not found relevant documentation regarding this on your site.
Can you please provide a format-specification of the data-layout in the mtd1 / config partition for us?