This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem installing a 6LoWPAN enabled Linux kernel for nRF51 IoT SDK

I followed the instructions in developer.nordicsemi.com/.../a00058.html and reached Obtaining the kernel: Option 2: Native build. I failed at step 3 and the error message goes like this:

pi@raspberrypi ~/raspbian/linux $ make –j5 && make –j5 modules

scripts/kconfig/conf --silentoldconfig Kconfig

make: *** No rule to make target '–j5'. Stop.

I also tries the next step (step 4) but failed too as below: pi@raspberrypi ~/raspbian/linux $ CONCURRENCY_LEVEL=5 DEB_HOST_ARCH=armhf fakeroot make-kpkg --append-to-version –name_of_your_choice --revision date +%Y%m%d%H%M%S --initrd kernel_image kernel_headers

Error: The extended version may only contain lowercase alphanumerics and the characters - + .

The current value is: –name_of_your_choice

Aborting.

Please help.

  • I saw you recommend to execute "make -j" (no "5"?) and "make modules -j5" (not "make -j5 modules"?) separately. "make -j" fails but "make modules -j5" works. It's installing now.

  • That was a typo, tried to ninja edit before you saw it, but alas. What I meant to say was to run make -j5 first, and then run make -j5 modules, without using && syntax.

  • None of them work. Error messages:

    pi@raspberrypi ~/raspbian/linux $ make –j5

    make: *** No rule to make target '–j5'. Stop.

    pi@raspberrypi ~/raspbian/linux $ make –j5 modules

    make: *** No rule to make target '–j5'. Stop.

    pi@raspberrypi ~/raspbian/linux $ make modules –j5

    CHK include/config/kernel.release

    CHK include/generated/uapi/linux/version.h

    CHK include/generated/utsrelease.h

    make[1]: 'include/generated/mach-types.h' is up to date.

    CALL scripts/checksyscalls.sh

    CHK include/generated/compile.h

    BC kernel/time/timeconst.h

    /bin/sh: 1: bc: not found

    kernel/time/Makefile:32: recipe for target 'kernel/time/timeconst.h' failed

    make[2]: *** [kernel/time/timeconst.h] Error 127

    scripts/Makefile.build:403: recipe for target 'kernel/time' failed

    make[1]: *** [kernel/time] Error 2

    Makefile:947: recipe for target 'kernel' failed

    make: *** [kernel] Error 2

    pi@raspberrypi ~/raspbian/linux $ apt-get update&&apt-get dist-upgrade

    E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)

    E: Unable to lock directory /var/lib/apt/lists/

    E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

  • Either way, it is going to be easier to just upgrade to the newest kernel as the 6LoWPAN is now included by default.

Related