{"action":"created","issue":{"url":"https://api.github.com/repos/gnubee-git/GnuBee_Docs/issues/81","repository_url":"https://api.github.com/repos/gnubee-git/GnuBee_Docs","labels_url":"https://api.github.com/repos/gnubee-git/GnuBee_Docs/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/gnubee-git/GnuBee_Docs/issues/81/comments","events_url":"https://api.github.com/repos/gnubee-git/GnuBee_Docs/issues/81/events","html_url":"https://github.com/gnubee-git/GnuBee_Docs/issues/81","id":318703770,"number":81,"title":"How to build just one module for 3.10.14 kernel?","user":{"login":"Adonai","id":863272,"avatar_url":"https://avatars3.githubusercontent.com/u/863272?v=4","gravatar_id":"","url":"https://api.github.com/users/Adonai","html_url":"https://github.com/Adonai","followers_url":"https://api.github.com/users/Adonai/followers","following_url":"https://api.github.com/users/Adonai/following{/other_user}","gists_url":"https://api.github.com/users/Adonai/gists{/gist_id}","starred_url":"https://api.github.com/users/Adonai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adonai/subscriptions","organizations_url":"https://api.github.com/users/Adonai/orgs","repos_url":"https://api.github.com/users/Adonai/repos","events_url":"https://api.github.com/users/Adonai/events{/privacy}","received_events_url":"https://api.github.com/users/Adonai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-29T09:42:38Z","updated_at":"2018-04-30T11:39:16Z","closed_at":null,"author_association":"NONE","body":"I have a setup where whole GB-1 can be controlled from root image on a microSD. I need tun driver for it and wanted to build it from source, but neither `/proc/config.gz` nor raw config image from mqmaker source tree don't seem to match the 3.10.14 kernel that GB-1 has.\r\n\r\nHow to build just one module for the mqmaker kernel that can be loaded into running system?"},"comment":{"url":"https://api.github.com/repos/gnubee-git/GnuBee_Docs/issues/comments/385374135","html_url":"https://github.com/gnubee-git/GnuBee_Docs/issues/81#issuecomment-385374135","issue_url":"https://api.github.com/repos/gnubee-git/GnuBee_Docs/issues/81","id":385374135,"user":{"login":"neilbrown","id":57437,"avatar_url":"https://avatars1.githubusercontent.com/u/57437?v=4","gravatar_id":"","url":"https://api.github.com/users/neilbrown","html_url":"https://github.com/neilbrown","followers_url":"https://api.github.com/users/neilbrown/followers","following_url":"https://api.github.com/users/neilbrown/following{/other_user}","gists_url":"https://api.github.com/users/neilbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/neilbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilbrown/subscriptions","organizations_url":"https://api.github.com/users/neilbrown/orgs","repos_url":"https://api.github.com/users/neilbrown/repos","events_url":"https://api.github.com/users/neilbrown/events{/privacy}","received_events_url":"https://api.github.com/users/neilbrown/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T11:39:16Z","updated_at":"2018-04-30T11:39:16Z","author_association":"NONE","body":"That's unfortunate.\r\nIf you pass the Code: line as input to ./scripts/decodecode it will show you some code.\r\nIf you make drivers/net/tun.s it will create an assembly language version of the module.\r\nIf you find the match, you will see it is in tun_net_init() where it calls eth_hw_addr_random().  dev->dev_addr is NULL.  This gets set by dev_addr_init().  I don't think that can possibly have not happened.\r\nSo there must be some difference in the configs which results in 'struct net_device' having fields in different positions, possibly  CONFIG_WIRELESS_EXT for example.  Actually it was probably CONFIG_NET_NS.\r\nYou really need to find exactly the same kernel source and config that was used to build the kernel you are using.\r\nTry this config: https://github.com/gnubee-git/gnubee-openwrt/blob/0a213723e9d43411a35eb68d00b64f64095d7765/target/linux/ramips/mt7621/config-3.10 \r\nit is from closer to the build time of that kernel.\r\nI think the kernel was built in gnebee-openwrt which might contain patches on the mqmaker kernel.\r\n"}}
{"actor":{"display_login":"neilbrown"}}