Re: [Ocf-linux-users] OCF driver for Marvell Kirkwood (88F6xxx) Processors
Brought to you by:
david-m
From: Flaig, P. <Pat...@bd...> - 2010-08-02 15:26:00
|
Hi, Thanks for the hint, but where should this file or the directory "plat" be? Is mv_cesa.h the same as under crypto/ocf/Kirkwood/cesa? But when it is the same, why is it included twice <cesa/mv_cesa.h> and <plat/mv_cesa.h> Patrick -----Original Message----- From: added by portage for apache [mailto:ap...@at...] On Behalf Of md...@as... Sent: Monday, August 02, 2010 4:59 PM To: Flaig, Patrick Subject: Re: [Ocf-linux-users] OCF driver for Marvell Kirkwood (88F6xxx) Processors Hi Ignore the warnings make sure that the following file exists and you include it: plat/mv_cesa.h >> crypto/ocf/kirkwood/cesa_ocf_drv.c:49:26: error: plat/mv_cesa.h: No >> such file >>or directory Regards Mihalis Quoting "Flaig, Patrick" <Pat...@bd...>: > Hello, > > Maybe someone can help me; I'm getting some compile errors when > trying to compile the OCF driver for Marvell Kirkwood. > > I'm using a Kernel 2.6.31.14 with the latest OCF patches > (ocf-linux-26-20100325.patch) and the Marvell SDK 3.2 cross > compilers (arm-mv5vfp-linux-gnueabi). > > OCF without this driver enabled compiles without any problems. > > Here is the output of the build process: > > make ARCH=arm CROSS_COMPILE=arm-mv5vfp-linux-gnueabi- uImage > scripts/kconfig/conf -s arch/arm/Kconfig > CHK include/linux/version.h > make[1]: `include/asm-arm/mach-types.h' is up to date. > CHK include/linux/utsrelease.h > SYMLINK include/asm -> include/asm-arm > CALL scripts/checksyscalls.sh > <stdin>:1351:2: warning: #warning syscall migrate_pages not > implemented > <stdin>:1407:2: warning: #warning syscall pselect6 not implemented > <stdin>:1411:2: warning: #warning syscall ppoll not implemented > <stdin>:1451:2: warning: #warning syscall epoll_pwait not implemented > CHK include/linux/compile.h > CC crypto/ocf/kirkwood/cesa/mvCesa.o > CC crypto/ocf/kirkwood/cesa/mvLru.o > CC crypto/ocf/kirkwood/cesa/mvMD5.o > CC crypto/ocf/kirkwood/cesa/mvSHA1.o > CC crypto/ocf/kirkwood/cesa/AES/mvAesAlg.o > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:13:26: error: > mvAesBoxes.dat: No such file or directory > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c: In function 'mul1': > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:29: error: 'mask' undeclared > (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:29: error: (Each undeclared > identifier is reported only once > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:29: error: for each function > it appears in.) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:29: error: 'Alogtable' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:29: error: 'Logtable' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c: In function 'MixColumn': > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:151: error: 'mask' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:151: error: 'Alogtable' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:151: error: 'Logtable' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c: In function 'InvMixColumn': > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:169: error: 'mask' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:169: error: 'Alogtable' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:169: error: 'Logtable' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c: In function 'rijndaelKeySched': > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:221: error: 'S' undeclared > (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:222: error: 'rcon' > undeclared (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c: In function 'rijndaelEncrypt128': > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:261: error: 'S' undeclared > (first use in this function) > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c: In function 'rijndaelDecrypt128': > crypto/ocf/kirkwood/cesa/AES/mvAesAlg.c:298: error: 'Si' undeclared > (first use in this function) > make[3]: *** [crypto/ocf/kirkwood/cesa/AES/mvAesAlg.o] Error 1 > make[2]: *** [crypto/ocf/kirkwood] Error 2 > make[1]: *** [crypto/ocf] Error 2 > make: *** [crypto] Error 2 > > I was able to add the missing mvAesBoxes.dat(from the original > Marvell Kirkwood kernel), but still some compile errors. > > make ARCH=arm CROSS_COMPILE=arm-mv5vfp-linux-gnueabi- uImage > CHK include/linux/version.h > make[1]: `include/asm-arm/mach-types.h' is up to date. > CHK include/linux/utsrelease.h > SYMLINK include/asm -> include/asm-arm > CALL scripts/checksyscalls.sh > <stdin>:1351:2: warning: #warning syscall migrate_pages not > implemented > <stdin>:1407:2: warning: #warning syscall pselect6 not implemented > <stdin>:1411:2: warning: #warning syscall ppoll not implemented > <stdin>:1451:2: warning: #warning syscall epoll_pwait not implemented > CHK include/linux/compile.h > CC crypto/ocf/kirkwood/cesa/AES/mvAesAlg.o > CC crypto/ocf/kirkwood/cesa/AES/mvAesApi.o > CC crypto/ocf/kirkwood/cesa/mvCesaDebug.o > crypto/ocf/kirkwood/cesa/mvCesaDebug.c: In function 'mvCesaDebugStatus': > crypto/ocf/kirkwood/cesa/mvCesaDebug.c:270: warning: format '%ld' > expects type 'long int', but argument 4 has type 'unsigned int' > crypto/ocf/kirkwood/cesa/mvCesaDebug.c:278: warning: format '%ld' > expects type 'long int', but argument 4 has type 'unsigned int' > crypto/ocf/kirkwood/cesa/mvCesaDebug.c: In function 'mvCesaDebugQueue': > crypto/ocf/kirkwood/cesa/mvCesaDebug.c:306: warning: format '%ld' > expects type 'long int', but argument 5 has type 'unsigned int' > crypto/ocf/kirkwood/cesa/mvCesaDebug.c: In function 'mvCesaDebugSramSA': > crypto/ocf/kirkwood/cesa/mvCesaDebug.c:358: warning: format '%ld' > expects type 'long int', but argument 3 has type 'unsigned int' > crypto/ocf/kirkwood/cesa/mvCesaDebug.c: In function 'mvCesaDebugSram': > crypto/ocf/kirkwood/cesa/mvCesaDebug.c:425: warning: format '%ld' > expects type 'long int', but argument 2 has type 'unsigned int' > crypto/ocf/kirkwood/cesa/mvCesaDebug.c:434: warning: format '%ld' > expects type 'long int', but argument 2 has type 'unsigned int' > CC crypto/ocf/kirkwood/cesa_ocf_drv.o > crypto/ocf/kirkwood/cesa_ocf_drv.c:49:26: error: plat/mv_cesa.h: No > such file or directory > crypto/ocf/kirkwood/cesa_ocf_drv.c: In function 'cesa_ocf_process': > crypto/ocf/kirkwood/cesa_ocf_drv.c:501: error: implicit declaration > of function 'crypto_copy_bits_back' > crypto/ocf/kirkwood/cesa_ocf_drv.c: In function 'setup_tdma_mbus_windows': > crypto/ocf/kirkwood/cesa_ocf_drv.c:1115: error: dereferencing > pointer to incomplete type > crypto/ocf/kirkwood/cesa_ocf_drv.c:1116: error: dereferencing > pointer to incomplete type > crypto/ocf/kirkwood/cesa_ocf_drv.c:1117: error: dereferencing > pointer to incomplete type > crypto/ocf/kirkwood/cesa_ocf_drv.c: In function 'mv_cesa_ocf_init': > crypto/ocf/kirkwood/cesa_ocf_drv.c:1201: warning: format '%x' > expects type 'unsigned int', but argument 4 has type 'void *' > crypto/ocf/kirkwood/cesa_ocf_drv.c: At top level: > crypto/ocf/kirkwood/cesa_ocf_drv.c:1271: warning: initialization > from incompatible pointer type > make[3]: *** [crypto/ocf/kirkwood/cesa_ocf_drv.o] Error 1 > make[2]: *** [crypto/ocf/kirkwood] Error 2 > make[1]: *** [crypto/ocf] Error 2 > make: *** [crypto] Error 2 > > Any help or support is welcome :) > > Thanks and regards. > > Patrick > |