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

QuozlHello.  I'm trying to solve a radeon regression, and having trouble rebuilding the Ubuntu kernel on focal.  The build fails and mentions x86 but I'm on x86_64.  Log: http://dev.laptop.org/~quozl/z/1l9lyf.txt  I'm using https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel as instructions.09:42
QuozlHello.  I'm trying to solve a radeon regression, and having trouble rebuilding the Ubuntu kernel on focal.  The build fails and mentions x86 but I'm on x86_64.  Log: http://dev.laptop.org/~quozl/z/1l9lyf.txt  I'm using https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel as instructions.22:13
jeremy31Quozl: Does the patch involve changing anything in the headers?22:14
Quozljeremy31: no, just radeon_display.c deep down.22:15
jeremy31Quozl: I would just try to build the needed modules then22:15
Quozlhmm, i'd appreciate a pointer to how to do that.  i do recall a linux.conf.au talk about it ten years ago, but things will have changed.22:16
jeremy31Quozl: Just cd into the directory where the changes are made in terminal and do> make -C /lib/modules/$(uname -r)/build M=$(pwd) modules22:17
jeremy31Then copy the module to where the original is after renaming the original22:18
Quozl(for reference, the regression is incorrect pll1 setup for my system, possibly because of bad edid. https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/164) 22:18
Quozlthanks.  i'll look into that.22:18
jeremy31Quozl: It is what I usually do for wireless changes I make.  I can't see building an entire kernel for a change to one module 22:19
Quozljeremy31: oddly, it fails, not able to find an include file, as if it can't reach the existing file in the include/ directory of the kernel tree ...  http://dev.laptop.org/~quozl/y/1l9xs3.txt22:23
* Quozl hops on his bike22:30
jeremy31Ok, do a> make -C /lib/modules/$(uname -r)/build M=$(pwd) clean22:31
jeremy31then try the make -C /lib/modules/$(uname -r)/build M=$(pwd) modules from /kernel/drivers/gpu/drm/22:32
Quozljeremy31: thanks, a substantial improvement, i'll debug further why some things are undeclared ... http://dev.laptop.org/~quozl/z/1l9yjk.txt23:18
jeremy31Quozl: Might have to remove some things from the Makefile in the drm directory to ignore the i2c23:20
jeremy31or you might have to run the make command from /drivers/gpu23:20
Quozlclean, make modules in drivers/gpu, same undeclared.  did i do something wrong after copying /boot/config-$(uname -r) ?  make oldconfig asks questions, which is a surprise.23:22
jeremy31Quozl: I haven't copied any files from /boot/config or used make oldconfig when doing wifi drivers23:23
Quozljeremy31: okay, thanks.  how have you configured when doing wifi drivers?23:24
jeremy31Did you clone from git.ubuntu.com or enable source code repos?23:24
Quozla kernel repo clone with a remote git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git and i'm on a branch of my own based on ubuntu-focal/master ... and i've "git clean" to get rid of everything else.  so in theory it's a clone from git.ubuntu.com23:25
jeremy31I normally enable the source code repos, and do> apt-get source linux-modules-extra-$(uname -r)23:26
jeremy31Then I make my changes and most times it works23:26
Quozl'k, thanks.23:27
Quozlmust mean there's something magic between a git clone and the source package.  i'll give it a try.23:27
jeremy31Quozl: I think your original problem with building an entire kernel was related to the directory name as it must have been an exact match to a currently installed version23:33
Quozlah.23:37
Quozljeremy31: certainly much better with the source package, but still an odd compilation failure, claim of a missing pblk-trace.h header file, yet it is certainly present; drivers/lightnvm/pblk-trace.h   log:http://dev.laptop.org/~quozl/z/1l9zCF.txt  23:48
Quozlit is not, however, present in /usr/src/linux-headers-5.8.0-43-generic ... hmm.23:49
jeremy31I don't know what to do to fix that, that must have been for an entire kernel build23:53
Quozli had climbed the source tree each time i hit a snag.23:53
jeremy31Quozl: Any chance the fix is in the 5.10 kernels?23:55
Quozli can test.  i've reviewed all changes since, and none have a commit message that explains the problem, so not likely.  the bugs in the trackers are still open.23:56
jeremy31Quozl: have a bug report filed?23:58

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