[07:39] hello, if I have a kernel compiled according to https://wiki.ubuntu.com/KernelTeam/GitKernelBuild is there a way to patch it and only rebuild that module and get another package? [07:39] how do I avoid rebuilding the entire kernel [07:57] anyone? [07:58] You might be able to get away with just calling fakeroot debian/rules binary [07:58] You might be able to get away with just calling fakeroot debian/rules binary-generic [07:59] yep, [07:59] what you need to do is patch [07:59] EruditeHermit: try make O=debian/build/build- [08:00] rm debian/stamps/stamps-build-generic [08:00] then you can do fakeroot debian/rules binary-generic [08:00] it will only rebuild the module and then do packaging [08:00] amitk: way of make will work but won't give you the package [08:01] s/amitk/amitk's/ [08:01] ok [08:01] let me try that [08:01] this has bugged me for months [08:04] no rule to make target 'binary-generic' [08:04] I reran the build command [08:04] maybe that screwed things up? [08:05] what exactly did you run? [08:05] CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers [08:06] EruditeHermit: eeeeks [08:06] make-kpkg is not supported [08:06] * amitk checks the wiki [08:06] so what do you guys recommend? [08:06] what tutorial should one use? [08:07] I was using this [08:07] https://wiki.ubuntu.com/KernelTeam/GitKernelBuild [08:07] wtf, wiki talks about make-kpkg [08:08] heh???!!! since when I don't remember it talking about make-kpkg [08:08] basically I need to git clone a kernel source, patch it, then build it into an installable package [08:08] EruditeHermit: I would just run fakeroor debian/rules binary-generic [08:08] but the cloned version doesn't have a debian dir [08:08] jjohansen: That won't work for upstream kernels, though. [08:09] ah, I was thinking patching our kernel and rebuilding [08:09] nah [08:09] so I am working with a kernel dev on a bug [08:09] so I need to use his specific kernel [08:09] this one is a user-contributed wiki page, I think. Needs to be scrubbed [08:10] and then he sents me patches [08:10] Try this instead: https://help.ubuntu.com/community/Kernel/Compile [08:10] hmm.. but Leanne has contributed to the page [08:11] amitk, which part of that page? [08:11] amitk, I am not using Ubuntu kernels [08:11] so I don't have debian dirs [08:12] most of those instructions assume a debian/ dir [08:13] errm, this is a channel for ubuntu kernels, really. [08:13] you didn't mention that at the beginning [08:13] right, but I am building kernels the Ubuntu way [08:13] err I want to build kernels that are created as deb packages [08:14] EruditeHermit: I have never done mainline into a package before but one idea would be to grab our kernel and copy over debian and debian.master [08:14] do you guys have a 2.6.34-rc2 or newer kernel? [08:14] apw: ^^^ mainline building as a .deb question [08:15] EruditeHermit: yes, we build all mainline rc releases these days [08:15] so I can just copy the debian dir from that? [08:15] https://wiki.ubuntu.com/KernelTeam/MainlineBuilds [08:15] as jjohansen said? [08:16] that might be easiest [08:16] EruditeHermit: I've never tried it, it might need a tweak but it should work [08:18] err rok [08:18] i'll try that if no one has any better suggestions [08:19] hello! Perhaps somebody could help me to either solve or find the cause of the following problem. I switched from Hardy to Karmic (and Lucid Beta 2 for a short time). Since my switch the kernel is constantly sending out oopses at random times (after boot up). It says that it cannot satisfy a paging request around a certain address that repeats itself. Also always in the traceback I'm getting functions related to file system oper [08:19] ations (like getting an inode). I figured iot could be a memory problem so I ran memtest for a long test and also a hard drive test (including badblocks, fsck and smart self test) but without any luck, there is no hardware error (at least that is the impression). Could somebody enlighten me what could be the possible cause of these errors or how could I debug it and find what is causing them? At this stage my machine (which is [08:19] a laptop) is unusable entirely. Thank you! [08:20] crazybyte: filesystem errors? We'd need a log to say more... [08:21] amitk, i would happily send it or put it up somewhere [08:22] but only tonight because i'm at work now. [08:22] amitk, could a hw be the cause of these kernel oopses? [08:23] amitk, also I tried using ext4 and ext3 with the same result [08:23] crazybyte: its possible, but it is likely you are hitting something else [08:23] we really need to see a traceback to get a better idea [08:24] jjohansen, i will get all of them and come back later [08:24] ok? [08:24] crazybyte: also I would try installing the latest 2.6.32-21 kernel it has several fixes in it [08:24] crazybyte: file a bug using 'ubuntu-bug -p linux' and it will get everything we need [08:24] amitk, ok [08:24] i will [08:24] thanks [08:24] :) [08:25] jjohansen, so how do I obtain the debian dir from an ubuntu kernel source package? [08:25] I downloaded the source package from the mainline kernel ppa [08:25] but it doesn't have the debian dir inside [08:27] they don't make this easy [08:27] lol [08:28] EruditeHermit: You could (a) clone the ubuntu kernel git tree, then (b) add Linus' tree as a remote, and git checkout the kernel commit of your choice, then (c) run “git checkout master -- debian debian.master” to do a partial checkout of ubuntu's tree - picking up just the debain directories. [08:29] err sounds a little intense [08:29] if ubuntu has a git repo [08:29] perhaps I can just clone that repo somewhere [08:29] and copy over the debian dir [08:30] where does ubuntu keep its repos? [08:30] kernel.ubuntu.com/git [08:31] so which one is the mainline one? [08:31] lets say I wanted to clone 2.6.34-rc2 of Ubuntus mainline tree [08:36] EruditeHermit: I don't believe the mainline ones are there [08:36] sorry I didn't realize the debian dir wasn't in the mainline source package [08:36] I would say clone the lucid tree [08:36] and just copy over debian and debian/master [08:37] I am sure apw will have a better way when he shows up [08:47] the lucid tree is 2.6.32 [08:48] EruditeHermit: today is a very bad time for most of us - we're busy with Lucid freeze [08:48] you'll have to figure out yourself or wait for next week [08:51] no probs [08:51] i'll try checking in daily [08:51] or every few days [08:51] EruditeHermit, yep thats how the builds are made, copy the one out of the tip of the lucid tree into the tree you want to build [08:52] apw, will the 2.6.32 debian dir work with 2.6.34? [08:52] apw, and do you have a git repo URL for me for the master? [08:54] that is literally how we make the mainline builds [08:54] so it works as well for .34 as the mainline builds [08:54] lol [08:54] ok let me try [08:54] the main tree from lucid is the place to get it [08:54] what is the git URL? [08:55] git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git [08:55] ah thanks [08:55] i'll let you know how it goes [08:55] and its literally the master branch of this tree right? [08:56] yep [08:57] so copy over debian dir, then fakeroot debian/rules binary-generic will build packages [08:57] then I can patch 1 driver [08:57] and do fakeroot debian/rules binary-generic again [08:57] and it will just compile that one changed driver [08:57] and create a new package [08:57] correct? [09:09] plan is correct, the build will rebuild everything, thats the nature of debian packaging [09:18] wait thats the whole point [09:18] to avoid rebuilding every module [09:19] also it keeps running me through the config script every time I try it [09:19] and doesn't build anything [09:22] apw, how do I avoid having to rebuild everything all the time [09:24] in the debian/stamps there is a build stamp i think you can remove that and it'll do what you want, but i normally build in full so i can't be more definative [09:25] yes, it does [09:25] will it rebuild just the module I want? [09:25] you may need to retouch the prepare stamp [09:25] i only recall removing one [09:25] EruditeHermit: as long as the patch doesn't touch other parts of the kernel [09:25] just touches a GPU driver [09:25] also unrelated [09:25] what does this mean? [09:26] check-config: FAIL: value CONFIG_DEFAULT_SECURITY_APPARMOR y [09:26] it means that your config does not have app-armour [09:26] which is a manditory configuration for ubuntu therefore enforced [09:27] you can build skip-modules=1 or modules-skip=1 something like that [09:27] do I need to install app-armour? [09:27] crap, config-skip or skip-config [09:27] EruditeHermit: no [09:27] grep for it in the debian directory [09:27] skip-config=true [09:27] you will also want skip-modules=1 and skip-abi=1 [09:27] yep [09:27] else we'll be having conversations on those as well [09:27] so what would the command I run be [09:29] skip-modules =1 skip-abi=1 fakeroot debian/rules binary-generic [09:29] and skip-config=1 [09:29] otherwise i think thats right [09:30] skip-modules=1 command not found [09:31] how do you guys manage such a build system [09:31] isn't it hard to work with? [09:32] EruditeHermit: not really, the kernel is kept in sync with it [09:32] having the extra checks can be a life safer [09:33] so that skip-modules=1 stuff isn't working [09:33] now deviating and doing your own custom builds with it does become harder [09:33] EruditeHermit: your requirements are a bit unusual, mainline kernel, ubuntu configs, no ubuntu patches, own patches, no complete rebuild, *sigh* [09:33] lol [09:34] all I want to do is have my mainline kernel or custom kernel sources built the ubuntu way with something like ccache [09:34] skipmodules=true skipabi=true fakeroot debian/rules binary-generic [09:34] and now add ccache [09:35] ccache essentially does what I wanted which is to not rebuild the entire kernel if I patch 1 driver [09:35] I am trying to debug a problem in one driver [09:35] I don't really care about most of the kernel, just the graphics stack that I am working with [09:36] so why not just compile it normally using make and use the resulting zImage and modules? [09:36] its easier to keep track of packages [09:36] package managers are nice because you don't leave stray files around [09:39] and it seems that Ubuntu/debian packaging isn't designed to do this easily [09:39] which I understand is not the goal of it [09:39] but it still makes things hard for me =p [09:40] btw thank you all for your help [09:40] I'm sorry if I am asking too many questions [09:40] but there really isn't documentation about how to do this === rsalveti_ is now known as rsalveti [12:50] bug 563679 [12:50] Malone bug 563679 in linux-mvl-dove "CONFIG_BLK_DEV_RAM_SIZE should be 65536 as in other kernels" [Undecided,New] https://launchpad.net/bugs/563679 === gnomefreak76 is now known as gnomefreak === MTeck is now known as MTecknology [18:06] bug 563893 [18:06] Malone bug 563893 in thunderbird "Thunderbird will not launch do to a recursive symlink" [High,Triaged] https://launchpad.net/bugs/563893 === yofel_ is now known as yofel