cancel
Showing results for 
Search instead for 
Did you mean: 

STM32-CRC module build issue.

NPal.2
Senior

Hi all,

I have been trying to build a custom machine based on STM32MP157C MPU. Right now I am facing a weird issue.

Defconfig file is attached. However upon giving build , i cannot see the stm32-crc module , built added and loaded. Is there something which i am missing?

TIA

1 ACCEPTED SOLUTION

Accepted Solutions
Kevin HUBER
ST Employee

Hello @NPal.2​ ,

The configuration that interest you is "CONFIG_CRYPTO_DEV_STM32_CRC".

We can see in your defconfig_file that this configuration is enabled, but as a built-in and not a module:

CONFIG_CRYPTO_DEV_STM32_CRC=y
CONFIG_CRYPTO_DEV_STM32_HASH=y
CONFIG_CRYPTO_DEV_STM32_CRYP=y

You have "Y" instead of "m".

For instance, if you look at the defconfig file from the developer package v3.1, you will see:

CONFIG_CRYPTO_DEV_STM32_CRC=m
CONFIG_CRYPTO_DEV_STM32_HASH=m
CONFIG_CRYPTO_DEV_STM32_CRYP=m

To modify that, you have to use the "make menuconfig" search the 3 configs "CONFIG_CRYPTO_DEV_STM32"

  Location:                                                            

 │   -> Cryptographic API (CRYPTO [=y])                                             

 │    -> Hardware crypto devices (CRYPTO_HW [=y]) 

And press the space key several times until you have switched all of them into modules:

0693W00000LzTz4QAF.png 

Hope it helps,

Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Kevin HUBER
ST Employee

Hello @NPal.2​ ,

The configuration that interest you is "CONFIG_CRYPTO_DEV_STM32_CRC".

We can see in your defconfig_file that this configuration is enabled, but as a built-in and not a module:

CONFIG_CRYPTO_DEV_STM32_CRC=y
CONFIG_CRYPTO_DEV_STM32_HASH=y
CONFIG_CRYPTO_DEV_STM32_CRYP=y

You have "Y" instead of "m".

For instance, if you look at the defconfig file from the developer package v3.1, you will see:

CONFIG_CRYPTO_DEV_STM32_CRC=m
CONFIG_CRYPTO_DEV_STM32_HASH=m
CONFIG_CRYPTO_DEV_STM32_CRYP=m

To modify that, you have to use the "make menuconfig" search the 3 configs "CONFIG_CRYPTO_DEV_STM32"

  Location:                                                            

 │   -> Cryptographic API (CRYPTO [=y])                                             

 │    -> Hardware crypto devices (CRYPTO_HW [=y]) 

And press the space key several times until you have switched all of them into modules:

0693W00000LzTz4QAF.png 

Hope it helps,

Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

@Kevin HUBER​ Thank you for the quick response. I tried what you suggested. The module does get built and i can it inside the /lib/modules/kernel/drivers/crypto directory. But when i try to perform a modprobe it fails. Any clues why?

0693W00000NoyB6QAJ.png

Never mind. I just checked that it has been loaded as stm32_crc . Looks good now thanks for the support.