How to add Boot and Auto Detect support in kernel?