Hi Prashant, Minor correction in the previous step
Pls use the following variable in configure script in step (3) ./configure --host=mips64-octeon-linux-gnu with_openssl_path=<CRYPTO-API library and include path in SDK> CPPFLAGS="-DCVMX_ENABLE_PARAMETER_CHECKING=0 -DCVMX_ENABLE_CSR_ADDRESS_CHECKING=0 -DCVMX_ENABLE_POW_CHECKS=0 -DOCTEON_MODEL=OCTEON_CN66XX" CFLAGS="-march=octeon2" CC="mips64-octeon-linux-gnu-gcc" AR="mips64-octeon-linux-gnu-ar" Regards, Bala On 16 September 2014 09:03, Bala Manoharan <[email protected]> wrote: > Hi Prashant, > > The issue is due to not adding "-march=octeon2" which needs to be added > into CFLAGS for compiling for Octeon. > > Pls use the following steps for compilation > > 1. /*Update toolchain in shell PATH variable */ > PATH=$toolchain_path/bin:$PATH > > 2. ./bootstrap > > 3. /* Configure */ > ./configure --host=mips64-octeon-linux-gnu --with-platform=octeon > CPPFLAGS="-DCVMX_ENABLE_PARAMETER_CHECKING=0 > -DCVMX_ENABLE_CSR_ADDRESS_CHECKING=0 -DCVMX_ENABLE_POW_CHECKS=0 > -DOCTEON_MODEL=OCTEON_CN66XX" CFLAGS="-march=octeon2" --enable-shared=no > > 4. /* Compile */ > make -j$(gnu_make_thread_count) > > Regards, > Bala > > > On 16 September 2014 02:59, Prashant Upadhyaya < > [email protected]> wrote: > >> Hi Jacob, >> >> >> >> I am using a version of SDK2.3 supplied by Adax. >> >> . ./env-setup OCTEON_CN66XX_PASS1_2 >> >> >> >> Compiler version is 4.3 >> >> mips64-octeon-linux-gnu-gcc >> >> >> >> Regards >> >> -Prashant >> >> >> >> >> >> >> >> *From:* Jacob, Jerin [mailto:[email protected]] >> *Sent:* Tuesday, September 16, 2014 2:43 PM >> *To:* Prashant Upadhyaya >> *Cc:* [email protected] >> *Subject:* Re: [lng-odp] ODP Compilation for Cavium Octeon 6645 >> >> >> >> >> Please share the commands and the tool chain version you used to compile >> the linux-generic on octeon. >> >> On Sep 15, 2014 10:47 PM, Prashant Upadhyaya < >> [email protected]> wrote: >> >> Hi, >> >> >> >> I was trying to compile ODP (v0.2) for octeon and ran into the following >> compilation issue – >> >> >> >> /tmp/ccH0X8h8.s: Assembler messages: >> >> /tmp/ccH0X8h8.s:44: Error: opcode not supported on this processor: octeon >> (mips64r2) `lai $2,($4)' >> >> >> >> It seems the error comes from the file odp_atomic.h which has code like >> this – >> >> >> >> __asm__ __volatile__ ("lai %0,(%2)" : "=r" (ret), "+m" >> (ptr) : >> >> "r" (ptr)); >> >> >> >> I checked the head of the git and similar code exists there too. >> >> >> >> Regards >> >> -Prashant >> >> >> >> >> >> "DISCLAIMER: This message is proprietary to Aricent and is intended >> solely for the use of the individual to whom it is addressed. It may >> contain privileged or confidential information and should not be circulated >> or used for any purpose other than for what it is intended. If you have >> received this message in error, please notify the originator immediately. >> If you are not the intended recipient, you are notified that you are >> strictly prohibited from using, copying, altering, or disclosing the >> contents of this message. Aricent accepts no responsibility for loss or >> damage arising from the use of the information transmitted by this email >> including damage from virus." >> >> >> "DISCLAIMER: This message is proprietary to Aricent and is intended >> solely for the use of the individual to whom it is addressed. It may >> contain privileged or confidential information and should not be circulated >> or used for any purpose other than for what it is intended. If you have >> received this message in error, please notify the originator immediately. >> If you are not the intended recipient, you are notified that you are >> strictly prohibited from using, copying, altering, or disclosing the >> contents of this message. Aricent accepts no responsibility for loss or >> damage arising from the use of the information transmitted by this email >> including damage from virus." >> >> _______________________________________________ >> lng-odp mailing list >> [email protected] >> http://lists.linaro.org/mailman/listinfo/lng-odp >> >> >
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
