Hi, durai:
Yes, vfork() works ok.
I also found it at http://www.uclinux.org/pub/uClinux/FAQ.shtml#2-5
"uClinux does not implement fork(); instead it implements vfork()."
For the HCI utility on user space part, I first have /hci-lib and /hcid
compiled to hcid. Then have /hci-lib and /hciconfig compiled to hciconfig.
Copy two applications, hcid and hciconfig, to ramdisk. Also I have hcid.conf
copied to ramdisk /etc/bluetooth/
After boot up, run hcid, then hciconfig hci0 up to bring up the device.
MAC address is read correctly. But when running hciconfig -a, it can't read local name correctly.
Did I miss something?
thanks,
Al
---------------------------------------------------------------
/> hcid
/> hciconfig hci0 up
/> hciconfig -a
hci0: Type: USB
BD Address: 00:11:67:03:DB:62 ACL MTU: 678:8 SCO MTU: 48:10
UP RUNNING PSCAN ISCAN
RX bytes:323 acl:0 sco:0 events:9 errors:0
TX bytes:33 acl:0 sco:0 commands:9 errors:0
Features: 0xff 0xff 0x8d 0x78 0x08 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Can't read local name on hci0: Connection timed out (110)
pid 17: failed 256
/>
-------------------------------------------------------------------------------------------
-----Original Message-----
From: [email protected] ?N?z durai
Sent: 2005/8/17 [?P???T] ?U?? 12:32
To: [email protected]
Cc:
Subject: Re: [Bluez-devel] Porting BlueZ on embedded uClinux
Hi Al,
In uClinux there is no fork, only vfork is available. You have to change
your fork to vfork in uClinux.
Please refer
http://www.ucdot.org/article.pl?sid=03/12/12/0317219&mode=thread.
regards
durai