This bug is missing log files that will aid in diagnosing the problem.
While running an Ubuntu kernel (not a mainline or third-party kernel)
please enter the following command in a terminal window:
apport-collect 1879161
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable
to run this command, please add a comment stating that fact and change
the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the
Ubuntu Kernel Team.
** Changed in: linux (Ubuntu)
Status: New => Incomplete
** Tags added: bionic
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1879161
Title:
Building linux-image-unsigned with existing .config fails
Status in linux package in Ubuntu:
Incomplete
Bug description:
Objective: For a working 4.15.0-99-generic (x86_64) on Ubuntu 18.04.4
LTS (Bionic Beaver), re-build the Linux kernel sources with
CONFIG_NO_HZ_FULL=y.
Steps followed:
Uncomment deb-src in /etc/apt/sources.list, so that we can obtain the
Linux kernel sources, and run "apt-get update".
$ sudo apt-get build-dep linux-image-4.15.0-99-generic
$ sudo apt-get install libncurses5-dev flex bison openssl libssl-dev dkms
libelf-dev \
libudev-dev libpci-dev libiberty-dev autoconf
$ mkdir code/kernel; cd code/kernel
$ apt source linux-image-unsigned-4.15.0-99-generic
$ cd linux-4.15.0
$ chmod a+x debian/rules
$ chmod a+x debian/scripts/*
$ chmod a+x debian/scripts/misc*
$ fakeroot debian/rules clean
$ cp /boot/config-4.15.0-99-generic .config
$ fakeroot debian/rules startnewrelease
dh_testdir
Creating new changelog set 4.15.0-100.101...
$ fakeroot debian/rules editconfigs
Edit amd64/config.flavour.generic, set CONFIG_NO_HZ_FULL and save
config to .config.
$ fakeroot debian/rules binary
The outputs are in the attached files: binary-build-output.txt and
binary-build-error.txt.
In order to handle ABI, I touched an ignore file in
debian.master/abi/4.15.0-97.98/amd64/ignore and the relevant output
files are binary-build-output-no-abi.txt and binary-build-error-no-
abi.txt.
The linux-image...deb file did not get created. The following files were
created:
linux-cloud-tools-common_4.15.0-99.100_all.deb
linux-doc_4.15.0-99.100_all.deb
linux-headers-4.15.0-99_4.15.0-99.100_all.deb
linux-source-4.15.0_4.15.0-99.100_all.deb
linux-tools-common_4.15.0-99.100_all.deb
linux-tools-host_4.15.0-99.100_all.deb
I used the following documents for reference:
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
https://ahelpme.com/linux/ubuntu/rebuild-the-official-ubuntu-kernel-
ubuntu-16-04-lts/
https://help.ubuntu.com/community/Kernel/Compile
Most of the documentation seem outdated or do not work as expected.
Questions:
1. Can you please provide a tutorial on how to re-build a Ubuntu
specific kernel with a working .config successfully?
2. Should we use apt source "linux" instead of using a specific kernel
version?
3. From 'dpkg -l | grep linux-image', I see:
ii linux-image-4.15.0-99-generic 4.15.0-99.100 amd64 Signed
kernel image generic
What is the meaning of the naming (4.15.0-99-generic and
4.15.0-99.100) convention used here?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1879161/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp