I am attempting to root my old XT907 before I give it to a friend and I am somewhat confused on which software versions Cyanogenmod works with. The Razr M I have is at system version 98.16.3 with the option to upgrade to 98.30.1. The build number is 9.8.1Q-78-1. The Cyanogenmod wiki says that Cyanogenmod can only be accomplished on firmware versions prior to 9.20.1, but there are also articles saying that the phone can not be rooted on Android 4.1.2 (which I currently have). Should I update to 98.30.1 or stay at the current version?
EDIT: I am familiar with the overall root and custom ROM process, but I only have experience with Samsungs so far (I have rooted and put CM on a Fascinate and a GS3). I have worked with Odin, adb, CWM, and TWRP, but not SafeStrap or some of the other non-Samsung utilities, so please excuse my illiteracy concerning Motorola rooting and custom ROMs.