Re: Kernel debugging

2024-05-11 Thread Daniel Hejduk
Hello again,
Is there any way to build the kernel on Linux preferably Arch Linux?

Best regards,
Daniel Hejduk

11. května 2024 22:05:50 SELČ, "Kirill A. Korinsky"  napsal:
>On Sat, 11 May 2024 20:28:08 +0100,
>Daniel Hejduk  wrote:
>> 
>> I want to enable kernel debugging how can I do it?
>> 
>
>See: https://man.openbsd.org/options
>
>-- 
>wbr, Kirill
>


Kernel debugging

2024-05-11 Thread Daniel Hejduk
Hello,
I want to enable kernel debugging how can I do it?

Best regards,
Daniel Hejduk

Re: My PC is crashing

2024-05-10 Thread Daniel Hejduk
Hello again,
I tried memtest and it passed :D
But after some trying to debug it I found something the sudden shutdown 
corrupts disk.
One particular file "/share/relink/kernel/GENERIC.MP/gap.o" was always 
corrupted.
So it happens when kernel is relinking.

How you told me I tried using i386 but it didn't boot by flashing it on USB nor 
using Ventoy.
Ventoy will always prompt me "Maybe the image does not support X64 UEFI", so I 
tried enabling legacy but again nothing.
Is there way to boot i386, or fix the relinking error?

Thank you for helping me on my journey.

Best regards,
Daniel Hejduk

10. května 2024 9:33:59 SELČ, Stuart Henderson  
napsal:
>On 2024-05-10, Peter N. M. Hansteen  wrote:
>> On Fri, May 10, 2024 at 08:48:56AM +0200, Anders Andersson wrote:
>>> Missing from the FAQ is IMO step 0: Run memtest over night to rule out
>>> hard to debug hardware problems. It won't catch everything of course,
>>> but it usually finds RAM issues which is its main job.
>>
>> That is a very valid point. 
>>
>> Bad RAM could very well be the cause of the problems described. And on
>> a side note, given that the memory allocation in OpenBSD is different than
>> what some other systems do, it is not unlikely that other systems never
>> or only rarely would hit the failing memory location while OpenBSD would,
>> more often.
>
>Yet it was able to do an install and relink the kernel while in the
>installer. Also IME memory-related problems are more likely to result in
>crashes rather than the machine shutting down. This doesn't completely
>rule out memory problems, but it's more likely to result from a
>difference between RAMDISK and GENERIC.MP kernels.
>
>First things first, Daniel:
>
>- if you used i386, try amd64 instead.
>
>- if you configured to run X in the installer, try without that.
>
>- try going back a release or two, is there any difference?
>
>-- 
>Please keep replies on the mailing list.
>


My PC is crashing

2024-05-09 Thread Daniel Hejduk
Hello,
I installed OBSD on my IdeaPad.
Install went fine I installed offline using .iso file.
But after rebooting it works for ~30 seconds and after that it shutdowns,
without any errors kernel panics nothing.

How can I debug it? I will send you more info if I found something.

Best regards,
Daniel Hejduk