Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: 18.04 kernel compile

  1. #1
    Join Date
    Feb 2008
    Beans
    119

    18.04 kernel compile

    I have Kubuntu 18.04 desktop running amd64 kernel 4.15.0-29-generic. I'm in /usr/src and I have have linux-headers-4.15.0-29-generic installed. I want to compile and install a custom config of my currently running kernel and I do:

    # apt-get source linux-image-`uname -r`
    Reading package lists... Done
    Picking 'linux-signed' as source package instead of 'linux-image-4.15.0-29-generic'
    Need to get 17.9 kB of source archives.
    Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main linux-signed 4.15.0-29.31 (dsc) [2,050 B]
    Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main linux-signed 4.15.0-29.31 (tar) [15.9 kB]
    Fetched 17.9 kB in 0s (56.6 kB/s)
    dpkg-source: info: extracting linux-signed in linux-signed-4.15.0
    dpkg-source: info: unpacking linux-signed_4.15.0-29.31.tar.xz
    W: Download is performed unsandboxed as root as file 'linux-signed_4.15.0-29.31.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

    I now have

    # ls
    linux-headers-4.15.0-29-generic linux-signed_4.15.0-29.31.dsc linux-signed-4.15.0 linux-signed_4.15.0-29.31.tar.xz

    and ./linux-signed-4.15.0# ls

    debian download-signed download-unsigned generate-depends update-version

    I can't find the source to compile or, in googling, instructions on how to edit my config and recompile and install a custom variant of my current kernel. Can someone ....

    -tell me how to do this and/or point me to a link on how to do this on 18.04
    -tell me what I'm doing wrong
    -tell me a better way to do what I want

    BTW I'm not familiar with "linux-signed" software, but if the messages above are just because my security keys are set up incorrectly and the warnings can be ignored,
    that's OK ....

    Thx, Gus

  2. #2
    Join Date
    Sep 2015
    Beans
    10

    Re: 18.04 kernel compile

    I'm seeing the same thing on stock Ubuntu 18.04.

  3. #3
    Join Date
    Apr 2015
    Beans
    9

    Re: 18.04 kernel compile

    Quote Originally Posted by timur-tabi View Post
    I'm seeing the same thing on stock Ubuntu 18.04.

    Me too

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: 18.04 kernel compile

    You only need the signed kernel & grub if using UEFI Secure Boot.

    With Ubuntu you used to not be able to install any proprietary drivers like video or Wi-Fi. Ubuntu cannot review software and then cannot certify for distribution.
    But now they simplified the self-signing process so you may be able to use those drivers. But then you are saying the are secure.

    I have not complied software since Z80 in a CP/M system about 1981.

    Phoronix regularly uses newer kernels & drivers. I believe he uses ppa where a user compiles the kernel & creates a ppa to make it easier to install.
    New kernels ppa
    xorg-edgers PPA
    Oibaf PPA discusion http://www.phoronix.com/scan.php?pag...10_oibaf&num=1
    Ubuntu Kernel Mainline PPA example
    http://www.phoronix.com/scan.php?pag...144_hd56&num=1
    Linux 3.15 Git kernel from the Ubuntu Mainline Kernel PPA while the Oibaf PPA was also loaded for the Mesa 10.3-devel Git master snapshot and xf86-video-ati 7.3.99 Git.

    Ubuntu now has ppa for graphic drivers.
    Ubuntu Launches Its "Fresh" Proprietary Driver PPA - August 2015
    http://www.phoronix.com/scan.php?pag...esh-Driver-PPA
    Instructions are newest driver for newest cards, must load legacy driver if old nVidia card.
    http://www.omgubuntu.co.uk/2015/08/u...ady-for-action
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Apr 2015
    Beans
    9

    Re: 18.04 kernel compile

    I tried a few more kernel versions from

    apt-cache search linux-image

    results.

    However same problem. Going to have to use 16.04 LTS until this is resolved. Annoying as 18.04 is supposedly LTS.

    ps: I am using 18.04.1

    double ps:

    I also tried downloading other versions of kernel using ukuu (4.14.67 and 4.15.1) or building a kernel from a tarball from kernel.org (4.18.1) however these fail to boot (desktop refuses to load).
    Last edited by rob18767; September 4th, 2018 at 08:07 PM.

  6. #6
    Join Date
    Apr 2015
    Beans
    9

    Re: 18.04 kernel compile


  7. #7
    Join Date
    Apr 2015
    Beans
    9

    Re: 18.04 kernel compile

    Solution including how to compile is given in the installation guide.

    https://help.ubuntu.com/lts/installa...ide/index.html

    (Section 8.6)


    Method differs from LTS 16.04, which threw me.
    Last edited by rob18767; October 4th, 2018 at 05:47 PM.

  8. #8
    Join Date
    Aug 2013
    Beans
    4,709

    Re: 18.04 kernel compile

    I don't know, I get the kernel source from here https://www.kernel.org/
    currently running kernel 4.18.10, on Ubuntu 16.04.5.



    I think the Debian way just make things unnecessary complicated and the version is fixed. I have same experience with other packages like openblas, it is easier to get the source from upstream and apply whatever patches needed yourself.
    Last edited by monkeybrain20122; October 3rd, 2018 at 04:35 PM.

  9. #9
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,027
    Distro
    Ubuntu Development Release

    Re: 18.04 kernel compile

    @rob18767 : your link is broken. The correct link is this

    @monkeybrain20122 : I totally agree. I have never had success with the debian way, and also only use the source from kernel.org, but with the Ubuntu kernel configuration file. My method for kernel compile is detailed here.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  10. #10
    Join Date
    Dec 2018
    Beans
    1

    Re: 18.04 kernel compile

    Quote Originally Posted by rob18767 View Post
    I tried a few more kernel versions from

    apt-cache search linux-image

    results.

    However same problem. Going to have to use 16.04 LTS until this is resolved. Annoying as 18.04 is supposedly LTS.

    ps: I am using 18.04.1

    double ps:

    I also tried downloading other versions of kernel using ukuu (4.14.67 and 4.15.1) or building a kernel from a tarball from kernel.org (4.18.1) however these fail to boot (desktop refuses to load).

    Does this work for you? Just do "apt-get source linux"

    $ apt-get source linux
    Reading package lists... Done
    NOTICE: 'linux' packaging is maintained in the 'Git' version control system at:
    git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/bionic
    Please use:
    git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/bionic
    to retrieve the latest (possibly unreleased) updates to the package.
    Need to get 166 MB of source archives.
    Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main linux 4.15.0-42.45 (dsc) [7,494 B]
    Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main linux 4.15.0-42.45 (tar) [158 MB]
    Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main linux 4.15.0-42.45 (diff) [8,424 kB]
    Fetched 166 MB in 4s (45.7 MB/s)
    dpkg-source: info: extracting linux in linux-4.15.0
    dpkg-source: info: unpacking linux_4.15.0.orig.tar.gz
    dpkg-source: info: applying linux_4.15.0-42.45.diff.gz
    dpkg-source: info: upstream files that have been modified:

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •