r/kernel

▲ 9 r/kernel

First linux driver development project

Hello getting into Linux driver development.

My idea: pass an RFID card to an ESP32 to authenticate sudo instead of typing a password. The secret lives on the card, not the machine. Is this a good project to learn linux driver development? ? Thanks

reddit.com
u/Temporary-Stage8541 — 1 day ago
▲ 30 r/kernel

How is it like to be a kernel developer or a Linux systems dev?

Hey everyone! So my eyes are currently set in Computer Engineering for College.. I was browsing for the possible jobs I can choose that are versatile and can actually be stable even for a decade.. I currently don't want to pursue any AI or Robot related jobs.. but while I was browsing, I found out that you can be a Kernel Developer/Linux Systems dev after Comp En. I grew interested in it because: it sounds fun, and it gives a challenge for me...knowing I'll fail miserably just to get there. I'm still a complete beginner to the tech industry.. but for me to be sure if I should get that job in the future, I just wanted to ask this in this subreddit.. so yeah! You can also humble me if my thoughts sound childish or what, lol.

reddit.com
u/PheonixBomb — 3 days ago
▲ 10 r/kernel

Terrible experience with 7.x on Meteor Lake iGPU

Having a ThinkPad P1 Gen 7 with Meteor Lake, I’m seeing crashes with both i915 and xe. I’ve reported this upstream to the kernel/DRM folks.

Kernel 6.19.14 was rock solid here. Is anyone else seeing regressions this severe?

With xe, the system can crash within ~30 minutes, which is already bad enough. But now I’m also seeing i915 blow up? WTF?

Relevant part of the trace:

[ 3113.696521] Call Trace:
[ 3113.696526]  <TASK>
[ 3113.696528]  ? intel_fbc_activate+0x36/0x100 [i915]
[ 3113.696787]  intel_atomic_commit_tail+0x1087/0x18d0 [i915]
[ 3113.697193]  ? _raw_spin_unlock_irqrestore+0x27/0x50
[ 3113.697201]  intel_atomic_commit+0x23d/0x280 [i915]
[ 3113.697495]  drm_atomic_commit+0xb1/0xe0 [drm]
[ 3113.697548]  ? __pfx___drm_printfn_info+0x10/0x10 [drm]
[ 3113.697582]  drm_atomic_connector_commit_dpms+0x109/0x120 [drm]
[ 3113.697657]  drm_mode_obj_set_property_ioctl+0x1ba/0x3e0 [drm]
[ 3113.697838]  ? __pfx_drm_connector_property_set_ioctl+0x10/0x10 [drm]
[ 3113.697927]  drm_connector_property_set_ioctl+0x3c/0x60 [drm]
[ 3113.698054]  drm_ioctl_kernel+0xae/0x100 [drm]
[ 3113.698115]  drm_ioctl+0x283/0x530 [drm]
[ 3113.698175]  ? __pfx_drm_connector_property_set_ioctl+0x10/0x10 [drm]
[ 3113.698232]  __x64_sys_ioctl+0x96/0xe0
[ 3113.698237]  ? do_syscall_64+0x14c/0x1520
[ 3113.698242]  do_syscall_64+0x10f/0x1520
[ 3113.698247]  ? fpregs_assert_state_consistent+0x34/0x60
[ 3113.698252]  ? do_syscall_64+0x14c/0x1520
[ 3113.698257]  ? fpregs_assert_state_consistent+0x34/0x60
[ 3113.698261]  ? do_syscall_64+0x14c/0x1520
[ 3113.698265]  ? fpregs_assert_state_consistent+0x34/0x60
[ 3113.698274]  ? irqentry_exit+0x7b/0x580
[ 3113.698275]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
reddit.com
u/Original_Two9716 — 3 days ago
▲ 2 r/kernel+2 crossposts

Issues with buildroot for OrangePI Zero 3

Hi folks.

I am trying to get into kernel with buildroout using my Zero 3, but can't for the life of me make it work. I would be grateful if someone more experienced could point me into right direction.

According to recommendations the host is Ubuntu 22, but no matter what I do I end up with something like this:

UPD     include/generated/timestamp_autogenerated.h
  CC      common/version.o
  AR      common/built-in.o
  LD      u-boot
  CC      spl/common/spl/spl.o
  OBJCOPY u-boot.srec
  OBJCOPY u-boot-nodtb.bin
  SYM     u-boot.sym
  RELOC   u-boot-nodtb.bin
  AR      spl/common/spl/built-in.o
  LD      spl/u-boot-spl
  CAT     u-boot-dtb.bin
  MKIMAGE u-boot.img
  MKIMAGE u-boot-dtb.img
  COPY    u-boot.bin
  OBJCOPY spl/u-boot-spl-nodtb.bin
  SYM     spl/u-boot-spl.sym
  COPY    spl/u-boot-spl.bin
  MKIMAGE spl/sunxi-spl.bin
  BINMAN  .binman_stamp
