m7-common: common init