If you're playing with native builds, rebuilding and installing the kernel 
modules should fix your problem.
You may already know this, but for reference:

On the target:
$ cd sources/linux
$ make menuconfig
$ make
$ make modules_install
$ make install (or manually install your kernel in /boot)

Reboot with your new kernel and then,

$ cd sources/cryptodev
$ make
$ make modules_install
$ modprobe cryptodev

(of course, install as root)

Cristian S.
From: Sebastian Anding <k...@cccmz.de>
Sent: Monday, October 17, 2016 6:48:01 PM
To: Cristian Stoica; cryptodev-linux-devel@gna.org
Subject: Re: [Cryptodev-linux-devel] make install failed / kernel headers wrong?

Hi Cristian,

Since it is a native build on a beaglebone black edition (on arm platform), i 
guess the header file is missing or incorrect since it references an x86 header.


Am 17. Oktober 2016 15:11:40 MESZ, schrieb Cristian Stoica 
>Do you build natively on that ARM or cross-build on an x86? The build
>errors suggest you are (or intend to do) building on an x86 machine.
>Did you set both ARCH and CROSS_COMPILE variables before building?
>e.g. for ARM64:
>export ARCH=arm64
>export CROSS_COMPILE=aarch64-fsl-linux-
>Do you use kernel sources for your arm cross-build distinct from your
>host machine?
>/home/user/linux_sources_for_bb   instead of
>The line referencing /lib/modules/4.8.1-1-ARCH/build suggests that
>you're setup is mixing up x86 and arm objects and configuration.
>Cristian S.
>From: Cryptodev-linux-devel <cryptodev-linux-devel-boun...@gna.org> on
>behalf of Sebastian Anding <k...@cccmz.de>
>Sent: Friday, October 14, 2016 3:37:38 AM
>To: cryptodev-linux-devel@gna.org
>Subject: [Cryptodev-linux-devel] make install failed / kernel headers
>Hi list,
>I tried to build the latest git version ofcryptodev on arm arch linux.
>The used kernel version is:
>uname -a
>Linux <hostname> 4.8.1-1-ARCH #1 Sun Oct 9 19:47:11 MDT 2016 armv7l
>sudo make install
>make -C /lib/modules/4.8.1-1-ARCH/build M= modules_install
>make[1]: Entering directory '/usr/lib/modules/4.8.1-1-ARCH/build'
>scripts/kconfig/conf  --silentoldconfig Kconfig
>drivers/ras/Kconfig:33: can't open file "arch/x86/ras/Kconfig"
>make[3]: *** [scripts/kconfig/Makefile:38: silentoldconfig] Error 1
>make[2]: *** [Makefile:545: silentoldconfig] Error 2
>cp: cannot stat './modules.order': No such file or directory
>make[1]: *** [Makefile:1205: _modinst_] Error 1
>make[1]: Leaving directory '/usr/lib/modules/4.8.1-1-ARCH/build'
>make: *** [Makefile:35: modules_install] Error 2
>/usr/lib/modules/4.8.1-1-ARCH/build/drivers/ras/Kconfig shows
>if RAS
>source arch/x86/ras/Kconfig
>But the file arch/x86/Kconfig does not exist.
>Header files seem to be installed this time:
>4.8.1-1 [installed] Header files and scripts for building modules for
>linux kernel - TI AM335x Beaglebone (Black) core/linux-api-headers
>[installed] Kernel headers sanitized for use in userspace
>Is the error depending on the missing header file or can this be fixed
>in cryptodev Makefile somehow?
>PS: Please CC me because I'm not subscribed to this mailing list.
>Cryptodev-linux-devel mailing list

Cryptodev-linux-devel mailing list

Reply via email to