My phone Motorola a1200 (without i,r,e). firmware ap:R541L7_G_11.00.16R bp:541_G_11.52.14R
Ok bad news ezx-hciattach is not working with your phone model.
We need to rewrite this command after stracing some binaries.
Maybe there is also a chance to load a self compiled bt module and work with a standard hciattach. I will try this next.
Can you report your phone model if it is A1200 e/i , E6 ? or what ever and which firmware you are running please.
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
My phone Motorola a1200 (without i,r,e). firmware ap:R541L7_G_11.00.16R bp:541_G_11.52.14R
To write a new ezc-hciattach I need some strace information please.
First if you do it over telnet and on some konsole application you need to set the path for libraries. You do it with:
After this run the strace command. It is not included in every firmware so I suggest to download the advanced ekonsole. If you do it there you dont need to run the home native profile. Now we come to the command:Code:. /home/native/.profile
The command will hang so after 3 seconds terminate it with ctrl+c.Code:strace -v -o /mmc/mmca1/strace.txt -s 999 -fF -x /usr/SYSbt/mbtsrv
And please attach the strace.txt from your sdcard here.
Thx.
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
My strace.txt in attachment.
Your strace.txt looks not complete.
It ends when the first child process should start. Did you interrupt the command?
When I was interrupting the strace command after some seconds I get at the end of file the following:
and your file ends with:272 --- SIGINT (Interrupt) @ 0 (0) ---
272 +++ killed by SIGINT +++
and should go on like this:281 wait4(282,
You can also try to strace: mbtsrv -s 1281 wait4(282, <unfinished ...>
282 getpid() = 282
282 getrlimit(0x3, 0xbeffeaa0) = 0
...
or : mbtsrv -n 1
But on my phone it makes no differenz.
One of the child process is mbtload. So with your strace.txt I cant see how it will be executed.
So when you didnt get a full strace file try to strace this command:
/usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <mya1200btaddr> 1 0 -1
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
In attachment
Last edited by khlystovav; 01-23-2010 at 06:34 AM.
Now the strace.txt is good.
It seems that the control characters from termios structure is different. I dont know so much about serial programming but when I am right changing the control characters should work for you.
When I leave off work I will compile a new ezx-hciattach.
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
Here is the new ezx-hciattach for L7 A1200e firmware. Please have a try I hope it works for you.
Unpack an replace with /mmc/mmca1/local/sbin.
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.
Nothing has changed.
insmod /mmc/mmca1/local/lib/modules/bluez.o
insmod /mmc/mmca1/local/lib/modules/hci_uart.o
cd /mmc/mmca1/local/sbin
./bton
./ezx-hciattach
./hciconfig hci0 up
insmod /mmc/mmca1/local/lib/modules/bluez.oCode:MontaVista(R) Linux(R) Consumer Electronics Edition 3.1 Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x MotoMing login: root MontaVista(R) Linux(R) Consumer Electronics Edition 3.1 root@MotoMing:~# insmod /mmc/mmca1/local/lib/modules/bluez.o insmod /mmc/mmca1/local/lib/modules/bluez.o insmod /mmc/mmca1/local/lib/modules/hci_uart.o cd /mmc/mmca1/local/sbin ./bton ./ezx-hciattach ./hciconfig hci0 uproot@MotoMing:~# insmod /mmc/mmca1/local/lib/modules/hci_uart .o root@MotoMing:~# cd /mmc/mmca1/local/sbin root@MotoMing:/mmc/mmca1/local/sbin# ./bton root@MotoMing:/mmc/mmca1/local/sbin# ./ezx-hciattach root@MotoMing:/mmc/mmca1/local/sbin# ./hciconfig hci0 upinsmod /mmc/mmca1/local /lib/modules/bluez.o hci0: Type: UART BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN RX bytes:0 acl:0 sco:0 events:0 errors:0 TX bytes:0 acl:0 sco:0 commands:0 errors:0 root@MotoMing:/mmc/mmca1/local/sbin# insmod /mmc/mmca1/local/lib/modules/hci_ua rt.o insmod: a module named hci_uart already exists root@MotoMing:/mmc/mmca1/local/sbin# cd /mmc/mmca1/local/sbin root@MotoMing:/mmc/mmca1/local/sbin# ./bton root@MotoMing:/mmc/mmca1/local/sbin# ./ezx-hciattach Can't set device: No such file or directory root@MotoMing:/mmc/mmca1/local/sbin# ./hciconfig hci0 up
insmod /mmc/mmca1/local/lib/modules/hci_uart.o
cd /mmc/mmca1/local/sbin
./bton
/usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <001CC141B153> 1 0 -1
./ezx-hciattach
./hciconfig hci0 up
Code:MontaVista(R) Linux(R) Consumer Electronics Edition 3.1 Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x MotoMing login: root MontaVista(R) Linux(R) Consumer Electronics Edition 3.1 root@MotoMing:~# insmod /mmc/mmca1/local/lib/modules/bluez.o ton /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <001CC141B153> 1 0 -1 ./ezx-hciattach ./hciconfig hci0 upinsmod /mmc/mmca1/local/libroot@MotoMing:~# insmod /mmc/mmca1 /local/lib/modules/hci_uart.o /modules/bluez.o insmod /mmc/mmca1/local/lib/modules/hci_uart.o cd /mmc/mmca1/local/sbin ./bton /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <001CC141Broot@MotoMing:~# cd /mmc/mmca1 /local/sbin root@MotoMing:/mmc/mmca1/local/sbin# ./bton root@MotoMing:/mmc/mmca1/local/sbin# /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <0 01CC141B153> 1 0 -1 -bash: 001CC141B153: No such file or directory root@MotoMing:/mmc/mmca1/local/sbin# ./ezx-hciattach root@MotoMing:/mmc/mmca1/local/sbin# ./hciconfig hci0 upinsmod /mmc/mmca1/local /lib/modules/bluez.o hci0: Type: UART BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN RX bytes:0 acl:0 sco:0 events:0 errors:0 TX bytes:0 acl:0 sco:0 commands:0 errors:0 root@MotoMing:/mmc/mmca1/local/sbin# insmod /mmc/mmca1/local/lib/modules/hci_ua rt.o insmod: a module named hci_uart already exists root@MotoMing:/mmc/mmca1/local/sbin# cd /mmc/mmca1/local/sbin root@MotoMing:/mmc/mmca1/local/sbin# ./bton root@MotoMing:/mmc/mmca1/local/sbin# /usr/SYSbt/mbtdload /dev/ttyS1 1 921600 <0 01CC141B153> 1 0 -1 -bash: 001CC141B153: No such file or directory root@MotoMing:/mmc/mmca1/local/sbin# ./ezx-hciattach Can't set device: No such file or directory root@MotoMing:/mmc/mmca1/local/sbin# ./hciconfig hci0 up
Hmm that is realy sad maybe it is the bton not ezx-hciattach which makes problems.
I will try to investigate more.
-------------------------------------
In any apple is a worm. Through each window flies a bug.
That's why I take Linux, because what does not fly can not crash.