Closed Bug 964697 (emulator-NFC) Opened 12 years ago Closed 10 years ago

B2G Emulator: NFC support in KK

Categories

(Firefox OS Graveyard :: Emulator, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
2.2 S12 (15may)
Tracking Status
b2g-master --- fixed

People

(Reporter: vicamo, Assigned: dimi)

References

Details

Attachments

(6 files, 4 obsolete files)

+++ This bug was initially created as a clone of Bug #916863 +++ We have had NFC support in JellyBean emulator since bug 916863 and KitKat emulator builds in bug 957526. To enable NFC to KitKat emulator, the very first thing we should do is to cherry-pick Mozilla B2G Emulator specific changes from https://github.com/mozilla-b2g/kernel_goldfish/tree/b2g-goldfish-2.6.29 to https://github.com/mozilla-b2g/kernel_goldfish/commit/6dff53c, which is the commit that current KitKat emulator kernel is built from[1]. Then we can go on to cherry-pick or merge remaining NFC-related changes in device/generic/goldfish, build, manifest, external/qemu. [1]: See https://android.googlesource.com/platform/prebuilts/qemu-kernel/+/android-4.4.2_r1
Depends on: 944299
Update: NFC emulation changes had been merged into emulator-kitkat since https://github.com/mozilla-b2g/platform_external_qemu/commits/5ba6bcbdba30842b02f33f595660e32e3b9182d8 .
Maybe we should ignore Bluedroid porting progress and cherry-pick NFC changes to KitKat first. Depend on bug 997469 because it creates b2g-4.4.2_r1 branch in prebuilts/qemu-kernel.
Depends on: 997469
No longer depends on: 944299
Assignee: nobody → tzimmermann
Flags: needinfo?(vyang)
Attached file adb-logcat.txt.gz
Hi, I had a try with these pull requests but most NFC test cases fail except test_ndef.js. Gecko: 3bf1a97537d3651304bb158e5cd9a500d9dcb846 Gaia: 52c3473fbe58b16e8729e11cb5a61078a93166cc build: 5c3064cb3271c42e09fc386bf1da6bcd76e73b1f merged external/libnfc-nci: 1ba9dcccf5b342bd74a2f8213b7ed3be78b9db44 external/qemu: e4b7cd053711ece3cd5616cd4fb7f75c43bce9c0 prebuilts/qemu-kernel: acbd9efc2a154943978d60dccbaea37a05a820d4 system/nfcd: aad3e80dea67774aa51ed4e6c054856168dd180b
Flags: needinfo?(vyang) → needinfo?(tzimmermann)
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #7) > Created attachment 8480351 [details] > adb-logcat.txt.gz That file is compressed twice :D > Hi, I had a try with these pull requests but most NFC test cases fail except > test_ndef.js. Thanks for trying. This logcat shows Marionette timeouts AFAICS and there's also the dead-object problem again: > 08-28 04:41:32.580 E/GeckoConsole( 63): [JavaScript Error: "can't access dead object" {file: "jar:file:///system/b2g/omni.ja!/components/SettingsManager.js" line: 99}] It's tracked in bug 777840. > Gecko: 3bf1a97537d3651304bb158e5cd9a500d9dcb846 > Gaia: 52c3473fbe58b16e8729e11cb5a61078a93166cc > build: 5c3064cb3271c42e09fc386bf1da6bcd76e73b1f merged > external/libnfc-nci: 1ba9dcccf5b342bd74a2f8213b7ed3be78b9db44 > external/qemu: e4b7cd053711ece3cd5616cd4fb7f75c43bce9c0 > prebuilts/qemu-kernel: acbd9efc2a154943978d60dccbaea37a05a820d4 > system/nfcd: aad3e80dea67774aa51ed4e6c054856168dd180b
Flags: needinfo?(tzimmermann)
No longer blocks: emulator-l_taskcluster
Summary: B2G Emulator: NFC support in KitKat → B2G Emulator: NFC support in KK, L
Alias: emulator-NFC
Is the development still active?
Sort of. The attached patches were complete for an older version of NFC at least. But since emulator-kk is only now getting an option, nothing has ever landed. Once we have automated tests for emulator-kk, I wanted to merge the patch set as well.
Status: NEW → ASSIGNED
This bug is strictly KK.
No longer blocks: emulator-l_taskcluster
Summary: B2G Emulator: NFC support in KK, L → B2G Emulator: NFC support in KK
Thomas, do you have time to work on this? We are willing to help if you are busy on others bug.
Flags: needinfo?(tzimmermann)
I have talked with thomas , i will work on this issue
Assignee: tzimmermann → dlee
Flags: needinfo?(tzimmermann)
Attachment #8462508 - Attachment is obsolete: true
Attachment #8462504 - Attachment is obsolete: true
Attachment #8462519 - Attachment is obsolete: true
Attachment #8462522 - Attachment is obsolete: true
Attachment #8601962 - Flags: review?(tzimmermann)
Attachment #8601968 - Flags: review?(tzimmermann)
Attachment #8601970 - Flags: review?(tzimmermann)
Attachment #8601974 - Flags: review?(tzimmermann)
Attachment #8601975 - Flags: review?(tzimmermann)
Blocks: 1162836
Attachment #8601962 - Flags: review?(tzimmermann) → review+
Attachment #8601968 - Flags: review?(tzimmermann) → review+
Attachment #8601970 - Flags: review?(tzimmermann) → review+
Attachment #8601974 - Flags: review?(tzimmermann) → review+
Comment on attachment 8601975 [details] [review] [PullRequest] Part5. Update kernel driver This looks like the JB driver, so it's probably save to r+. Are there any major changes in this patch?
Attachment #8601975 - Flags: review?(tzimmermann) → review+
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #19) > Comment on attachment 8601975 [details] [review] > [PullRequest] Part5. Update kernel driver > > This looks like the JB driver, so it's probably save to r+. Are there any > major changes in this patch? No, i have checked the NFC testcases, emulator side seems work correctly
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: