{"action":"created","issue":{"url":"https://api.github.com/repos/xmos/vocalfusion-rpi-setup/issues/6","repository_url":"https://api.github.com/repos/xmos/vocalfusion-rpi-setup","labels_url":"https://api.github.com/repos/xmos/vocalfusion-rpi-setup/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/xmos/vocalfusion-rpi-setup/issues/6/comments","events_url":"https://api.github.com/repos/xmos/vocalfusion-rpi-setup/issues/6/events","html_url":"https://github.com/xmos/vocalfusion-rpi-setup/issues/6","id":355259505,"node_id":"MDU6SXNzdWUzNTUyNTk1MDU=","number":6,"title":"Kernel headers may not match running kernel version","user":{"login":"larry-xmos","id":712774,"node_id":"MDQ6VXNlcjcxMjc3NA==","avatar_url":"https://avatars2.githubusercontent.com/u/712774?v=4","gravatar_id":"","url":"https://api.github.com/users/larry-xmos","html_url":"https://github.com/larry-xmos","followers_url":"https://api.github.com/users/larry-xmos/followers","following_url":"https://api.github.com/users/larry-xmos/following{/other_user}","gists_url":"https://api.github.com/users/larry-xmos/gists{/gist_id}","starred_url":"https://api.github.com/users/larry-xmos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larry-xmos/subscriptions","organizations_url":"https://api.github.com/users/larry-xmos/orgs","repos_url":"https://api.github.com/users/larry-xmos/repos","events_url":"https://api.github.com/users/larry-xmos/events{/privacy}","received_events_url":"https://api.github.com/users/larry-xmos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-29T17:27:17Z","updated_at":"2018-08-29T17:51:57Z","closed_at":null,"author_association":"NONE","body":"The setup script uses `sudo apt-get install raspberrypi-kernel-headers` to install headers for building the I2C and I2S kernel modules.\r\n\r\nThese may not match running kernel version. The version you get is the most recent depending on state of APT, whether you've done an APT update recently, and so on.\r\n\r\nGetting matching headers is straightforward in Ubuntu or CentOS, but it seems that Raspberry Foundation find it too much trouble to package their kernel properly. What people seem to be doing is getting the full kernel source, building it and using a Raspberry Foundation provided makefile to export headers into `/lib/modules`.\r\n\r\nSee comment dated November 2013 from _dom_ at https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=57401.\r\n\r\nThere are a number of scripts automating this procedure. One of them—https://github.com/notro/rpi-source—does exactly what I described above.\r\n\r\nOther references:\r\n\r\n- https://www.grendelman.net/wp/compiling-kernel-modules-for-raspbian-raspberry-pi\r\n- http://lostindetails.com/blog/post/Compiling-a-kernel-module-for-the-raspberry-pi-2"},"comment":{"url":"https://api.github.com/repos/xmos/vocalfusion-rpi-setup/issues/comments/417044809","html_url":"https://github.com/xmos/vocalfusion-rpi-setup/issues/6#issuecomment-417044809","issue_url":"https://api.github.com/repos/xmos/vocalfusion-rpi-setup/issues/6","id":417044809,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzA0NDgwOQ==","user":{"login":"larry-xmos","id":712774,"node_id":"MDQ6VXNlcjcxMjc3NA==","avatar_url":"https://avatars2.githubusercontent.com/u/712774?v=4","gravatar_id":"","url":"https://api.github.com/users/larry-xmos","html_url":"https://github.com/larry-xmos","followers_url":"https://api.github.com/users/larry-xmos/followers","following_url":"https://api.github.com/users/larry-xmos/following{/other_user}","gists_url":"https://api.github.com/users/larry-xmos/gists{/gist_id}","starred_url":"https://api.github.com/users/larry-xmos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larry-xmos/subscriptions","organizations_url":"https://api.github.com/users/larry-xmos/orgs","repos_url":"https://api.github.com/users/larry-xmos/repos","events_url":"https://api.github.com/users/larry-xmos/events{/privacy}","received_events_url":"https://api.github.com/users/larry-xmos/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T17:51:57Z","updated_at":"2018-08-29T17:51:57Z","author_association":"NONE","body":"It might be that after update and upgrade the raspberrypi-kernel-headers package does indeed match running kernel. If that's the case, it's only the instructions that need to change requiring an update and upgrade be done first (or have top level script do it)."}}
{"actor":{"display_login":"larry-xmos"}}