Hello all,
I'm trying to use Crypto acceleration on a DM37x (BeagleBoard-XM and DM37x-evm) as described in the Omap3 crypto wiki :
http://processors.wiki.ti.com/index.php/Cryptography_Users_Guide
Compiled and installed the drivers (kernel 2.6.32-psp with ocf support) and openssl, the benchmarks described in the wiki will work just fine,
however I noticed that performing hash(md5/sha1) using cryptodev on a file bigger than a certain size (around 62kbytes) cause a kernel crash !
this limit is strange ! I suspect that the input file is loaded in the internal RAM using dma (64kb) and processed in one chunk.
In the TI SDK demos there is one script performing hash /usr/bin/openssl_gen_sha1hash.sh:
#!/bin/sh
DATAFILE=/home/root/rnddata
OPENSSL=/usr/bin/openssl
echo -e "\nGenerate SHA1 Hash"
if [ ! -r $DATAFILE ] then echo "Creating 10M random data file ($DATAFILE)" echo "Please Wait..." dd if=/dev/urandom of=$DATAFILE bs=1048576 count=10 fi
lsmod | grep ocf_omap3_cryptok >/dev/null if [ `echo $?` = "0" ] then rmmod ocf_omap3_cryptok fi
$OPENSSL dgst -sha1 $DATAFILE
here the cryptok module is unloaded before performing hash ! so maybe it's a known BUG ?!
Any hints ?
Thank you
Ayoub Zaki
http://embeddedgeeks.wordpress.com/