You are not logged in.

#1 2014-08-04 14:11:03

simendsjo
Member
Registered: 2012-09-27
Posts: 113

How to configure custom kernel build parameters and custom patch

I'm running a custom patch on the kernel (linux-ck), and I also compile for my native CPU.
Each time a kernel upgrade comes along, I edit the pkgbuild and add 'nconfig' to set up my CPU, and add the custom patch.
This works well, but it's a bit tedious.

What is a good way to handle this more automatically?

Offline

#2 2014-08-04 14:31:20

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,830
Website

Re: How to configure custom kernel build parameters and custom patch

By far the simplest would be to use Graysky's linux-ck repo with various builds optimized for a range of different processors.

Next to that, if you're willing (or wanting to) compile it yourself, just keep your own PKGBUILD rather than starting from scratch every time.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#3 2014-08-04 14:35:21

simendsjo
Member
Registered: 2012-09-27
Posts: 113

Re: How to configure custom kernel build parameters and custom patch

Trilby wrote:

By far the simplest would be to use Graysky's linux-ck repo with various builds optimized for a range of different processors.

What is that?

Trilby wrote:

Next to that, if you're willing (or wanting to) compile it yourself, just keep your own PKGBUILD rather than starting from scratch every time.

I'm already compiling every time (I need a custom patch). But "my" pkgbuild is only setting 'y' on two options, adding the custom patch and finally, manually, setting the correct CPU.
Having my own pkgbuild means I'll have to run a diff each time which probably is the same amount of work.

Offline

#4 2014-08-04 14:37:17

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,830
Website

Re: How to configure custom kernel build parameters and custom patch

simendsjo wrote:

What is that?

http://lmgtfy.com/?q=graysky+linux-ck+repo


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#5 2014-08-04 14:59:10

simendsjo
Member
Registered: 2012-09-27
Posts: 113

Re: How to configure custom kernel build parameters and custom patch

Trilby wrote:
simendsjo wrote:

What is that?

http://lmgtfy.com/?q=graysky+linux-ck+repo

Haha smile Thanks. I'll try it later. Right now it seems like a problem with the server: "transfer closed with xxx bytes remaining to read"

Offline

#6 2014-08-04 15:40:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: How to configure custom kernel build parameters and custom patch

Offline

#7 2014-08-04 15:48:30

simendsjo
Member
Registered: 2012-09-27
Posts: 113

Re: How to configure custom kernel build parameters and custom patch

EDIT: Never mind. Using pacman rather than yaourt worked.

Yes. I get the following error:

resolving dependencies...
looking for inter-conflicts...
:: linux-ck-sandybridge and linux-ck are in conflict. Remove linux-ck? [y/N] Y
:: virtualbox-ck-guest-modules-sandybridge and virtualbox-ck-guest-modules are in conflict. Remove virtualbox-ck-guest-modules? [y/N] y
:: virtualbox-ck-host-modules-sandybridge and virtualbox-ck-host-modules are in conflict. Remove virtualbox-ck-host-modules? [y/N] y

Packages (6): linux-ck-3.15.8-1 [removal]
                            virtualbox-ck-guest-modules-4.3.14-3 [removal]
                            virtualbox-ck-host-modules-4.3.14-3 [removal]
                            linux-ck-sandybridge-3.15.8-1
                            virtualbox-ck-guest-modules-sandybridge-4.3.14-3
                            virtualbox-ck-host-modules-sandybridge-4.3.14-3

              Total Download Size:    54.21 MiB
              Total Installed Size:   70.87 MiB
              Net Upgrade Size:       45.73 MiB

              :: Proceed with installation? [Y/n]
              :: Retrieving packages ...
              error: failed retrieving file 'linux-ck-sandybridge-3.15.8-1-x86_64.pkg.tar.xz' from repo-ck.com : transfer closed with 14770681 bytes remaining to read
              warning: failed to retrieve some files
               virtualbox-ck-guest-...   126.5 KiB   277K/s 00:00 [###########################] 100%
                virtualbox-ck-host-m...   166.6 KiB   527K/s 00:00 [###########################] 100%
                error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were upgraded.

Last edited by simendsjo (2014-08-04 17:43:15)

Offline

#8 2014-08-04 18:54:22

slithery
Member
Registered: 2013-12-01
Posts: 787

Re: How to configure custom kernel build parameters and custom patch

Just try it again a few times until it works, Graysky's having problems with his hosting provider at the moment.

Edit - Why are you installing both the host and guest virtualbox modules? There's no reason you should have both.

Last edited by slithery (2014-08-04 18:55:48)

Offline

#9 2014-08-04 23:45:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: How to configure custom kernel build parameters and custom patch

The wiki page has a troubleshooting section, maybe there's something worth trying out.

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

#10 2015-01-21 08:41:06

China-LOL
Member
Registered: 2015-01-21
Posts: 2

Re: How to configure custom kernel build parameters and custom patch

Learning


You can you up,no can no BB!

Offline

#11 2015-01-21 08:46:14

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,831
Website

Re: How to configure custom kernel build parameters and custom patch


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

Board footer

Powered by FluxBB