Diagnostic routines to test linux device