Problems installing a real time kernel.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

I am trying to work with a Franka Emika Panda Robot Arm and to do so I need to run a real time kernel on my Linux PC.
This tutorial/walkthrough is my primary source of information-
https://frankaemika.github.io/docs/installation_linux.html#setting-up-the-real-time-kernel

I installed kernel 5.9.1 and added a rt patch which went fine but it did not seem to run when chosen from the grub menu the screen went blank and nothing seemed to happen.
I found that a rt patch existed for the current kernel 5.13. - uname -r returns 5.13.0-44-generic.
I remove the 5.9.1 files (possibly poorly as I failed to use --purge).
I then download and verify the new kernel and patch files.
Patch the kernel and set up .config file to choose Preemptable kernel (Real-Time).
Then I compile it, it produces linux-upstream files which I did not expect.
Making the kernel looked good and then fails with the following error-
Initially it gives the following warnings-

dpkg-source: warning: source directory 'linux-5.13' is not <sourcepackage>-<upstreamversion> 'linux-upstream-5.13.0-rt1'
dpkg-source: warning: .orig directory name linux-5.13.orig is not <package>-<upstreamversion> (wanted linux-upstream-5.13.0-rt1.orig)
dpkg-source: info: building linux-upstream using existing linux-upstream_5.13.0-rt1.orig.tar.gz
dpkg-source: info: building linux-upstream in linux-upstream_5.13.0-rt1-1.diff.gz
dpkg-source: warning: ignoring deletion of file .scmversion
dpkg-source: warning: the diff modifies the following upstream files:

and then fails-

make[2]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 2
make: *** [Makefile:1565: deb-pkg] Error 2

I re-did the command hoping it would just work, unsurprisingly it didn't and gave the following output-
mailto:lab@panda:~/linux-5.13$ make -j8 deb-pkg
make clean
  CLEAN   arch/x86/crypto
  CLEAN   arch/x86/entry/vdso
  CLEAN   arch/x86/purgatory
  CLEAN   arch/x86/realmode/rm
  CLEAN   arch/x86/kernel/cpu
  CLEAN   arch/x86/kernel
  CLEAN   certs
  CLEAN   kernel/debug/kdb
  CLEAN   kernel
  CLEAN   usr
  CLEAN   fs/unicode
  CLEAN   arch/x86/tools
  CLEAN    resolve_btfids
sh ./scripts/package/mkdebian
  TAR     linux-upstream.tar.gz
origversion=$(dpkg-parsechangelog -SVersion |sed 's/-[^-]*$//');\
        mv linux-upstream.tar.gz ../linux-upstream_${origversion}.orig.tar.gz
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch)  -i.git -us -uc
dpkg-buildpackage: info: source package linux-upstream
dpkg-buildpackage: info: source version 5.13.0-rt1-1
dpkg-buildpackage: info: source distribution focal
dpkg-buildpackage: info: source changed by lab <lab@panda>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source -i.git --before-build .
 debian/rules clean
rm -rf debian/*tmp debian/files
make clean
 dpkg-source -i.git -b .
dpkg-source: info: using source format '1.0'
dpkg-source: warning: source directory 'linux-5.13' is not <sourcepackage>-<upstreamversion> 'linux-upstream-5.13.0-rt1'
dpkg-source: warning: .orig directory name linux-5.13.orig is not <package>-<upstreamversion> (wanted linux-upstream-5.13.0-rt1.orig)
dpkg-source: info: building linux-upstream using existing linux-upstream_5.13.0-rt1.orig.tar.gz
dpkg-source: info: building linux-upstream in linux-upstream_5.13.0-rt1-1.diff.gz
dpkg-source: error: cannot represent change to vmlinux-gdb.py:
dpkg-source: error:   new version is symlink to /home/lab/linux-5.13/scripts/gdb/vmlinux-gdb.py
dpkg-source: error:   old version is nonexistent
dpkg-source: warning: ignoring deletion of file .scmversion
dpkg-source: warning: the diff modifies the following upstream files:
 .clang-format
 .cocciconfig
 .config.old
 .get_maintainer.ignore
 .mailmap
 CREDITS
 MAINTAINERS
 README
dpkg-source: info: use the '3.0 (quilt)' format to have separate and documented changes to upstream files, see dpkg-source(1)
dpkg-source: error: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -i.git -b . subprocess returned exit status 1
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 1
make: *** [Makefile:1565: deb-pkg] Error 2

I suspect I am having problems because I am making another kernel which is similar/identical to the current default.
Any help would be gratefully received.
Kind regards
Tony


[THE]




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux