From owner-freebsd-x11@freebsd.org Tue Feb 19 10:24:15 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3554114EB780 for ; Tue, 19 Feb 2019 10:24:15 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 943A080A8F for ; Tue, 19 Feb 2019 10:24:14 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 443cKS28l8zDjXS; Tue, 19 Feb 2019 10:24:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id Zi40Qi1CGKsI; Tue, 19 Feb 2019 10:24:11 +0000 (UTC) Received: from garnet.daemonic.se (host-90-235-109-113.mobileonline.telia.com [90.235.109.113]) by mail.daemonic.se (Postfix) with ESMTPSA id 443cKR3SK2zDjXP; Tue, 19 Feb 2019 10:24:11 +0000 (UTC) Subject: Re: drm-kmod startup error To: Kevin Oberman , Sid Cc: "freebsd-x11@freebsd.org" References: From: Niclas Zeising Message-ID: <8a211cbd-d453-3fc3-ea62-560e1673879f@freebsd.org> Date: Tue, 19 Feb 2019 11:24:04 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 943A080A8F X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.981,0]; ASN(0.00)[asn:36236, ipnet:2607:f740:d::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2019 10:24:15 -0000 On 2/19/19 6:41 AM, Kevin Oberman wrote: > On Mon, Feb 18, 2019 at 8:36 PM Sid wrote: > >> I built and used from packages drm-fbsd11.2-kmod, and it had an error on >> startup. >> >> The errors are: >> link_elf_obj: symbolic panic undefined >> link_load_file: Unsupported file type >> KLD drm.ko: depends on linuxkpi - not available or version mismatch >> KLD drm.ko: depends on drmn - not available or version mismatch >> linker_load_file: Unsupported file type >> kldload: unexpected relocation type 4 >> link_elf_obj: symbol uma_zalloc_arg undefined >> linker_load_file: Unsupported file type >> >> kldload: unexpected relocation type 4 repeats many times. >> >> I just rebuilt world and kernel with linux and linx64 modules built for >> FreeBSD 11.2. >> >> It is loaded from rc.conf, with kldlist="amdgpu", others were tried too, >> "/boot/modules/radeonkms.ko radeonkms" >> >> I tried to unset syscons from loader.conf as I read from another thread, >> hw.syscons.disable=1. sc syscons and VESA are also not installed on my >> kernel. My console still loads without this, still with Radeon errors. Xorg >> is also not installed on my computer as I have this error for now. All >> ports and packes were removed, with a few reinstalled. It worked before >> upgrading to the changed name drm port. >> >> From the error messages, it looks like the latest drm ports or packages >> are mismatched with gpu-firmware-kmod or, at least, out of sync with the >> lin >> >> Thanks. >> > > Are you running 11.2-RELEASE? A custom kerel config (not GENERIC)? The > message looks like the kernel module is not in sync with your kernel. Hi! As Kevin says, it's very important to keep driver (drm-*-kmod) and firmware (gpu-firmware-kmod) in sync with the kernel. If you are using a release, and running GENERIC, it is enough to download the packages with pkg and install them, but if you are using a custom kernel, or running STABLE or CURRENT, then you need to compile the modules yourself. The easiest way is usually to run `pkg delete drm-fbsd11.2-kmod` and then `pkg autoremove` to remove any dependencies, and then build graphics/drm-kmod from ports. This is safe to do even if you are using pre-built packages for the rest of the system. Regards -- Niclas Zeising FreeBSD Graphics Team