=== chris14_ is now known as chris14 [18:44] Hello! I'm trying to figure out how to build mainline kernel. I've read most of the ubuntu wiki's, but they all refer to stuff that doesn't exist. In particular, there is no debian folder when I git clone the address at the top of https://kernel.ubuntu.com/mainline/v6.6.6/ nor are there any COMMIT or *.patch files listed at the bottom of that page (both things referred to in various wikis) [18:46] The way its worded, it says to "fetch" it; is that the same as git clone? Cuz I did "git clone git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack cod/mainline/v6.6.6" and ended up with lots of stuff, just no debian folder. [18:47] I also tried extracting linux-6.6.6.tar.xz from kernel.org but it also has no debian folder. [19:07] enigma9o7: it sounds like the guide you found is explaining how to build the kernel from the ubuntu sources [19:08] https://wiki.ubuntu.com/Kernel/MainlineBuilds#Kernel_source_code_trees for example [19:09] https://wiki.ubuntu.com/KernelTeam/GitKernelBuild [19:09] if you want to build a kernel from the vanilla kernel.org source, then you can do something like make bindep-pkg to build a linux-image-.deb package [19:09] *make bindeb-pkg [19:09] I just want to build it any way that works.... [19:10] Any instructions that work are fine with me. But I dunno if its cuz I dont understand the instructions, or they're just outdated. [19:10] yeah, but by "it" do you mean the ubuntu kernel or the vanilla kernel from kernel.org? [19:11] I dont care, ideally ubuntu. [19:11] But whichever works. [19:11] then you can clone the source from git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/ [19:12] that contains the debian folder [19:13] What do I substitue for tho? [19:13] jammy or mantic most likely [19:13] whatever you need [19:13] No, I want mainline kernel, 6.6.6 [19:14] ah, so you *do* want the vanilla kernel from kernel.org [19:14] https://kernel.ubuntu.com/mainline/v6.6.6/ [19:14] I don't care where i get it, as long as it works, said that before. [19:15] That page suggests to "fetch" a url. I assume that means git clone? I did the the git clone it suggests and got lots of stuff, but it has no debian folder. [19:16] no, that instead you can do the make bindeb-pkg to create a package for it [19:16] https://wiki.ubuntu.com/KernelTeam/GitKernelBuild [19:19] Thank you! I'm following this, and if I get stuck, or I succeed, I'll report back, thanks so much! [19:35] I've been waiting on the "git clone git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git" step a while, while waiting I looked into it, lucid is an old ubuntu version, is this still right? [19:39] [I did try without the ubuntu specific stuff, but that complains about the missing debian directory: dpkg-buildpackage: error: unknown option or argument --rules-file=make -f debian/rules] [19:52] Eventually that git clone timed out. I have since retried with 'noble' and it also times out. Now I'm trying 'bionic' but in any case, seems these directions are also outdated. [19:55] just copy your /boot/config- like the guide says [19:56] ..or your can even do make defconfig, and then the make -j $(getconf _NPROCESSORS_ONLN) deb-pkg LOCALVERSION=-custom [20:01] I'm doing what the guide says, and that's what doesn't work. If I don't follow the ubuntu specific steps, I get that error about debian/rules, and if I try to follow the ubuntu kernel configuration, the git clone times out [20:03] can you find a pastebin and show what it says when you get to the make -j $(getconf _NPROCESSORS_ONLN) deb-pkg LOCALVERSION=-custom ? [20:03] Sure, that I can do. Note I used "make olddefconfig" because I'd spent forever hitting enter already on the first thing on step 5. [20:06] https://paste.debian.net/plain/1300991 [20:07] interesting. can you try bindeb-pkg instead of deb-pkg? [20:07] https://paste.debian.net/plain/1300992 [20:08] enigma9o7, out of curiosity, do you want to build a mainline kernel for testing purposes (i.e., running it in a VM) or for some specific projects? [20:08] testing purposes... i want to see if nouveau no longer makes my computer lock up every day or two [20:08] if it does, im upgrading ubuntu versions [20:08] im using an old version now cuz it still supports nvidia-340 propreitary [20:09] ohh nouveau... I see... [20:10] and why do you need to recompile it? can't you just use the precompiled deb? [20:11] libc too old for the header files [20:11] wont install [20:12] https://paste.debian.net/plain/1300994 <-- same thing with bindeb-pkg [20:14] heh, is this a very old version of ubuntu? [20:14] 18.04 (with esm updates) [20:15] enigma9o7, it looks like you dpkg-dev has a dpkg-buildpackage that it's a bit too old and it doesn't support --rules-file [20:15] so, i dunno if very old, but past 5 years, so I'd really like to upgrade if i could, but been holding back cuz of the nvidia-340 support [20:16] idk, an ugly brute force test could be to remove `--rules-file='$(MAKE) -f debian/rules'` from scripts/Makefile.package and see what happens :) [20:16] nouveau actaully works better than nvidai-340 for many things... better EGL support... tty isnt invisible.... but as it freezes my computer every couple days (which doesnt happen with nvidia-340) i can't use it for anything important [20:17] but supposedly there are fixes in linux 6.2 that may help... hence this adventure to see. [20:23] in any case, arighi's suggestion got it seeming to try to biuld, so im going to lunch as long as it hasn't already failed by the time I hit enter and check it again :) thanks again [20:37] enigma9o7, yw, let us know how it goes === john-cabaj1 is now known as john-cabaj [22:10] https://paste.debian.net/plain/1301006 No dice, similar errror, just a lot later in the process. I didn't time it tho so dunno how long it went.