Relative Content

Tag Archive for linux-kernel

Why do some embedded projects shun cross-compiling?

As I’ve been getting into embedded systems I’ve noticed that some projects (Arch Arm and OpenBSD for example) frown upon cross compiling. What is the reasoning for this? Is a cross-compiled binary somehow different from a natively compiled one?

Why do some embedded projects shun cross-compiling?

As I’ve been getting into embedded systems I’ve noticed that some projects (Arch Arm and OpenBSD for example) frown upon cross compiling. What is the reasoning for this? Is a cross-compiled binary somehow different from a natively compiled one?

Accessing struct attribute: casting vs field name

I was just going over some kernel code, I noticed that rb->__rb_parent_color = (unsigned long)p | color; is kinda wired. The first field of a struct is accessed by casting the pointer and not by using the field name.

How to generate debug info package for my custom Linux kernel?

I am building my custom kernel as an rpm package, but I would like also to generate a separate rpm package for my kernel. One that is similar to kernel-debuginfo and kernel-debuginfo-common from RH, or kernel-*-dbgsyms.deb from Debian-like distros.

Difference in PG_buddy page type assignment between kernel version 5.15 and 6.6

I have been working on porting a kernel patch from 5.15 to 6.6. The patch in question is Palloc (link here). It extends the base buddy allocator to allow for (in my use case) cache coloring. Based on my testing, I have successfully ported the patch and all is well. However, I don’t entirely understand why one specific change I made was required and was hoping to get some insight.