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

luc4Hello! I’d need to git bisect the kernel being used in the raspberry pi. I’m trying to follow the manuals, but I’m not sure I’m doing the right thing. I expected a debian/ dir to be in every commit, but it seems this commit, for instance, is not including it: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-raspi/+git/hirsute/tree/?id=84faf29b2d529a10cd71e609ddb237a5af8551a4. Is this the wrong git? Or maybe I should expect the debian/ 10:49
luc4not to be there? In that case can you point me to the proper manual to follow? Thanks!10:49
juergh@luc4, https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel12:00
juerghluc4, ^^12:01
juerghbisecting a derivative is not trivial. especially raspi.12:02
=== luc4_ is now known as luc4
luc4juergh: that is the page I’m referring to. The debian/ directory is needed, but I do not see it in many commits.12:14
luc4juergh: I can build with a regular “make”, but I guess I’m only building vmlinuz. Can I simply replace that in /boot/firmware in rpi? Can I ignore the initrd?12:15
juerghluc4, you can't build an Ubuntu kernel by simply running 'make'.12:16
juerghthe raspi kernel is a derivative of the master (hirsute) kernel. we take the master hirsute kernel and but the raspi specific patches and configs on top of it.12:17
juerghyou cant simply bisect. if you checkout a regular upstream commit than you don't have all the raspiness and that kernel will not boot at all.12:17
luc4juergh: I see, so I can’t bisect. Thank, at least I won’t try something that cannot be done :-)12:19
juerghluc4, it can be done but it's painful. why do you want to bisect? did you find a regression?12:20
luc4juergh: yes, usb issue: https://github.com/raspberrypi/linux/issues/398112:22
gitbotraspberrypi issue 3981 in linux " RPi 4B, external HDD randomly freezes" [Open]12:22
juerghoh dear. this has been going on forever. and you're hitting this issue?12:27
* ogra is entertained by people randomly adding and removing arm_64bit=1 to config.txt in that issue ...12:28
luc4juergh: yes, heavily. Sometimes 3 hours and the hd is gone.12:30
juerghubuntu kernel? single or dual HDD? HDD or SSD?12:30
luc4juergh: I guess both ubuntu and raspberry os. I’m using ubuntu. What do you mean by single? HDD, not SSD.12:31
* ogra would first try to add "usbcore.autosuspend=-1" to the kernel cmdline ... if there isnt traffic on the USB for a while when the system idles, the bus might go into suspend12:31
juerghsome people have 2 HDDs attached.12:32
luc4juergh: I have 1. But I can plug up to 6, which is how I planned to bisect.12:32
luc4juergh: otherwise I may have to wait for days to reproduce.12:33
juerghluc4, what the HDD IO workload?12:34
luc4juergh: I could reproduce even on unmounted HDDs.12:34
luc4juergh: does not seem to be related to workload.12:34
juerghluc4, which Ubuntu kernels show this?12:36
luc4juergh: if not possible to bisect on Ubuntu nevermind, I’ll have to somehow switch to raspberry os, hoping it has a 64 bit version. Otherwise I won’t bisect :-)12:36
luc4juergh: I’m pretty sure 5.4 is not affected, 5.8 is.12:36
juerghluc4, you will have similar bisect issues with the raspi os kernel.12:38
juerghI'll see if I can reproduce this.12:38
luc4juergh: I’ll try. If impossible, I’ll give up.12:39
luc4juergh: thanks!12:39
juerghluc4, and your HDD is externally powered I assume?12:39
luc4juergh: yes, it is.12:40
luc4ogra, juergh: I missed the advice. I already tried to disable autosuspend in proc. I could still reproduce.12:46
ograk. was just a thought12:46
=== cpaelzer_ is now known as cpaelzer

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