Part Number: DRA829V
Other Parts Discussed in Thread: DRA829
Let us know the steps to enable and use softhsm2-util on DRA8x platforms
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Priya,
Here are the typical steps to build a component that is not present by default in the SDK.
1. Locate if the recipe is already included in the Yocto layers that the SDK already uses. This can be achieved by doing the below.
cd yocto-layers/sources/ find . | grep softhsm ./meta-openembedded/meta-oe/recipes-security/softhsm/softhsm_git.bb
2. Next step, try to build this recipe by running the bitbake command:
TOOLCHAIN_BASE=/sdk/tools MACHINE=j7-evm bitbake -k softhsm
While building the softhsm, it went through really quick the package didn't have much dependency.
3. You can search for the contents of the package after the build by doing something like below:
cd build/arago-tmp-external-arm-glibc/work/aarch64-linux/softhsm/2.5.0-r0/image find . . ./etc ./etc/softhsm2.conf ./etc/softhsm2.conf.sample ./usr ./usr/lib ./usr/lib/softhsm ./usr/lib/softhsm/libsofthsm2.so ./usr/lib/softhsm/libsofthsm2.a ./usr/share ./usr/share/man ./usr/share/man/man5 ./usr/share/man/man5/softhsm2.conf.5 ./usr/share/man/man1 ./usr/share/man/man1/softhsm2-keyconv.1 ./usr/share/man/man1/softhsm2-dump-file.1 ./usr/share/man/man1/softhsm2-util.1 ./usr/bin ./usr/bin/softhsm2-keyconv ./usr/bin/softhsm2-dump-file ./usr/bin/softhsm2-util ./var ./var/lib ./var/lib/softhsm ./var/lib/softhsm/tokens
You can see that it has the file that you wanted "softhsm2-util"
4. You can either bitbake the TI SDK image or copy the ipk file and install it on the target.
Regards
Karthik
Hi Kartik,
After the ti-softhsmv2 recipe is built and image loaded on the J7(DRA829) platform. The below softhsm2-util command gives error in execution. Kindly help with pointers.
softhsm2-util --show-slots --module /usr/lib/softhsm/libsecstore.so.1
ERROR: Could not initialize the library.
PFB the error logs:
PFB the softhsm.conf file
Thanks,
Priya
Hi Priya,
Glad to know that you have it built.
softhsmv2 is an opensource component. TI does not add anything to this, so I do not know the dependencies of running this or getting it working.
I was just trying to give you a helping hand with building the same, but if you are running into issues with running this, you will have to look into the documentation for all the runtime dependencies or configuration to get you going.
Kindly suggest that you work with the respective community and get support for this time.
Regards
Karthik