How to upgrade firmware from 3.x to 4.x