TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Easylkb: Easy Linux Kernel Builder

134 pointsby sjuutover 1 year ago

7 comments

gregfjohnsonover 1 year ago
Mind. Officially. Blown. Sometimes the coincidental timeliness of things popping up on Hacker News is just weird. u ROCK deepseagirl!<p>I&#x27;ve recently wanted to start building Linux kernels and play with device drivers again. Wanted to build and then execute on top of QEMU. Downloaded, configured, and built Linux kernel 6.6 following recipes from arch and a few other places. Doing a reasonable .config was a painful process (picking what to include etc.) The kernel build took several hours. The resulting image refused to boot under Virtual Machine Manager, to say nothing of using gdb etc. to interactively debug the kernel.<p>So, I figured I was looking at a solid weekend of googling, stack-overflowing, swearing, reading kernel Documentation files etc. and finally getting everything set up and working happily.<p>NOT! The easylkb script did the entire thing completely automatically, culminating in a login prompt on a running virtual machine!! The Linux kernel .config was one of the standard ones I believe, but I hadn&#x27;t yet found it. The complete kernel build took on the order of several minutes instead of several hours.<p>There were a couple of minor issues I had with easylkb, which I will share as comments on github.
评论 #38366402 未加载
评论 #38366698 未加载
eptcykaover 1 year ago
I found the NixOS wiki[1] to have a fairly decent guide on how to hack on a kernel. The process there isn&#x27;t nearly as concise as it is here though :)<p>[1]: <a href="https:&#x2F;&#x2F;nixos.wiki&#x2F;wiki&#x2F;Linux_kernel" rel="nofollow noreferrer">https:&#x2F;&#x2F;nixos.wiki&#x2F;wiki&#x2F;Linux_kernel</a>
评论 #38366227 未加载
bheadmasterover 1 year ago
I&#x27;ve wanted to do some Linux kernel development for a while now, but I&#x27;ve never mustered the will to go through the process.<p>This script may just be what I needed to start.
评论 #38364750 未加载
评论 #38364468 未加载
rollcatover 1 year ago
Ooooh this is very cute.<p>I&#x27;m toying with building a little OS using the Linux kernel and an all-Go userspace, and one of the goals is to make the entire system as easy to cross-compile (both host OS <i>and</i> host&#x2F;guest CPU arch) as possible. Linux being non-trivial to compile (let alone cross-compile) has been so far quite a nuissance, so I&#x27;ll definitely be having a closer look at this.
评论 #38369390 未加载
评论 #38401323 未加载
评论 #38368236 未加载
HankB99over 1 year ago
This caught my attention because I&#x27;m obsessing about storage performance (again) and have included a kernel build in my benchmarks. I found and followed the instructions at <a href="https:&#x2F;&#x2F;wiki.debian.org&#x2F;BuildADebianKernelPackage" rel="nofollow noreferrer">https:&#x2F;&#x2F;wiki.debian.org&#x2F;BuildADebianKernelPackage</a> which were trivially simple.<p>As an aside, I was astonished that the build took less than 100s. My recollection is that this took about an hour on on my previous system (I7-4770K, 32GB RAM and SATA SSD formatted with ZFS.) New system is Ryzen 7 7700X, 32GB RAM and NVME SSD. I expected a performance boost, but not that much. I&#x27;m still wondering what I did wrong&#x2F;differently.
klysmover 1 year ago
I didn’t have a very hard time kernels, but building the gnu toolchain is an absolute disaster
评论 #38396011 未加载
anthkover 1 year ago
Debian had make-kpkg for a while.