Prepare init code for serial board