Coder Social home page Coder Social logo

Comments (12)

frank-w avatar frank-w commented on June 11, 2024

cryptodev is only available in branch 4.14-main...in other branches just ignore it. in 4.14-main the clear throws also an error if there are no files to remove :)

Which branch do you want to build?

If you do not need cryptodev,just ignore this. It's an additional script and not needed to build the kernel itself so mainscript goes over it

from bpi-router-linux.

whalley avatar whalley commented on June 11, 2024

Thanks for quick response, appreciated. My board should arrive in next week or so, I'm just getting prepared :-)

I am actually building 4.14-main (based on this looking like to most compatible build feature-wise) - looks like it the clean throwing the error as you noted.

from bpi-router-linux.

frank-w avatar frank-w commented on June 11, 2024

If building 4.14-main,the error should be different.

make[1]: *** M=/home/mark/banana-pi/BPI-R2-4.14/cryptodev/cryptodev-linux: No such file or directory. Stop.

The directory itself should exist

https://github.com/frank-w/BPI-R2-4.14/tree/4.14-main/cryptodev/cryptodev-linux

The error should say that files cannot be removed because they does not exist if not previous compiled. But as i said if you do not need cryptodev you can ignore that

from bpi-router-linux.

whalley avatar whalley commented on June 11, 2024

Don't think I need the crypto... but it was niggling me....

In the cryptodev/build.sh

should:

make clean
make KERNEL_DIR=$kerneldir CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm

not be:

make KERNEL_DIR=$kerneldir clean
make KERNEL_DIR=$kerneldir CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm

This allows me the build it cleanly in the cryptodev directory.

But building the full kernel now gives:

Build CryptoDev
make -C /home/mark/banana-pi/BPI-R2-4.14 M=/home/mark/banana-pi/BPI-R2-4.14/cryptodev/cryptodev-linux ARCH=arm CROSS_COMPILE=ccache arm-linux-gnueabihf- clean
make[1]: Entering directory '/home/mark/banana-pi/BPI-R2-4.14'
./scripts/gcc-version.sh: line 26: ccachegcc: command not found
./scripts/gcc-version.sh: line 27: ccachegcc: command not found
make[1]: ccachegcc: Command not found
make[1]: ccachegcc: Command not found
make[1]: *** No rule to make target 'arm-linux-gnueabihf-'.  Stop.
make[1]: Leaving directory '/home/mark/banana-pi/BPI-R2-4.14'
Makefile:39: recipe for target 'clean' failed
make: *** [clean] Error 2
make -C /home/mark/banana-pi/BPI-R2-4.14 M=/home/mark/banana-pi/BPI-R2-4.14/cryptodev/cryptodev-linux ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules
make[1]: Entering directory '/home/mark/banana-pi/BPI-R2-4.14'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory

I'm not sure why the
ARCH=arm CROSS_COMPILE=ccache arm-linux-gnueabihf-

is being added to the clean in this case!

from bpi-router-linux.

frank-w avatar frank-w commented on June 11, 2024

my script does not add it

https://github.com/frank-w/BPI-R2-4.14/blob/902d112b8a7cf645e40d2aeeadedc2403dd84aee/cryptodev/build.sh#L7

it seems it is added by Makefile

https://github.com/frank-w/BPI-R2-4.14/blob/902d112b8a7cf645e40d2aeeadedc2403dd84aee/cryptodev/cryptodev-linux/Makefile#L39

but removing this $(KERNEL_MAKE_OPTS) results in an infinite loop

from bpi-router-linux.

whalley avatar whalley commented on June 11, 2024

Yes, the Makefile should be:

$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) clean

That, and the change to the build.sh to add the KERNEL_DIR works. Thanks for the pointer.

from bpi-router-linux.

frank-w avatar frank-w commented on June 11, 2024

$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) clean
does also not work...clean seems to treat M=... as dir not as var and tries to access it...

but this Makefile is not modified by me...

https://github.com/cryptodev-linux/cryptodev-linux/blob/f60aa08c63fc02780554a0a12180a478ca27d49f/Makefile#L39

from bpi-router-linux.

whalley avatar whalley commented on June 11, 2024

Have you also make the change to cryptodev/build.sh I mentioned above ?

In the cryptodev/build.sh

make clean
make KERNEL_DIR=$kerneldir CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm

should be:

make KERNEL_DIR=$kerneldir clean
make KERNEL_DIR=$kerneldir CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm

from bpi-router-linux.

frank-w avatar frank-w commented on June 11, 2024

right, i only hae to change cryptodev/build.sh and it works if i call it alone....in main build.sh i got the mentioned error where ccache and crosscompiler and concatenated

from bpi-router-linux.

whalley avatar whalley commented on June 11, 2024

Yes you need to change the cryptodev-linux Makefile to:

$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) clean

to fix the errors

from bpi-router-linux.

frank-w avatar frank-w commented on June 11, 2024

see the last commit...works here...sorry had not pushed it...now you can see it

from bpi-router-linux.

whalley avatar whalley commented on June 11, 2024

Yep, all good. Thanks.

from bpi-router-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.