crypto.ko module problem

Xin LI delphij at delphij.net
Tue Nov 22 22:35:23 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 11/22/11 14:25, aram baghomian wrote:
> 
> one more question. the crypto.ko module need zlib.ko module for 
> dependence, how can i config kernel to load zlib.ko before
> crypto.ko in boot time?

Add a dependency, something like:

MODULE_DEPEND(crypto, zlib, 1, 1, 1);

(Note I think crypto.ko already do that though).

> 
> ------------------------------------------------------------------------
>
> 
From: aram_baghomian at hotmail.com
> To: d at delphij.net Subject: RE: crypto.ko module problem Date: Tue,
> 22 Nov 2011 21:57:40 +0000
> 
> I add my hash program address to /sys/modules/crypto/Makefile and 
> recompile the module. it loaded successfully. Thanks alot.
> 
>> Date: Tue, 22 Nov 2011 13:23:30 -0800 From: delphij at delphij.net 
>> To: aram_baghomian at hotmail.com; freebsd-hackers at freebsd.org CC:
>> d at delphij.net Subject: Re: crypto.ko module problem
>> 
> [Added -hackers@ back to Cc list]
> 
> On 11/22/11 13:13, aram baghomian wrote:
>> I add myhash.c address in '/sys/conf/files' and my make process 
>> done completely whitout any error. I don't know is there any
>> place that i should add my hash program address.(i searched all
>> the "/sys/conf" files for same algorithms such as rmd160 and
>> SHA256)
> 
> If you are compiling a kernel module, it would be 
> /sys/modules/*/Makefile (for your exact case would be 
> /sys/modules/crypto/Makefile I think).
> 
>>> Date: Tue, 22 Nov 2011 12:58:02 -0800 From:
>>> delphij at delphij.net To: aram_baghomian at hotmail.com CC:
>>> d at delphij.net Subject: Re: crypto.ko module problem
> 
>> On 11/22/11 12:49, aram baghomian wrote:
>>> I can understand what do you want to refer.
> 
>> Well be more specific -- check if you have everything included
>> in your Makefile, my guess is there is some .c missing.
> 
> 
>>>> Date: Tue, 22 Nov 2011 12:36:44 -0800 From: 
>>>> delphij at delphij.net To: aram_baghomian at hotmail.com CC: 
>>>> freebsd-hackers at freebsd.org Subject: Re: crypto.ko module 
>>>> problem
> 
>>> On 11/22/11 12:30, aram baghomian wrote:
> 
>>>> Hi
> 
>>>> If you can remember i wanted to add my custom hash algorithm 
>>>> to the opencrypto project, after i added it and compile my 
>>>> kernel source( by your advise),i load the crypto.ko module 
>>>> using kldload and give this error.
> 
>>>> link_elf: symbol MYHASHUpdate undefined
> 
>>>> MYHASHUpdate is one of my hash functions that i add to the 
>>>> source.
> 
>>>> what should i do that i forget?
> 
>>> Looks like it's expecting something that is not linked into
>>> your module?
> 
>>> Cheers,
> 
> 

- -- 
Xin LI <delphij at delphij.net>	https://www.delphij.net/
FreeBSD - The Power to Serve!		Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iQEcBAEBCAAGBQJOzCOoAAoJEATO+BI/yjfBisEH/2ompnPAk5Doi5VACeJ8zZaz
kfuYfq8HHoit5WzbDsXFt5A+uii5brafTKxFYRVb0zB6BmjnFbgIxqCebSw3jNll
TBjzhnSI5g1O43n2/XAQT2RjIJdfWnZqfBI0JLpZqjedObMbmQiyAyxz2bpDPV7H
gtb/ElUa17bRVCwjoAy2iKC9hvwIixjMhcWvlrg49kVJyFFd6gVjBxUplS2SMEfv
ZTLDIY8ZeQGCIolVZv8gcjeT1ToSmKQHIGL5V25bb22TVCX/oONuhfM46A/cOaSN
Jsj06Hp/BkDMlYA2mFYAXyQ+OotuW9lz+JVC12o8EBoFpILVNcbAuMVKLa4a6hs=
=JXyV
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list