How to build 4.2.0-27-generic

Asked by rsdelara

Hi,

I need to upgrade (2) of our Dell R720XD servers to 4.2.0-27-generic.

From this link, http://packages.ubuntu.com/trusty-updates/linux-image-4.2.0-27-generic
I downloaded linux-image-4.2.0-27-generic package and installed it.

After reboot, both of our hosts are getting stuck into initramfs after reporting that it's
missing some modules at /dev.

As an alternative route, I downloaded the [linux-lts-wily_4.2.0.orig.tar.gz] tar ball from the same page
and performed a build via 'make -j `getconf _NPROCESSORS_ONLN` deb-pkg'.

I then installed the newly built these packages namely via
dpkg -i linux-headers-4.2.0_4.2.0-8_amd64.deb linux-image-4.2.0_4.2.0-8_amd64.deb

After reboot, uname -r then returns '4.2.0'.

Pls advise on how I can properly build 4.2.0-27-generic.

I tried building 4.2.0-27-generic by modifying the .config file and specifying
CONFIG_LOCALVERSION="-27-generic".

Somehow the packages built thru this route causes the DRBD9 and RDMA transport to not load correctly.

Thanks,
Sonny DeLara
Samsung Semiconductor
<email address hidden>

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu linux-lts-wily Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you need specifically 4.2.0-27-generic or will later do as well?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What is the output of:

lsb_release -a; uname -a

Thanks

Revision history for this message
rsdelara (rsdelara) said :
#3

Yes, as the drbd and rdma modules I received from Linbit is compiled with this kernel.

Here are the outputs of uname and lsb_release:
-----------------------------------------------------------------------
# uname -r
3.19.8-031908-generic

# lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
-----------------------------------------------------------------------

Btw, I found an alternative procedure to upgrade to a specific kernel version :
ie:
# apt-get install drbd-module-4.2.0-27-generic drbd-utils drbd-transport-rdma-module-4.2.0-27-generic

I also removed an existing LV and VG which was created during drbdpool config (which I though was causing the hang at initramfs).

The host now reboots to 4.2.0-27-generic successfully w/o any hiccup.

However, I still want to know how to properly re-build from a tar ball and get to a specific version as I've described in my original post.

Thanks,
Sonny

Revision history for this message
rsdelara (rsdelara) said :
#4

Correction:
# apt-get install drbd-module-4.2.0-27-generic drbd-utils drbd-transport-rdma-module-4.2.0-27-generic
should be
# apt install linux-headers-4.2.0-27-generic linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Why not using https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Server to get the 4.4 kernel from the standard repositories?

Instructions how to build a kernel from source are found in several documents, e.g.
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
https://help.ubuntu.com/community/Kernel/Compile

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

By the way, the current version of the 4.2 kernel would be 4.2.0-42
4.2.0-27 is from February 2016 and has been superseded by newer versions.

If you do not want the 4.4 but the 4.2 kernel, you could have used the https://launchpad.net/ubuntu/+source/linux-meta-lts-wily packages with the command

sudo apt-get install --install-recommends linux-generic-lts-wily

Revision history for this message
rsdelara (rsdelara) said :
#7

Thanks for these tips Manfred.

I'll give the procedures you sent a try tomorrow.

-Sonny DeLara

On Fri, Sep 30, 2016 at 2:33 AM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #402574 on linux-lts-wily in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/linux-lts-wily/
> +question/402574
>
> Manfred Hampl proposed the following answer:
> By the way, the current version of the 4.2 kernel would be 4.2.0-42
> 4.2.0-27 is from February 2016 and has been superseded by newer versions.
>
> If you do not want the 4.4 but the 4.2 kernel, you could have used the
> https://launchpad.net/ubuntu/+source/linux-meta-lts-wily packages with
> the command
>
> sudo apt-get install --install-recommends linux-generic-lts-wily
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/linux-lts-wily/
> +question/402574/+confirm?answer_id=5
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/linux-lts-wily/
> +question/402574
>
> You received this question notification because you asked the question.
>

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.