/srv/irclogs.ubuntu.com/2011/03/12/#ubuntu-kernel.txt

kristian-aalborgsudo apt-get build-dep linux-image-$(uname -r) ---- this command wants to fetch 800 megs?00:10
jjohansenyeah00:13
kristian-aalborgit seems to want all kinds of things that should not be related?00:58
kristian-aalborgalso, using this: https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel --- where do I insert the .config that I made?00:59
jjohansenit 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 in01:13
jjohansenkristian-aalborg: put your config in the debian/build/build-XXXX/ directory01:14
jjohansenbe careful about how you do it though as the build may blow it away01:14
jjohansenbasically01:14
jjohansenfdr clean sets you up01:14
jjohansenfdr = alias for fakeroot debian/rules01:15
jjohansenfdr prepare-XXX  eg. fdr prepare-generic01:15
jjohansenwill setup the build and configs  (fdr binary-XXX will do this if it doesn't find it done)01:15
jjohansenand fdr binary-XXXX will build the kernel01:16
jjohansenyou can manipulate files within the build if you play with the debian/stamps/ files01:16
jjohansenthere is one for prepare, and another for build01:16
jjohansenso do an fdr prepare-XXXX, then copy your config in01:17
jjohansenthen fdr binary-XXXX01:17
jjohansenif you want to make a small change and not rebuild the whole kernel01:17
kristian-aalborgjjohansen: sorry, was staring at another screen01:17
kristian-aalborgreading your msgs now01:17
jjohansenrm the debian/stamps/stamps-build file01:18
jjohansenkristian-aalborg: np, I ignore irc to get work done all the time :)01:18
jjohansenand then reissue the fdr binary-XXXX command to rebuild, it will then to a build that only recompiles what is necessary for your changes01:19
kristian-aalborgjjohansen: did you see my premise - this is being built on one machine, then moved to another01:19
jjohansenkristian-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 rebuilt01:20
jjohansenbasically all these steps are to be done on the machine you are building on01:20
kristian-aalborgyes01:20
jjohansenthen its just a simple copy the deb and dpkg -i01:21
kristian-aalborgthere's no debian/build?01:22
kristian-aalborgI thought .config should reside in linux-2.6.32/ (for example)?01:25
kristian-aalborgjjohansen: could you tell me the exact commands to use, in the order I should use them?01:29
jjohansenkristian-aalborg: is there a debian directory?01:30
jjohansenfakeroot debian/rules clean01:33
jjohansenfakeroot debain/rules prepare-generic   (could use -server, -virtual)01:33
jjohansencp .config debian/build/build-generic/01:33
jjohansenfakeroot debian/rules binary-generic01:33
jjohansenkristian-aalborg: ^01:33
kristian-aalborgone second01:36
kristian-aalborgmachine is busy, installing something01:37
kristian-aalborgyes, there is a debian dir01:37
jjohansenkristian-aalborg: okay, the debian/build dir will be created during the prepare-generic command01:38
kristian-aalborgah, ok01:38
jjohansenkristian-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 linux01:39
kristian-aalborgyes, I'd prefer that01:39
jjohansenhehe01:39
kristian-aalborgit asks me to make mrproper01:39
jjohansenkristian-aalborg: your in a git tree right?01:39
kristian-aalborgno01:40
jjohansenhrmm,01:40
jjohansenmrproper will blow away some of the things you need01:40
kristian-aalborgusing the apt-get method01:40
jjohansenmv the debian directory out of the kernel tree dir01:40
jjohansendo the make mrproper01:40
jjohansenand then mv the debian directory back into the kernel dir01:41
kristian-aalborgthis is debian.master?01:41
kristian-aalborgI have a backup of everything I downloaded... would it be easier to start there?01:42
jjohansenkristian-aalborg: ooops yeah, you need the debian and debian.master directories01:43
jjohansenyou can either copy them in fresh or start clean01:43
kristian-aalborglet's start clean, this dir is probably a mess now01:43
kristian-aalborgapt-get source linux-image-$(uname -r) <--- this is what I have01:44
kristian-aalborgand the .config that I made, of course01:44
kristian-aalborgjjohansen: you there?02:00
jjohansensorry back now02:01
kristian-aalborgno problem02:01
kristian-aalborgI really should go to bed soon, though02:02
kristian-aalborgI'd just love to wake up to a fresh kernel with APM support ;)02:02
jjohansenkristian-aalborg: where you building within the linux-image installed in /usr or did you copy it out02:02
jjohansenkristian-aalborg: if you were working withing the /usr package you may need to reinstall to get a clean source02:04
jjohansenif you have both the debian and debian/master directories within your dir02:04
jjohansenI would recommend just moving them out, and doing a make mrproper02:04
kristian-aalborgit's not in /usr, it's in /home/kristian02:04
jjohansenkristian-aalborg: ah, well thats good02:05
kristian-aalborgyup02:05
kristian-aalborgwhat to do now?02:05
jjohansenyou have a clean tree?02:05
kristian-aalborgyes, I should have02:06
kristian-aalborgthe downloaded files and a .config, nothing more02:06
jjohansencd into kernel tree02:06
jjohansenfakeroot debian/rules clean02:06
jjohansenfakeroot debain/rules prepare-generic02:06
jjohansencp .config debian/build/build-generic/02:06
jjohansenfakeroot debian/rules binary-generic02:06
kristian-aalborgwhen should I put the .config in?02:08
kristian-aalborgalso, does this give me a kernel with a custom name as to avoid confusion?02:08
jjohansenstep after prepare-generic02:08
jjohansenno, it doesn't rename - to provide a partially custom name02:09
kristian-aalborg... just saw it, sorry02:09
jjohansenyou need to edit the changelog file02:09
jjohansenso after prepare-generic and before binary-generic (cp can come before or after)02:09
jjohansenedit your debian/changelog file02:10
jjohansenits top line will look something like02:10
jjohansenlinux (2.6.35-23.36) maverick-proposed; urgency=low02:10
jjohansenedit the line to be something like02:11
jjohansenlinux (2.6.35-23.36~custom) maverick-proposed; urgency=low02:11
jjohansenthis will show up in the debs name02:11
kristian-aalborggotcha02:16
kristian-aalborgthe last command actually starts the building of the files, right?02:17
kristian-aalborgjudging from the errors I get, it looks like it...02:20
jjohansenyes02:21
kristian-aalborgsorry, box died.... luckily not the one I'm builing02:30
kristian-aalborgon02:30
kristian-aalborgokay, thanks a lot for helping out... I'm looking forward to trying this baby out tomorrow02:31
jjohansennp02:31
* jjohansen is out of here too02:31
=== jjohansen is now known as jj-afk
kristian-aalborgmorning06:47
kristian-aalborgkernel building ends with "make: *** [abi-check-generic] Error 1" and no .debs to be found06:49
=== yofel_ is now known as yofel
=== _LibertyZero is now known as LibertyZero
Tomba23Hi, 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!