Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

OTG questions with ZTE Blade


  • Please log in to reply
7 replies to this topic

#1 panyongfeng

panyongfeng
  • Members
  • 8 posts
  • Country:
    cn - China
  • Device Model:
    Blade
  • CM Version:
    CyanogenMod-7.2.0-RC1-blade
  • Recovery Image:
    ClockworkMod

Posted 17 May 2012 - 04:59 AM

Dears,
I am trying to let my Blade support USB storage(support U-disk).
I know Blade using Quamcom MSM 72K SoC, which include an OTG IP core in this SoC;
also I rebuild linux kernel with build in USB OTG feature.
I plug U-disk into my Blade by OTG cable. And notice DMESG have following response. and There is /proc/bus/usb/001/001 file when the usb plugin, but soon disappeard. But I did not see any device file generated in /dev folder.
Here is the message, and I will continue update this post with my findings, hopeing get some help from you.
thanks !

<6>[05-17 00:16:00.280000] [58: k_otg]msm_otg_resume: usb exited from low power mode
<7>[05-17 00:16:00.280000] IRQ state: a_idle
<7>[05-17 00:16:00.280000] otgsc = 49213120
<7>[05-17 00:16:00.280000] Id set
<7>[05-17 00:16:00.280000] phy_ints = 19
<7>[05-17 00:16:00.280000] ID_C set
<7>[05-17 00:16:00.290000] [58: k_otg]id && !id_a
<7>[05-17 00:16:00.310000] [58: k_otg]Charging with 1500mA current
<7>[05-17 00:16:00.310000] [58: k_otg]Charging with 1500mA current
<7>[05-17 00:16:00.310000] [58: k_otg]entering into lpm msm_otg_sm_work 1563
<7>[05-17 00:16:00.310000] [58: k_otg]phy can power collapse: (0)
<6>[05-17 00:16:00.310000] [58: k_otg]msm_otg_suspend: usb in low power mode
<6>[05-17 00:16:02.470000] [58: k_otg]msm_otg_resume: usb exited from low power mode
<7>[05-17 00:16:02.470000] IRQ state: b_idle
<7>[05-17 00:16:02.470000] otgsc = 49213020
<7>[05-17 00:16:02.470000] Id clear
<7>[05-17 00:16:02.470000] phy_ints = 9
<7>[05-17 00:16:02.470000] [58: k_otg]!id || id_A
<7>[05-17 00:16:02.490000] [58: k_otg]Charging with 0mA current
<7>[05-17 00:16:02.490000] [58: k_otg]!a_bus_drop && (a_srp_det || a_bus_req)
<7>[05-17 00:16:02.490000] [58: k_otg]starting a_wait_vrise timer
<7>[05-17 00:16:02.590000] expired a_wait_vrise timer
<7>[05-17 00:16:02.590000] [58: k_otg]a_vbus_vld
<7>[05-17 00:16:02.590000] [58: k_otg]starting a_wait_bcon timer
<6>[05-17 00:16:02.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: Qualcomm On-Chip EHCI Host Controller
<7>[05-17 00:16:02.590000] [58: k_otg]drivers/usb/core/inode.c: creating file 'devices'
<7>[05-17 00:16:02.590000] [58: k_otg]drivers/usb/core/inode.c: creating file '001'
<6>[05-17 00:16:02.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: new USB bus registered, assigned bus number 1
<7>[05-17 00:16:02.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: park 0
<7>[05-17 00:16:02.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
<7>[05-17 00:16:02.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: supports USB remote wakeup
<6>[05-17 00:16:02.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: irq 47, io base 0xa0800000
<7>[05-17 00:16:02.590000] [58: k_otg]usb usb1: default language 0x0409
<7>[05-17 00:16:02.590000] [58: k_otg]usb usb1: udev 1, busnum 1, minor = 0
<6>[05-17 00:16:02.590000] [58: k_otg]usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[05-17 00:16:02.590000] [58: k_otg]usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[05-17 00:16:02.590000] [58: k_otg]usb usb1: Product: Qualcomm On-Chip EHCI Host Controller
<6>[05-17 00:16:02.590000] [58: k_otg]usb usb1: Manufacturer: Linux 2.6.35.7-perf+ ehci_hcd
<6>[05-17 00:16:02.590000] [58: k_otg]usb usb1: SerialNumber: msm_hsusb_host.0
<7>[05-17 00:16:02.600000] [58: k_otg]usb usb1: usb_probe_device
<7>[05-17 00:16:02.600000] [58: k_otg]usb usb1: configuration #1 chosen from 1 choice
<7>[05-17 00:16:02.600000] [58: k_otg]usb usb1: adding 1-0:1.0 (config #1, interface 0)
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: usb_probe_interface
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: usb_probe_interface - got id
<6>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: USB hub found
<6>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: 1 port detected
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: standalone hub
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: individual port power switching
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: individual port over-current protection
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: Single TT
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: power on to power good time: 20ms
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: local power source is good
<7>[05-17 00:16:02.600000] [58: k_otg]hub 1-0:1.0: enabling power on all ports
<7>[05-17 00:16:02.600000] [58: k_otg]drivers/usb/core/inode.c: creating file '001'
<7>[05-17 00:16:02.700000] [12: khubd]hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
<3>[05-17 00:16:02.720000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=105 lo=63
<3>[05-17 00:16:03.330000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=460 lo=276
<3>[05-17 00:16:04.250000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=603 lo=363
<7>[05-17 00:16:32.590000] expired a_wait_bcon timer
<7>[05-17 00:16:32.590000] [58: k_otg]id_f/b/c || a_bus_drop ||a_wait_bcon_tmout
<7>[05-17 00:16:32.590000] [58: k_otg]sending DEV_CONN_TMOUT event
<7>[05-17 00:16:32.590000] [58: k_otg]deleting a_wait_bcon timer. remaining 0 msec
<6>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: remove, state 1
<7>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: roothub graceful disconnect
<6>[05-17 00:16:32.590000] [58: k_otg]usb usb1: USB disconnect, address 1
<7>[05-17 00:16:32.590000] [58: k_otg]usb usb1: unregistering device
<7>[05-17 00:16:32.590000] [58: k_otg]usb usb1: usb_disable_device nuking all URBs
<7>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: shutdown urb c8da4640 ep1in-intr
<7>[05-17 00:16:32.590000] [58: k_otg]usb usb1: unregistering interface 1-0:1.0
<7>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: stop
<7>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: reset command 01000a (park)=0 ithresh=1 period=256 Reset HALT
<7>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: irq normal 0 err 0 reclaim 0 (lost 0)
<7>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: complete 0 unlink 0
<7>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: ehci_stop completed status 80001000 Halt
<6>[05-17 00:16:32.590000] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: USB bus 1 deregistered
<7>[05-17 00:16:32.730000] [58: k_otg]starting a_wait_vfall timer
<7>[05-17 00:16:33.230000] expired a_wait_vfall timer
<7>[05-17 00:16:33.230000] [58: k_otg]No session requested
<7>[05-17 00:16:33.230000] [58: k_otg]phy can power collapse: (0)
<6>[05-17 00:16:33.230000] [58: k_otg]msm_otg_suspend: usb in low power mode
<3>[05-17 00:17:29.820000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=393 lo=237
<3>[05-17 00:17:33.150000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=518 lo=312
<3>[05-17 00:17:34.670000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=332 lo=200
<3>[05-17 00:17:35.740000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=452 lo=272
<3>[05-17 00:18:06.340000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=78 lo=48
<3>[05-17 00:18:07.100000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=198 lo=120
<3>[05-17 00:18:09.080000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=386 lo=232
<4>[05-17 00:18:24.270000] [7: suspend][ZYF] lcdc_set_bl level=3, 1
<4>[05-17 00:18:24.270000] [7: suspend][LY] send_bkl_address
<4>[05-17 00:18:24.270000] [7: suspend][LY] send_bkl_data
<3>[05-17 00:18:27.810000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=232 lo=140
<4>[05-17 00:18:28.000000] [7: suspend][ZYF] lcdc_set_bl level=13, 1
<4>[05-17 00:18:28.000000] [7: suspend][LY] send_bkl_address
<4>[05-17 00:18:28.000000] [7: suspend][LY] send_bkl_data
<3>[05-17 00:18:28.290000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=156 lo=94
<3>[05-17 00:18:28.720000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=213 lo=129
<3>[05-17 00:18:29.790000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=136 lo=82
<3>[05-17 00:18:30.550000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=341 lo=205
<3>[05-17 00:18:32.530000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=467 lo=281
<3>[05-17 00:19:02.530000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=300 lo=180
<3>[05-17 00:19:12.430000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=380 lo=228
<4>[05-17 00:19:22.160000] [7: suspend][ZYF] lcdc_set_bl level=3, 1
<4>[05-17 00:19:22.160000] [7: suspend][LY] send_bkl_address
<4>[05-17 00:19:22.160000] [7: suspend][LY] send_bkl_data
<4>[05-17 00:19:24.289999] [7: suspend][ZYF] lcdc_set_bl level=13, 1
<4>[05-17 00:19:24.289999] [7: suspend][LY] send_bkl_address
<4>[05-17 00:19:24.289999] [7: suspend][LY] send_bkl_data
<3>[05-17 00:19:40.740000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=543 lo=327
<3>[05-17 00:19:41.350000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=173 lo=105
<3>[05-17 00:19:42.720000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=122 lo=74
<3>[05-17 00:19:44.700000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=397 lo=239
<3>[05-17 00:19:45.310000] [4: events/0]TAOS: lux_timep->saturation=8100 hi=542 lo=326
<3>[05-17 00:19:50.990000] [23: krpcserversd]--keycode from A9
<3>[05-17 00:19:50.990000] [23: krpcserversd]   key:116 keycode:81
<3>[05-17 00:19:51.140000] [23: krpcserversd]--keycode from A9
<3>[05-17 00:19:51.140000] [23: krpcserversd]   key:116 keycode:255
<6>[05-17 00:19:51.480000] [58: k_otg]msm_otg_resume: usb exited from low power mode
<7>[05-17 00:19:51.480000] IRQ state: a_idle
<7>[05-17 00:19:51.480000] otgsc = 49213120
<7>[05-17 00:19:51.480000] Id set
<7>[05-17 00:19:51.480000] phy_ints = 19
<7>[05-17 00:19:51.480000] ID_C set
<7>[05-17 00:19:51.480000] [58: k_otg]id && !id_a
<7>[05-17 00:19:51.500000] [58: k_otg]Charging with 1500mA current
<7>[05-17 00:19:51.500000] [58: k_otg]Charging with 1500mA current
<7>[05-17 00:19:51.500000] [58: k_otg]entering into lpm msm_otg_sm_work 1563
<7>[05-17 00:19:51.500000] [58: k_otg]phy can power collapse: (0)
<6>[05-17 00:19:51.500000] [58: k_otg]msm_otg_suspend: usb in low power mode
<6>[05-17 00:19:51.740000] [226: ScreenOffThread]request_suspend_state: sleep (0->3) at 1723667251678 (2012-05-17 00:19:51.741518334 UTC)
<6>[05-17 00:19:51.740000] [226: ScreenOffThread][early_suspend] wq status=1
<2>[05-17 00:19:51.740000] [226: ScreenOffThread][taos]TAOS_IOCTL_ALS_OFF
<4>[05-17 00:19:51.740000] [7: suspend][ZYF] lcdc_set_bl level=0, 1
<6>[05-17 00:19:51.740000] [7: suspend]early_suspend: call handlers
<6>[05-17 00:19:51.740000] [7: suspend]early_suspend: handlers level=0
<6>[05-17 00:19:51.740000] [7: suspend][lis302dl@gsensor]:lis302dl suspend
<6>[05-17 00:19:51.740000] [7: suspend]early_suspend: handlers level=50
<6>[05-17 00:19:51.740000] [7: suspend]early_suspend: handlers level=50
<6>[05-17 00:19:51.740000] [7: suspend]early_suspend: handlers level=51
<6>[05-17 00:19:51.740000] [7: suspend]early_suspend: handlers level=100
<6>[05-17 00:19:51.740000] [7: suspend]early_suspend: handlers level=148
<4>[05-17 00:19:51.750000] [7: suspend][ZYF] lcdc_set_bl level=0, 1
<4>[05-17 00:19:51.960000] [7: suspend]lcdc_panel_off , g_lcd_panel_type is 1(1 LEAD. 2 TRULY. 3 OLED. )
<6>[05-17 00:19:51.990000] [7: suspend]early_suspend: handlers level=149
<6>[05-17 00:19:51.990000] [7: suspend]early_suspend: handlers level=150
<6>[05-17 00:19:51.990000] [7: suspend]early_suspend: handlers level=150
<6>[05-17 00:19:51.990000] [7: suspend]early_suspend: handlers level=151
<6>[05-17 00:19:51.990000] [7: suspend]early_suspend: sync
<4>[05-17 00:19:52.010000] [8: suspend_sync]save exit: isCheckpointed 1
<6>[05-17 00:19:52.050000] [7: suspend]early_suspend: sync end
<6>[05-17 00:19:52.050000] [7: suspend]active wake lock PowerManagerService
<6>[05-17 00:19:52.570000] [7: suspend]suspend: enter suspend
<6>[05-17 00:19:52.570000] [7: suspend]PM: Syncing filesystems ... done.
<4>[05-17 00:19:52.580000] [7: suspend]PM_SUSPEND_PREPARE
<4>[05-17 00:19:52.630000] [7: suspend]Freezing user space processes ...
<6>[05-17 00:19:52.630000] [7: suspend]active wake lock PowerManagerService
<4>[05-17 00:19:52.630000] [7: suspend]
<3>[05-17 00:19:52.630000] [7: suspend]Freezing of user space  aborted
<4>[05-17 00:19:52.630000] [7: suspend]
<4>[05-17 00:19:52.630000] [7: suspend]Restarting tasks ... done.
<4>[05-17 00:19:52.650000] [7: suspend]PM_POST_SUSPEND
<4>[05-17 00:19:52.650000] [7: suspend][PM] additional wakeup info:
<4>[05-17 00:19:52.650000] [7: suspend] wakeupreason:0x1
<4>[05-17 00:19:52.650000] [7: suspend] rpc_prog:0x30000062
<4>[05-17 00:19:52.650000] [7: suspend] rpc_proc:0x2
<6>[05-17 00:19:52.650000] [7: suspend]WAKEUP INFO2012-05-17 00:19:52 <UTC> resume
<6>[05-17 00:19:52.650000] [7: suspend]WakeupReason:RPC RpcProg:KEYPAD	  RpcProc:0x2	 SmdPortName:RPCCALL	   GpioInfo:0x13
<6>[05-17 00:19:52.650000] [7: suspend]
<6>[05-17 00:19:52.650000] [7: suspend]suspend: exit suspend, ret = -16 (2012-05-17 00:19:52.654774999 UTC)
<6>[05-17 00:19:52.650000] [7: suspend]suspend: pm_suspend returned with no event
<6>[05-17 00:19:52.650000] [7: suspend]active wake lock PowerManagerService
<6>[05-17 00:19:52.650000] [7: suspend]active wake lock unknown_wakeups, time left 50
<6>[05-17 00:19:52.650000] [7: suspend]suspend: abort suspend
<4>[05-17 00:19:53.820000] [8: suspend_sync]save exit: isCheckpointed 1
<6>[05-17 00:19:53.820000] [7: suspend]suspend: enter suspend
<6>[05-17 00:19:53.820000] [7: suspend]PM: Syncing filesystems ... done.
<4>[05-17 00:19:53.820000] [7: suspend]PM_SUSPEND_PREPARE
<4>[05-17 00:19:53.870000] [7: suspend]Freezing user space processes ... (elapsed 0.01 seconds) done.
<4>[05-17 00:19:53.890000] [7: suspend]Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
<7>[05-17 00:19:53.910000] [7: suspend]msmrtc_tod_proc_result: 05/17/2012 00:19:54 (03)
<7>[05-17 00:19:53.910000] [7: suspend]msmrtc_tod_proc_result: 05/17/2012 00:19:54 (03)
<7>[05-17 00:19:53.910000] [7: suspend]msmrtc_tod_proc_result: 05/17/2012 00:19:54 (03)
<7>[05-17 00:19:53.910000] [7: suspend]msmrtc_tod_proc_result: 05/17/2012 00:19:54 (03)
<6>[05-17 00:19:53.910000] [7: suspend]msm_pm_set_max_sleep_time(): Requested 9000000000 ns Giving 294917 sclk ticks (= 9 s)
<4>[05-17 00:19:53.910000] [7: suspend]ar6000_suspend_ev: enter ar c8c30300 devices c8c30300
<4>[05-17 00:19:53.910000] [7: suspend]use WoW mode
<4>[05-17 00:19:53.910000] [7: suspend]ar6000_wow_suspend enter
<4>[05-17 00:19:53.910000] [7: suspend]dev mac a0:b:ba:42:a7:4f
<4>[05-17 00:19:53.910000] [7: suspend]offload ip = 192.168.1.100
<6>[05-17 00:19:53.910000] [7: suspend]set power mode to rec
<6>[05-17 00:19:53.910000] [7: suspend]Finished wow_suspend=====
<4>[05-17 00:19:54.160000] [7: suspend][ar6000_suspend_ev] mask interrupt
<6>[05-17 00:19:54.160000] [7: suspend][sdio_card_irq_put] host was claimed release it first
<6>[05-17 00:19:54.160000] [7: suspend]destroy  mmc_sdio_irq_wake_lock
<4>[05-17 00:19:54.160000] [7: suspend]Setup WoW successfully
<6>[05-17 00:19:54.160000] [7: suspend]mmc_sdio_suspend () ret = -16
<6>[05-17 00:19:54.160000] [7: suspend]mmc_sdio_suspend () set keep power flag
<6>[05-17 00:19:54.160000] [7: suspend]msmsdcc_suspend () enable sdiowakeup_irq 83
<6>[05-17 00:19:54.160000] [7: suspend]LHX LED PROC:Green 0,RED0;config 0x0,set(2dis 3enable):3
<4>[05-17 00:19:54.160000] [7: suspend]ar6000_pm_suspend: enter mode 3
<6>[05-17 00:19:54.160000] [7: suspend]PM: suspend of devices complete after 258.013 msecs
<6>[05-17 00:19:54.160000] [7: suspend]power_suspend_late return 0
<6>[05-17 00:19:54.160000] [7: suspend]PM: late suspend of devices complete after 0.383 msecs
<6>[05-17 00:19:54.173388] [7: suspend]msm_pm_enter(): sleep limit 0
<6>[05-17 00:19:54.173388] [7: suspend]msm_pm_power_collapse(): idle 0, delay 294917, limit 0
<6>[05-17 00:19:54.173388] [7: suspend]msm_pm_power_collapse(): msm_pm_collapse returned 1
<6>[05-17 00:19:54.173388] [7: suspend]record_sleep_awake_time(): APP keep:		285.673 s !!!!!!!!!!awake   lcd on for		284 s  99 %
<6>[05-17 00:19:54.173388] [7: suspend]msm_pm_enter(): return 0
<6>[05-17 00:19:54.173388] [7: suspend]PM: early resume of devices complete after 0.338 msecs
<6>[05-17 00:19:54.173388] wakeup wake lock: msm_otg
<6>[05-17 00:19:54.173388] [58: k_otg]msm_otg_resume: usb exited from low power mode
<4>[05-17 00:19:54.173388] [7: suspend]ar6000_pm_resume: enter mode 3
<6>[05-17 00:19:54.173388] [7: suspend]LHX LED PROC:Green 0,RED0;config 0x0,set(2dis 3enable):2
<6>[05-17 00:19:54.183388] [7: suspend]msm_kgsl: initialized dev=0 mmu=on per_process_pagetable=off
<6>[05-17 00:19:54.233388] [7: suspend]msmsdcc_resume () disable sdiowakeup_irq 83
<6>[05-17 00:19:54.233388] [7: suspend]mmc_sdio_resume keep power resume case
<6>[05-17 00:19:54.233388] [7: suspend]mmc1: mmc_resume_host in wifi slot skip cmd7
<4>[05-17 00:19:54.233388] [1431: AR6K resume]ar6000_resume_ev: enter powerCtrl 3
<6>[05-17 00:19:54.233388] [1431: AR6K resume]ar6000_resume_ev () WoW resume
<4>[05-17 00:19:54.233388] [1431: AR6K resume]ar6000_resume_ev unmask interrupt
<4>[05-17 00:19:54.233388] [1431: AR6K resume]ar6000_wow_resume enter
<7>[05-17 00:19:54.233388] [7: suspend]msmrtc_tod_proc_result: 05/17/2012 00:19:55 (03)
<7>[05-17 00:19:54.233388] [7: suspend]msmrtc_tod_proc_result: 05/17/2012 00:19:55 (03)
<6>[05-17 00:19:55.500000] [7: suspend]PM: resume of devices complete after 63.215 msecs
<6>[05-17 00:19:55.500000] [7: suspend]Resume DONE in suspend_devices_and_enter line 229
<6>[05-17 00:19:55.500000] [7: suspend]record_sleep_awake_time(): APP keep:		  1.327 s !!!!!!!!!!sleep!!!!!!!! modem awake		  1 seconds  500 %o
<6>[05-17 00:19:55.500000] [7: suspend]PM: Finishing wakeup.
<4>[05-17 00:19:55.500000] [7: suspend]Restarting tasks ... done.
<4>[05-17 00:19:55.510000] [7: suspend]PM_POST_SUSPEND
<4>[05-17 00:19:55.510000] [7: suspend][PM] additional wakeup info:
<4>[05-17 00:19:55.510000] [7: suspend] wakeupreason:0x2
<4>[05-17 00:19:55.510000] [7: suspend] rpc_prog:0x30000061
<4>[05-17 00:19:55.510000] [7: suspend] rpc_proc:0x10
<6>[05-17 00:19:55.510000] [7: suspend]WAKEUP INFO2012-05-17 00:19:55 <UTC> resume
<6>[05-17 00:19:55.510000] [7: suspend]WakeupReason:INT RpcProg:PM_LIB	  RpcProc:0x10	SmdPortName:RPCCALL	   GpioInfo:0x13
<6>[05-17 00:19:55.510000] [7: suspend]
<6>[05-17 00:19:55.510000] [7: suspend]PM: success to suspend_finish.
<6>[05-17 00:19:55.510000] [7: suspend]suspend: exit suspend, ret = 0 (2012-05-17 00:19:55.519195000 UTC)
<6>[05-17 00:19:55.510000] [7: suspend]suspend: pm_suspend returned with no event
<6>[05-17 00:19:55.510000] [7: suspend]active wake lock msm_otg
<6>[05-17 00:19:55.510000] [7: suspend]active wake lock ar6k_wow, time left 298
<6>[05-17 00:19:55.510000] [7: suspend]active wake lock unknown_wakeups, time left 50
<6>[05-17 00:19:55.510000] [7: suspend]suspend: abort suspend
<6>[05-17 00:19:56.919999] [23: krpcserversd]Wakeup_RPC __msm_rpc_read prog= 0x30000015 proc= 0x00000002
<4>[05-17 00:21:44.660000] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:21:44.660000] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:22:46.209998] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:22:46.209998] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:23:47.749998] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:23:47.749998] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:24:49.300004] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:24:49.300004] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:25:50.839999] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:25:50.839999] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:26:52.380002] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:26:52.380002] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:27:53.930001] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:27:53.930001] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:28:55.469998] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:28:55.469998] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:29:57.010004] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:29:57.010004] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:30:58.560003] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:30:58.560003] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:32:00.410001] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:32:00.410001] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:33:01.949997] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:33:01.949997] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:34:03.489998] [1432: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-17 00:34:03.489998] [1432: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<4>[05-17 00:34:51.840007] [272: wpa_supplicant]issue DISCONNECT in ar6000_ioctl_siwmlme 2524
<4>[05-17 00:34:51.850006] [1432: ksdioirqd/mmc1]ar6000_disconnect_event(): Issue disconnect event to supplicant
<4>[05-17 00:34:51.850006] [1432: ksdioirqd/mmc1]AR6000 disconnected from 00:21:27:bc:60:e2
<4>[05-17 00:34:51.850006] [1432: ksdioirqd/mmc1]Disconnect Reason is 3
<4>[05-17 00:34:51.850006] [1432: ksdioirqd/mmc1]Protocol Reason/Status Code is 0
<4>[05-17 00:34:51.850006] [1432: ksdioirqd/mmc1]AssocResp Frame = NULL
<3>[05-17 01:57:15.690002] [23: krpcserversd]--keycode from A9
<3>[05-17 01:57:15.690002] [23: krpcserversd]   key:116 keycode:81
<6>[05-17 01:57:15.700002] [230: WindowManagerPo]request_suspend_state: wakeup (3->0) at 7566375793676 (2012-05-17 01:57:15.712663665 UTC)
<6>[05-17 01:57:15.700002] [230: WindowManagerPo][early_suspend] wq status=1
<6>[05-17 01:57:15.700002] [7: suspend]late_resume: call handlers
<6>[05-17 01:57:15.700002] [7: suspend]late_resume: handlers level=151
<6>[05-17 01:57:15.700002] [7: suspend]late_resume: handlers level=150
<6>[05-17 01:57:15.700002] [7: suspend]late_resume: handlers level=150
<6>[05-17 01:57:15.700002] [7: suspend]late_resume: handlers level=148
<6>[05-17 01:57:15.700002] [7: suspend]lcdc config
<2>[05-17 01:57:15.710002] [230: WindowManagerPo][taos]light on while prox off
<2>[05-17 01:57:15.730001] [230: WindowManagerPo][taos]TAOS_IOCTL_ALS_ON,lux=5808
<4>[05-17 01:57:15.730001] [7: suspend]spi_init
<4>[05-17 01:57:15.730001] [7: suspend]!
<3>[05-17 01:57:15.870001] [23: krpcserversd]--keycode from A9
<3>[05-17 01:57:15.870001] [23: krpcserversd]   key:116 keycode:255
<4>[05-17 01:57:16.050001] [7: suspend]lcd module TFT LEAD init finish
<4>[05-17 01:57:16.050001] [7: suspend]![ZYF] lcdc_set_bl level=0, 1
<6>[05-17 01:57:16.090001] [7: suspend]late_resume: handlers level=100
<6>[05-17 01:57:16.090001] [7: suspend]late_resume: handlers level=51
<6>[05-17 01:57:16.090001] [7: suspend]late_resume: handlers level=50
<6>[05-17 01:57:16.090001] [7: suspend]late_resume: handlers level=50
<6>[05-17 01:57:16.090001] [7: suspend]late_resume: handlers level=0
<6>[05-17 01:57:16.090001] [7: suspend][lis302dl@gsensor]:lis302dl resume
<6>[05-17 01:57:16.090001] [7: suspend]late_resume: done
<4>[05-17 01:57:16.090001] [7: suspend][ZYF] lcdc_set_bl level=13, 1
<4>[05-17 01:57:16.090001] [7: suspend][LY] before select_1wire_mode
<4>[05-17 01:57:16.090001] [7: suspend][LY] send_bkl_address
<4>[05-17 01:57:16.090001] [7: suspend][LY] send_bkl_data
<3>[05-17 01:57:16.200001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=31 lo=19
<4>[05-17 01:57:18.480001] [1432: ksdioirqd/mmc1]AR6000 scan complete: 0
<6>[05-17 01:57:18.490001] [272: wpa_supplicant]ADDRCONF(NETDEV_UP): wlan0: link is not ready
<4>[05-17 01:57:18.490001] [272: wpa_supplicant]channel hint set to 2437
<4>[05-17 01:57:18.490001] [272: wpa_supplicant]ar6000_ioctl_siwessid called ssid 66-602============
<4>[05-17 01:57:18.490001] [272: wpa_supplicant]Connect called with authmode 1 dot11 auth 1 PW crypto 1 PW crypto Len 0 GRP crypto 1 GRP crypto Len 0
<4>[05-17 01:57:18.490001] [272: wpa_supplicant]---->Ssid = 66-602
<3>[05-17 01:57:21.230001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=21 lo=13
<3>[05-17 01:57:22.030001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=28 lo=18


#2 panyongfeng

panyongfeng
  • Members
  • 8 posts
  • Country:
    cn - China
  • Device Model:
    Blade
  • CM Version:
    CyanogenMod-7.2.0-RC1-blade
  • Recovery Image:
    ClockworkMod

Posted 17 May 2012 - 12:46 PM

when I test my usb-mouse: I get following info:

<7>[05-17 12:41:30.519994] IRQ state: b_idle
<7>[05-17 12:41:30.519994] otgsc = 9213020
<7>[05-17 12:41:30.519994] Id clear
<7>[05-17 12:41:30.519994] phy_ints = 9
<7>[05-17 12:41:30.519994] [58: k_otg]!id || id_A
<7>[05-17 12:41:30.539997] [58: k_otg]Charging with 0mA current
<7>[05-17 12:41:30.539997] [58: k_otg]!a_bus_drop && (a_srp_det || a_bus_req)
<7>[05-17 12:41:30.539997] [58: k_otg]starting a_wait_vrise timer
<7>[05-17 12:41:30.640014] expired a_wait_vrise timer
<7>[05-17 12:41:30.640014] [58: k_otg]a_vbus_vld
<7>[05-17 12:41:30.640014] [58: k_otg]starting a_wait_bcon timer
<6>[05-17 12:41:30.640014] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: Qualcomm On-Chip EHCI Host Controller
<7>[05-17 12:41:30.640014] [58: k_otg]drivers/usb/core/inode.c: creating file 'devices'
<7>[05-17 12:41:30.640014] [58: k_otg]drivers/usb/core/inode.c: creating file '001'
<6>[05-17 12:41:30.640014] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: new USB bus registered, assigned bus number 1
<7>[05-17 12:41:30.640014] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: park 0
<7>[05-17 12:41:30.640014] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
<7>[05-17 12:41:30.640014] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: supports USB remote wakeup
<6>[05-17 12:41:30.640014] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: irq 47, io base 0xa0800000
<7>[05-17 12:41:30.640014] [58: k_otg]usb usb1: default language 0x0409
<7>[05-17 12:41:30.640014] [58: k_otg]usb usb1: udev 1, busnum 1, minor = 0
<6>[05-17 12:41:30.640014] [58: k_otg]usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[05-17 12:41:30.640014] [58: k_otg]usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[05-17 12:41:30.640014] [58: k_otg]usb usb1: Product: Qualcomm On-Chip EHCI Host Controller
<6>[05-17 12:41:30.640014] [58: k_otg]usb usb1: Manufacturer: Linux 2.6.35.7-perf+ ehci_hcd
<6>[05-17 12:41:30.640014] [58: k_otg]usb usb1: SerialNumber: msm_hsusb_host.0
<7>[05-17 12:41:30.650015] [58: k_otg]usb usb1: usb_probe_device
<7>[05-17 12:41:30.650015] [58: k_otg]usb usb1: configuration #1 chosen from 1 choice
<7>[05-17 12:41:30.650015] [58: k_otg]usb usb1: adding 1-0:1.0 (config #1, interface 0)
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: usb_probe_interface
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: usb_probe_interface - got id
<6>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: USB hub found
<6>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: 1 port detected
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: standalone hub
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: individual port power switching
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: individual port over-current protection
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: Single TT
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: power on to power good time: 20ms
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: local power source is good
<7>[05-17 12:41:30.650015] [58: k_otg]hub 1-0:1.0: enabling power on all ports
<7>[05-17 12:41:30.650015] [58: k_otg]drivers/usb/core/inode.c: creating file '001'
<7>[05-17 12:41:30.750012] [12: khubd]hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
<3>[05-17 12:41:34.850017] [23: krpcserversd]--keycode from A9
<3>[05-17 12:41:34.850017] [23: krpcserversd]   key:116 keycode:81
<6>[05-17 12:41:34.850017] [230: WindowManagerPo]request_suspend_state: wakeup (3->0) at 37926193042386 (2012-05-17 12:41:34.859632387 UTC)
<6>[05-17 12:41:34.850017] [230: WindowManagerPo][early_suspend] wq status=1
<6>[05-17 12:41:34.850017] [7: suspend]late_resume: call handlers
<6>[05-17 12:41:34.850017] [7: suspend]late_resume: handlers level=151
<6>[05-17 12:41:34.850017] [7: suspend]late_resume: handlers level=150
<6>[05-17 12:41:34.850017] [7: suspend]late_resume: handlers level=150
<6>[05-17 12:41:34.850017] [7: suspend]late_resume: handlers level=148
<6>[05-17 12:41:34.850017] [7: suspend]lcdc config
<2>[05-17 12:41:34.850017] [230: WindowManagerPo][taos]light on while prox off
<2>[05-17 12:41:34.870016] [230: WindowManagerPo][taos]TAOS_IOCTL_ALS_ON,lux=280
<4>[05-17 12:41:34.880016] [7: suspend]spi_init
<4>[05-17 12:41:34.880016] [7: suspend]!
<3>[05-17 12:41:35.010012] [23: krpcserversd]--keycode from A9
<3>[05-17 12:41:35.010012] [23: krpcserversd]   key:116 keycode:255
<4>[05-17 12:41:35.230012] [7: suspend]lcd module TFT LEAD init finish
<4>[05-17 12:41:35.230012] [7: suspend]![ZYF] lcdc_set_bl level=0, 1
<6>[05-17 12:41:35.270012] [7: suspend]late_resume: handlers level=100
<6>[05-17 12:41:35.270012] [7: suspend]late_resume: handlers level=51
<6>[05-17 12:41:35.270012] [7: suspend]late_resume: handlers level=50
<6>[05-17 12:41:35.270012] [7: suspend]late_resume: handlers level=50
<6>[05-17 12:41:35.270012] [7: suspend]late_resume: handlers level=0
<6>[05-17 12:41:35.270012] [7: suspend][lis302dl@gsensor]:lis302dl resume
<6>[05-17 12:41:35.270012] [7: suspend]late_resume: done
<4>[05-17 12:41:35.270012] [7: suspend][ZYF] lcdc_set_bl level=13, 1
<4>[05-17 12:41:35.270012] [7: suspend][LY] before select_1wire_mode
<4>[05-17 12:41:35.270012] [7: suspend][LY] send_bkl_address
<4>[05-17 12:41:35.270012] [7: suspend][LY] send_bkl_data
<3>[05-17 12:41:42.210012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=12 lo=8
<3>[05-17 12:41:42.670012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=5 lo=3
<3>[05-17 12:41:44.230012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=23 lo=15
<4>[05-17 12:41:45.910012] [283: putmethod.latin]select 402 (d.process.media), adj 8, size 5296, to kill
<4>[05-17 12:41:45.910012] [283: putmethod.latin]select 464 (m.android.email), adj 11, size 7134, to kill
<4>[05-17 12:41:45.910012] [283: putmethod.latin]select 813 (d.process.acore), adj 12, size 5479, to kill
<4>[05-17 12:41:45.910012] [283: putmethod.latin]send sigkill to 813 (d.process.acore), adj 12, size 5479
<3>[05-17 12:41:46.050012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=8 lo=6
<3>[05-17 12:41:46.480012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=3 lo=3
<3>[05-17 12:41:46.950012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=1 lo=1
<3>[05-17 12:41:47.700012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=5 lo=3
<3>[05-17 12:41:49.530012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=1 lo=1
<3>[05-17 12:41:49.990012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=2 lo=2
<3>[05-17 12:41:50.920012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=5 lo=3
<3>[05-17 12:41:51.960012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=15 lo=9
<3>[05-17 12:41:56.390012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=7 lo=5
<3>[05-17 12:42:00.500012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=5 lo=3
<7>[05-17 12:42:00.640012] expired a_wait_bcon timer
<7>[05-17 12:42:00.640012] [58: k_otg]id_f/b/c || a_bus_drop ||a_wait_bcon_tmout
<7>[05-17 12:42:00.640012] [58: k_otg]sending DEV_CONN_TMOUT event
<7>[05-17 12:42:00.640012] [58: k_otg]deleting a_wait_bcon timer. remaining 0 msec
<6>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: remove, state 1
<7>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: roothub graceful disconnect
<6>[05-17 12:42:00.640012] [58: k_otg]usb usb1: USB disconnect, address 1
<7>[05-17 12:42:00.640012] [58: k_otg]usb usb1: unregistering device
<7>[05-17 12:42:00.640012] [58: k_otg]usb usb1: usb_disable_device nuking all URBs
<7>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: shutdown urb c7f03940 ep1in-intr
<7>[05-17 12:42:00.640012] [58: k_otg]usb usb1: unregistering interface 1-0:1.0
<7>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: stop
<7>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: reset command 01000a (park)=0 ithresh=1 period=256 Reset HALT
<7>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: irq normal 0 err 0 reclaim 0 (lost 0)
<7>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: complete 0 unlink 0
<7>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: ehci_stop completed status 80001000 Halt
<6>[05-17 12:42:00.640012] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: USB bus 1 deregistered
<7>[05-17 12:42:00.790012] [58: k_otg]starting a_wait_vfall timer
<7>[05-17 12:42:01.290012] expired a_wait_vfall timer
<7>[05-17 12:42:01.290012] [58: k_otg]No session requested
<7>[05-17 12:42:01.290012] [58: k_otg]phy can power collapse: (0)
<6>[05-17 12:42:01.290012] [58: k_otg]msm_otg_suspend: usb in low power mode
<3>[05-17 12:42:08.730012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=1 lo=1
<3>[05-17 12:42:12.410012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=3 lo=3
<3>[05-17 12:42:12.850012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=1 lo=1
<3>[05-17 12:42:14.980012] [4: events/0]TAOS: lux_timep->saturation=8100 hi=5 lo=3
$


#3 panyongfeng

panyongfeng
  • Members
  • 8 posts
  • Country:
    cn - China
  • Device Model:
    Blade
  • CM Version:
    CyanogenMod-7.2.0-RC1-blade
  • Recovery Image:
    ClockworkMod

Posted 17 May 2012 - 01:17 PM

http://avkon2010.nar...bian_3_OTG.html
http://www.rockbox.o...ets/OTG1_0a.pdf

From above article, it seems B-device (U-disk) did not signal its connection, which cause a_wait_bcon_tmr timeout and goto a_wait_vfall state and finally to a_idle state.
It has the same scenario with the USB-mouse.

Check Blade as peripharials states transactions.

#4 panyongfeng

panyongfeng
  • Members
  • 8 posts
  • Country:
    cn - China
  • Device Model:
    Blade
  • CM Version:
    CyanogenMod-7.2.0-RC1-blade
  • Recovery Image:
    ClockworkMod

Posted 17 May 2012 - 01:27 PM

following log is when Blade is connect to PC:

<7>[05-17 13:20:26.320013] IRQ state: b_idle
<7>[05-17 13:20:26.320013] otgsc = 92c0f20
<7>[05-17 13:20:26.320013] BSV set
<7>[05-17 13:20:26.320013] phy_ints = 17
<7>[05-17 13:20:26.320013] ID_C set
<7>[05-17 13:20:26.320013] [58: k_otg]b_sess_vld
<7>[05-17 13:20:26.320013] [58: k_otg]Charging with 1500mA current
<6>[05-17 13:20:26.320013] [4: events/0]msm_hsusb msm_hsusb: msm72k_udc: offline flags 0x2
<6>[05-17 13:20:26.320013] [4: events/0]msm_hsusb msm_hsusb: msm72k_udc: OFFLINE -> ONLINE
<3>[05-17 13:20:26.320013] [86: khsclntd]--keycode from A9(charger)
<3>[05-17 13:20:26.320013] [86: khsclntd]	   key:143 keycode:120
<4>[05-17 13:20:26.320013] [86: khsclntd]No pity! update battery event
<3>[05-17 13:20:26.330013] [86: khsclntd]--keycode from A9(charger)
<3>[05-17 13:20:26.330013] [86: khsclntd]	   key:143 keycode:255
<4>[05-17 13:20:26.330013] [86: khsclntd]No pity! update battery event
<6>[05-17 13:20:26.450013] [4: events/0]msm_hsusb msm_hsusb: msm72k_udc: request_irq
<6>[05-17 13:20:26.450013] [4: events/0]msm_hsusb msm_hsusb: msm72k_udc: online flags 0x2
<6>[05-17 13:20:26.450013] msm_hsusb msm_hsusb: suspend
<3>[05-17 13:20:26.460013] [60: kpmapp_usbclntc]msm_otg_set_vbus_state 1095 online = 1, in_lpm 0
<3>[05-17 13:20:26.520013] [4: events/0]TAOS: lux_timep->saturation=8100 hi=1 lo=1
<6>[05-17 13:20:26.540013] [4: events/0]msm_hsusb msm_hsusb: msm72k_udc: online flags 0x10
<6>[05-17 13:20:26.550013] [212: er.ServerThread][ZYF@pmic-leds]DISABLE red led blink
<6>[05-17 13:20:26.550013] [212: er.ServerThread][ZYF@pmic-leds]DISABLE green led blink
<6>[05-17 13:20:26.700013] msm_hsusb msm_hsusb: reset
<7>[05-17 13:20:26.710013] IRQ state: b_peripheral
<7>[05-17 13:20:26.710013] otgsc = 9200e20
<7>[05-17 13:20:26.710013] portsc = 88000a05
<6>[05-17 13:20:26.710013] msm_hsusb msm_hsusb: portchange USB_SPEED_HIGH
<6>[05-17 13:20:26.750013] msm_hsusb msm_hsusb: reset
<7>[05-17 13:20:26.750013] IRQ state: b_peripheral
<7>[05-17 13:20:26.750013] otgsc = 9200e20
<7>[05-17 13:20:26.750013] portsc = 88000a05
<6>[05-17 13:20:26.750013] msm_hsusb msm_hsusb: portchange USB_SPEED_HIGH
<6>[05-17 13:20:26.890013] android_usb gadget: high speed config #1: android
<6>[05-17 13:20:26.890013] [4: events/0]msm_hsusb msm_hsusb: msm72k_udc: online flags 0x20
<3>[05-17 13:20:27.160013] [4: events/0]TAOS: lux_timep->saturation=8100 hi=3 lo=3
<3>[05-17 13:20:27.600013] [4: events/0]TAOS: lux_timep->saturation=8100 hi=2 lo=2

obviously, Blade is regarded as B-device, from b_idle -> b_sess_vld -> b_periparial.

Edited by panyongfeng, 17 May 2012 - 01:29 PM.


#5 panyongfeng

panyongfeng
  • Members
  • 8 posts
  • Country:
    cn - China
  • Device Model:
    Blade
  • CM Version:
    CyanogenMod-7.2.0-RC1-blade
  • Recovery Image:
    ClockworkMod

Posted 17 May 2012 - 01:32 PM

It seems that the U-disk, does not signal its connections, which cause A-device(Blade) can not goto A_host state.
Does any body know how to make the U-disk to signal its connection?

It seems D+ is used by peripheral to signal its connection. how to debug this?

#6 panyongfeng

panyongfeng
  • Members
  • 8 posts
  • Country:
    cn - China
  • Device Model:
    Blade
  • CM Version:
    CyanogenMod-7.2.0-RC1-blade
  • Recovery Image:
    ClockworkMod

Posted 18 May 2012 - 12:08 PM

I doubt it is 5v power is not supply by Blade, So I use external 5v power and get b_conn signal:

<6>[05-18 11:50:42.109984] active wake lock msm_otg
<6>[05-18 11:50:42.109984] [POWER]********************
<3>[05-18 11:52:30.669997] [23: krpcserversd]--keycode from A9
<3>[05-18 11:52:30.669997] [23: krpcserversd]   key:116 keycode:81
<6>[05-18 11:52:30.679997] [230: WindowManagerPo]request_suspend_state: wakeup (3->0) at 119510506308862 (2012-05-18 11:52:30.686811231 UTC)
<6>[05-18 11:52:30.679997] [230: WindowManagerPo][early_suspend] wq status=1
<6>[05-18 11:52:30.679997] [7: suspend]late_resume: call handlers
<6>[05-18 11:52:30.679997] [7: suspend]late_resume: handlers level=151
<6>[05-18 11:52:30.679997] [7: suspend]late_resume: handlers level=150
<6>[05-18 11:52:30.679997] [7: suspend]late_resume: handlers level=150
<6>[05-18 11:52:30.679997] [7: suspend]late_resume: handlers level=148
<6>[05-18 11:52:30.679997] [7: suspend]lcdc config
<4>[05-18 11:52:30.689998] [7: suspend]spi_init
<4>[05-18 11:52:30.689998] [7: suspend]!
<2>[05-18 11:52:30.689998] [230: WindowManagerPo][taos]light on while prox off
<2>[05-18 11:52:30.709999] [230: WindowManagerPo][taos]TAOS_IOCTL_ALS_ON,lux=430
<3>[05-18 11:52:30.840001] [23: krpcserversd]--keycode from A9
<3>[05-18 11:52:30.840001] [23: krpcserversd]   key:116 keycode:255
<4>[05-18 11:52:31.070001] [7: suspend]lcd module TFT LEAD init finish
<4>[05-18 11:52:31.070001] [7: suspend]![ZYF] lcdc_set_bl level=0, 1
<6>[05-18 11:52:31.110001] [7: suspend]late_resume: handlers level=100
<6>[05-18 11:52:31.110001] [7: suspend]late_resume: handlers level=51
<6>[05-18 11:52:31.110001] [7: suspend]late_resume: handlers level=50
<6>[05-18 11:52:31.110001] [7: suspend]late_resume: handlers level=50
<6>[05-18 11:52:31.110001] [7: suspend]late_resume: handlers level=0
<6>[05-18 11:52:31.110001] [7: suspend][lis302dl@gsensor]:lis302dl resume
<6>[05-18 11:52:31.110001] [7: suspend]late_resume: done
<4>[05-18 11:52:31.110001] [7: suspend][ZYF] lcdc_set_bl level=13, 1
<4>[05-18 11:52:31.110001] [7: suspend][LY] before select_1wire_mode
<4>[05-18 11:52:31.110001] [7: suspend][LY] send_bkl_address
<4>[05-18 11:52:31.110001] [7: suspend][LY] send_bkl_data
<3>[05-18 11:52:31.190001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=6 lo=4
<4>[05-18 11:52:33.530001] [8373: ksdioirqd/mmc1]AR6000 scan complete: 0
<6>[05-18 11:52:33.530001] [615: wpa_supplicant]ADDRCONF(NETDEV_UP): wlan0: link is not ready
<4>[05-18 11:52:33.530001] [615: wpa_supplicant]channel hint set to 2437
<4>[05-18 11:52:33.540001] [615: wpa_supplicant]ar6000_ioctl_siwessid called ssid 66-602============
<4>[05-18 11:52:33.540001] [615: wpa_supplicant]Connect called with authmode 1 dot11 auth 1 PW crypto 1 PW crypto Len 0 GRP crypto 1 GRP crypto Len 0
<4>[05-18 11:52:33.540001] [615: wpa_supplicant]---->Ssid = 66-602
<4>[05-18 11:52:33.580001] [8373: ksdioirqd/mmc1]AR6000 connected event on freq 2437 with bssid 00:21:27:bc:60:e2  listenInterval=1000, beaconInterval = 100, beaconIeLen = 0 assocReqLen=28 assocRespLen =22
<4>[05-18 11:52:33.580001] [8373: ksdioirqd/mmc1]Network: Infrastructure
<4>[05-18 11:52:33.580001] [8373: ksdioirqd/mmc1]
<4>[05-18 11:52:33.580001] [8373: ksdioirqd/mmc1]AssocRespIEs= 01 08 82 84 8b 96 0c 18 30 48 32 04 12 24 60 6c
<4>[05-18 11:52:33.580001] [8373: ksdioirqd/mmc1]AssocReqIEs= 00 06 36 36 2d 36 30 32 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c
<6>[05-18 11:52:33.580001] [4: events/0]ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<4>[05-18 11:52:36.190001] [8373: ksdioirqd/mmc1]AR6000 Neighbor Report Event
<4>[05-18 11:52:36.200001] [8373: ksdioirqd/mmc1]bssid 00:21:27:bc:60:e2
<3>[05-18 11:52:37.630001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=16 lo=10
<3>[05-18 11:52:38.040001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=10 lo=6
<4>[05-18 11:52:38.370001] [22: kswapd0]select 11389 (m.android.email), adj 8, size 5699, to kill
<4>[05-18 11:52:38.370001] [22: kswapd0]send sigkill to 11389 (m.android.email), adj 8, size 5699
<3>[05-18 11:52:38.660001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=6 lo=4
<4>[05-18 11:52:39.220001] [22: kswapd0]select 11407 (ndroid.settings), adj 7, size 5951, to kill
<4>[05-18 11:52:39.220001] [22: kswapd0]send sigkill to 11407 (ndroid.settings), adj 7, size 5951
<3>[05-18 11:52:39.590001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=11 lo=7
<4>[05-18 11:52:40.460001] [22: kswapd0]select 11453 (d.apps.uploader), adj 7, size 4701, to kill
<4>[05-18 11:52:40.460001] [22: kswapd0]send sigkill to 11453 (d.apps.uploader), adj 7, size 4701
<4>[05-18 11:52:41.050001] [11461: d.process.acore]select 11471 (anogenmod.stats), adj 7, size 4522, to kill
<4>[05-18 11:52:41.050001] [11461: d.process.acore]send sigkill to 11471 (anogenmod.stats), adj 7, size 4522
<4>[05-18 11:52:41.920001] [22: kswapd0]select 11461 (d.process.acore), adj 8, size 5404, to kill
<4>[05-18 11:52:41.920001] [22: kswapd0]send sigkill to 11461 (d.process.acore), adj 8, size 5404
<4>[05-18 11:52:43.740001] [22: kswapd0]select 11479 (d.process.media), adj 8, size 5184, to kill
<4>[05-18 11:52:43.740001] [22: kswapd0]send sigkill to 11479 (d.process.media), adj 8, size 5184
<7>[05-18 11:52:43.760001] wlan0: no IPv6 routers present
<4>[05-18 11:52:43.920001] [22: kswapd0]select 11493 (d.process.acore), adj 7, size 6615, to kill
<4>[05-18 11:52:43.920001] [22: kswapd0]send sigkill to 11493 (d.process.acore), adj 7, size 6615
<3>[05-18 11:52:54.050001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=3 lo=3
<3>[05-18 11:52:54.660001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=5 lo=3
<3>[05-18 11:52:55.880001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=7 lo=5
<3>[05-18 11:52:57.860001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=5 lo=3
<7>[05-18 11:52:58.160001] IRQ state: b_idle
<7>[05-18 11:52:58.160001] otgsc = 49211020
<7>[05-18 11:52:58.160001] Id clear
<7>[05-18 11:52:58.160001] phy_ints = 9
<7>[05-18 11:52:58.160001] [58: k_otg]!id || id_A
<7>[05-18 11:52:58.180001] [58: k_otg]Charging with 0mA current
<7>[05-18 11:52:58.180001] [58: k_otg]!a_bus_drop && (a_srp_det || a_bus_req)
<7>[05-18 11:52:58.180001] [58: k_otg]starting a_wait_vrise timer
<7>[05-18 11:52:58.280001] expired a_wait_vrise timer
<7>[05-18 11:52:58.280001] [58: k_otg]a_vbus_vld
<7>[05-18 11:52:58.280001] [58: k_otg]starting a_wait_bcon timer
<6>[05-18 11:52:58.280001] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: Qualcomm On-Chip EHCI Host Controller
<7>[05-18 11:52:58.280001] [58: k_otg]drivers/usb/core/inode.c: creating file 'devices'
<7>[05-18 11:52:58.280001] [58: k_otg]drivers/usb/core/inode.c: creating file '001'
<6>[05-18 11:52:58.280001] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: new USB bus registered, assigned bus number 1
<7>[05-18 11:52:58.280001] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: park 0
<7>[05-18 11:52:58.280001] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
<7>[05-18 11:52:58.280001] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: supports USB remote wakeup
<6>[05-18 11:52:58.280001] [58: k_otg]msm_hsusb_host msm_hsusb_host.0: irq 47, io base 0xa0800000
<7>[05-18 11:52:58.280001] IRQ state: a_wait_bcon
<7>[05-18 11:52:58.280001] otgsc = 9203020
<7>[05-18 11:52:58.280001] portsc = 80001803
<7>[05-18 11:52:58.280001] [58: k_otg]usb usb1: default language 0x0409
<7>[05-18 11:52:58.280001] [58: k_otg]usb usb1: udev 1, busnum 1, minor = 0
<6>[05-18 11:52:58.280001] [58: k_otg]usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[05-18 11:52:58.280001] [58: k_otg]usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[05-18 11:52:58.280001] [58: k_otg]usb usb1: Product: Qualcomm On-Chip EHCI Host Controller
<6>[05-18 11:52:58.280001] [58: k_otg]usb usb1: Manufacturer: Linux 2.6.35.7-perf+ ehci_hcd
<6>[05-18 11:52:58.280001] [58: k_otg]usb usb1: SerialNumber: msm_hsusb_host.0
<7>[05-18 11:52:58.290001] [58: k_otg]usb usb1: usb_probe_device
<7>[05-18 11:52:58.290001] [58: k_otg]usb usb1: configuration #1 chosen from 1 choice
<7>[05-18 11:52:58.290001] [58: k_otg]usb usb1: adding 1-0:1.0 (config #1, interface 0)
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: usb_probe_interface
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: usb_probe_interface - got id
<6>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: USB hub found
<6>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: 1 port detected
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: standalone hub
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: individual port power switching
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: individual port over-current protection
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: Single TT
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: power on to power good time: 20ms
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: local power source is good
<7>[05-18 11:52:58.290001] [58: k_otg]hub 1-0:1.0: enabling power on all ports
<7>[05-18 11:52:58.300001] [58: k_otg]drivers/usb/core/inode.c: creating file '001'
<7>[05-18 11:52:58.390001] [4: events/0]msm_hsusb_host msm_hsusb_host.0: GetStatus port 1 status 80001803 POWER sig=j CSC CONNECT
<7>[05-18 11:52:58.390001] [4: events/0]hub 1-0:1.0: port 1: status 0101 change 0001
<7>[05-18 11:52:58.490001] [12: khubd]hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
<7>[05-18 11:52:58.490001] [12: khubd]hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
<7>[05-18 11:52:58.540001] IRQ state: a_wait_bcon
<7>[05-18 11:52:58.540001] otgsc = 9201020
<7>[05-18 11:52:58.540001] portsc = 88001205
<6>[05-18 11:52:58.610001] [12: khubd]usb 1-1: new high speed USB device using msm_hsusb_host and address 2
<7>[05-18 11:52:58.670001] IRQ state: a_wait_bcon
<7>[05-18 11:52:58.670001] otgsc = 9203020
<7>[05-18 11:52:58.670001] portsc = 88001205
<7>[05-18 11:52:58.760001] [12: khubd]usb 1-1: default language 0x0409
<7>[05-18 11:52:58.760001] [12: khubd]usb 1-1: udev 2, busnum 1, minor = 1
<6>[05-18 11:52:58.760001] [12: khubd]usb 1-1: New USB device found, idVendor=05e3, idProduct=0718
<6>[05-18 11:52:58.760001] [12: khubd]usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
<6>[05-18 11:52:58.760001] [12: khubd]usb 1-1: Product: USB Storage
<7>[05-18 11:52:58.760001] [12: khubd]usb 1-1: usb_probe_device
<7>[05-18 11:52:58.760001] [12: khubd]usb 1-1: configuration #1 chosen from 1 choice
<7>[05-18 11:52:58.760001] [12: khubd]usb 1-1: adding 1-1:1.0 (config #1, interface 0)
<7>[05-18 11:52:58.770001] [12: khubd]usb-storage 1-1:1.0: usb_probe_interface
<7>[05-18 11:52:58.770001] [12: khubd]usb-storage 1-1:1.0: usb_probe_interface - got id
<7>[05-18 11:52:58.770001] [12: khubd]usb-storage: USB Mass Storage device detected
<7>[05-18 11:52:58.770001] [12: khubd]usb-storage: -- associate_dev
<7>[05-18 11:52:58.770001] [12: khubd]usb-storage: Vendor: 0x05e3, Product: 0x0718, Revision: 0x0024
<7>[05-18 11:52:58.770001] [12: khubd]usb-storage: Interface Subclass: 0x06, Protocol: 0x50
<7>[05-18 11:52:58.770001] [12: khubd]usb-storage: Transport: Bulk
<7>[05-18 11:52:58.770001] [12: khubd]usb-storage: Protocol: Transparent SCSI
<6>[05-18 11:52:58.770001] [12: khubd]scsi0 : usb-storage 1-1:1.0
<7>[05-18 11:52:58.770001] [11510: usb-storage]usb-storage: *** thread sleeping.
<7>[05-18 11:52:58.770001] [12: khubd]drivers/usb/core/inode.c: creating file '002'
<7>[05-18 11:52:58.770001] [12: khubd]B_CONN set
<7>[05-18 11:52:58.770001] [12: khubd]hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
<7>[05-18 11:52:58.780001] [58: k_otg]b_conn
<7>[05-18 11:52:58.780001] [58: k_otg]deleting a_wait_bcon timer. remaining 29501 msec
<7>[05-18 11:52:58.780001] [11511: usb-stor-scan]usb-storage 1-1:1.0: device found
<7>[05-18 11:52:58.780001] [11511: usb-stor-scan]usb-storage 1-1:1.0: waiting for device to settle before scanning
<7>[05-18 11:52:59.780001] [11511: usb-stor-scan]usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
<7>[05-18 11:53:09.780001] [11511: usb-stor-scan]usb-storage: Timeout -- cancelling URB
<7>[05-18 11:53:09.780001] [11511: usb-stor-scan]usb-storage: GetMaxLUN command result is -2, data is 0
<7>[05-18 11:53:09.780001] [11511: usb-stor-scan]usb-storage 1-1:1.0: scan complete
<7>[05-18 11:53:09.780001] [11516: scsi_scan_0]usb-storage: queuecommand called
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage: *** thread awakened.
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage: Command INQUIRY (6 bytes)
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage:  12 00 00 00 24 00
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage: Status code 0; transferred 31/31
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage: -- transfer complete
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage: Bulk command transfer result=0
<7>[05-18 11:53:09.780001] [11510: usb-storage]usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
<3>[05-18 11:53:10.820001] [4: events/0]TAOS: lux_timep->saturation=8100 hi=2 lo=2
$


#7 panyongfeng

panyongfeng
  • Members
  • 8 posts
  • Country:
    cn - China
  • Device Model:
    Blade
  • CM Version:
    CyanogenMod-7.2.0-RC1-blade
  • Recovery Image:
    ClockworkMod

Posted 19 May 2012 - 04:52 AM

another problem about mount, need help:

# find . -name "sda*"
./sys/devices/platform/msm_hsusb_host.0/usb1/1-1/1-1:1.0/host14/target14:0:0/14:0:0:0/block/sda
./sys/devices/platform/msm_hsusb_host.0/usb1/1-1/1-1:1.0/host14/target14:0:0/14:0:0:0/block/sda/sda1
./sys/devices/platform/msm_hsusb_host.0/usb1/1-1/1-1:1.0/host14/target14:0:0/14:0:0:0/block/sda/sda2
./sys/class/block/sda
./sys/class/block/sda1
./sys/class/block/sda2
./sys/block/sda
./dev/block/sda2
./dev/block/sda1
./dev/block/sda
./dev/block/platform/msm_hsusb_host.0/sda2
./dev/block/platform/msm_hsusb_host.0/sda1
./dev/block/platform/msm_hsusb_host.0/sda
# fdisk -l dev/block/sda1
Disk dev/block/sda1: 41.9 GB, 41940670464 bytes
255 heads, 63 sectors/track, 5098 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
		  Device Boot	  Start		 End	  Blocks  Id System
dev/block/sda1p1			   1		5098	40949653+ 83 Linux
# mount dev/block/sda1 mnt/sdcard/udisk
mount: mounting dev/block/sda1 on mnt/sdcard/udisk failed: Invalid argument
# mount -t ext2 dev/block/sda1 mnt/sdcard/udisk
mount: mounting dev/block/sda1 on mnt/sdcard/udisk failed: Invalid argument
# mount dev/block/sda1
mount: can't read '/etc/fstab': No such file or directory
#


#8 panyongfeng

panyongfeng
  • Members
  • 8 posts
  • Country:
    cn - China
  • Device Model:
    Blade
  • CM Version:
    CyanogenMod-7.2.0-RC1-blade
  • Recovery Image:
    ClockworkMod

Posted 19 May 2012 - 07:58 AM

It works now:
# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 067b:2506
# fdisk -l /dev/block/sda1
Disk /dev/block/sda1: 20.9 GB, 20966206464 bytes
254 heads, 63 sectors/track, 2559 cylinders
Units = cylinders of 16002 * 512 = 8193024 bytes
		   Device Boot	  Start		 End	  Blocks  Id System
/dev/block/sda1p1			   1		2560	20473787  83 Linux
# mount -t ext2 /dev/block/sda1 /mnt/sdcard/udisk
#df
Filesystem		   1K-blocks	  Used Available Use% Mounted on
tmpfs					85740		32	 85708   0% /dev
tmpfs					85740		 0	 85740   0% /mnt/asec
tmpfs					85740		 0	 85740   0% /mnt/obb
/dev/block/mtdblock5	225280	138216	 87064  61% /system
/dev/block/mtdblock6	166400	134724	 31676  81% /data
/dev/block/mtdblock4	 38400	  1208	 37192   3% /cache
/dev/block/mtdblock6	166400	134724	 31676  81% /cache/download
/dev/block/vold/179:1
					   7630848   2722560   4908288  36% /mnt/sdcard
/dev/block/vold/179:1
					   7630848   2722560   4908288  36% /mnt/secure/asec
/dev/block/dm-0		  28024	 26300	  1724  94% /mnt/asec/com.com2us.towerdefense.normal.freefull.google.cn.android.common-1
/dev/block/sda1	   20153140	 44992  19084408   0% /mnt/sdcard/udisk
# cd /mnt/sdcard/udisk
# ls
lost+found
# cp -r /mnt/sdcard/tuding /mnt/sdcard/udisk
# cd mnt
cd: can't cd to mnt
# pwd
/mnt/sdcard/udisk
# ls
lost+found  tuding
# umount /dev/block/sda1
umount: can't umount /mnt/sdcard/udisk: Device or resource busy
# df
Filesystem		   1K-blocks	  Used Available Use% Mounted on
tmpfs					85740		32	 85708   0% /dev
tmpfs					85740		 0	 85740   0% /mnt/asec
tmpfs					85740		 0	 85740   0% /mnt/obb
/dev/block/mtdblock5	225280	138216	 87064  61% /system
/dev/block/mtdblock6	166400	134724	 31676  81% /data
/dev/block/mtdblock4	 38400	  1208	 37192   3% /cache
/dev/block/mtdblock6	166400	134724	 31676  81% /cache/download
/dev/block/vold/179:1
					   7630848   2722560   4908288  36% /mnt/sdcard
/dev/block/vold/179:1
					   7630848   2722560   4908288  36% /mnt/secure/asec
/dev/block/dm-0		  28024	 26300	  1724  94% /mnt/asec/com.com2us.towerdefense.normal.freefull.google.cn.android.common-1
/dev/block/sda1	   20153140	 77604  19051796   0% /mnt/sdcard/udisk
# umount /mnt/sdcard/udisk
umount: can't umount /mnt/sdcard/udisk: Device or resource busy
#df
Filesystem		   1K-blocks	  Used Available Use% Mounted on
tmpfs					85740		32	 85708   0% /dev
tmpfs					85740		 0	 85740   0% /mnt/asec
tmpfs					85740		 0	 85740   0% /mnt/obb
/dev/block/mtdblock5	225280	138216	 87064  61% /system
/dev/block/mtdblock6	166400	134724	 31676  81% /data
/dev/block/mtdblock4	 38400	  1208	 37192   3% /cache
/dev/block/mtdblock6	166400	134724	 31676  81% /cache/download
/dev/block/vold/179:1
					   7630848   2722560   4908288  36% /mnt/sdcard
/dev/block/vold/179:1
					   7630848   2722560   4908288  36% /mnt/secure/asec
/dev/block/dm-0		  28024	 26300	  1724  94% /mnt/asec/com.com2us.towerdefense.normal.freefull.google.cn.android.common-1
/dev/block/sda1	   20153140	 77604  19051796   0% /mnt/sdcard/udisk
# pwd
/mnt/sdcard/udisk