Well, if hardware and partitions are the same - I do not see why it will not work. However, it will not help to flash.

I might try to compile twrp, but will have to carefully read its docs first.