{"action":"created","issue":{"url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/14","labels_url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/14/comments","events_url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/14/events","html_url":"https://github.com/patjak/bcwc_pcie/issues/14","id":100832606,"number":14,"title":"Extract firmware on Linux","user":{"login":"wvengen","id":503804,"avatar_url":"https://avatars.githubusercontent.com/u/503804?v=3","gravatar_id":"","url":"https://api.github.com/users/wvengen","html_url":"https://github.com/wvengen","followers_url":"https://api.github.com/users/wvengen/followers","following_url":"https://api.github.com/users/wvengen/following{/other_user}","gists_url":"https://api.github.com/users/wvengen/gists{/gist_id}","starred_url":"https://api.github.com/users/wvengen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvengen/subscriptions","organizations_url":"https://api.github.com/users/wvengen/orgs","repos_url":"https://api.github.com/users/wvengen/repos","events_url":"https://api.github.com/users/wvengen/events{/privacy}","received_events_url":"https://api.github.com/users/wvengen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-08-13T18:09:04Z","updated_at":"2015-12-27T23:36:06Z","closed_at":null,"body":"I assume that we'll need a program to extract the firmware from the kext bundle at some point, so that users can obtain the firmware legally.\r\n\r\nThe current firmware extract script requires `segedit`, which is available on MacOSX. I cannot seem to find a version of `objcopy` that understands the mach-o kext bundle.\r\n\r\nPossible solutions:\r\n* get permission to redistribute the binary firmware image\r\n* find a version of objcopy that understands kext bundles\r\n* find a way to use llvm 3.7+ kext bundle parser to output the section\r\n* get segedit to run on linux (like [toolwhip](https://code.google.com/p/toolwhip/) or [this](https://github.com/rotten-apples/cctools))"},"comment":{"url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/comments/167447735","html_url":"https://github.com/patjak/bcwc_pcie/issues/14#issuecomment-167447735","issue_url":"https://api.github.com/repos/patjak/bcwc_pcie/issues/14","id":167447735,"user":{"login":"Jancis","id":635571,"avatar_url":"https://avatars.githubusercontent.com/u/635571?v=3","gravatar_id":"","url":"https://api.github.com/users/Jancis","html_url":"https://github.com/Jancis","followers_url":"https://api.github.com/users/Jancis/followers","following_url":"https://api.github.com/users/Jancis/following{/other_user}","gists_url":"https://api.github.com/users/Jancis/gists{/gist_id}","starred_url":"https://api.github.com/users/Jancis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jancis/subscriptions","organizations_url":"https://api.github.com/users/Jancis/orgs","repos_url":"https://api.github.com/users/Jancis/repos","events_url":"https://api.github.com/users/Jancis/events{/privacy}","received_events_url":"https://api.github.com/users/Jancis/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T23:36:06Z","updated_at":"2015-12-27T23:36:06Z","body":"My friend has retina + el capitan, i asked him to send the file. It's exatly the same as extracted using your script, same size, same md5sum.\r\n\r\n```\r\n$ ls -Al  ~/Desktop/AppleCameraInterface  ./AppleCameraInterface \r\n-rwxr-xr-x 1 jancis jancis 754832 dec 28 01:20 ./AppleCameraInterface\r\n-rw-rw-r-- 1 jancis jancis 754832 dec 28 01:32 /home/jancis/Desktop/AppleCameraInterface\r\n\r\n$ md5sum ~/Desktop/AppleCameraInterface  ./AppleCameraInterface \r\nccea5db116954513252db1ccb639ce95  /home/jancis/Desktop/AppleCameraInterface\r\nccea5db116954513252db1ccb639ce95  ./AppleCameraInterface\r\n```\r\n\r\nExtraction must be correct now, your script works (it looks elegant). I just wish we could avoid compiling xar, are there any alternatives to that?"}}