I am ultimately trying to replace
ehci_hcd since I think it may be causing a start up problem. In order to do so, I need to be able to recompile the kernel apparently. So I tried looking at the wiki to figure out what to do.
sudo apt-get build-dep linux-image-$(uname -r), I tried executing the "Modifying the configuration" instructions
editconfigs command, here was the output:
➜ linux-signed-4.15.0 sudo fakeroot debian/rules editconfigs dh editconfigs dh: Unknown sequence editconfigs (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep) debian/rules:35: recipe for target 'editconfigs' failed make: *** [editconfigs] Error 2
All the other commands seemed to work. Finally, I tried the advice here which suggested doing
apt-get source linux-source
which, as the OP says, gives an "undersirable"
linux-meta folder. And sure enough it failed on
➜ linux-meta-18.104.22.168.38 sudo fakeroot debian/rules editconfigs make: *** No rule to make target 'editconfigs'. Stop.
The OP suggests instead that this command put him "on the right track":
sudo apt install linux-source
giving a source file
/usr/src/. However this fails on the
editconfig commands both:
➜ linux-source-4.15.0 sudo fakeroot debian/rules clean sed: can't read Makefile: No such file or directory sed: can't read Makefile: No such file or directory sed: can't read Makefile: No such file or directory for i in debian.master/control.stub.in; do \ new=`echo $i | sed 's/\.in$//'`; \ cat $i | sed -e 's/PKGVER/4.15.0/g' \ -e 's/ABINUM/36/g' \ -e 's/SRCPKGNAME/linux/g' \ -e 's/=HUMAN=/64 bit x86/g' \ > $new; \ done flavours="debian.master/control.d/vars.generic debian.master/control.d/vars.generic-lpae debian.master/control.d/vars.lowlatency debian.master/control.d/vars.snapdragon";\ for i in $flavours; do \ /bin/bash -e debian/scripts/control-create $i "true" | \ sed -e 's/PKGVER/4.15.0/g' \ -e 's/ABINUM/36/g' \ -e 's/SRCPKGNAME/linux/g' \ -e 's/=HUMAN=/64 bit x86/g' \ >> debian.master/control.stub; \ done echo "# placebo control.stub for kernel-wedge flow change" >debian/control.stub cp debian.master/control.stub debian/control export KW_DEFCONFIG_DIR=debian.master/d-i && \ export KW_CONFIG_DIR=debian.master/d-i && \ LANG=C kernel-wedge gen-control 4.15.0-36 | \ perl -f debian/scripts/misc/kernel-wedge-arch.pl amd64 \ >>/usr/src/linux-source-4.15.0/debian/control dh_testdir dh_testroot dh_clean # d-i stuff rm -rf debian.master/d-i-amd64 # Generated on the fly. rm -f debian.master/d-i/firmware/amd64/kernel-image # normal build junk rm -rf debian.master/abi/4.15.0-36.39 rm -rf /usr/src/linux-source-4.15.0/debian/build rm -f /usr/src/linux-source-4.15.0/debian/stamps/stamp-* rm -rf debian.master/linux-* # This gets rid of the d-i packages in control cp -f debian.master/control.stub debian/control cp debian.master/changelog debian/changelog # Install the copyright information. cp debian.master/copyright debian/copyright # Install the retpoline extractor. cp debian/scripts/retpoline-extract-one scripts/ubuntu-retpoline-extract-one cp: cannot create regular file 'scripts/ubuntu-retpoline-extract-one': No such file or directory debian/rules:110: recipe for target 'clean' failed make: *** [clean] Error 1
➜ linux-source-4.15.0 sudo fakeroot debian/rules editconfigs sed: can't read Makefile: No such file or directory sed: can't read Makefile: No such file or directory sed: can't read Makefile: No such file or directory dh_testdir; /bin/bash -e debian/scripts/misc/kernelconfig editconfigs This does not appear to be the kernel source directory. debian/rules.d/1-maintainer.mk:43: recipe for target 'editconfigs' failed make: *** [editconfigs] Error 1
Here is my Ubuntu version:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic
Any further ideas?