Return-Path: Message-Id: <200309101537.IAA14612@homepageserver.com> To: bluez-users@lists.sourceforge.net From: Daniel Haensse Subject: [Bluez-users] Can't open device hci0. No such device(19) Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Date: Wed, 10 Sep 2003 15:37:44 GMT Hi list, On the embedded platform when I call hciattach, it generates some error, on which I need a hint now to search the bug. I'm working on a bluez port for uclinux running on the dragonix platform which uses a 68vz328 uP.I did cross compile the latest bluez kernel and userland stuff for the 2.4.20 kernel and did substitute fork with vfork in hcid for support of uclinux. On my SuSE 8.2 box (pretty outdated bluez sources), I have the bluetooth modules running without any problem (attached on ttyS0), however the embedded modules are a newer version with larger flash memory (class1, Mitsumi WML-C20, CSR chipset on UART). Find attached the error log, with debug enabled in the kernel net tree. What is this timeout OCF_WRITE_PG_TIMEOUT? Sometimes I also get a OCF_WRITE_CA_TIMEOUT succeseful. Might this be related to our "slow" cpu (68vz328)? Could anybody please point out where to start? regards Dani -------------------------------------------------------- hci_register_proto: 0002a100 name L2CAP id 0 BlueZ L2CAP ver 2.3 Copyright (C) 2000,2001 Qualcomm Inc Written 2000,2001 by Maxim Krasnyansky hci_register_proto: 0002a188 name SCO id 1 BlueZ SCO ver 0.3 Copyright (C) 2000,2001 Qualcomm Inc Written 2000,2001 by Maxim Krasnyansky BlueZ RFCOMM ver 1.0 Copyright (C) 2002 Maxim Krasnyansky Copyright (C) 2002 Marcel Holtmann BlueZ BNEP ver 1.1 Copyright (C) 2001,2002 Inventel Systemes Written 2001,2002 by Clement Moreau Written 2001,2002 by David Libault Copyright (C) 2002 Maxim Krasnyanskiy l2cap_sock_create: sock 000b2f4e l2cap_sock_init: sk 000f3cb0 l2cap_sock_bind: sk 000f3cb0, 00:00:00:00:00:00 768 l2cap_sock_setsockopt: sk 000f3cb0 l2cap_sock_listen: sk 000f3cb0 backlog 10 VFS: Mounted root (romfs filesystem) readonly. eth0: using half-duplex 10Base-T (RJ-45) dragonix login: root Password: # hcid & 31 # hci_sock_create: sock 001af30e hci_sock_setsockopt: sk 001a6030, opt 2 hci_sock_bind: sock 001af30e sk 001a6030 hci_sock_ioctl: cmd 800448d2 arg 17c058 # hciattach /dev/ttyS1 csr 115200 flow CSR build ID 0x01-0x75 ttyS1 console mode off hci_register_dev: 01c1a204 name type 3 hci_sock_dev_event: hdev hci0 event 1 hci_send_to_sock: hdev 00000000 len 8 hci_sock_recvmsg: sock 001af30e, sk 001a6030 hci_sock_create: sock 001afd8e hci_sock_bind: sock 001afd8e sk 001a6350 hci_dev_get: 0 hci_sock_ioctl: cmd 400448c9 arg 0 hci_dev_get: 0 hci_dev_open: hci0 01c1a204 __hci_request: hci0 start hci_init_req: hci0 0 hci_send_cmd: hci0 ogf 0x4 ocf 0x3 plen 0 hci_send_cmd: skb len 3 hci_send_cmd: hci0 ogf 0x4 ocf 0x5 plen 0 hci_cmd_task: hci0 cmd 1 hci_send_frame: hci0 type 1 len 3 hci_send_to_sock: hdev 01c1a204 len 3 hci_recv_frame: hci0 type 4 len 14 hci_rx_task: hci0 hci_send_to_sock: hdev 01c1a204 len 14 hci_event_packet: hci0 evt 0xe hci_cc_info_param: hci0 ocf 0x3 hci_cc_info_param: hci0: features 0xff 0xff 0xf hci_send_cmd: skb len 3 hci_send_cmd: hci0 ogf 0x4 ocf 0x9 plen 0 hci_cmd_task: hci0 cmd 1 hci_send_frame: hci0 type 1 len 3 hci_send_to_sock: hdev 01c1a204 len 3 hci_send_cmd: skb len 3 hci_send_cmd: hci0 ogf 0x3 ocf 0x25 plen 0 hci_cmd_task: hci0 cmd 0 hci_send_cmd: skb len 3 hci_send_cmd: hci0 ogf 0x3 ocf 0x5 plen 1 hci_recv_frame: hci0 type 4 len 13 hci_rx_task: hci0 hci_send_to_sock: hdev 01c1a204 len 13 hci_event_packet: hci0 evt 0xe hci_cc_info_param: hci0 ocf 0x5 hci_cc_info_param: hci0 mtu: acl 192, sco 64 max_pkt: acl 8, sco 8 hci_cmd_task: hci0 cmd 1 hci_send_frame: hci0 type 1 len 3 hci_send_to_sock: hdev 01c1a204 len 3 hci_recv_frame: hci0 type 4 len 12 hci_rx_task: hci0 hci_send_to_sock: hdev 01c1a204 len 12 hci_event_packet: hci0 evt 0xe hci_cc_info_param: hci0 ocf 0x9 hci_req_complete: hci0 result 0x00 hci_cmd_task: hci0 cmd 1 hci_send_frame: hci0 type 1 len 3 hci_send_to_sock: hdev 01c1a204 len 3 hci_recv_frame: hci0 type 4 len 8 hci_rx_task: hci0 hci_send_to_sock: hdev 01c1a204 len 8 hci_event_packet: hci0 evt 0xe hci_cc_host_ctl: hci0 ocf 0x25 hci_cc_host_ctl: hci0: voice setting 0x0060 hci_send_cmd: skb len 4 hci_send_cmd: hci0 ogf 0x3 ocf 0x18 plen 2 hci_cmd_task: hci0 cmd 1 hci_send_frame: hci0 type 1 len 4 hci_send_to_sock: hdev 01c1a204 len 4 hci_send_cmd: skb len 5 hci_recv_frame: hci0 type 4 len 6 hci_rx_task: hci0 hci_send_to_sock: hdev 01c1a204 len 6 hci_event_packet: hci0 evt 0xe hci_cc_host_ctl: hci0 ocf 0x5 hci_cc_host_ctl: hci0 SET_EVENT_FLT succeseful hci_send_cmd: hci0 ogf 0x3 ocf 0x16 plen 2 hci_cmd_task: hci0 cmd 1 hci_send_frame: hci0 type 1 len 5 hci_send_to_sock: hdev 01c1a204 len 5 hci_send_cmd: skb len 5 hci_recv_frame: hci0 type 4 len 6 hci_rx_task: hci0 hci_send_to_sock: hdev 01c1a204 len 6 hci_event_packet: hci0 evt 0xe hci_cc_host_ctl: hci0 ocf 0x18 hci_cc_host_ctl: hci0: OCF_WRITE_PG_TIMEOUT succeseful hci_unregister_dev: 01c1a204 name hci0 type 3 hci_dev_do_close: hci0 01c1a204 hci_cmd_task: hci0 cmd 1 hci_send_frame: hci0 type 1 len 5 hci_send_to_sock: hdev 01c1a204 len 5 hci_req_cancel: hci0 err 0x13 __hci_request: hci0 end: err 0 hci_sock_dev_event: hdev hci0 event 3 hci_send_to_sock: hdev 00000000 len 8 inquiry_cache_flush: cache 01c1a2fa hci_conn_hash_flush: hdev hci0 hci_sock_dev_event: hdev hci0 event 4 hci_send_to_sock: hdev 00000000 len 8 __hci_request: hci0 start hci_reset_req: hci0 0 hci_send_cmd: hci0 ogf 0x3 ocf 0x3 plen 0 hci_send_cmd: skb len 3 hci_sock_ioctl: cmd 400448e2 arg 1aba22 hci_dev_get: 0 hci_cmd_task: hci0 cmd 1 hci_send_frame: hci0 type 1 len 3 hci_send_to_sock: hdev 01c1a204 len 3 hci_sock_ioctl: cmd 400448e1 arg 1aba22 hci_dev_get: 0 hci_sock_release: sock 001afd8e sk 001a6350 hci_sock_recvmsg: sock 001af30e, sk 001a6030 hci_sock_create: sock 001afd8e hci_sock_bind: sock 001afd8e sk 001a6350 hci_dev_get: 0 hci_sock_release: sock 001afd8e sk 001a6350 hci_sock_create: sock 001afd8e hci_sock_bind: sock 001afd8e sk 001a6350 hci_dev_get: 0 hci_sock_release: sock 001afd8e sk 001a6350 hci_sock_recvmsg: sock 001af30e, sk 001a6030 __hci_request: hci0 end: err -110 hci_sock_dev_event: hdev hci0 event 2 hci_send_to_sock: hdev 00000000 len 8 # hci_sock_recvmsg: sock 001af30e, sk 001a6030 # cat /var/log/messages <46> Jan 1 19:20:30 2001 syslogd started: BusyBox v0.60.4=20 (2003.09.07-17:38+0000) <86> Jan 1 19:20:44 2001 login: Authentication successful for root from <30> Jan 1 19:20:48 2001 hcid[32]: HCI daemon ver 2.3 started <30> Jan 1 19:21:04 2001 hcid[32]: HCI dev 0 registered <27> Jan 1 19:21:04 2001 hcid[35]: Can't set link mode on hci0. No such device (19) <27> Jan 1 19:21:04 2001 hcid[35]: Can't set link policy on hci0. No such device(19) <30> Jan 1 19:21:04 2001 hcid[32]: HCI dev 0 up <27> Jan 1 19:21:04 2001 hcid[36]: Can't open device hci0. No such device(19) <30> Jan 1 19:21:04 2001 hcid[32]: Starting security manager 0 <27> Jan 1 19:21:04 2001 hcid[32]: Can't open device hci0. No such device(19) <30> Jan 1 19:21:04 2001 hcid[32]: HCI dev 0 down <30> Jan 1 19:21:04 2001 hcid[32]: HCI dev 0 unregistered ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users