1. Nimm jetzt an unserem Uhans - 3. ADVENT - Gewinnspiel teil - Alle Informationen findest Du hier!

Kernel modifizieren / Module laden

Dieses Thema im Forum "Android OS Entwicklung / Customize" wurde erstellt von Kaschina, 25.01.2012.

  1. Kaschina, 25.01.2012 #1
    Kaschina

    Kaschina Threadstarter Neuer Benutzer

    Beiträge:
    10
    Erhaltene Danke:
    0
    Registriert seit:
    01.01.2012
    Hallo,

    ich möchte, dass mein Tablet ein FTDI-Gerät erkennt.
    Dafür habe ich die Kernelsource heruntergeladen, die config vom Tablet reinkopiert, in menuconfig die entsprechenden Module aktiviert und nach langem Kampf auch erfolgreich kompiliert.
    Allerdings habe ich mich zu früh gefreut.
    Wenn ich per insmod die Module in den Kernel einbinden will, meckert er nicht, mit modprobe liefert er:
    Code:
    # modprobe usbserial.ko
    modprobe: chdir(/lib/modules): No such file or directory
    
    Sieht aus, als wäre wieder etwas schiefgelaufen.
    Insmod wollte ich gerade nochmal ausführen, um den genauen Wortlaut der Fehlermeldung zitieren zu können, allerdings geht das nicht, wegen:
    Code:
    insmod usbserial.ko
    insmod: init_module 'usbserial.ko' failed (File exists)
    
    Also sind die Module doch eingebunden - analog läuft es mit ftdi_sio.ko

    Ich habe dmesg aber auch nach dem ersten Ausführen aufgerufen und da hat alles ok ausgesehen...

    Muss ich noch irgendwas einbinden? Rechte setzen?
    Beziehungsweise, was ich noch gemacht habe: in ueventd,rc habe ich diese Zeile eingefügt:
    /dev/ttyUSB* 0666 root root (laut der FTDI-Homepage)


    Wenn ich mein FTDI-Gerät anschliesse, bekomme ich die Meldung, dass das Gerät nicht erkannt wird und inklusive Dongle wieder entfernt werden soll...

    Ich hatte mich SO gefreut, als beim Insmod - Befehl alles mucksmäuschenstill blieb, aber anscheinend habe ich noch ein Endlos-Spiel vor mir?!
    Nochmal vom aktuellen dmesg, auch wenns wohl nix bringt, mit frisch angeschlossenem FTDI.
    - alles über einen aktiven Hub, weil sonst gar nichts geht...

    Code:
     <6>[ 2304.176971] [VIB] Binder Thread #(parent:zygote): vibrates 0 msec
    <6>[ 2304.177185] [VIB] Binder Thread #(parent:zygote): vibrates 45 msec
    <6>[ 2304.178283] [ATS][set_vibration][successful]
    <6>[ 2304.222290] [VIB]vibrator_timer_func
    <6>[ 2304.222808] [VIB] er.ServerThread(parent:zygote): vibrates 0 msec
    <6>[ 2304.279479] [Port list] Remove port [5555]
    <6>[ 2304.321380] enabling adb
    <7>[ 2304.326568] [USB] android_enable_function: vendor_id=BB4,product_id=CA9
    <6>[ 2304.326721] set usb_configuration = 0
    <6>[ 2304.327026] adb_open
    <6>[ 2305.603240] [VIB] Binder Thread #(parent:zygote): vibrates 0 msec
    <6>[ 2305.603393] [VIB] Binder Thread #(parent:zygote): vibrates 45 msec
    <6>[ 2305.604431] [ATS][set_vibration][successful]
    <6>[ 2305.648406] [VIB]vibrator_timer_func
    <6>[ 2305.649047] [VIB] er.ServerThread(parent:zygote): vibrates 0 msec
    <6>[ 2305.871337] disabling adb
    <7>[ 2305.883819] [USB] android_enable_function: vendor_id=BB4,product_id=FF9
    <6>[ 2305.884246] set usb_configuration = 0
    <6>[ 2305.884307] adb_release
    <6>[ 2306.002746] [Port list] Add port [5555]
    <6>[ 2306.002807] [Port list] [1] = 5555
    <6>[ 2310.888824] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2310.928833] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2310.976745] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2311.056915] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2311.184295] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2311.312286] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2311.432312] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2311.552734] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2311.672698] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2311.792297] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2311.912750] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2312.184509] usb 1-1.1: reset low speed USB device using msm_hsusb_host and address 3
    <6>[ 2312.217285] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2312.252716] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2312.300720] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2312.565460] usb 1-1.1: device descriptor read/64, error -71
    <6>[ 2312.707305] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2312.740295] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2312.775299] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2313.045806] usb 1-1.1: device descriptor read/64, error -71
    <6>[ 2313.426818] usb 1-1.1: reset low speed USB device using msm_hsusb_host and address 3
    <6>[ 2313.471740] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2313.519714] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2313.566711] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2313.834472] usb 1-1.1: device descriptor read/64, error -71
    <6>[ 2313.992736] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2314.040710] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2314.087890] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2314.355468] usb 1-1.1: device descriptor read/64, error -71
    <6>[ 2314.734497] usb 1-1.1: reset low speed USB device using msm_hsusb_host and address 3
    <6>[ 2314.767303] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2315.022888] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2315.223937] usb 1-1.1: device not accepting address 3, error -71
    <6>[ 2315.495483] usb 1-1.1: reset low speed USB device using msm_hsusb_host and address 3
    <6>[ 2315.539886] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2315.777282] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2315.984802] usb 1-1.1: device not accepting address 3, error -71
    <6>[ 2315.989349] usb 1-1.1: USB disconnect, address 3
    <6>[ 2316.105804] usb 1-1.1: new low speed USB device using msm_hsusb_host and address 5
    <6>[ 2316.146667] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2316.182281] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2316.214294] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2316.295471] usb 1-1.1: device descriptor read/64, error -71
    <6>[ 2316.453002] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2316.502899] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2316.550720] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2316.627166] usb 1-1.1: device descriptor read/64, error -71
    <6>[ 2316.814483] usb 1-1.1: new low speed USB device using msm_hsusb_host and address 6
    <6>[ 2316.858917] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2316.904907] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2316.940307] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2317.015838] usb 1-1.1: device descriptor read/64, error -71
    <6>[ 2317.172729] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2317.207305] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2317.247924] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2317.325469] usb 1-1.1: device descriptor read/64, error -71
    <6>[ 2317.516815] usb 1-1.1: new low speed USB device using msm_hsusb_host and address 7
    <6>[ 2317.561706] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2317.798889] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2318.004730] usb 1-1.1: device not accepting address 7, error -71
    <6>[ 2318.085479] usb 1-1.1: new low speed USB device using msm_hsusb_host and address 8
    <6>[ 2318.130035] [USBH] usb_hcd_giveback_urb: status = -71
    <6>[ 2318.375305] [USBH] usb_hcd_giveback_urb: status = -71
    <3>[ 2318.584777] usb 1-1.1: device not accepting address 8, error -71
    <3>[ 2318.587585] hub 1-1:1.0: unable to enumerate USB device on port 1
    <6>[ 2321.167297] [USB] id interrupt
    <6>[ 2321.363952] [USB] accessory_detect_by_adc: usb ID pin = 0
    <6>[ 2321.364654] [BATT] htc_get_usb_accessory_adc_level
    <6>[ 2321.379241] [BATT] htc_get_usb_accessory_adc_level: adc = 706
    <6>[ 2321.380004] [USB] accessory adc = 0x2c2
    <6>[ 2321.380462] [BATT] htc_get_usb_accessory_adc_level
    <6>[ 2321.394744] [BATT] htc_get_usb_accessory_adc_level: adc = 783
    <6>[ 2321.395141] [USB] [2nd] accessory adc = 0x30f
    <6>[ 2321.395874] [USB] accessory_detect_by_adc prev_type 5, type 5, stable_count 1
    <6>[ 2321.594696] [USB] accessory_detect_by_adc: usb ID pin = 0
    <6>[ 2321.595397] [BATT] htc_get_usb_accessory_adc_level
    <6>[ 2321.609283] [BATT] htc_get_usb_accessory_adc_level: adc = 704
    <6>[ 2321.609985] [USB] accessory adc = 0x2c0
    <6>[ 2321.610412] [BATT] htc_get_usb_accessory_adc_level
    <6>[ 2321.623962] [BATT] htc_get_usb_accessory_adc_level: adc = 781
    <6>[ 2321.624664] [USB] [2nd] accessory adc = 0x30d
    <6>[ 2321.625122] [USB] accessory_detect_by_adc prev_type 5, type 5, stable_count 2
    <6>[ 2321.823913] [USB] accessory_detect_by_adc: usb ID pin = 0
    <6>[ 2321.824310] [BATT] htc_get_usb_accessory_adc_level
    <6>[ 2321.838195] [BATT] htc_get_usb_accessory_adc_level: adc = 702
    <6>[ 2321.838592] [USB] accessory adc = 0x2be
    <6>[ 2321.839355] [BATT] htc_get_usb_accessory_adc_level
    <6>[ 2321.856506] [BATT] htc_get_usb_accessory_adc_level: adc = 777
    <6>[ 2321.857299] [USB] [2nd] accessory adc = 0x309
    <6>[ 2321.857757] [USB] accessory_detect_by_adc prev_type 5, type 5, stable_count 3
    <6>[ 2321.858428] [USB] accessory_type_switch accessory_type 5, type 5
    <6>[ 2321.858825] [USB] accessory_detect_work ID pin 0, type 5
    <6>[ 2321.859527] [USB] USB_STATE_OFFLINE: usb_host_cable_detect
    <6>[ 2321.859924] flyer_host_usb_switch: 1 (rev:128)
    <6>[ 2321.872131] pm8058_gpio_mux_cfg: ok writing config for gpio 14 (0)
    <7>[ 2321.872863] [USBH] IRQ state: a_host, otgsc = 0x00200f20
    <7>[ 2321.873260] [USBH] msm_otg_irq: portsc = 8c00100a, sts = c408c
    <6>[ 2321.874176] usb 1-1: USB disconnect, address 2
    <6>[ 2321.874572] usb 1-1.2: USB disconnect, address 4
    <7>[ 2321.880493] [USBH] IRQ state: a_host, otgsc = 0x00200f20
    <7>[ 2321.880920] [USBH] msm_otg_irq: portsc = 80001803, sts = c408c
    <6>[ 2321.881652] [USBH] otg_reset
    <3>[ 2321.891448] msm_hsusb_host msm_hsusb_host.0: force halt; handshake d009c144 00004000 00004000 -> -110
    <6>[ 2321.892211] [USBH] usb_hcd_giveback_urb: status = -108
    <6>[ 2321.892761] msm_hsusb_phy_reset
    <7>[ 2321.901519] [USBH] B_CONN clear
    <6>[ 2321.901977] [USBH] msm_otg_sm_work: state:a_host bit:0x0000000a
    <7>[ 2321.902374] [USBH] !b_conn
    <3>[ 2321.907104] hub 1-0:1.0: hub_port_status failed (err = -108)
    <3>[ 2321.907501] hub 1-0:1.0: connect-debounce failed, port 1 disabled
    <3>[ 2321.908233] hub 1-0:1.0: hub_port_status failed (err = -108)
    <6>[ 2322.014068] [USBH] otg_reset: mode:0x00000013
    <6>[ 2322.033905] [USB] Set IDGND = 0, enter HOST mode
    <6>[ 2324.803985] [USBH] usb_hcd_giveback_urb: status = -2
    <7>[ 2324.805694] [USBH] IRQ state: a_wait_bcon, otgsc = 0x00202f20
    <7>[ 2324.806365] [USBH] msm_otg_irq: portsc = 80200803, sts = 148c
    <7>[ 2324.806762] [USBH] suspend request in state: a_wait_bcon
    <7>[ 2324.807434] [USBH] pm_runtime: idling...
    <7>[ 2324.807800] [USBH] pm_runtime: suspending...
    <6>[ 2324.808471] [USBH] lpm enter, __INVALID
    <6>[ 2324.808929] [USBH] msm_otg_suspend: usb in low power mode
    <7>[ 2324.809356] [USBH] suspend request in state: a_wait_bcon
    <7>[ 2324.810028] [USBH] pm_runtime: resuming...
    <6>[ 2324.810394] [USBH] lpm exit
    <6>[ 2324.811065] [USBH] msm_otg_resume: usb exited from low power mode
    <7>[ 2324.919738] [USBH] IRQ state: a_wait_bcon, otgsc = 0x00200f20
    <7>[ 2324.920135] [USBH] msm_otg_irq: portsc = 80000805, sts = 8000048c
    <6>[ 2324.983978] usb 1-1: new full speed USB device using msm_hsusb_host and address 9
    <7>[ 2325.042602] [USBH] IRQ state: a_wait_bcon, otgsc = 0x00202f20
    <7>[ 2325.042968] [USBH] msm_otg_irq: portsc = 80000805, sts = 8004848c
    <6>[ 2325.137634] usb 1-1: not running at top speed; connect to a high speed hub
    <6>[ 2325.145660] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101
    <6>[ 2325.146392] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    <6>[ 2325.147064] usb 1-1: Product: USB 2.0 Hub [Safe]
    <6>[ 2325.158416] hub 1-1:1.0: USB hub found
    <6>[ 2325.159881] hub 1-1:1.0: 4 ports detected
    <7>[ 2325.170196] [USBH] B_CONN set
    <6>[ 2325.170623] [USBH] msm_otg_sm_work: state:a_wait_bcon bit:0x0000001a
    <7>[ 2325.171020] [USBH] b_conn
    <7>[ 2325.171691] [USBH] deleting a_wait_vrise timer. remaining -166947 msec 
    <6>[ 2325.445953] usb 1-1.1: new low speed USB device using msm_hsusb_host and address 10
    <3>[ 2325.560821] usb 1-1.1: device v13ee p0003 is not supported
    <6>[ 2325.561218] usb 1-1.1: New USB device found, idVendor=13ee, idProduct=0003
    <6>[ 2325.561920] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    <6>[ 2325.562652] usb 1-1.1: Product: Optical Mouse
    <6>[ 2325.563018] usb 1-1.1: Manufacturer: MosArt
    <6>[ 2325.586944] input: MosArt Optical Mouse as /devices/platform/msm_hsusb_host.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input15
    <6>[ 2325.602600] generic-usb 0003:13EE:0003.0007: input: USB HID v1.10 Mouse [MosArt Optical Mouse] on usb-msm_hsusb_host.0-1.1/input0
    <6>[ 2325.684967] usb 1-1.2: new full speed USB device using msm_hsusb_host and address 11
    <3>[ 2325.799835] usb 1-1.2: device v0403 p6001 is not supported
    <6>[ 2325.800537] usb 1-1.2: New USB device found, idVendor=0403, idProduct=6001
    <6>[ 2325.800933] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    <6>[ 2325.801605] usb 1-1.2: Product: USB <-> Serial
    <6>[ 2325.801971] usb 1-1.2: Manufacturer: FTDI
    <6>[ 2325.808898] Class 0xff SubClass 0xff Protocol 0xff
    <7>[ 2325.809295] [USBH] sending DEV_NOT_SUPPORTED, event
    <4>[ 2332.768493] [BATT] [x0]3 [x8]11 90 7f f0 5e 90 ff df 7 d
    <4>[ 2332.769226] [BATT]battery.id_ohm=614754500, battery.id_index=2, batt_id_index=2, st_counter=0
    <4>[ 2332.769958] [BATT] V=3691(5e9) I=-3(fffffff8) C=214.0/3850(70d) id=2(7fe) T=250(119) KADC=109
    <4>[ 2332.770355] [BATT] next_capacity_01p by weighted = 80
    <6>[ 2332.771057] [BATT] ID=2, level=6, vol=3691, temp=250, curr=-3, chg_src=1, chg_en=0
    <6>[ 2332.794342] [BATT] htc_battery_update_change() power_supply_changed: battery 
    <4>[ 2332.794799] [BATT]S=2 P=58 chg=0 cable=000 flg=1100 dbg=0000 fst_dischg=58/220 [342686635]
    
    
     
    Zuletzt bearbeitet: 25.01.2012

Diese Seite empfehlen