If you have a net-dimm you can flash to 4.01 using a pi or windows transfer program and the flash up to 4.02 ( some reccomend you dont go directly to 4.02). No point going to 3.1x.
I tried updating a 1.x by reprogramming the few chip but it bricked the dimm and there is a thread on arcade project where people were having issues with old versions of the dimm being bricked when updating to 4.x.