Modified version of adam2flash.pl to automate flashing a DSL-502T
|Reported by:||oliver@…||Owned by:||developers|
I have modified scripts/adam2flash.pl to handle flashing a D-Link DSL-502T in one step.
It handles modifying mtd1 as needed, and recognizes both OpenWRT and D-Link firmware and chooses an appropriate mtd1 value for them. It also flashes to MTD4, not MTD1+MTD0 as the original did (on the 502T, mtd1 is not erase-block-aligned with the default layout so you cannot write to it; mtd4 covers the entire "safe to flash" area and is correctly aligned)
These changes may be useful for other D-Link devices that use ADAM2, but I only have a 502T to test on so I've kept it as a separate script for now.