This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm3730 android usb

Hi ,

I'm trying to use a usb as external flash for exporting files from android.

i configured the kernel for USB but still getting:

D/Vold    (   62): usb_configuration switch is not enabled in the kernel.


In addition every time i'm using the usb class of the google api add-on (for android-10) the system crashes:

I/dalvikvm(  447): Could not find method com.android.future.usb.UsbManager.getInstance, referenced from method xx.export.WriteXMLFile.doInBackground
W/dalvikvm(  447): VFY: unable to resolve static method 18945: Lcom/android/future/usb/UsbManager;.getInstance (Landroid/content/Context;)Lcom/android/future/usb/UsbManager;
D/dalvikvm(  447): VFY: replacing opcode 0x77 at 0x00e6
D/dalvikvm(  447): VFY: dead code 0x00e9-012c in Lnatus/export/WriteXMLFile;.doInBackground ([Ljava/lang/String;)Ljava/lang/String;
D/dalvikvm(  285): GC_CONCURRENT freed 519K, 47% free 3857K/7175K, external 1488K/1828K, paused 3ms+7ms
E/WriteXMLFile(  447): Field is null. Ignoring...
E/WriteXMLFile(  447): Field is null. Ignoring...
E/WriteXMLFile(  447): Field is null. Ignoring...
E/WriteXMLFile(  447): Field is null. Ignoring...
E/WriteXMLFile(  447): Field is null. Ignoring...
W/dalvikvm(  447): threadid=11: thread exiting with uncaught exception (group=0x401dd560)
E/AndroidRuntime(  447): FATAL EXCEPTION: AsyncTask #1
E/AndroidRuntime(  447): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime(  447):     at android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime(  447):     at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
E/AndroidRuntime(  447):     at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
E/AndroidRuntime(  447):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
E/AndroidRuntime(  447):     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
E/AndroidRuntime(  447):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
E/AndroidRuntime(  447):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
E/AndroidRuntime(  447):     at java.lang.Thread.run(Thread.java:1019)
E/AndroidRuntime(  447): Caused by: java.lang.NoClassDefFoundError: com.android.future.usb.UsbManager
E/AndroidRuntime(  447):     at xx.export.WriteXMLFile.doInBackground(WriteXMLFile.java:262)
E/AndroidRuntime(  447):     at xx.export.WriteXMLFile.doInBackground(WriteXMLFile.java:1)
E/AndroidRuntime(  447):     at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/AndroidRuntime(  447):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
E/AndroidRuntime(  447):     ... 4 more

there are no problems when compiling, also I've  added "android.hardware.usb.host.xml" to /system/etc/permissions.

also in the manifest i've added <uses-feature android:name="android.hardware.usb.host" />.

if adding  <uses-library android:name="com.android.future.usb.accessory" /> then the app doesn't load.

any help appreciated.

  • Hi Shlomi,

    As I saw the same post in the DM37x forum again I'll try to investigate the issue. Could you give information about Android version, which release and which kernel version you are using? Have you made some USB related changes in the kernel?

    BR
    Tsvetolin Shulev
  • HI,

    the Android is 2.3.4 gingerbread, kernel 3.0.8.

    Here is my config file for the kernel.

    thanks allot,dm3730_logic_android_defconfig.zip

  • Shlomi,

    Please provide kernel logs to analyze what happens in your kernel when you plug your
    flash drive. It should be enumerated as an USB device and mass storage class driver should export a drive.
    Once that's done and you are able to mount it manually using shell you can continue the investigation.
    Please provide the both logcat and dmesg.

    BR
    Tsvetolin Shulev
  • Here are the logs.

    it seems the only usb event i see is when i plug in the usb cable to my pc for adb.

    before that i plugged in a usb flash several times but i cant see any reference for those events..

    thank,

    shlomi.3414.dmesg.log

    --------- beginning of /dev/log/main
    I/DEBUG   (   64): debuggerd: May  7 2015 11:37:07
    I//system/bin/sgx/rc.pvr(   56): /dev/mem opened.
    I//system/bin/sgx/rc.pvr(   56): Memory mapped at address 0x40199000.
    I//system/bin/sgx/rc.pvr(   56): Value at address 0x48004B48 (0x40199b48): 0x3
    I//system/bin/sgx/rc.pvr(   56): Written 0x2; readback 0x2
    I//system/bin/sgx/rc.pvr(   56): /dev/mem opened.
    I//system/bin/sgx/rc.pvr(   56): Memory mapped at address 0x4022d000.
    I//system/bin/sgx/rc.pvr(   56): Value at address 0x48004B10 (0x4022db10): 0x0
    I//system/bin/sgx/rc.pvr(   56): Written 0x1; readback 0x1
    I//system/bin/sgx/rc.pvr(   56): /dev/mem opened.
    I//system/bin/sgx/rc.pvr(   56): Memory mapped at address 0x400ba000.
    I//system/bin/sgx/rc.pvr(   56): Value at address 0x48004B00 (0x400bab00): 0x0
    I//system/bin/sgx/rc.pvr(   56): Written 0x2; readback 0x2
    I//system/bin/wifi/rc.wifi(   59): nl80211 not found.
    --------- beginning of /dev/log/system
    I/Vold    (   62): Vold 2.1 (the revenge) firing up
    D/Vold    (   62): USB mass storage support is not enabled in the kernel
    D/Vold    (   62): usb_configuration switch is not enabled in the kernel
    D/Vold    (   62): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/Netd    (   63): Netd 1.0 starting
    I//system/xbin/pointercal_setup(   58): rm failed for /system/usr/idc/*, No such file or directory
    I//system/xbin/pointercal_setup(   58): *** Missing /system/etc/pointercal-16 ***
    I/logwrapper(   58): /system/xbin/pointercal_setup terminated by exit(1)
    I//system/xbin/hw_setup(   57): actualsize=80227
    I//system/xbin/hw_setup(   57): size is under 2000000 bytes
    I//system/xbin/hw_setup(   57): /proc/last_kmsg: No such file or directory
    I/logwrapper(   57): /system/xbin/hw_setup terminated by exit(1)
    I//system/bin/sgx/rc.pvr(   56): Loaded PowerVR consumer services.
    I/logwrapper(   56): /system/bin/sgx/rc.pvr terminated by exit(0)
    D/AndroidRuntime(   68): 
    D/AndroidRuntime(   68): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
    D/AndroidRuntime(   68): CheckJNI is ON
    I/        (   82): ServiceManager: 0xad50
    D/LogicPDALSAModule(   82): TI ALSA module opened
    D/LogicPDALSAModule(   82): Initializing devices for TI ALSA module
    I/CameraService(   82): CameraService started (pid=82)
    D/AudioHardwareALSA(   82): openOutputStream called for devices: 0x00000002
    D/LogicPDALSAModule(   82): open called for devices 00000002 in mode 0...
    D/dalvikvm(   68): creating instr width table
    I/LogicPDALSAModule(   82): Initialized ALSA PLAYBACK device default
    I/AudioFlinger(   82): AudioFlinger's thread 0x35f68 ready to run
    D/LogicPDALSAModule(   82): route called for devices 00000002 in mode 0...
    E/AudioHardwareALSA(   82): CALLING STANDBY
    I//system/bin/wifi/rc.wifi(   59): Loaded WiFi Base modules.
    I/SamplingProfilerIntegration(   68): Profiler is disabled.
    I/Zygote  (   68): Preloading classes...
    D/dalvikvm(   68): GC_EXPLICIT freed 47K, 78% free 233K/1024K, external 0K/0K, paused 7ms
    D/dalvikvm(   68): GC_EXPLICIT freed 1K, 73% free 283K/1024K, external 0K/0K, paused 2ms
    D/dalvikvm(   68): GC_EXPLICIT freed 20K, 70% free 316K/1024K, external 0K/0K, paused 2ms
    I/bluetooth_ScoSocket.cpp(   68): Entry name = MY-CAR ScoTypes = 0x7f
    I/bluetooth_ScoSocket.cpp(   68): Entry name = Motorola HF850 ScoTypes = 0x7
    D/dalvikvm(   68): GC_EXPLICIT freed 17K, 66% free 354K/1024K, external 0K/0K, paused 2ms
    D/dalvikvm(   68): GC_EXPLICIT freed 26K, 63% free 382K/1024K, external 0K/0K, paused 3ms
    D/AndroidRuntime(  267): 
    D/AndroidRuntime(  267): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
    D/AndroidRuntime(  267): CheckJNI is ON
    D/dalvikvm(  267): creating instr width table
    D/dalvikvm(   68): GC_EXPLICIT freed 21K, 57% free 441K/1024K, external 0K/0K, paused 4ms
    W/MediaProfiles(   68): could not find media config xml file
    D/dalvikvm(   68): GC_EXPLICIT freed 98K, 47% free 543K/1024K, external 0K/0K, paused 4ms
    D/AndroidRuntime(  267): Calling main entry com.android.commands.am.Am
    I//system/bin/wifi/rc.wifi(   59): Error type 2
    I//system/bin/wifi/rc.wifi(   59): android.util.AndroidException: Can't connect to activity manager; is the system running?
    I/logwrapper(   59): /system/bin/wifi/rc.wifi terminated by exit(1)
    D/dalvikvm(   68): GC_EXPLICIT freed 271K, 24% free 882K/1155K, external 0K/0K, paused 8ms
    D/dalvikvm(   68): GC_EXPLICIT freed 21K, 20% free 930K/1155K, external 0K/0K, paused 6ms
    D/RenderScript_jni(   68): RenderScript JNI library not found!
    D/dalvikvm(   68): GC_EXPLICIT freed 24K, 21% free 970K/1219K, external 0K/0K, paused 7ms
    D/dalvikvm(   68): GC_EXPLICIT freed 24K, 6% free 1276K/1347K, external 0K/0K, paused 10ms
    D/dalvikvm(   68): GC_EXPLICIT freed 24K, 4% free 1306K/1347K, external 0K/0K, paused 10ms
    D/dalvikvm(   68): GC_EXPLICIT freed 27K, 6% free 1331K/1411K, external 0K/0K, paused 11ms
    D/dalvikvm(   68): GC_EXPLICIT freed 14K, 3% free 1371K/1411K, external 0K/0K, paused 15ms
    W/Zygote  (   68): Class not found for preloading: android.widget.TextView$SelectionModifierCursorController$1
    D/dalvikvm(   68): GC_EXPLICIT freed 28K, 6% free 1397K/1475K, external 0K/0K, paused 15ms
    D/dalvikvm(   68): GC_EXPLICIT freed 31K, 3% free 1436K/1475K, external 0K/0K, paused 16ms
    D/dalvikvm(   68): GC_EXPLICIT freed 38K, 6% free 1453K/1539K, external 0K/0K, paused 16ms
    D/dalvikvm(   68): GC_EXPLICIT freed 41K, 5% free 1468K/1539K, external 0K/0K, paused 15ms
    D/dalvikvm(   68): GC_EXPLICIT freed 55K, 8% free 1481K/1603K, external 0K/0K, paused 16ms
    D/dalvikvm(   68): GC_FOR_MALLOC freed 2889K, 57% free 2233K/5123K, external 0K/0K, paused 34ms
    D/dalvikvm(   68): GC_EXPLICIT freed 2440K, 52% free 2485K/5123K, external 0K/0K, paused 31ms
    D/dalvikvm(   68): GC_EXPLICIT freed 128K, 51% free 2545K/5123K, external 0K/0K, paused 22ms
    D/dalvikvm(   68): GC_EXPLICIT freed 74K, 50% free 2571K/5123K, external 0K/0K, paused 22ms
    D/dalvikvm(   68): GC_EXPLICIT freed 36K, 50% free 2588K/5123K, external 0K/0K, paused 22ms
    D/dalvikvm(   68): GC_EXPLICIT freed 31K, 50% free 2611K/5123K, external 0K/0K, paused 22ms
    D/dalvikvm(   68): GC_EXPLICIT freed 38K, 49% free 2634K/5123K, external 0K/0K, paused 23ms
    I/Zygote  (   68): ...preloaded 1829 classes in 3349ms.
    D/dalvikvm(   68): GC_EXPLICIT freed 18K, 49% free 2631K/5123K, external 0K/0K, paused 22ms
    I/Zygote  (   68): Preloading resources...
    D/dalvikvm(   68): GC_EXTERNAL_ALLOC freed <1K, 49% free 2633K/5123K, external 0K/0K, paused 22ms
    D/dalvikvm(   68): GC_EXPLICIT freed 15K, 48% free 2672K/5123K, external 414K/521K, paused 23ms
    D/dalvikvm(   68): GC_EXTERNAL_ALLOC freed 7K, 48% free 2682K/5123K, external 516K/521K, paused 23ms
    I/Zygote  (   68): ...preloaded 51 resources in 306ms.
    I/Zygote  (   68): ...preloaded 15 resources in 10ms.
    D/dalvikvm(   68): GC_EXPLICIT freed 14K, 48% free 2706K/5123K, external 716K/1038K, paused 23ms
    D/dalvikvm(   68): GC_EXPLICIT freed 8K, 48% free 2698K/5123K, external 716K/1038K, paused 22ms
    D/dalvikvm(   68): GC_EXPLICIT freed 1K, 48% free 2697K/5123K, external 716K/1038K, paused 22ms
    I/dalvikvm(   68): System server process 276 has been created
    I/Zygote  (   68): Accepting command socket connections
    I/sysproc (  276): Entered system_init()
    I/sysproc (  276): ServiceManager: 0x1b8fc0
    I/SurfaceFlinger(  276): SurfaceFlinger is starting
    I/SurfaceFlinger(  276): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    D/libEGL  (  276): loaded /system/lib/egl/libGLES_android.so
    D/libEGL  (  276): loaded /system/lib/egl/libEGL_POWERVR_SGX530_125.so
    D/libEGL  (  276): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so
    D/libEGL  (  276): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_125.so
    E/libEGL  (  276): eglSetSwapRectangleANDROID:1844 error 3008 (EGL_BAD_DISPLAY)
    I/SurfaceFlinger(  276): EGL informations:
    I/SurfaceFlinger(  276): # of configs : 36
    I/SurfaceFlinger(  276): vendor    : Android
    I/SurfaceFlinger(  276): version   : 1.4 Android META-EGL
    I/SurfaceFlinger(  276): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle 
    I/SurfaceFlinger(  276): Client API: OpenGL ES
    I/SurfaceFlinger(  276): EGLSurface: 8-8-8-8, config=0x1
    I/SurfaceFlinger(  276): OpenGL informations:
    I/SurfaceFlinger(  276): vendor    : Imagination Technologies
    I/SurfaceFlinger(  276): renderer  : PowerVR SGX 530
    I/SurfaceFlinger(  276): version   : OpenGL ES-CM 1.1
    I/SurfaceFlinger(  276): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_IMG_texture_stream GL_OES_egl_sync GL_IMG_vertex_array_object
    I/SurfaceFlinger(  276): GL_MAX_TEXTURE_SIZE = 2048
    I/SurfaceFlinger(  276): GL_MAX_VIEWPORT_DIMS = 2048
    I/SurfaceFlinger(  276): flags = 00010000
    D/SensorService(  276): nuSensorService starting...
    E/SensorService(  276): couldn't load sensors module (No such file or directory)
    I/sysproc (  276): System server: starting Android runtime.
    I/sysproc (  276): System server: starting Android services.
    I/sysproc (  276): System server: entering thread pool.
    I/SystemServer(  276): Entered the Android system server!
    I/SystemServer(  276): Entropy Service
    D/libEGL  (  289): loaded /system/lib/egl/libGLES_android.so
    D/libEGL  (  289): loaded /system/lib/egl/libEGL_POWERVR_SGX530_125.so
    D/libEGL  (  289): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so
    D/libEGL  (  289): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_125.so
    E/SurfaceFlinger(  276): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
    I/SystemServer(  276): Power Manager
    W/zipro   (  289): Unable to open zip '/data/local/bootanimation.zip': No such file or directory
    I/SystemServer(  276): Activity Manager
    I/ActivityManager(  276): Memory class: 48
    I/SystemServer(  276): Telephony Registry
    I/SystemServer(  276): Package Manager
    I/installd(   70): new connection
    I/Installer(  276): connecting...
    D/dalvikvm(  276): GC_CONCURRENT freed 139K, 47% free 3034K/5639K, external 716K/1038K, paused 4ms+6ms
    W/PackageManager(  276): Running ENG build: no pre-dexopt!
    D/dalvikvm(  276): GC_CONCURRENT freed 216K, 46% free 3248K/5959K, external 716K/1038K, paused 3ms+8ms
    W/PackageParser(  276): No actions in intent filter at /system/app/Bluetooth.apk Binary XML file line #124
    D/PackageManager(  276): No files in app dir /vendor/app
    I/PackageManager(  276): Time to scan packages: 0.883 seconds
    W/PackageManager(  276): Unknown permission android.permission.ACCESS_DOWNLOAD_MANAGER in package com.android.browser
    W/PackageManager(  276): Unknown permission com.android.launcher.permission.INSTALL_SHORTCUT in package com.android.browser
    W/PackageManager(  276): Unknown permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS in package com.android.browser
    W/PackageManager(  276): Unknown permission android.permission.ACCESS_DOWNLOAD_MANAGER in package com.android.defcontainer
    W/PackageManager(  276): Unknown permission android.permission.ACCESS_ALL_DOWNLOADS in package com.android.defcontainer
    W/PackageManager(  276): Unknown permission com.google.android.gm.permission.WRITE_GMAIL in package com.android.settings
    W/PackageManager(  276): Unknown permission com.google.android.gm.permission.READ_GMAIL in package com.android.settings
    W/PackageManager(  276): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings
    W/PackageManager(  276): Unknown permission android.permission.ACCESS_DOWNLOAD_MANAGER in package com.android.settings
    W/PackageManager(  276): Unknown permission com.android.launcher.permission.READ_SETTINGS in package com.android.settings
    W/PackageManager(  276): Unknown permission com.android.launcher.permission.WRITE_SETTINGS in package com.android.settings
    W/PackageManager(  276): Unknown permission android.permission.ACCESS_BACKGROUND_SERVICE in package  .gui
    W/PackageManager(  276): Not granting permission android.permission.DEVICE_POWER to package  .gui (protectionLevel=2 flags=0x8be45)
    W/PackageManager(  276): Not granting permission android.permission.DEVICE_POWER to package com.logicpd.com.wificontrol (protectionLevel=2 flags=0xbe45)
    W/PackageManager(  276): Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development
    W/PackageManager(  276): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development
    W/PackageManager(  276): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development
    W/PackageManager(  276): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development
    D/dalvikvm(  276): GC_CONCURRENT freed 255K, 44% free 3458K/6151K, external 716K/1038K, paused 3ms+8ms
    D/dalvikvm(  276): GC_EXPLICIT freed 124K, 46% free 3334K/6151K, external 716K/1038K, paused 55ms
    I/SystemServer(  276): Account Manager
    I/SystemServer(  276): Content Manager
    I/SystemServer(  276): System Content Providers
    I/ActivityThread(  276): Pub settings: com.android.providers.settings.SettingsProvider
    I/SystemServer(  276): Battery Service
    D/SettingsProvider(  276): cache for settings table 'secure' rows=25; fullycached=true
    D/SettingsProvider(  276): cache for settings table 'system' rows=48; fullycached=true
    E/BatteryService(  276): XXXX STRING = 310000 MCC 310MNC 0
    I/ActivityManager(  276): Config changed: { scale=1.0 imsi=310/0 loc=md_US touch=0 keys=0/0/0 nav=0/0 orien=0 layout=0 uiMode=0 seq=1}
    I/SystemServer(  276): Lights Service
    I/SystemServer(  276): Vibrator Service
    I/SystemServer(  276): Alarm Manager
    I/SystemServer(  276): Init Watchdog
    I/SystemServer(  276): Window Manager
    I/InputManager(  276): Initializing input manager
    I/InputManager(  276): Starting input manager
    I/SystemServer(  276): Bluetooth Service
    I/EventHub(  276): New device: path=/dev/input/event0 name=ft6336dmb id=0x10000 (of 0x1) index=1 fd=84 classes=0x14
    E/EventHub(  276): could not get driver version for /dev/input/mice, Not a typewriter
    I/EventHub(  276): New keyboard: device->id=0x10001 devname='twl4030_pwrbutton' propName='hw.keyboards.65537.devname' keylayout='/system/usr/keylayout/twl4030_pwrbutton.kl'
    I/EventHub(  276): New device: path=/dev/input/event1 name=twl4030_pwrbutton id=0x10001 (of 0x2) index=2 fd=86 classes=0x1
    I/InputReader(  276): Device added: id=0x0, name=twl4030_pwrbutton, sources=00000101
    I/InputReader(  276): Device added: id=0x10000, name=ft6336dmb, sources=00001002
    I/BluetoothProfileState(  276): Message:Entering Stable State
    I/BluetoothProfileState(  276): Message:Entering Stable State
    I/InputManager-Callbacks(  276): No input device calibration properties found for device twl4030_pwrbutton.
    I/InputManager-Callbacks(  276): No input device calibration properties found for device ft6336dmb.
    D/BluetoothService(  276): Bluetooth state 10 -> 11
    I/SystemServer(  276): Device Policy
    I/SystemServer(  276): Status Bar
    I/SystemServer(  276): Clipboard Service
    I/SystemServer(  276): Input Method Service
    I/InputManagerService(  276): Enabled input methods: com. . xx.keyboard/. xxKeyboard
    I/SystemServer(  276): NetStat Service
    I/SystemServer(  276): NetworkManagement Service
    I/SystemServer(  276): Connectivity Service
    I//system/bin/wl1271bt_enable(  323): Device Name: /dev/ttyO2
    I// /scripts/powersave.sh(  324): Starting powersave with parameter = 
    I/WifiService(  276): WifiService starting up with Wi-Fi disabled
    D/NetworkManagmentService(  276): Registering observer
    I/SystemServer(  276): Throttle Service
    I/SystemServer(  276): Accessibility Manager
    I/SystemServer(  276): Mount Service
    I/SystemServer(  276): Notification Manager
    I/SystemServer(  276): Device Storage Monitor
    I/SystemServer(  276): Location Manager
    I/SystemServer(  276): Search Service
    I/SystemServer(  276): DropBox Service
    I/SystemServer(  276): Wallpaper Service
    D/VoldCmdListener(   62): volume list
    W/MountService(  276): Duplicate state transition (removed -> removed)
    D/VoldCmdListener(   62): share status ums
    I// /scripts/powersave.sh(  324): Can't get device info: No such device
    I/SystemServer(  276): Audio Service
    I// /scripts/powersave.sh(  324): Can't get device info: No such device
    W/AudioPolicyManagerALSA(   82): setPhoneState() setting same state 0
    E/BluetoothHeadset(  276): Could not bind to Bluetooth Headset Service
    W/ActivityManager(  276): Unable to start service Intent { act=android.bluetooth.IBluetoothHeadset }: not found
    I/SystemServer(  276): Headset Observer
    W/HeadsetObserver(  276): This kernel does not have wired headset support
    I/SystemServer(  276): HDMI Observer
    I/SystemServer(  276): Dock Observer
    W/DockObserver(  276): This kernel does not have dock station support
    I/SystemServer(  276): USB Service
    W/UsbDeviceSettingsManager(  276): settings file not found
    I/UsbService(  276): This kernel does not have USB configuration switch support
    I/SystemServer(  276):   Cable Service
    I/SystemServer(  276): UI Mode Manager Service
    I/SystemServer(  276): Backup Service
    V/BackupManagerService(  276): No ancestral data
    I/BackupManagerService(  276): Found stale backup journal, scheduling
    I/BackupManagerService(  276):   com.android.browser
    I/BackupManagerService(  276):   android
    I/BackupManagerService(  276):   com.android.providers.settings
    I/BackupManagerService(  276): Backup enabled => false
    I/SystemServer(  276): AppWidget Service
    I/SystemServer(  276): Recognition Service
    I/SystemServer(  276): DiskStats Service
    I//system/bin/hciattach(  347): Found a Texas Instruments' chip!
    I//system/bin/hciattach(  347): Firmware file : /system/lib/firmware/TIInit_7.6.15.bts
    I/WindowManager(  276): SAFE MODE not enabled
    D/dalvikvm(  276): JIT started for system_server
    I//system/bin/hciattach(  347): Loaded BTS script version 1
    I// /scripts/powersave.sh(  324): Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
    I//system/bin/hciattach(  347): texas: changing baud rate to 3000000, flow control to 1
    I// /scripts/powersave.sh(  324): BT was ON, recovering it BTADAPTER==.
    I// /scripts/powersave.sh(  324): Must use org.mydomain.Interface.Method notation, no dot in "string:Powered"
    E/lights  (  276): write_int failed to open /sys/class/leds/keyboard-backlight/brightness
    I/power   (  276): *** set_screen_state 1
    D/dalvikvm(  276): GC_CONCURRENT freed 194K, 42% free 3693K/6343K, external 716K/1038K, paused 4ms+8ms
    D/PowerManagerService(  276): system ready!
    I/ActivityManager(  276): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp= .gui/.controllers. xxStartup } from pid 0
    I/ActivityManager(  276): System now ready
    I/SystemServer(  276): Making services ready
    I/StatusBarManagerService(  276): Starting service: ComponentInfo{com.android.systemui/com.android.systemui.statusbar.StatusBarService}
    I/Zygote  (  276): Process: zygote socket opened
    I/ActivityManager(  276): Start proc com.android.systemui for service com.android.systemui/.statusbar.StatusBarService: pid=362 uid=1000 gids={3002, 3001, 3003}
    I/ActivityManager(  276): Config changed: { scale=1.0 imsi=310/0 loc=md_US touch=0 keys=0/0/0 nav=0/0 orien=0 layout=0 uiMode=17 seq=2}
    W/RecognitionManagerService(  276): no available voice recognition services found
    I/ActivityManager(  276): Start proc com. . xx.keyboard for service com. . xx.keyboard/. xxKeyboard: pid=368 uid=10001 gids={}
    D/NetworkManagmentService(  276): Registering observer
    E/ThrottleService(  276): Could not open GPS configuration file /etc/gps.conf
    I/ActivityManager(  276): Start proc com.android.systemui for added application com.android.systemui: pid=376 uid=1000 gids={3002, 3001, 3003}
    I/ActivityManager(  276): Start proc  .gui for activity  .gui/.controllers. xxStartup: pid=380 uid=10004 gids={1015, 3002, 3001, 3003}
    I/ActivityManager(  276): Config changed: { scale=1.0 imsi=310/0 loc=md_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=268435491 uiMode=17 seq=3}
    I/SystemServer(  276): Enabled StrictMode for system server main thread.
    I// /scripts/powersave.sh(  324): Must use org.mydomain.Interface.Method notation, no dot in "string:Powered"
    I/logwrapper(  324): / /scripts/powersave.sh terminated by exit(1)
    I/Process (  276): Sending signal. PID: 362 SIG: 9
    W/ActivityManager(  276): Unable to start service Intent { act=@0 }: not found
    W/ActivityManager(  276): No pending application record for pid 362 (IApplicationThread android.app.ApplicationThreadProxy@40832258); dropping process
    D/dalvikvm(  276): GREF has increased to 201
    W/ActivityManager(  276): Unable to start service Intent { act=@0 }: not found
    I/bluedroid(  276): Starting hciattach daemon
    I//system/bin/tc(   63): Cannot find device "rmnet0"
    I/logwrapper(   63): /system/bin/tc terminated by exit(1)
    I//system/bin/tc(   63): Cannot find device "rmnet0"
    I/logwrapper(   63): /system/bin/tc terminated by exit(1)
    I//system/bin/tc(   63): Cannot find device "ifb0"
    I/logwrapper(   63): /system/bin/tc terminated by exit(1)
    D/dalvikvm(  376): GC_CONCURRENT freed 366K, 51% free 2800K/5639K, external 885K/1038K, paused 3ms+3ms
    D/dalvikvm(  380): GC_CONCURRENT freed 399K, 51% free 2816K/5639K, external 716K/1038K, paused 3ms+25ms
    D/dalvikvm(  276): GC_CONCURRENT freed 382K, 43% free 3821K/6663K, external 716K/1038K, paused 2ms+19ms
    D/dalvikvm(  276): GC_EXTERNAL_ALLOC freed 35K, 44% free 3786K/6663K, external 716K/1038K, paused 105ms
    I/StatusBarManagerService(  276): registerStatusBar bar=com.android.internal.statusbar.IStatusBar$Stub$Proxy@40743e20
    D/VoldCmdListener(   62): share status ums
    D/StorageNotification(  376): Startup with UMS connection false (media state removed)
    I/StorageNotification(  376): UMS connection changed to false (media state removed)
    D/dalvikvm(  380): GC_CONCURRENT freed 102K, 45% free 3178K/5767K, external 716K/1038K, paused 3ms+4ms
    I//system/bin/hciattach(  347): Device setup complete
    D/dalvikvm(  380): GC_CONCURRENT freed 140K, 43% free 3560K/6151K, external 716K/1038K, paused 3ms+3ms
    D/dalvikvm(  380): GC_FOR_MALLOC freed 266K, 44% free 3702K/6535K, external 716K/1038K, paused 31ms
    D/dalvikvm(  380): GC_FOR_MALLOC freed 94K, 44% free 3798K/6727K, external 716K/1038K, paused 32ms
    D/dalvikvm(  380): GC_FOR_MALLOC freed 279K, 44% free 3855K/6855K, external 716K/1038K, paused 47ms
    D/dalvikvm(  380): GC_FOR_MALLOC freed 94K, 43% free 3951K/6855K, external 716K/1038K, paused 31ms
    D/dalvikvm(  380): GC_FOR_MALLOC freed 255K, 43% free 4004K/6983K, external 716K/1038K, paused 32ms
    D/dalvikvm(  380): GC_CONCURRENT freed 313K, 39% free 4427K/7175K, external 716K/1038K, paused 3ms+4ms
    D/dalvikvm(  380): GC_CONCURRENT freed 109K, 34% free 5090K/7687K, external 716K/1038K, paused 3ms+5ms
    I/bluedroid(  276): Starting bluetoothd deamon
    D/dalvikvm(  380): GC_CONCURRENT freed 388K, 33% free 5760K/8583K, external 716K/1038K, paused 3ms+17ms
    I/SystemStartLogMessage(  380): =========== STARTING SYSTEM ===========
    I/MainApplication(  380): Initializing:
    I/MainApplication(  380): - Notification controller
    I/MainApplication(  380): - Licensing
    I/MainApplication(  380): - Printer controller
    I/MainApplication(  380): - Platform
    D/dalvikvm(  380): GC_CONCURRENT freed 1297K, 40% free 5732K/9479K, external 716K/1038K, paused 3ms+7ms
    I/MainApplication(  380): - Timeout driver
    I/MainApplication(  380): - DSP power save controller
    I/PowerSaveMode(  380): Shutting down DSP
    I// /scripts/powersave.sh(  434): Starting powersave with parameter = 
    I/logwrapper(  434): / /scripts/powersave.sh terminated by exit(0)
    I/MainApplication(  380): - Protocol controller
    I/MainApplication(  380): - Cable dispatcher
    I/MainApplication(  380): - ScreeningMediator
    I/CableStatusDispatcher(  380): Could not read probe (this message is displayed only once)
    I/MainApplication(  380): - External-interface controller
    D/dalvikvm(  380): GC_EXTERNAL_ALLOC freed 174K, 39% free 5817K/9479K, external 935K/1038K, paused 88ms
    I/ xxStartup(  380): Application version: 0.3.0
    I/ xxStartup(  380): Reading licensing
    I/ xxStartup(  380): Reading settings
    D/ShellInterface(  380): id output: uid=0(root) gid=0(root) groups=1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)
    I/ xxStartup(  380): Reading test counter
    I/ xxStartup(  380): Reading risk factors
    I/ xxStartup(  380): Reading users
    I/ xxStartup(  380): Reading locations
    I/ActivityManager(  276): Displayed  .gui/.controllers. xxStartup: +4s690ms
    I/ xxStartup(  380): Reading patient comments
    I/ xxStartup(  380): Reading test comments
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directoFailed to disable barcode scanner.
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directojava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directory)
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at java.io.FileOutputStream.<init>(FileOutputStream.java:94) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at java.io.FileOutputStream.<init>(FileOutputStream.java:66) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at java.io.FileWriter.<init>(FileWriter.java:42) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at  .app.Platform.disableBarcode(Platform.java:652) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at  .gui.controllers. xxStartup.statusSuccess( xxStartup.java:179) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at  .gui.models.SettingsHelper.settingsSuccess(SettingsHelper.java:78) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at  .data.dao.SettingsDao.load(SettingsDao.java:103) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at  .gui.models.SettingsHelper.loadSettings(SettingsHelper.java:36) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at  .gui.controllers. xxStartup.initializeApp( xxStartup.java:124) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at  .gui.controllers. xxStartup.access$4( xxStartup.java:116) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at  .gui.controllers. xxStartup$3.run( xxStartup.java:110) ~[na:0.0]
    E/Platformjava.io.FileNotFoundException: /sys/devices/platform/omap/omap_i2c.3/i2c-3/3-0034/barcodekey (No such file or directo	at java.lang.Thread.run(Thread.java:1019) ~[na:0.0]
    I/ xxStartup(  380): Applying Bluetooth settings
    D/PrinterStateMachine(  380): State: StandBy. Action: Enable Bluetooth. Next state: StandBy
    I/ xxStartup(  380): Applying application settings
    D/dalvikvm(  368): GC_CONCURRENT freed 358K, 51% free 2759K/5575K, external 725K/1038K, paused 3ms+10ms
    I/SurfaceFlinger(  276): Boot is finished (8056 ms)
    D/PowerManagerService(  276): bootCompleted
    I/SearchManagerService(  276): Building list of searchable activities
    I/RecoverySystem(  276): No recovery log file
    I/DropBoxManagerService(  276): Cleaning temp file: /data/system/dropbox/drop61.tmp
    I/ xxStartup(  380): Reading DSP version
    I/ActivityManager(  276): Start proc com.logicpd.com.wificontrol for broadcast com.logicpd.com.wificontrol/.BootBroadcastReceiver: pid=461 uid=10011 gids={}
    E/ActivityThread(  276): Failed to find provider info for downloads
    E/BootReceiver(  276): Can't remove old update packages
    E/BootReceiver(  276): java.lang.IllegalArgumentException: Unknown URL content://downloads/my_downloads
    E/BootReceiver(  276): 	at android.content.ContentResolver.delete(ContentResolver.java:688)
    E/BootReceiver(  276): 	at android.net.Downloads$ByUri.removeAllDownloadsByPackage(Downloads.java:292)
    E/BootReceiver(  276): 	at com.android.server.BootReceiver.removeOldUpdatePackages(BootReceiver.java:93)
    E/BootReceiver(  276): 	at com.android.server.BootReceiver.access$100(BootReceiver.java:41)
    E/BootReceiver(  276): 	at com.android.server.BootReceiver$1.run(BootReceiver.java:83)
    I/VersionController(  380): starting
    D/VersionController(  380): Idle_START_StartingSubsystem
    I/ProtocolController(  380):   starting
    I/BlackboardController(  380):       starting the blackboard thread
    I/PowerSaveMode(  380): Booting DSP
    I// /scripts/powersave.sh(  475): Starting powersave with parameter = 
    I/WifiControl(  461): Hello from BroadcastReceiver!
    I/logwrapper(  475): / /scripts/powersave.sh terminated by exit(0)
    W/Searchables(  276): No global search activity found
    I/ActivityManager(  276): Start proc com.android.bluetooth for broadcast com.android.bluetooth/.opp.BluetoothOppReceiver: pid=488 uid=10014 gids={3003, 3002, 3001, 1015}
    D/dalvikvm(  380): GC_CONCURRENT freed 820K, 35% free 6163K/9479K, external 1248K/1760K, paused 3ms+26ms
    E/BluetoothEventLoop.cpp(  276): event_filter: Received signal org.freedesktop.DBus:NameAcquired from /org/freedesktop/DBus
    I/ActivityManager(  276): Starting: Intent { cmp= .gui/.controllers. xxHomeController } from pid 380
    E/BluetoothHeadset(  276): Could not bind to Bluetooth Headset Service
    D/BluetoothService(  276): Bluetooth state 11 -> 12
    W/ActivityManager(  276): Unable to start service Intent { act=android.bluetooth.IBluetoothHeadset }: not found
    I/ActivityThread(  488): Pub com.android.bluetooth.opp: com.android.bluetooth.opp.BluetoothOppProvider
    I/ActivityManager(  276): Start proc com.android.settings for broadcast com.android.settings/.bluetooth.DockEventReceiver: pid=500 uid=1000 gids={3002, 3001, 3003}
    D/dalvikvm(  488): GC_CONCURRENT freed 405K, 51% free 2781K/5639K, external 716K/1038K, paused 2ms+28ms
    D/dalvikvm(  276): GC_CONCURRENT freed 469K, 44% free 3863K/6791K, external 1316K/1828K, paused 3ms+56ms
    D/dalvikvm(  500): GC_CONCURRENT freed 407K, 51% free 2808K/5639K, external 716K/1038K, paused 2ms+12ms
    E/BluetoothHeadset(  500): Could not bind to Bluetooth Headset Service
    W/ActivityManager(  276): Unable to start service Intent { act=android.bluetooth.IBluetoothHeadset }: not found
    D/dalvikvm(  380): GC_EXTERNAL_ALLOC freed 233K, 35% free 6166K/9479K, external 1715K/1760K, paused 145ms
    I/ProtocolController(  380): started blackboard Controller
    I/ProtocolController(  380): queueing started event
    D/RawBufferManager(  380): decreasing minimum seen raw buffer capacity to 19
    D/VersionController(  380): StartingSubsystem_SUBSYSTEM_STARTED_Sending
    D/dalvikvm(  380): GC_EXTERNAL_ALLOC freed 160K, 35% free 6216K/9479K, external 2247K/2264K, paused 47ms
    D/dalvikvm(  380): GC_EXTERNAL_ALLOC freed 5K, 35% free 6215K/9479K, external 2952K/3087K, paused 47ms
    D/dalvikvm(  380): GC_EXTERNAL_ALLOC freed 2K, 35% free 6220K/9479K, external 3912K/3986K, paused 46ms
    D/dalvikvm(  380): GC_EXTERNAL_ALLOC freed 2K, 35% free 6224K/9479K, external 5112K/5184K, paused 47ms
    D/ScreeningMediator(  380): Idle_GUI_READY_Idle
    I/ActivityManager(  276): Displayed  .gui/.controllers. xxHomeController: +1s507ms
    D/VersionController(  380): Sending_ACK_DSP_VERSION_Receiving
    D/VersionController(  380): Receiving_DSP_VERSION_RES_Idle
    I/VersionController(  380): halting the subsystem
    I/ProtocolController(  380):   client requests shut down and signal
    I/BlackboardController(  380):       stopping the blackboardThread
    I/PowerSaveMode(  380): Shutting down DSP
    I// /scripts/powersave.sh(  536): Starting powersave with parameter = 
    I/logwrapper(  536): / /scripts/powersave.sh terminated by exit(0)
    I/BlackboardController(  380):       blackboardThread is done
    I/VersionController(  380): joined with the protocol controller's event loop
    I/ xxStartup(  380): DSP version: 0.2.8
    D/BluetoothService(  276): Registering hfag record
    E/BluetoothEventLoop.cpp(  276): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/427/hci0
    E/BluetoothEventLoop.cpp(  276): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/427/hci0
    D/BluetoothService(  276): Registering hsag record
    E/BluetoothEventLoop.cpp(  276): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/427/hci0
    D/BluetoothService(  276): Registering opush record
    E/BluetoothEventLoop.cpp(  276): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/427/hci0
    E/BluetoothEventLoop.cpp(  276): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/427/hci0
    D/BluetoothService(  276): Registering pbap record
    E/BluetoothEventLoop.cpp(  276): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/427/hci0
    I/BtOppRfcommListener(  488): Accept thread started on channel 12
    D/dalvikvm(  380): GC_CONCURRENT freed 1480K, 39% free 6259K/10183K, external 5374K/6683K, paused 6ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2056K, 43% free 6215K/10759K, external 4827K/6018K, paused 7ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 1958K, 42% free 6303K/10759K, external 4827K/6018K, paused 7ms+8ms
    D/dalvikvm(  276): GC_CONCURRENT freed 552K, 45% free 3868K/6919K, external 1316K/1828K, paused 6ms+15ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2119K, 43% free 6259K/10823K, external 4827K/6018K, paused 7ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2016K, 42% free 6291K/10823K, external 4827K/6018K, paused 7ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2005K, 43% free 6208K/10823K, external 4827K/6018K, paused 6ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 1950K, 42% free 6304K/10823K, external 4827K/6018K, paused 6ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2083K, 43% free 6269K/10823K, external 4827K/6018K, paused 7ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2054K, 43% free 6259K/10823K, external 4827K/6018K, paused 7ms+8ms
    D/dalvikvm(  276): GC_CONCURRENT freed 537K, 44% free 3885K/6919K, external 1316K/1828K, paused 8ms+7ms
    D/dalvikvm(  380): GC_CONCURRENT freed 1984K, 43% free 6232K/10823K, external 4827K/6018K, paused 6ms+7ms
    D/dalvikvm(  380): GC_CONCURRENT freed 1973K, 42% free 6305K/10823K, external 4827K/6018K, paused 6ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2081K, 43% free 6271K/10823K, external 4827K/6018K, paused 6ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2055K, 43% free 6261K/10823K, external 4827K/6018K, paused 7ms+8ms
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1139, ACTION=change, SWITCH_NAME=usb_connected}
    D/dalvikvm(  376): GC_CONCURRENT freed 355K, 50% free 2856K/5703K, external 927K/1038K, paused 17ms+8ms
    D/dalvikvm(  380): GC_CONCURRENT freed 2002K, 43% free 6206K/10823K, external 4961K/6018K, paused 7ms+7ms
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1143, ACTION=change, SWITCH_NAME=usb_connected}
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1145, ACTION=change, SWITCH_NAME=usb_connected}
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1146, ACTION=change, SWITCH_NAME=usb_connected}
    D/dalvikvm(  276): GC_CONCURRENT freed 515K, 44% free 3905K/6919K, external 1316K/1828K, paused 6ms+7ms
    D/dalvikvm(  380): GC_CONCURRENT freed 1919K, 43% free 6207K/10823K, external 4987K/6018K, paused 6ms+7ms
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1170, ACTION=change, SWITCH_NAME=usb_connected}
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1172, ACTION=change, SWITCH_NAME=usb_connected}
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1174, ACTION=change, SWITCH_NAME=usb_connected}
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1175, ACTION=change, SWITCH_NAME=usb_connected}
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1184, ACTION=change, SWITCH_NAME=usb_connected}
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1191, ACTION=change, SWITCH_NAME=usb_connected}
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1193, ACTION=change, SWITCH_NAME=usb_connected}
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    D/dalvikvm(  380): GC_CONCURRENT freed 1998K, 43% free 6256K/10823K, external 4979K/6018K, paused 7ms+8ms
    W/Vold    (   62): Ignoring unknown switch 'usb_connected'
    I/ CableService(  276):   USB Event Raised: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/usb_connected, SEQNUM=1194, ACTION=change, SWITCH_NAME=usb_connected}
    D/dalvikvm(  276): GC_CONCURRENT freed 509K, 44% free 3913K/6919K, external 1316K/1828K, paused 6ms+8ms
    

  • Shlomi,

    That's right, I see in the logs that appears USB events only when the USB is used in device mode but according to the config file USB dual mode is configured (device and OTG). Therefore I think that there is some problem with connection of the USB ID pin line which must be connected to the ground. Check whether USB ID pin is connected to the ground when USB storage is connected.

    BR
    Tsvetolin Shulev
  • yes, the line stays on 0 when i connect the OTG with a usb flash.

    what is the driver that's responsible for the otg device behavior?

    I've tried changing the usb_id pin and still the device doesn't seem to get mounted..

    this is the exception stack i get when connecting the usb flash:

    [  179.840270] bq27510-battery 2-0055: POWER_SUPPLY_PROP_CAPACITY (toe,current,state) = -121,0,1[  180.573303] musb_set_active 1
    [  180.576416] BUG: sleeping function called from invalid context at mm/page_alloc.c:2301
    [  180.584686] in_atomic(): 1, irqs_disabled(): 128, pid: 0, name: swapper
    [  180.591613] [<c007ac38>] (unwind_backtrace+0x0/0x12c) from [<c00d7ffc>] (__alloc_pages_nodemask+0x8c/0x5ac)
    [  180.601776] [<c00d7ffc>] (__alloc_pages_nodemask+0x8c/0x5ac) from [<c00d8594>] (__get_free_pages+0x10/0x3c)
    [  180.611968] [<c00d8594>] (__get_free_pages+0x10/0x3c) from [<c030c3f4>] (switch_set_state+0x24/0x130)
    [  180.621612] [<c030c3f4>] (switch_set_state+0x24/0x130) from [<c02bb534>] (musb_set_active+0x30/0x44)
    [  180.631134] [<c02bb534>] (musb_set_active+0x30/0x44) from [<c02bc018>] (musb_interrupt+0x684/0xd48)
    [  180.640563] [<c02bc018>] (musb_interrupt+0x684/0xd48) from [<c02bc72c>] (generic_interrupt+0x50/0x68)
    [  180.650207] [<c02bc72c>] (generic_interrupt+0x50/0x68) from [<c00cd9f4>] (handle_irq_event_percpu+0x30/0x174)
    [  180.660583] [<c00cd9f4>] (handle_irq_event_percpu+0x30/0x174) from [<c00cdb60>] (handle_irq_event+0x28/0x38)
    [  180.670837] [<c00cdb60>] (handle_irq_event+0x28/0x38) from [<c00cfa68>] (handle_level_irq+0xb8/0xe0)
    [  180.680358] [<c00cfa68>] (handle_level_irq+0xb8/0xe0) from [<c00cd6fc>] (generic_handle_irq+0x2c/0x40)
    [  180.690093] [<c00cd6fc>] (generic_handle_irq+0x2c/0x40) from [<c006a060>] (asm_do_IRQ+0x60/0x84)
    [  180.699279] [<c006a060>] (asm_do_IRQ+0x60/0x84) from [<c00750f4>] (__irq_svc+0x34/0xa0)
    [  180.707641] Exception stack(0xc0593f10 to 0xc0593f58)
    [  180.712921] 3f00:                                     0d853305 00000000 0d853305 00000000
    [  180.721435] 3f20: c05ddc48 c0599c98 c0599c98 00000003 00000003 413fc082 00000000 00000000
    [  180.729949] 3f40: 3b9ac9ff c0593f58 c0084d70 c0084d7c 60000053 ffffffff
    [  180.736877] [<c00750f4>] (__irq_svc+0x34/0xa0) from [<c0084d7c>] (omap3_enter_idle+0xf0/0x120)
    [  180.745880] [<c0084d7c>] (omap3_enter_idle+0xf0/0x120) from [<c0084f20>] (omap3_enter_idle_bm+0x174/0x1bc)
    [  180.755950] [<c0084f20>] (omap3_enter_idle_bm+0x174/0x1bc) from [<c02fb84c>] (cpuidle_idle_call+0xb0/0x114)
    [  180.766143] [<c02fb84c>] (cpuidle_idle_call+0xb0/0x114) from [<c0076840>] (cpu_idle+0x50/0x98)
    [  180.775146] [<c0076840>] (cpu_idle+0x50/0x98) from [<c00088cc>] (start_kernel+0x268/0x2c0)
    [  180.783752] unwind: Unknown symbol address c00088cc
    [  180.788848] unwind: Index not found c00088cc

  • Shlomi,

    The USB OTG gadget driver is responsible for the OTG behaviour.
    Also verify whether the folloing options are checked in the menuconfig:
    Device Drivers --->
       USB support --->
         USB device filesystem
         USB Mass Storage support
         USB Gadget Support --->

    BR
    Tsvetolin Shulev

  • HI,


    The exception only seem to happen when i connect the otg device whilst the My device is already running,

    if i put it in and out of sleep or restart it with the otg already connected i get "usb 1-1 :device descriptor read/8, error -19".

    (i'm getting all the device information: name, serial num, manufacturer, etc..)

    i couldn't find any info on this error but similar ones with different error number indicate a usb port power issue.

    any idea where to get the error list or any fix?

    i did all the modifications you suggested.

    thanks,