Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Mar 2016 14:23:31 +0100
From:      Guido Falsi <mad@madpilot.net>
To:        Ian Lepore <ian@freebsd.org>, Jilles Tjoelker <jilles@stack.nl>
Cc:        cem@FreeBSD.org, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: sdhci_pci.ko fails to load
Message-ID:  <56F14753.4010408@madpilot.net>
In-Reply-To: <1458521695.68920.86.camel@freebsd.org>
References:  <56EF12C1.1020202@madpilot.net> <CAG6CVpXCNuGL7fdjcE1u5qFot3YGjT_=1Q2G01m886xoc6H6Xg@mail.gmail.com> <56EF143F.9030308@madpilot.net> <56EF1744.4030607@madpilot.net> <1458511534.68920.84.camel@freebsd.org> <20160320224034.GB78464@stack.nl> <1458521695.68920.86.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/21/16 01:54, Ian Lepore wrote:
> On Sun, 2016-03-20 at 23:40 +0100, Jilles Tjoelker wrote:
>> On Sun, Mar 20, 2016 at 04:05:34PM -0600, Ian Lepore wrote:
>>> On Sun, 2016-03-20 at 22:33 +0100, Guido Falsi wrote:
>>>> the full error in dmesg is the same as stated before:
>>
>>>> link_elf_obj: symbol mmc_driver undefined
>>>> linker_load_file: Unsupported file type
>>
>>>> Meybe the symbol is optimized out by the compiler in the module?
>>
>>> I suspect this is caused by my r292180 back in December.  I'm
>>> trying to
>>> figure out if that's the case and if so, how to fix it.
>>
>> I think this is caused by the missing MODULE_DEPEND. The kernel
>> linker
>> only looks for symbols in the ELF objects containing the module
>> itself
>> and its declared dependencies.
>>
>> If mmc is compiled into the main kernel image, this is always
>> satisfied.
>>
> 
> Thanks for the clue about the linker, it would have taken me forever to
> figure that out by flailing around like I was doing.
> 
> Hopefully this is all fixed now with r297127, but I was only able to
> test it on arm systems (I have no x86 with sdhci).
> 

Sorry for the delay, I updated the machine to r297146 and can confirm
the problem is gone.

Thanks you a lot for the quick fix!

-- 
Guido Falsi <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56F14753.4010408>