/srv/irclogs.ubuntu.com/2021/02/08/#ubuntu-kernel.txt

viktorHello, does the GitKernelBuild manual (https://wiki.ubuntu.com/KernelTeam/GitKernelBuild) also hold for ubuntu-focal?11:20
viktorBackground: I want to build a custom mainline kernel based on https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.14/. I already cloned git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack und checked out the cod/mainline/v5.10.14 but I don't know whether I already can build this thing or whether there are special configs in git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git I need to use11:25
=== fling is now known as bedroller
=== bedroller is now known as bedcrawler
nzt48Hi channel15:36
nzt48I'm trying to build the bionic kernel 4.15.0-132.136. I moved the nvme driver from module into built-in. The following are my changes:15:39
nzt48 15:39
nzt48modified   debian.master/config/amd64/config.common.amd6415:39
nzt48@@ -56,6 +56,7 @@ CONFIG_BFS_FS=m15:39
nzt48 CONFIG_BLK_DEV_3W_XXXX_RAID=m15:39
nzt48 CONFIG_BLK_DEV_CRYPTOLOOP=m15:39
nzt48 CONFIG_BLK_DEV_DAC960=m15:39
nzt48+CONFIG_BLK_DEV_NVME=y15:39
nzt48 CONFIG_BLK_DEV_PCIESSD_MTIP32XX=m15:39
nzt48 CONFIG_BLK_DEV_RSXX=m15:39
nzt48 CONFIG_BLK_DEV_SKD=m15:39
nzt48 15:39
nzt48 15:40
nzt48modified   debian.master/config/annotations15:40
nzt48@@ -4748,7 +4748,7 @@ CONFIG_NVDIMM_PFN                               policy<{'amd64': 'y', 'ppc64el':15:40
nzt48 CONFIG_NVDIMM_DAX                               policy<{'amd64': 'y', 'ppc64el': 'y'}>15:40
nzt48 15:40
nzt48 # Menu: Device Drivers >> NVME Support15:40
nzt48-CONFIG_BLK_DEV_NVME                             policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'i386': 'm', 'ppc64el': 'm', 's390x': 'm'}>15:40
nzt48+CONFIG_BLK_DEV_NVME                             policy<{'amd64': 'y', 'arm64': 'm', 'armhf': 'm', 'i386': 'm', 'ppc64el': 'm', 's390x': 'm'}>15:40
nzt48 CONFIG_NVME_MULTIPATH                           policy<{'amd64': 'y', 'arm64': 'y', 'armhf': 'y', 'i386': 'y', 'ppc64el': 'y', 's390x': 'y'}>15:40
nzt48 CONFIG_NVME_RDMA                                policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'i386': 'm', 'ppc64el': 'm', 's390x': 'm'}>15:40
nzt48 CONFIG_NVME_FC                                  policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'i386': 'm', 'ppc64el': 'm', 's390x': 'm'}>15:40
nzt48modified   debian.master/config/config.common.ubuntu15:40
nzt48@@ -992,7 +992,7 @@ CONFIG_BLK_DEV_LOOP_MIN_COUNT=815:40
nzt48 CONFIG_BLK_DEV_MD=y15:40
nzt48 CONFIG_BLK_DEV_NBD=m15:40
nzt48 CONFIG_BLK_DEV_NULL_BLK=m15:40
nzt48-CONFIG_BLK_DEV_NVME=m15:40
nzt48+CONFIG_BLK_DEV_NVME=y15:40
nzt48 CONFIG_BLK_DEV_PMEM=m15:40
nzt48 CONFIG_BLK_DEV_RAM=m15:40
nzt48 CONFIG_BLK_DEV_RAM_COUNT=1615:40
nzt48But I got build error on module-check, the error message is:15:42
nzt48 15:43
nzt48II: Checking modules for generic...15:43
nzt48   reading new modules...read 5166 modules.15:43
nzt48   reading old modules...15:43
nzt48      MISS: nvme15:43
nzt48      MISS: nvme-core15:43
nzt48      read 5168 modules : new(0)  missing(2)15:43
nzt48EE: Missing modules (start begging for mercy)15:43
nzt48debian/rules.d/4-checks.mk:9: recipe for target 'module-check-generic' failed15:43
nzt48make: *** [module-check-generic] Error 115:43
nzt48Please help!15:44
nzt48Thanks in advance15:45
arighinzt48, you need to remove these modules (nvme and nvme-core) from debian.master/abi/<version>/amd64/generic.modules (I'm assuming you're building amd64 -generic kernel), because now you're compiling them statically in the kernel15:46
arighiand theoretically you do apply the same change to the other architectures (in each generic.modules file)15:47
arighis/you do/you need to/15:47
arighinzt48, ...and a little hint, use pastebin to post patches or big chunk of texts ;)15:48
nzt48Thank you so much arighi, let me digest your message first :)15:49
nzt48Also, sorry about pasting big chunk of texts here. This is the first time I use IRC. I'll check out the pastebin.15:50
arighinzt48, np :)15:52
nzt48So in my case, I should remove nvme and nvme-core from debian.master/abi/4.15.0-132.136/amd64/generic.modules right?15:53
arighinzt48, correct15:57
nzt48> Yen, I do build only for amd64. So do I have to apply the same change to other architectures as well? But what the use case is that one only need to build nvme into kernel for amd64, but not for any other architectures?15:58
nzt48s/what the use case is/what if the use case is15:59
kwilczynskiHi nzt48, of out curiosity - why do you need these to be compiled in? Something is not booting correctly? Or do you want to build a more streamlined kernel?16:20
arighinzt48, if you changed the config only for amd64 then you only need to update the modules' file for that specific architecture (without touching the others)16:26
nzt48Hi kwilczynski, previously we were building the trusty kernel 4.4.0-144.170~14.04.1, and the developer (who had left the team) said there was a problem that it didn't end up in the initramfs. Not sure if this issue is still in the bionic kernel, but I just thought it was probably better to replicate what he did.16:29
kwilczynskinzt48: Not sure what the issue was, but it could have been resolved. :) There has been a lot of solid releases and fixes since Trusty. :)16:35
kwilczynskinzt48: Is this built-in or out-of-tree driver?16:35
kwilczynskinzt48: The reason why I am asking, is because seems like a lot of pain to have to make special provisions to make it compiled-in rather than a module, etc.16:35
kwilczynskiNot sure if you considered that it might work now, or had the time to test.16:36
kwilczynskiAh. I looked above. This is just normal NVMe support that ships with the mainline. Hmm.16:38
kwilczynskiI have 20.04 running next to me with a number of NVMe drives in M.2 slots, and initramfs definitely works fine, as I am even booking from these, etc.16:39
nzt48For the configuration changes (and any other "personal" changes that obviously applies only to the company), if we still want to follow the Ubuntu Kernel team's development cycle to record the changes in the changelog, and release the company specfic versions inside the company. the commmand "debian/scripts/misc/getabis MAINLINE-VERSION CURRENT-ABI.CURRENT-UPLOAD-NUMBER" will not work because the current company s16:42
nzt48never been uploaded to Ubuntu. In such cases, would manually renaming the directory "debian.master/abi/MAINLINE-VERSION PREVIOUS-ABI.PREVIOUS-UPLOAD-NUMBER" to the "debian.master/abi/MAINLINE-VERSION CURRENT-ABI.CURRENT-UPLOAD-NUMBER" the only choice?16:42
nzt48kwilczynski, this is a built-in driver provided by the kernel.16:43
kwilczynski:)16:43
nzt48kwilczynski, yep, no time to test. But I'll probably reverse it back to module build later after the stress is gone. :)16:46
kwilczynskiAce. :)16:46
kwilczynskiIf it works, then one thing less to maintain/customise.16:46
nzt48Yep, definitely agreed!16:46

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!