[OpenWrt-Devel] [PATCH 2/2] kernel: package module for SafeXcel crypto engine
Tomasz Maciej Nowak
tomek_n at o2.pl
Mon Jun 10 10:28:59 EDT 2019
W dniu 05.06.2019 o 17:45, Jonas Gorski pisze:
> On Wed, 5 Jun 2019 at 16:32, Tomasz Maciej Nowak <tomek_n at o2.pl> wrote:
>> Supports EIP97 and EIP197 found on Armada 37xx, 7k and 8k SoCs.
>> Unfortunately firmware for EIP197 is not easily obtainable, therefore
>> to not cause lot of user requests directed at OpenWrt, package it as
>> module with explanation where to obtain the firmware.
>> Cc: Marek Behún <marek.behun at nic.cz>
>> Signed-off-by: Tomasz Maciej Nowak <tomek_n at o2.pl>
>> package/kernel/linux/modules/crypto.mk | 28 ++++++++++++++++++++++++++
>> 1 file changed, 28 insertions(+)
>> diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
>> index 9cab04c6ed..ed2ab6aed7 100644
>> --- a/package/kernel/linux/modules/crypto.mk
>> +++ b/package/kernel/linux/modules/crypto.mk
>> @@ -350,6 +350,34 @@ endef
>> $(eval $(call KernelPackage,crypto-hw-padlock))
>> +define KernelPackage/crypto-hw-safexcel
>> + TITLE:= MVEBU SafeXcel Crypto Engine module
>> + DEPENDS:=@LINUX_4_19 @(TARGET_mvebu_cortexa53||TARGET_mvebu_cortexa72) \
> Assuming this is isn't exclusive to 4.19, a @!LINUX_4_14 would be more
> future proof
>> + +kmod-crypto-authenc +kmod-crypto-md5
>> + KCONFIG:= \
>> + CONFIG_CRYPTO_AES=y \
>> + CONFIG_CRYPTO_BLKCIPHER=y \
> These two are already set to =y by the default config, no need to
> specify them here.
Thanks, didn't check generic config.
>> + CONFIG_CRYPTO_DEV_SAFEXCEL \
>> + CONFIG_CRYPTO_HMAC=y \
>> + CONFIG_CRYPTO_HW=y \
>> + CONFIG_CRYPTO_SHA256=y \
>> + CONFIG_CRYPTO_SHA512=y
Thanks, will check again the dependencies.
>> + FILES:=$(LINUX_DIR)/drivers/crypto/inside-secure/crypto_safexcel.ko
>> + AUTOLOAD:=$(call AutoLoad,90,crypto_safexcel)
>> + $(call AddDepends/crypto)
>> +define KernelPackage/crypto-hw-safexcel/description
>> +MVEBU's EIP97 and EIP197 Cryptographic Engine driver designed by
>> +Inside Secure. This is found on Marvell Armada 37xx/7k/8k SoCs.
>> +Particural version of these IP (EIP197B and EIP197D) require firmware.
>> +It can be obtained at https://extranet.marvell.com.
> You need an NDA to obtain it, which isn't something possible for the
> average end user. The description should make it clear that this isn't
> a simple "download here" situation.
Had that in my previous local version but I decided to simplify it, since visiting
the URL will show login wall with text explaining who can obtain the firmware. Will
use more elaborate version. Don't know how it is with devices sold by SolidRun
(MACCHIATObin and Clearfog GT 8K), maybe it's easier obtaining it through them?
> Are there any boards supported by
> OpenWrt usable without the firmware?
Only boards using Armada 37XX SoC which has EIP97 (cortexa53 subtarget).
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel