kristian-aalborg | sudo apt-get build-dep linux-image-$(uname -r) ---- this command wants to fetch 800 megs? | 00:10 |
---|---|---|
jjohansen | yeah | 00:13 |
kristian-aalborg | it seems to want all kinds of things that should not be related? | 00:58 |
kristian-aalborg | also, using this: https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel --- where do I insert the .config that I made? | 00:59 |
jjohansen | it does pull in a lot, but that is the way the packaging is set up. your not the only one who wishes that it was better about what actually gets pulled in | 01:13 |
jjohansen | kristian-aalborg: put your config in the debian/build/build-XXXX/ directory | 01:14 |
jjohansen | be careful about how you do it though as the build may blow it away | 01:14 |
jjohansen | basically | 01:14 |
jjohansen | fdr clean sets you up | 01:14 |
jjohansen | fdr = alias for fakeroot debian/rules | 01:15 |
jjohansen | fdr prepare-XXX eg. fdr prepare-generic | 01:15 |
jjohansen | will setup the build and configs (fdr binary-XXX will do this if it doesn't find it done) | 01:15 |
jjohansen | and fdr binary-XXXX will build the kernel | 01:16 |
jjohansen | you can manipulate files within the build if you play with the debian/stamps/ files | 01:16 |
jjohansen | there is one for prepare, and another for build | 01:16 |
jjohansen | so do an fdr prepare-XXXX, then copy your config in | 01:17 |
jjohansen | then fdr binary-XXXX | 01:17 |
jjohansen | if you want to make a small change and not rebuild the whole kernel | 01:17 |
kristian-aalborg | jjohansen: sorry, was staring at another screen | 01:17 |
kristian-aalborg | reading your msgs now | 01:17 |
jjohansen | rm the debian/stamps/stamps-build file | 01:18 |
jjohansen | kristian-aalborg: np, I ignore irc to get work done all the time :) | 01:18 |
jjohansen | and then reissue the fdr binary-XXXX command to rebuild, it will then to a build that only recompiles what is necessary for your changes | 01:19 |
kristian-aalborg | jjohansen: did you see my premise - this is being built on one machine, then moved to another | 01:19 |
jjohansen | kristian-aalborg: yep, so the extra stuff may not be needed, but if you find you need to recompile for some reason its real nice knowing how to do an incremental build instead of waiting for the kernel to have to be fully rebuilt | 01:20 |
jjohansen | basically all these steps are to be done on the machine you are building on | 01:20 |
kristian-aalborg | yes | 01:20 |
jjohansen | then its just a simple copy the deb and dpkg -i | 01:21 |
kristian-aalborg | there's no debian/build? | 01:22 |
kristian-aalborg | I thought .config should reside in linux-2.6.32/ (for example)? | 01:25 |
kristian-aalborg | jjohansen: could you tell me the exact commands to use, in the order I should use them? | 01:29 |
jjohansen | kristian-aalborg: is there a debian directory? | 01:30 |
jjohansen | fakeroot debian/rules clean | 01:33 |
jjohansen | fakeroot debain/rules prepare-generic (could use -server, -virtual) | 01:33 |
jjohansen | cp .config debian/build/build-generic/ | 01:33 |
jjohansen | fakeroot debian/rules binary-generic | 01:33 |
jjohansen | kristian-aalborg: ^ | 01:33 |
kristian-aalborg | one second | 01:36 |
kristian-aalborg | machine is busy, installing something | 01:37 |
kristian-aalborg | yes, there is a debian dir | 01:37 |
jjohansen | kristian-aalborg: okay, the debian/build dir will be created during the prepare-generic command | 01:38 |
kristian-aalborg | ah, ok | 01:38 |
jjohansen | kristian-aalborg: oh also do you want your deb to have a different name? | 01:38 |
* kristian-aalborg shudders to think how this was during the first years of linux | 01:39 | |
kristian-aalborg | yes, I'd prefer that | 01:39 |
jjohansen | hehe | 01:39 |
kristian-aalborg | it asks me to make mrproper | 01:39 |
jjohansen | kristian-aalborg: your in a git tree right? | 01:39 |
kristian-aalborg | no | 01:40 |
jjohansen | hrmm, | 01:40 |
jjohansen | mrproper will blow away some of the things you need | 01:40 |
kristian-aalborg | using the apt-get method | 01:40 |
jjohansen | mv the debian directory out of the kernel tree dir | 01:40 |
jjohansen | do the make mrproper | 01:40 |
jjohansen | and then mv the debian directory back into the kernel dir | 01:41 |
kristian-aalborg | this is debian.master? | 01:41 |
kristian-aalborg | I have a backup of everything I downloaded... would it be easier to start there? | 01:42 |
jjohansen | kristian-aalborg: ooops yeah, you need the debian and debian.master directories | 01:43 |
jjohansen | you can either copy them in fresh or start clean | 01:43 |
kristian-aalborg | let's start clean, this dir is probably a mess now | 01:43 |
kristian-aalborg | apt-get source linux-image-$(uname -r) <--- this is what I have | 01:44 |
kristian-aalborg | and the .config that I made, of course | 01:44 |
kristian-aalborg | jjohansen: you there? | 02:00 |
jjohansen | sorry back now | 02:01 |
kristian-aalborg | no problem | 02:01 |
kristian-aalborg | I really should go to bed soon, though | 02:02 |
kristian-aalborg | I'd just love to wake up to a fresh kernel with APM support ;) | 02:02 |
jjohansen | kristian-aalborg: where you building within the linux-image installed in /usr or did you copy it out | 02:02 |
jjohansen | kristian-aalborg: if you were working withing the /usr package you may need to reinstall to get a clean source | 02:04 |
jjohansen | if you have both the debian and debian/master directories within your dir | 02:04 |
jjohansen | I would recommend just moving them out, and doing a make mrproper | 02:04 |
kristian-aalborg | it's not in /usr, it's in /home/kristian | 02:04 |
jjohansen | kristian-aalborg: ah, well thats good | 02:05 |
kristian-aalborg | yup | 02:05 |
kristian-aalborg | what to do now? | 02:05 |
jjohansen | you have a clean tree? | 02:05 |
kristian-aalborg | yes, I should have | 02:06 |
kristian-aalborg | the downloaded files and a .config, nothing more | 02:06 |
jjohansen | cd into kernel tree | 02:06 |
jjohansen | fakeroot debian/rules clean | 02:06 |
jjohansen | fakeroot debain/rules prepare-generic | 02:06 |
jjohansen | cp .config debian/build/build-generic/ | 02:06 |
jjohansen | fakeroot debian/rules binary-generic | 02:06 |
kristian-aalborg | when should I put the .config in? | 02:08 |
kristian-aalborg | also, does this give me a kernel with a custom name as to avoid confusion? | 02:08 |
jjohansen | step after prepare-generic | 02:08 |
jjohansen | no, it doesn't rename - to provide a partially custom name | 02:09 |
kristian-aalborg | ... just saw it, sorry | 02:09 |
jjohansen | you need to edit the changelog file | 02:09 |
jjohansen | so after prepare-generic and before binary-generic (cp can come before or after) | 02:09 |
jjohansen | edit your debian/changelog file | 02:10 |
jjohansen | its top line will look something like | 02:10 |
jjohansen | linux (2.6.35-23.36) maverick-proposed; urgency=low | 02:10 |
jjohansen | edit the line to be something like | 02:11 |
jjohansen | linux (2.6.35-23.36~custom) maverick-proposed; urgency=low | 02:11 |
jjohansen | this will show up in the debs name | 02:11 |
kristian-aalborg | gotcha | 02:16 |
kristian-aalborg | the last command actually starts the building of the files, right? | 02:17 |
kristian-aalborg | judging from the errors I get, it looks like it... | 02:20 |
jjohansen | yes | 02:21 |
kristian-aalborg | sorry, box died.... luckily not the one I'm builing | 02:30 |
kristian-aalborg | on | 02:30 |
kristian-aalborg | okay, thanks a lot for helping out... I'm looking forward to trying this baby out tomorrow | 02:31 |
jjohansen | np | 02:31 |
* jjohansen is out of here too | 02:31 | |
=== jjohansen is now known as jj-afk | ||
kristian-aalborg | morning | 06:47 |
kristian-aalborg | kernel building ends with "make: *** [abi-check-generic] Error 1" and no .debs to be found | 06:49 |
=== yofel_ is now known as yofel | ||
=== _LibertyZero is now known as LibertyZero | ||
Tomba23 | Hi, does anyone know, what is the maximal settable limit for number of file handlers the process can create? On 64bit? | 23:41 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!