Re: [Ocf-linux-users] OCF driver for Marvell Kirkwood (88F6xxx) Processors
Brought to you by:
david-m
From: Flaig, P. <Pat...@bd...> - 2010-08-03 06:30:12
|
Hi, the mv_cesa.h is a Marvell specific file, which they use in their SDKs for the different processors. I will now cross check my SDK if, there is an additional mv_cesa.h which I have to use. My only problem is that I only have a SDK for the Feroceon not for the Kirkwood. Initially I only wanted to port the kirkwood driver to the feroceon platform, but then I saw that it is not possible to compile the kirkwood OCF driver. So I think I have to fix this first to continue with porting the driver. Patrick -----Ursprüngliche Nachricht----- Von: David McCullough [mailto:dav...@mc...] Gesendet: Dienstag, 3. August 2010 02:58 An: Flaig, Patrick Cc: ocf...@li... Betreff: Re: [Ocf-linux-users] OCF driver for Marvell Kirkwood (88F6xxx) Processors Jivin Flaig, Patrick lays it down ... > 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> I think that plat/mv_cesa.h comes from the linux kernel. Cheers, Davidm > -----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 > > > > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Ocf-linux-users mailing list > Ocf...@li... > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users > > -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |