This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

unable to generate .deb packages for 6LoWPAN boarder router

I am trying to perform the steps from infocenter.nordicsemi.com/.../iot_rpi_kernel.html in order to build a 6LoWPAN boarder router.
I followed the steps from Option 1: Cross-compilation on x86/x64. Unfortunately at point 6 (Generate .deb packages) the generation of the packets never comes to end. Attached is the output of the console. Can you eventually provide pre-built .dep packets for raspberry pi 3?

lei@lei02390:~/raspbian/linux$ CONCURRENCY_LEVEL=5 DEB_HOST_ARCH=armhf fakeroot make-kpkg --append-to-version rpi-ble --revision `date +%Y%m%d%H%M%S` --ARCH=arm --cross-compile ${CCPREFIX} kernel_image kernel_headers
exec make kpkg_version=13.018+nmu1 -f /usr/share/kernel-package/ruleset/minimal.mk debian DEBIAN_REVISION=20190424145742  APPEND_TO_VERSION=rpi-ble  KPKG_ARCH=arm   CROSS_COMPILE=/home/lei/raspbian/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- 
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 13.018+nmu1.
test -d debian             || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do                                      \
            cp -f  /usr/share/kernel-package/$file ./debian/;                               \
        done
cp: cannot stat '/usr/share/kernel-package/ChangeLog': No such file or directory
for dir  in Config docs examples ruleset scripts pkg po;  do                                      \
          cp -af /usr/share/kernel-package/$dir  ./debian/;                                 \
        done
test -f debian/control || sed         -e 's/=V/4.19.36rpi-ble/g'  \
                -e 's/=D/20190424145742/g'         -e 's/=A/armhf/g'  \
	-e 's/=SA//g'  \
	-e 's/=I//g'				    \
	-e 's/=CV/4.19/g'			    \
	-e 's/=M/Unknown Kernel Package Maintainer <[email protected]>/g'			    \
	-e 's/=ST/linux/g'      -e 's/=B/arm/g'    \
                -e 's/=R//g'    /usr/share/kernel-package/Control > debian/control
test -f debian/changelog ||  sed -e 's/=V/4.19.36rpi-ble/g'       \
            -e 's/=D/20190424145742/g'        -e 's/=A/armhf/g'       \
            -e 's/=ST/linux/g'     -e 's/=B/arm/g'         \
            -e 's/=M/Unknown Kernel Package Maintainer <[email protected]>/g'                            \
             /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: Entering directory '/home/lei/raspbian/linux'
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make EXTRAVERSION=rpi-ble  CROSS_COMPILE=/home/lei/raspbian/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- ARCH=arm \
                    oldconfig;
make[2]: Entering directory '/home/lei/raspbian/linux'
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
make[2]: Leaving directory '/home/lei/raspbian/linux'
make EXTRAVERSION=rpi-ble  CROSS_COMPILE=/home/lei/raspbian/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- ARCH=arm prepare
make[2]: Entering directory '/home/lei/raspbian/linux'
scripts/kconfig/conf  --syncconfig Kconfig
  UPD     include/config/kernel.release
  UPD     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
make[2]: Leaving directory '/home/lei/raspbian/linux'
echo done > debian/stamp/conf/kernel-conf
make[1]: Leaving directory '/home/lei/raspbian/linux'
make -f debian/rules debian/stamp/conf/full-changelog
make[1]: Entering directory '/home/lei/raspbian/linux'
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
====== making target debian/stamp/conf/full-changelog [new prereqs: ]======
for file in ChangeLog  Control  Control.bin86 config templates.in rules; do				\
     cp -f  /usr/share/kernel-package/$file ./debian/;			\
done
cp: cannot stat '/usr/share/kernel-package/ChangeLog': No such file or directory
for dir  in Config docs examples ruleset scripts pkg po;	do				\
   cp -af /usr/share/kernel-package/$dir  ./debian/;				\
done
install -p -m 755 /usr/share/kernel-package/rules debian/rules
sed         -e 's/=V/4.19.36rpi-ble-v7+/g'  \
                -e 's/=D/20190424145742/g'         -e 's/=A/armhf/g'  \
	-e 's/=SA//g'  \
	-e 's/=I//g'				    \
	-e 's/=CV/4.19/g'			    \
	-e 's/=M/Unknown Kernel Package Maintainer <[email protected]>/g'			    \
	-e 's/=ST/linux/g'      -e 's/=B/arm/g'    \
                -e 's/=R//g'  /usr/share/kernel-package/Control > debian/control
sed -e 's/=V/4.19.36rpi-ble-v7+/g' -e 's/=D/20190424145742/g'	      \
    -e 's/=A/armhf/g' -e 's/=M/Unknown Kernel Package Maintainer <[email protected]>/g' \
    -e 's/=ST/linux/g'	 -e 's/=B/arm/g'	      \
	/usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
make -f debian/rules debian/stamp/conf/kernel-conf
make[2]: Entering directory '/home/lei/raspbian/linux'
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
make[2]: 'debian/stamp/conf/kernel-conf' is up to date.
make[2]: Leaving directory '/home/lei/raspbian/linux'
make[1]: Leaving directory '/home/lei/raspbian/linux'
echo done > debian/stamp/conf/minimal_debian
exec debian/rules  DEBIAN_REVISION=20190424145742  APPEND_TO_VERSION=rpi-ble  KPKG_ARCH=arm  CROSS_COMPILE=/home/lei/raspbian/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-  kernel_image kernel_headers 
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
dpkg-architecture: warning: specified GNU system type arm-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable

Related