{"action":"created","issue":{"url":"https://api.github.com/repos/notro/fbtft/issues/234","labels_url":"https://api.github.com/repos/notro/fbtft/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/notro/fbtft/issues/234/comments","events_url":"https://api.github.com/repos/notro/fbtft/issues/234/events","html_url":"https://github.com/notro/fbtft/issues/234","id":55763242,"number":234,"title":"Segmentation fault on openwrt for ili9341 based TFT","user":{"login":"bogdanul2003","id":10740261,"avatar_url":"https://avatars.githubusercontent.com/u/10740261?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdanul2003","html_url":"https://github.com/bogdanul2003","followers_url":"https://api.github.com/users/bogdanul2003/followers","following_url":"https://api.github.com/users/bogdanul2003/following{/other_user}","gists_url":"https://api.github.com/users/bogdanul2003/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanul2003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanul2003/subscriptions","organizations_url":"https://api.github.com/users/bogdanul2003/orgs","repos_url":"https://api.github.com/users/bogdanul2003/repos","events_url":"https://api.github.com/users/bogdanul2003/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanul2003/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-28T14:35:31Z","updated_at":"2015-01-29T21:18:03Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using this repo to make fbtft to work on openwrt: https://github.com/GBert/openwrt-misc/tree/master/fbtft\r\n\r\nAll compiles ok and I execute these commands:\r\ninsmod fb_defio\r\ninsmod fb\r\ninsmod fbtft\r\ninsmod fb_ili9341\r\ninsmod fbtft_device name=tm022hdh26 busnum=32766 gpios=reset:11,led:12,dc:13 rotate=270\r\n\r\nWhen I load fbtft_device I get a segmentation fault that I could trace to fbtft-core.c in fbtft_framebuffer_alloc() function at line \"par->info = info;\"\r\n\r\nIt seems that par was not allocated when the call to framebuffer_alloc() was made. Do you know what the problem may be ?\r\n\r\nThank you,\r\nBogdan"},"comment":{"url":"https://api.github.com/repos/notro/fbtft/issues/comments/72105928","html_url":"https://github.com/notro/fbtft/issues/234#issuecomment-72105928","issue_url":"https://api.github.com/repos/notro/fbtft/issues/234","id":72105928,"user":{"login":"bogdanul2003","id":10740261,"avatar_url":"https://avatars.githubusercontent.com/u/10740261?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdanul2003","html_url":"https://github.com/bogdanul2003","followers_url":"https://api.github.com/users/bogdanul2003/followers","following_url":"https://api.github.com/users/bogdanul2003/following{/other_user}","gists_url":"https://api.github.com/users/bogdanul2003/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanul2003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanul2003/subscriptions","organizations_url":"https://api.github.com/users/bogdanul2003/orgs","repos_url":"https://api.github.com/users/bogdanul2003/repos","events_url":"https://api.github.com/users/bogdanul2003/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanul2003/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T21:18:03Z","updated_at":"2015-01-29T21:18:03Z","body":"It seems that there is something wrong with my buildtree.\r\nThe size of fb_info is not the same in fbtft-coare.c and fbsysfs.c where framebuffer_alloc() is implemented.\r\n\r\nSo in fbtft-coare.c the size of fb_info is 652 and in fbsysfs.c the size of fb_info is 596, a huge difference. Both files include <linux/fb.h> but it seems that it doesn't point to the same .h file.\r\nDo you know how I could see which .h file is used at compile time ?\r\n\r\nRegards,\r\nBogdan"}}