New IT forum
13 August 2022, 12:12:22 pm *
Welcome, %1$s. Please login or register.

: MiraBox now in stock.
 
Pages: [1] 2

Author Topic: bluetooth  (Read 10487 times)

piratebab

  • Full Member
  • ***
  • Posts: 124
bluetooth
« on: 18 July 2011, 08:50:38 pm »

Hello,
I have installed bluetooth on my debian, but get a segmentation fault when I try to start it. and no informations in logs.
Do I miss a configuration ?
Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: bluetooth
« Reply #1 on: 19 July 2011, 09:46:16 am »

Hi piratebab,

Which kernel are you using?

NewITJames
Logged
NewITJames

piratebab

  • Full Member
  • ***
  • Posts: 124
Re: bluetooth
« Reply #2 on: 19 July 2011, 07:32:45 pm »

I am using from 2.6.38.8 from sheeva.with-linux.com

Quote
Linux sheevaplug-debian 2.6.38.8 #1 PREEMPT Tue Jun 14 01:43:26 MDT 2011 armv5tel GNU/Linux
Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: bluetooth
« Reply #3 on: 19 July 2011, 10:05:26 pm »

Are you trying to load the 2.6.33.6 drivers that came with the Dreamplug instead of the ones below?

/lib/modules/2.6.38.8/kernel/drivers/bluetooth

Logged
NewITJames

piratebab

  • Full Member
  • ***
  • Posts: 124
Re: bluetooth
« Reply #4 on: 20 July 2011, 05:38:29 am »

Thanks for your advice. I will try it this weekend. I have delete the old lib from 2.6.33 last saturday ....
Do you know what module is suposed to be loaded ?
Logged

piratebab

  • Full Member
  • ***
  • Posts: 124
Re: bluetooth
« Reply #5 on: 23 July 2011, 06:21:55 pm »

Where can I find thes drivers ? (the 2.6.33.6 drivers that came with the Dreamplug).
I suppose I just need to replace the files
Quote
bcm203x.ko  bfusb.ko  bpa10x.ko  btmrvl.ko  btmrvl_sdio.ko  btsdio.ko  btusb.ko  hci_vhci.ko
Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: bluetooth
« Reply #6 on: 25 July 2011, 08:45:03 am »

Piratebab,

Here is Globalscales Dreamplug download area

http://code.google.com/p/dreamplug/downloads/list
Logged
NewITJames

piratebab

  • Full Member
  • ***
  • Posts: 124
Re: bluetooth
« Reply #7 on: 25 July 2011, 08:13:32 pm »

I have download 2.6.33.6 kernel , and then gone to linux-2.6.33.6/modules/lib/modules/2.6.33.6/kernel/
It is empty
There is also an linux-2.6.33.6/firmware/ dir.
But what is the firmware for BT chip.
I have not yet identified the chip installed in the dreamplug

Logged

piratebab

  • Full Member
  • ***
  • Posts: 124
Re: bluetooth
« Reply #8 on: 25 July 2011, 09:46:59 pm »

In fact, it works!
Dont try to activate /etc/init.d/bluetooth, you will have a segmentation fault

just do:
Code: [Select]
hciconfig hci0 up
hcitool scan

You can also try
Code: [Select]
sdptool browseto find all the aps available on your phone.
I will try gnokii.
« Last Edit: 26 July 2011, 07:51:41 pm by piratebab »
Logged

sediak

  • Newbie
  • *
  • Posts: 1
Re: bluetooth
« Reply #9 on: 26 July 2011, 10:06:04 am »

Hello,

I am a complete Newbie in Linux. I want to use an external dongle with HDP from Stollmann.  http://www.stollmann.de/en/support/free-downloads/bluetooth-adapters/bluehdp-usb.html

I am using debian from an SD Card http://www.newit.co.uk/forum/index.php/topic,2230.0.html

How can I disable internal BT and enable the dongle?

cheers
Logged

piratebab

  • Full Member
  • ***
  • Posts: 124
Re: bluetooth
« Reply #10 on: 26 July 2011, 11:15:30 am »

As I explained, the internal one is not activated after powerup.
You can use an external one and enable it. bluez can manage more than one device as far as I know.
But it sound strange for me to not use the internal one, it seems to work pretty good (more test to come in a fex days)
Logged

TheDOC

  • Newbie
  • *
  • Posts: 5
Re: bluetooth
« Reply #11 on: 27 July 2011, 09:55:03 pm »

So you've got bluetooth running with kernel 2.6.38? How? :)

Trying to load the 2.6.33 kernel modules results in "Invalid module format". :(
Logged

TheDOC

  • Newbie
  • *
  • Posts: 5
Re: bluetooth
« Reply #12 on: 27 July 2011, 10:04:36 pm »

Ok, found out myself:

First
rmmod btmrvl_sdio (if loaded for some reason)

Then start
/etc/init.d/bluetooth start

Then
modprobe btmrvl_sdio
with the original 2.6.38.8 module.

Thanks to the /root/init_setup.sh script... :)

Voila, hcitool dev works on 2.6.38.8.
(I'm using 2.6.38.8 because there isn't a working linux-vserver patch for 2.6.39.x)
« Last Edit: 27 July 2011, 10:12:11 pm by TheDOC »
Logged

piratebab

  • Full Member
  • ***
  • Posts: 124
Re: bluetooth
« Reply #13 on: 30 July 2011, 07:11:51 pm »

I have spend a few days trying to pair my phone with the dreamplug.
I was not able to find a solution to enter the PIN on dreamplug. I need
I have reach the conclusion that I need bluetoothd daemon to run.
I have tried your trick:
Code: [Select]
rmmod btmrvl_sdio
# service bluetooth start
Starting bluetooth:Segmentation fault

I have tried several "agent", ie bluez-simple-agent, I always got the error
Quote
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files


Logged

piratebab

  • Full Member
  • ***
  • Posts: 124
Re: bluetooth
« Reply #14 on: 01 August 2011, 02:00:35 pm »

I am still with that segfault.
There is nothing in the logs.
I tried strace bluetoothd,
but dont understand the error.
Quote
map2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000a000
set_tls(0x4000a6d0, 0x4000add7, 0x4000add8, 0x4000a6d0, 0x401af000) = 0
mprotect(0x40424000, 8192, PROT_READ)   = 0
mprotect(0x40093000, 4096, PROT_READ)   = 0
mprotect(0x40020000, 4096, PROT_READ)   = 0
mprotect(0x40084000, 4096, PROT_READ)   = 0
mprotect(0x402f5000, 4096, PROT_READ)   = 0
mprotect(0x402d7000, 4096, PROT_READ)   = 0
mprotect(0x401ae000, 4096, PROT_READ)   = 0
munmap(0x40099000, 37051)               = 0
set_tid_address(0x4000a278)             = 4256
set_robust_list(0x4000a280, 0xc)        = 0
futex(0xbeaecce4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 402f6000) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x402dd434, [], SA_SIGINFO|0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x402dd2d4, [], SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x4014f000
brk(0x40170000)                         = 0x4014f000
mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40469000
uname({sys="Linux", node="sheevaplug-debian", ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Erreur de segmentation
Logged
Pages: [1] 2
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!