You are not logged in.

#1 2014-08-24 10:51:29

gyurman
Member
From: Budapest/Hungary
Registered: 2011-03-22
Posts: 68

How can I pause resume kernel building

Hello,
I have an idea.
I want to build android kernel, but I afraid I cannot finished, because sometimes I haven't enough time. I need to reboot, or switch off the pc.
So how can I pause, save state or resume the build process.
I though about it from virtualbox, but mine problems are. The VB do full virtual pc, I dont want to separate cpu, memory and something, and install new arch linux to guest.
I want only save and resume the build process.
How can I do?

I wait your answer.
Thanks Gyu..

Offline

#2 2014-08-24 12:23:23

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: How can I pause resume kernel building

If you are compiling kernel "by hand", cancel it with ctrl+c for example, and restart the compilation later, it won't recompile the parts you had already compiled (unless you change your .config or something).
so basically the kernel building should be resumed automatically.

this probably won't work if your building the kernel with makepkg though.

Offline

#3 2014-08-24 12:41:41

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: How can I pause resume kernel building

You could try using SIGCHLD and SIGCONT on the compiler or [ba]sh script, but I never tested that particular case.

man 7 signal

Edit: That would not work with rebooting, I skimmed too quickly here, my bad.

Last edited by emeres (2014-08-24 12:43:08)

Offline

#4 2014-08-24 18:05:18

Pse
Member
Registered: 2008-03-15
Posts: 415

Re: How can I pause resume kernel building

As said above, if you are compiling the kernel through a makefile (which you normally do), just do Ctrl+C. Issuing a new make command will start right back where it stopped.

Offline

#5 2014-08-25 02:03:02

ids1024
Member
From: California
Registered: 2013-08-16
Posts: 243
Website

Re: How can I pause resume kernel building

What about hibernating your computer?


"Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it."—Linus Torvalds
s/ftp/git/

https://iandouglasscott.com | https://github.org/ids1024 | https://keybase.io/ids1024

Offline

#6 2014-08-25 02:15:41

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: How can I pause resume kernel building

Hibernating should work too. (Not sure if the above post was a rhetoric question or not)

Offline

#7 2014-08-25 02:59:49

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How can I pause resume kernel building

How long does building a kernel take? Even on my slowest Atom, it only takes 35 minutes. Surely you can plan for this?

Last edited by 2ManyDogs (2014-08-25 03:00:33)

Offline

#8 2014-09-07 20:06:24

gyurman
Member
From: Budapest/Hungary
Registered: 2011-03-22
Posts: 68

Re: How can I pause resume kernel building

Hello, I wanted to build android with x64, but I seen the source I can build only for x86. :-(

Offline

Board footer

Powered by FluxBB