Closed
Bug 927274
Opened 11 years ago
Closed 11 years ago
B2G NFC: Add NFC Daemon for Nexus4
Categories
(Firefox OS Graveyard :: NFC, defect)
Tracking
(blocking-b2g:1.3+, firefox28 fixed)
Tracking | Status | |
---|---|---|
firefox28 | --- | fixed |
People
(Reporter: dimi, Assigned: dimi)
References
Details
Attachments
(3 files)
No description provided.
Assignee | ||
Updated•11 years ago
|
Summary: B2G NFC: NFC Daemon for supporting Nexus4 → B2G NFC: Add NFC Daemon for Nexus4
Assignee | ||
Comment 1•11 years ago
|
||
Need to support NFC for nexus4.
This patch only include adding the source to nexu4 source tree.
Enable nfc will in other patch
Attachment #817669 -
Flags: review?(mwu)
Assignee | ||
Comment 2•11 years ago
|
||
start Nfc daemon service in init.mako.rc
Attachment #817693 -
Flags: review?(mwu)
Comment 3•11 years ago
|
||
Can you add the service to gonk-misc/init.b2g.rc instead?
How do we determine if NFC is available?
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #3)
> Can you add the service to gonk-misc/init.b2g.rc instead?
>
> How do we determine if NFC is available?
I discussed this with device team Marco Chen before.
Since if NFC is available is hardware-dependent and currently mozilla NFC daemon is only available on Nexus4 (based on the Nexus4 broadcom chipset)
He suggest me put it directly on init.make.rc, otherwise we will need check Nexus4 only property in rc file
to determine if to start nfc servcice.
If we support more devices in the future, it will require add more property check in init.b2g.rc
Comment 5•11 years ago
|
||
Yes, since device-mako is controlled by our own I suggested to put device-specific thing into device-mako not gonk-misc.
This is my 2 cents here.
By the way,
Dimi, do you make sure you need to add "oneshot" into your service category?
This mean that once ndfd is crashed the init process will not restart it automatically.
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Marco Chen [:mchen] (Summit 10/03 ~10/08) from comment #5)
> Yes, since device-mako is controlled by our own I suggested to put
> device-specific thing into device-mako not gonk-misc.
> This is my 2 cents here.
>
> By the way,
>
> Dimi, do you make sure you need to add "oneshot" into your service category?
> This mean that once ndfd is crashed the init process will not restart it
> automatically.
Since enable/disable NFC function from gaia to deamon is not yet ready. Currently once nfc daemon is started,
it will default enable some functions of nfc chip. So I just afraid if nfcd has a bug cause it crash every time
after starting, it may cause any unknown side effect to the system since every time it starts it will do lots of
things to the hardware.
My original thought is removed oneshot after enable/disable function is ready.
Do you suggest that i make it correct once ?
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(mwu)
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to dlee from comment #6)
> (In reply to Marco Chen [:mchen] (Summit 10/03 ~10/08) from comment #5)
> > Yes, since device-mako is controlled by our own I suggested to put
> > device-specific thing into device-mako not gonk-misc.
> > This is my 2 cents here.
> >
> > By the way,
> >
> > Dimi, do you make sure you need to add "oneshot" into your service category?
> > This mean that once ndfd is crashed the init process will not restart it
> > automatically.
>
> Since enable/disable NFC function from gaia to deamon is not yet ready.
> Currently once nfc daemon is started,
> it will default enable some functions of nfc chip. So I just afraid if
> nfcd has a bug cause it crash every time
> after starting, it may cause any unknown side effect to the system since
> every time it starts it will do lots of
> things to the hardware.
>
> My original thought is removed oneshot after enable/disable function is
> ready.
> Do you suggest that i make it correct once ?
As the discuss result with Marco.
Will use one-shot until NFCD is stable and Gaia support enable/disable NFC
Comment 8•11 years ago
|
||
Looks like we also target to land it in this sprint?
Target Milestone: --- → 1.3 Sprint 3 - 10/25
Updated•11 years ago
|
blocking-b2g: --- → 1.3+
Comment 9•11 years ago
|
||
Comment on attachment 817669 [details]
pull request to mozilla-b2g/b2g-manifest
Please fold the commits together into one. We'll also need to request git mirroring onto git.mozilla.org for this new repo. See bug 846821 for one example.
Attachment #817669 -
Flags: review?(mwu) → review+
Comment 10•11 years ago
|
||
Comment on attachment 817693 [details]
pull request to mozilla-b2g/device-mako
Please put this in gonk-misc. nfcd won't/shouldn't exist on devices without nfc, so we can just add everything b2g platform specific to init.b2g.rc.
Attachment #817693 -
Flags: review?(mwu) → review-
Comment 11•11 years ago
|
||
While we're at it, I examined Android.mk in https://github.com/mozilla-b2g/platform_system_nfcd . LOCAL_MODULE_TAGS should be optional, not debug. nfcd should then be added to the PRODUCT_PACKAGES list in the device.mk, like: https://github.com/mozilla-b2g/device-mako/blob/b2g-4.3_r2.1/device.mk#L269 . Then nfcd will only be installed when necessary.
Flags: needinfo?(mwu)
Assignee | ||
Comment 12•11 years ago
|
||
Attachment #823160 -
Flags: review?(mwu)
Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 817693 [details]
pull request to mozilla-b2g/device-mako
Remove nfcd from init.mako.rc, add nfcd in PRODUCT_PACKAGES
Attachment #817693 -
Flags: review- → review?(mwu)
Updated•11 years ago
|
Attachment #823160 -
Flags: review?(mwu) → review+
Updated•11 years ago
|
Attachment #817693 -
Flags: review?(mwu) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 14•11 years ago
|
||
Hi Michael,
Could you help merge the pull requests ? Thanks
Comment 15•11 years ago
|
||
As mentioned before, this will burn the tree unless you get the nfcd repo mirrored to git.mozilla.org.
Keywords: checkin-needed
Assignee | ||
Comment 16•11 years ago
|
||
create Bug 931702 for mirror to git.mozilla.org
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 17•11 years ago
|
||
Blocks: b2g-nfc
Updated•11 years ago
|
status-firefox28:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•