{"id":391,"date":"2020-12-01T13:32:14","date_gmt":"2020-12-01T18:32:14","guid":{"rendered":"http:\/\/www.mgreene.org\/?p=391"},"modified":"2020-12-01T13:32:14","modified_gmt":"2020-12-01T18:32:14","slug":"compile-errors-with-broadcom-sta-and-kernel-5-9","status":"publish","type":"post","link":"https:\/\/www.mgreene.org\/?p=391","title":{"rendered":"Compile errors with broadcom-sta and kernel 5.9"},"content":{"rendered":"\n<p>The net-wireless\/broadcom-sta package does compile with the 5.9 versions of the kernel.  Specifically, the current driver version 6.30.223.271-r6. The following patch will allow compiling of a working driver.<\/p>\n\n\n\n<p>I named the following patch<em> linux-5.9.patch<\/em> and placed in:<\/p>\n\n\n\n<p><em>\/etc\/portage\/patches\/net-wireless\/broadcom-sta-6.30.223.271-r6<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>--- a\/src\/wl\/sys\/wl_linux.c\t2020-11-16 06:13:53.274122141 -0500\n+++ b\/src\/wl\/sys\/wl_linux.c\t2020-11-16 05:25:24.506040486 -0500\n@@ -1662,8 +1662,13 @@\n \t\tgoto done2;\n \t}\n \n+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)\n+       if (uaccess_kernel())\n+               buf = ioc.buf;\n+#else\n \tif (segment_eq(get_fs(), KERNEL_DS))\n \t\tbuf = ioc.buf;\n+#endif\n \n \telse if (ioc.buf) {\n \t\tif (!(buf = (void *) MALLOC(wl->osh, MAX(ioc.len, WLC_IOCTL_MAXLEN)))) {<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The net-wireless\/broadcom-sta package does compile with the 5.9 versions of the kernel. Specifically, the current driver version 6.30.223.271-r6. The following patch will allow compiling of a working driver. I named [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[12,20],"tags":[85],"class_list":["post-391","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-linux","tag-driver"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":256,"url":"https:\/\/www.mgreene.org\/?p=256","url_meta":{"origin":391,"position":0},"title":"evolution-calendar login errors","author":"Mike","date":"November 6, 2018","format":false,"excerpt":"Finally decided to shut this up: e_cal_recur_generate_instances_sync: assertion 'icaltime_compare (interval_start, interval_end) < 0' failed I found this patch: diff -up gnome-shell-3.26.2\/src\/calendar-server\/gnome-shell-calendar-server.c.xxxx gnome-shell-3.26.2\/src\/calendar-server\/gnome-shell-calendar-server.c --- gnome-shell-3.26.2\/src\/calendar-server\/gnome-shell-calendar-server.c.xxxx 2017-11-02 17:05:55.000000000 +0100 +++ gnome-shell-3.26.2\/src\/calendar-server\/gnome-shell-calendar-server.c 2018-04-30 14:07:17.611055378 +0200 @@ -590,6 +590,11 @@ app_load_events (App *app) g_list_free (app->live_views); app->live_views = NULL; + if (!app->since || !app->until) +\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.mgreene.org\/?cat=20"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":474,"url":"https:\/\/www.mgreene.org\/?p=474","url_meta":{"origin":391,"position":1},"title":"NUC7PJYH: Intel UHD Graphics 605 A problem video problem on the way to happiness","author":"Mike","date":"February 3, 2021","format":false,"excerpt":"The NUC J5005 uses built in Intel UHD Graphics 605 and I have it connected to a ViewSonic VG3448 34 Inch Ultra-Wide 21:9 WQHD. In the kernel config, it is configured as an i915. Short story, the first sign of problems is when the framebuffer is initialized which is followed\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":106,"url":"https:\/\/www.mgreene.org\/?p=106","url_meta":{"origin":391,"position":2},"title":"Another day, another kernel and that VMware problem","author":"Mike","date":"February 10, 2015","format":false,"excerpt":"Yep, another day, a new kernel: Linux littleturd 3.19.0-gentoo-mgreene #1 SMP PREEMPT Tue Feb 10 19:08:38 EST 2015 x86_64 Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz GenuineIntel GNU\/Linux What does going from 3.18.x to 3.19.0 mean for me? \u00a0The damn Vmware modules don't compile, so it is off to remember how\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":471,"url":"https:\/\/www.mgreene.org\/?p=471","url_meta":{"origin":391,"position":3},"title":"NUC7PJYH: Closing out Gentoo on the Intel NUC","author":"Mike","date":"February 20, 2021","format":false,"excerpt":"Well, the NUC is done and everything to working. It is definitely not a speed demon, Geekbench scores prove it with a 158 Single-Core Score and 570 Multi-Core Score. NUC: Gnome Screen NUC: Gnome Overview with settings window, dash to dock, and workspaces to dock. I did try Wayland, and\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/02\/about-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/02\/about-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/02\/about-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/02\/about-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":696,"url":"https:\/\/www.mgreene.org\/?p=696","url_meta":{"origin":391,"position":4},"title":"Vortex PC66 (68 Key) Follow-up","author":"Mike","date":"November 15, 2022","format":false,"excerpt":"The Vortex PC66 is a retro-ish PCjr keyboard. The PCjr was sold March 1984 to May 1985 and first used a chiclet keyboard that was junk. In 1984, the PCjr was shipped with a new keyboard. The following picture is an original 1984 PCjr keyboard and a Vortex PC66 (68\u2026","rel":"","context":"In &quot;keyboard&quot;","block_context":{"text":"keyboard","link":"https:\/\/www.mgreene.org\/?cat=135"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2022\/11\/pc68_compare.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":449,"url":"https:\/\/www.mgreene.org\/?p=449","url_meta":{"origin":391,"position":5},"title":"NUC7PJYH:  Installing Gentoo","author":"Mike","date":"January 3, 2021","format":false,"excerpt":"Start This project was a real rocky start. I was having a hard time booting off the USB and more trouble with a USB keyboard attached. However, when I could get the unit to boot, the chroot worked and I could compile. I was to the point think the unit\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=391"}],"version-history":[{"count":0,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/391\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}