Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #85017 > unrolled thread

problem of kernel compiler

Started byIstvan Toth <marmika2010@gmail.com>
First post2025-01-03 21:20 +0100
Last post2025-01-07 08:10 +0100
Articles 2 — 1 participant

Back to article view | Back to linux.debian.kernel


Contents

  problem of kernel compiler Istvan Toth <marmika2010@gmail.com> - 2025-01-03 21:20 +0100
    Re: problem of kernel compiler [SOLVED] Istvan Toth <marmika2010@gmail.com> - 2025-01-07 08:10 +0100

#85017 — problem of kernel compiler

FromIstvan Toth <marmika2010@gmail.com>
Date2025-01-03 21:20 +0100
Subjectproblem of kernel compiler
Message-ID<K0Wjf-5tdc-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,

Happy New Year.Bookworm 12.08, amd 5700G cpu, ASUS ROG STRIX B550-A 
GAMING mobo, want to compile custom kernel,
based on `The Debian Administrator's Handbook/8.10. Compiling a Kernel`. 
The compiler runs in two parts.
Most times, about 100 times so far, the compiler ran at 40 minutes, but 
then it does not compile the nvidia-current 183.216.01 or
the 535.183.01 module. Because of this, there will be no 
/boot/initrd.img file, the boot will not start.
The other time interval is more than 4 hours, on December 5 and December 
26, but then nvidia turned on too, the initrd.img was downloaded,
and the kernel started without errors and works. It is not possible to 
know why the two intervals occur. The conditions are the same.
So far I have not found the reason for this on the net.Could you help me 
with some ideas? Thanks and regards, ti

[toc] | [next] | [standalone]


#85042 — Re: problem of kernel compiler [SOLVED]

FromIstvan Toth <marmika2010@gmail.com>
Date2025-01-07 08:10 +0100
SubjectRe: problem of kernel compiler [SOLVED]
Message-ID<K2bSV-6m5v-5@gated-at.bofh.it>
In reply to#85017

[Multipart message — attachments visible in raw view] — view raw

The question is solved, here you go

On 1/4/25 21:10, Franco Martelli wrote:
On 04/01/25 at 17:54, Lee wrote:
On Sat, Jan 4, 2025 at 7:52 AM Franco Martelli wrote:
>
> On 02/01/25 at 12:53, Istvan Toth wrote:
>> amd 5700G cpu
>
> If you are new to kernel compiling maybe you don't know that you can
> optimize the kernel for your specific CPU architecture, if you are using
> the GCC compiler:
>
> first make a backup copy of the Makefile:
> $ cd linux-source-6.1
> $ cp arch/x86/Makefile arch/x86/Makefile.backup
>
> then edit "arch/x86/Makefile":
> $ cd linux-source-6.1
> $ vi arch/x86/Makefile
>
> at line 152 change:
> cflags-$(CONFIG_MK8)            += -march=k8
> to
> cflags-$(CONFIG_MK8)            += -march=znver3
> and below at line 159 change
> rustflags-$(CONFIG_MK8)         += -Ctarget-cpu=k8
> to
> rustflags-$(CONFIG_MK8)         += -Ctarget-cpu=znver3
>
> save and exit vim. "znver3" is the GCC's switch for the µarch of your 
> GPU.
>
> ¹ https://wiki.gentoo.org/wiki/Ryzen#Ryzen_7
> ² https://wiki.gentoo.org/wiki/AMDGPU
> ³ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935536 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web