Traceback (most recent call last):
  File "/home/shumnyj/buildroot/output/build/uboot-2024.10/./tools/binman/binman", line 46, in <module>
    from binman import control
  File "/home/shumnyj/buildroot/output/build/uboot-2024.10/tools/binman/control.py", line 16, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
make[2]: *** [Makefile:1126: .binman_stamp] Error 1
make[1]: *** [package/pkg-generic.mk:273: /home/shumnyj/buildroot/output/build/uboot-2024.10/.stamp_built] Error 2
make: *** [Makefile:83: _all] Error 2

I have tried:

  • Installing/reinstalling "setuptools" and "pkg-resources" both via pip and apt
  • Installing older versions caused different issues
  • Googling alternatives
reddit.com
u/shumnyj — 10 days ago
▲ 15 r/kernel+1 crossposts

Kernel Updates failing due to "run-parts: missing operand"

I've been adding newer kernels to my main desktop running Linux Mint 22.3 (mate). Thing have been smooth with no odd effects until recently. I've been using mainline install tool for more than a year but run into a recent problem. My current kernel (6.19.10-061910-generic) I guess is the last successful install.

I think somehow parameters used by runparts in the kernel install process are failing. That's my guess. Here is the error log dumped from mainline.

mainline 1.4.13
install 7.0.1 
Downloading 7.0.1
Installing 7.0.1                                                      
Selecting previously unselected package linux-image-unsigned-7.0.1-070001-generic.
(Reading database ... 1138579 files and directories currently installed.)
Preparing to unpack .../linux-image-unsigned-7.0.1-070001-generic_7.0.1-070001.202604221347_amd64.deb ...
run-parts: missing operand
Try `run-parts --help' for more information.
dpkg: error processing archive /home/userd/.cache/mainline/7.0.1/linux-image-unsigned-7.0.1-070001-generic_7.0.1-070001.202604221347_amd64.deb (--install):
 new linux-image-unsigned-7.0.1-070001-generic package pre-installation script subprocess returned error exit status 1
run-parts: missing operand
Try `run-parts --help' for more information.
dpkg: error while cleaning up:
 new linux-image-unsigned-7.0.1-070001-generic package post-removal script subprocess returned error exit status 1
Selecting previously unselected package linux-modules-7.0.1-070001-generic.
Preparing to unpack .../linux-modules-7.0.1-070001-generic_7.0.1-070001.202604221347_amd64.deb ...
Unpacking linux-modules-7.0.1-070001-generic (7.0.1-070001.202604221347)...
Selecting previously unselected package linux-headers-7.0.1-070001-generic.
Preparing to unpack .../linux-headers-7.0.1-070001-generic_7.0.1-070001.202604221347_amd64.deb ...
Unpacking linux-headers-7.0.1-070001-generic (7.0.1-070001.202604221347)...
Selecting previously unselected package linux-headers-7.0.1-070001.
Preparing to unpack .../linux-headers-7.0.1-070001_7.0.1-070001.202604221347_all.deb ...
Unpacking linux-headers-7.0.1-070001 (7.0.1-070001.202604221347) ...
Setting up linux-modules-7.0.1-070001-generic (7.0.1-070001.202604221347)...
Setting up linux-headers-7.0.1-070001 (7.0.1-070001.202604221347) ...
Setting up linux-headers-7.0.1-070001-generic (7.0.1-070001.202604221347)...
run-parts: missing operand
Try `run-parts --help' for more information.
dpkg: error processing package linux-headers-7.0.1-070001-generic (--install):
 installed linux-headers-7.0.1-070001-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /home/userd/.cache/mainline/7.0.1/linux-image-unsigned-7.0.1-070001-generic_7.0.1-070001.202604221347_amd64.deb
 linux-headers-7.0.1-070001-generic
mainline: done

I can use sudo apt update but when I try to upgrade it says

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: The package linux-image-unsigned-7.0.1-070001-generic needs to be reinstalled, but I can't find an archive for it.

I've tried the process with kernels prior to 7.0.1 this is just the most recent one attempted. Reinstalling as it suggest ends up with you going in circles and having the same error. I think an environment variable that hold a path is set to empty. That's my theory. Anyone have any suggestions to resolve this fault. Thanks in advance!

reddit.com
u/Forward_Year_2390 — 12 days ago