Date: Wed, 7 Mar 2018 20:52:08 -0800 From: Tom Rushworth <tom.b.rushworth@gmail.com> To: Jung-uk Kim <jkim@FreeBSD.org>, tbr@acm.org, freebsd-x11@freebsd.org Subject: Re: kldxref error when installing drm-next-kmod from ports 11.1 Message-ID: <bb001d52-9791-ccb1-52d7-372eb0622f93@gmail.com> In-Reply-To: <d5df5894-2c46-e0b7-25d2-33402192641b@FreeBSD.org> References: <d4606850-7774-c9c1-8b7b-5d9ece4d8241@gmail.com> <d5df5894-2c46-e0b7-25d2-33402192641b@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi All, Sorry for the delay in replying, it's been a very long time since I used patch and I'm rusty :). On 07/03/2018 13:25, Jung-uk Kim wrote: > On 03/06/2018 22:39, Tom Rushworth wrote: >> Hi All, >> >> I'm running X11 with screen saver and the i915kms graphics driver and >> they seem to work, however I got the following messages when installing >> drm-next-kmod from /usr/ports: >> >> Installing drm-next-kmod-4.11.g20180224... >> kldxref: error while reading >> //boot/modules/i915_bxt_huc_ver01_07_1398_bin.ko: Bad address >> kldxref: error while reading >> //boot/modules/i915_kbl_huc_ver02_00_1810_bin.ko: Bad address >> kldxref: error while reading >> //boot/modules/i915_skl_huc_ver01_07_1398_bin.ko: Bad address >> >> and I get them again when I install other kernel module (e.g. virtualbox >> kmods). >> >> The machine in question is a Compulab Airtop, CPU (from boot in >> /bar/log/messages): >> >> CPU: Intel(R) Xeon(R) CPU E3-1285L v4 @ 3.40GHz (3392.22-MHz K8-class CPU) >> Mar 5 07:45:01 maxwell kernel: Origin="GenuineIntel" Id=0x40671 >> Family=0x6 Model=0x47 Stepping=1 >> >> and from Xorg.log.0: >> >> 9.042] (--) intel(0): Integrated Graphics Chipset: Intel(R) Iris Pro >> Graphics P6300 >> >> # uname -a >> FreeBSD maxwell.mannynkapy.net 11.1-STABLE FreeBSD 11.1-STABLE #0 >> r330126: Thu Mar 1 11:27:24 PST 2018 >> tbr@maxwell:/usr/obj/usr/src/sys/MAXWELL amd64 >> >> The machine has 32G of memory. I checked out the latest 11.1 STABLE >> kernel source, built a custom kernel from GENERIC by dropping the >> network devices not present and the old ATA disk stuff, then checked out >> the latest stable ports and did "make install" in >> /usr/ports/graphics/drm-next-kmod. >> >> As I said, it seems to be running reasonably well, can anyone tell me if >> I should worry about the error messages? >> >> I have the entire "make install" output saved via the "script" command >> if more details are needed. >> >> Thanks in advance for any info or pointers. > > It looks the module names are too long. Please try the attached patch. > Note you need to rebuild both graphics/drm-next-kmod and > graphics/gpu-firmware-kmod. > > Jung-uk Kim > I couldn't quite get "make install" to work but I installed by hand and things look good. "make install" gave the following message: ===> Registering installation for gpu-firmware-kmod-g20180206_1 pkg-static: Unable to access file /usr/ports/graphics/gpu-firmware-kmod/work/stage/boot/modules/i915_bxt_huc_ver01_07_1398_bin.ko:No such file or directory plus two more for the other long names. I used the "make install" to build and stage them, then copied in the modules by hand and removed the old ones. It all runs, the graphics look good, and I can run: xldxref -d /boot/modules without any erorrs. Thanks for the patch - in fact, thanks to all involved for all the work on the i915 driver! Regards, -- Tom Rushworth
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb001d52-9791-ccb1-52d7-372eb0622f93>