{"action":"created","issue":{"url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/35","labels_url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/35/comments","events_url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/35/events","html_url":"https://github.com/patjak/bcwc_pcie/issues/35","id":124059006,"number":35,"title":"Module init/probe failure on MBP12,1 & Linux 4.4","user":{"login":"mjog","id":3745088,"avatar_url":"https://avatars.githubusercontent.com/u/3745088?v=3","gravatar_id":"","url":"https://api.github.com/users/mjog","html_url":"https://github.com/mjog","followers_url":"https://api.github.com/users/mjog/followers","following_url":"https://api.github.com/users/mjog/following{/other_user}","gists_url":"https://api.github.com/users/mjog/gists{/gist_id}","starred_url":"https://api.github.com/users/mjog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjog/subscriptions","organizations_url":"https://api.github.com/users/mjog/orgs","repos_url":"https://api.github.com/users/mjog/repos","events_url":"https://api.github.com/users/mjog/events{/privacy}","received_events_url":"https://api.github.com/users/mjog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-12-28T12:10:01Z","updated_at":"2016-01-17T11:07:27Z","closed_at":null,"body":"Following #14 I extracted the firmware locally, then used the README directions for Debian to build, install and load the driver under Linux 4.4 (without forgetting a `modprobe -r bdc_pci` first), but I'm not getting a working camera. This is what dmesg reports on module load:\r\n\r\n```\r\nDec 28 22:31:51 payens kernel: [59190.523392] media: Linux media interface: v0.10\r\nDec 28 22:31:51 payens kernel: [59190.530521] Linux video capture interface: v2.00\r\nDec 28 22:31:51 payens kernel: [59190.539434] facetimehd 0000:02:00.0: Found FaceTime HD camera with device id: 1570\r\nDec 28 22:31:51 payens kernel: [59190.539535] facetimehd 0000:02:00.0: Setting 64bit DMA mask\r\nDec 28 22:31:51 payens kernel: [59190.544939] facetimehd 0000:02:00.0: S2 PCIe link init succeeded\r\nDec 28 22:31:51 payens kernel: [59190.544969] facetimehd 0000:02:00.0: Refclk: 25MHz (0xa)\r\nDec 28 22:31:51 payens kernel: [59190.554915] facetimehd 0000:02:00.0: PLL reset finished\r\nDec 28 22:31:51 payens kernel: [59190.554917] facetimehd 0000:02:00.0: Waiting for S2 PLL to lock at 450 MHz\r\nDec 28 22:31:51 payens kernel: [59190.554929] facetimehd 0000:02:00.0: S2 PLL is locked after 10 us\r\nDec 28 22:31:51 payens kernel: [59190.564885] facetimehd 0000:02:00.0: S2 PLL is in bypass mode\r\nDec 28 22:31:51 payens kernel: [59190.584804] facetimehd 0000:02:00.0: DDR40 PHY PLL locked on safe settings\r\nDec 28 22:31:51 payens kernel: [59190.584819] facetimehd 0000:02:00.0: STRAP valid\r\nDec 28 22:31:51 payens kernel: [59190.584820] facetimehd 0000:02:00.0: Configuring DDR PLLs for 450 MHz\r\nDec 28 22:31:51 payens kernel: [59190.584827] facetimehd 0000:02:00.0: DDR40 PLL is locked after 0 us\r\nDec 28 22:31:51 payens kernel: [59190.584836] facetimehd 0000:02:00.0: First DDR40 VDL calibration completed after 2 us\r\nDec 28 22:31:51 payens kernel: [59190.584847] facetimehd 0000:02:00.0: Second DDR40 VDL calibration completed after 2 us\r\nDec 28 22:31:51 payens kernel: [59190.584848] facetimehd 0000:02:00.0: Using step size 152\r\nDec 28 22:31:51 payens kernel: [59190.584853] facetimehd 0000:02:00.0: VDL set to: coarse=0x10008, fine=0x1011a\r\nDec 28 22:31:51 payens kernel: [59190.584857] facetimehd 0000:02:00.0: Virtual VTT enabled\r\nDec 28 22:31:51 payens kernel: [59190.605255] facetimehd 0000:02:00.0: S2 DRAM memory address: 0x22159559\r\nDec 28 22:31:51 payens kernel: [59190.605269] facetimehd 0000:02:00.0: Rewrite DDR mode registers succeeded\r\nDec 28 22:31:51 payens kernel: [59190.605461] facetimehd 0000:02:00.0: Full memory verification failed! (65535)\r\nDec 28 22:31:52 payens kernel: [59191.062205] facetimehd 0000:02:00.0: Loaded firmware, size: 1392kb\r\nDec 28 22:32:02 payens kernel: [59201.125599] facetimehd 0000:02:00.0: Init failed! No wake signal\r\nDec 28 22:32:02 payens kernel: [59201.125853] facetimehd: probe of 0000:02:00.0 failed with error -5\r\n```"},"comment":{"url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/comments/172314325","html_url":"https://github.com/patjak/bcwc_pcie/issues/35#issuecomment-172314325","issue_url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/35","id":172314325,"user":{"login":"slashrsm","id":376889,"avatar_url":"https://avatars.githubusercontent.com/u/376889?v=3","gravatar_id":"","url":"https://api.github.com/users/slashrsm","html_url":"https://github.com/slashrsm","followers_url":"https://api.github.com/users/slashrsm/followers","following_url":"https://api.github.com/users/slashrsm/following{/other_user}","gists_url":"https://api.github.com/users/slashrsm/gists{/gist_id}","starred_url":"https://api.github.com/users/slashrsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slashrsm/subscriptions","organizations_url":"https://api.github.com/users/slashrsm/orgs","repos_url":"https://api.github.com/users/slashrsm/repos","events_url":"https://api.github.com/users/slashrsm/events{/privacy}","received_events_url":"https://api.github.com/users/slashrsm/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T11:07:27Z","updated_at":"2016-01-17T11:07:27Z","body":"/dev/video0 appears for me:\r\n\r\n```\r\n➜  ~  uname -a\r\nLinux pineapple 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64 GNU/Linux\r\n➜  ~  facetime_probe  // tiny bash script which unloads bdc_pci and loads fatetimehd + it's dependencies\r\n[sudo] password for slashrsm: \r\n➜  ~  ls /dev/video0 \r\n/dev/video0\r\n➜  ~  dmesg\r\n// ..... some output omitted\r\n[79595.559964] FWMSG: [ISP] CMD = 0x0001 [CISP_CMD_STOP]\r\n[79595.571173] facetimehd 0000:02:00.0: fthd_hw_deinit\r\n[79603.207050] media: Linux media interface: v0.10\r\n[79603.214925] Linux video capture interface: v2.00\r\n[79603.258811] facetimehd 0000:02:00.0: Found FaceTime HD camera with device id: 1570\r\n[79603.258922] facetimehd 0000:02:00.0: Setting 64bit DMA mask\r\n[79603.264145] facetimehd 0000:02:00.0: S2 PCIe link init succeeded\r\n[79603.264172] facetimehd 0000:02:00.0: Refclk: 25MHz (0xa)\r\n[79603.274208] facetimehd 0000:02:00.0: PLL reset finished\r\n[79603.274209] facetimehd 0000:02:00.0: Waiting for S2 PLL to lock at 450 MHz\r\n[79603.274222] facetimehd 0000:02:00.0: S2 PLL is locked after 10 us\r\n[79603.284252] facetimehd 0000:02:00.0: S2 PLL is in bypass mode\r\n[79603.304323] facetimehd 0000:02:00.0: DDR40 PHY PLL locked on safe settings\r\n[79603.304336] facetimehd 0000:02:00.0: STRAP valid\r\n[79603.304337] facetimehd 0000:02:00.0: Configuring DDR PLLs for 450 MHz\r\n[79603.304344] facetimehd 0000:02:00.0: DDR40 PLL is locked after 0 us\r\n[79603.304354] facetimehd 0000:02:00.0: First DDR40 VDL calibration completed after 2 us\r\n[79603.304364] facetimehd 0000:02:00.0: Second DDR40 VDL calibration completed after 2 us\r\n[79603.304365] facetimehd 0000:02:00.0: Using step size 150\r\n[79603.304370] facetimehd 0000:02:00.0: VDL set to: coarse=0x10008, fine=0x1011a\r\n[79603.304374] facetimehd 0000:02:00.0: Virtual VTT enabled\r\n[79603.324934] facetimehd 0000:02:00.0: S2 DRAM memory address: 0x22159559\r\n[79603.324948] facetimehd 0000:02:00.0: Rewrite DDR mode registers succeeded\r\n[79603.325146] facetimehd 0000:02:00.0: Full memory verification succeeded! (0)\r\n[79603.784114] facetimehd 0000:02:00.0: Loaded firmware, size: 1392kb\r\n[79603.932084] facetimehd 0000:02:00.0: ISP woke up after 0ms\r\n[79603.932090] facetimehd 0000:02:00.0: Number of IPC channels: 7, queue size: 44865\r\n[79603.932093] facetimehd 0000:02:00.0: Firmware requested heap size: 3072kb\r\n[79603.942121] facetimehd 0000:02:00.0: ISP second int after 0ms\r\n[79603.942123] facetimehd 0000:02:00.0: Channel description table at 00800000\r\n[79603.952302] facetimehd 0000:02:00.0: magic value: 00000000 after 0 ms\r\n[79603.952304] facetimehd 0000:02:00.0: Enabling interrupts\r\n[79603.952532] FWMSG: \r\n[79603.952555] FWMSG: - APOLLO-ISP-APPLE ------------------------------------------------------------\r\n[79603.952564] FWMSG: \r\n[79603.952576] FWMSG:   Restart count : 0\r\n[79603.952597] FWMSG:   Platform : mode = TARGET, ID = 0x00000000, HW = 00020018.00000000\r\n[79603.952685] FWMSG:   System Clock : 200000000 Hz\r\n[79603.952698] FWMSG:   Processor mode : SUPERVISOR\r\n[79603.952713] FWMSG:   Cache architecture type : SEPARATE\r\n[79603.952726] FWMSG:   Cache type : WRITEBACK\r\n[79603.952740] FWMSG:   Data Cache Line : 32 [0x20]\r\n[79603.952753] FWMSG:   Boot arguments entries : 0\r\n[79603.952772] FWMSG:   Physical memory base : 0x00000000 [TLB base 0x00160000]\r\n[79603.952786] FWMSG:   Main memory :   base : 0x00000000\r\n[79603.952915] FWMSG:                   size : 8388608 [0x00800000] [8.0 MB]\r\n[79603.952933] FWMSG:   Extra heap :    base : 0x2080b000 [phy = 0x0080b000]\r\n[79603.952950] FWMSG:                   size : 3145728 [0x00300000] [3.0 MB]\r\n[79603.952967] FWMSG:   Shared window : base : 0x00800000 [static wiring]\r\n[79603.952986] FWMSG:                   size : 125829120 [0x07800000] [120.0 MB]\r\n[79603.953000] FWMSG:   Shared memory : base : 0x00800000\r\n[79603.953138] FWMSG:                   size : 260046848 [0x0f800000] [248.0 MB]\r\n[79603.953158] FWMSG:   TEXT : 1421992 [0x15b2a8] - text 667256, cstring  38749, const 715528\r\n[79603.953179] FWMSG:   DATA : 8076 [0x1f8c] - data 0, bss 460, common 1452, noinit 6144\r\n[79603.953303] FWMSG:   Heap free space : 10002626 [0x0098a0c2]\r\n[79603.953319] FWMSG:   Heap allocated space : 94656 [0x000171c0]\r\n[79603.953337] FWMSG:   Disclaimer : Copyright (c) APPLE Inc. All Rights Reserved.\r\n[79603.953350] FWMSG:   Application : adc [release]\r\n[79603.953364] FWMSG:   Linked on : Jul 25 2015 - 08:48:55\r\n[79603.953377] FWMSG:   Release : S2ISP-01.43.00\r\n[79603.953390] FWMSG:   H4ISPAPPLE : 11536\r\n[79603.953402] FWMSG:   H4ISPCD : 4081\r\n[79603.953412] FWMSG:   ffw : 4143\r\n[79603.953429] FWMSG:   Tool-chain : iPhone OS - 7.0.3 [clang/clang++]\r\n[79603.953439] FWMSG: \r\n[79603.953564] FWMSG: -------------------------------------------------------------------------------\r\n[79603.953576] FWMSG: \r\n[79604.026786] FWMSG: [ISP] CMD = 0x0004 [CISP_CMD_PRINT_ENABLE]\r\n[79604.027025] FWMSG: [ISP] CMD = 0x0003 [CISP_CMD_CONFIG_GET]\r\n[79604.027357] FWMSG: [ISP] CH = 0 CMD = 0x010d [CISP_CMD_CH_INFO_GET]\r\n[79604.027664] facetimehd 0000:02:00.0: Direct firmware load for facetimehd/1871_01XX.dat failed with error -2\r\n```\r\n"}}