Forum › Forums › General › Tips and Tricks › Kernels, Make your own!
Tagged: kernel, kernel-compile, menuconfig, xconfig
- This topic has 39 replies, 9 voices, and was last updated Jun 4-1:39 pm by Brian Masinick.
-
AuthorPosts
-
April 18, 2018 at 9:04 pm #9384Member
ohh
::sleekmason,
Just wanted to say thank you for this thread. Been quite a while since I compiled a kernel, using your howto was sweet! Really a lot easier to do now. I’m running from my kernel, but wondered if this kernel is patched for the spectre and meltdown exploits? I used anti’s tar.gz.
btw, I did a couple of things that may be needed to update your original instructions:
make -2 deb-pkgshouldn’t it be
make -3 deb-pkgMight mention you need to sudo or su when doing the :
dpkg -i linux-headers.foo linux-image fooGreat job sleekmason, really appreciate your sharing.
cheers,
ohh- This reply was modified 5 years ago by ohh. Reason: sp
Every matter requires prior knowledge.
- Du Mu
The Art of WarApril 19, 2018 at 7:23 am #9414Member
sleekmason
::shouldn’t it be
make -3 deb-pkgYes! or more. The inability to edit posts after a day is an issue.
–
Have you tried the 4.17rc yet? Dropped two seconds more from boot even with the acpi error (pointer error for me anyway), and after removing a big bunch of other stuff, I am now sometimes getting suprised because my apps are opening way faster than expected.
–
make menuconfig is my goto when I wake up at 4 am with my mind racing. So much to learn.April 19, 2018 at 9:24 am #9419Member
ohh
::Did not know about the inability to change your own post ???
Here is info on new kernel:$ inxi CPU: Dual Core Intel Core2 T7400 (-MCP-) speed/min/max: 1565/1000/2167 MHz Kernel: 4.15.14-antix.1ohh1 x86_64 Up: 14h 42m Mem: 806.4/2987.8 MiB (27.0%) HDD: 465.76 GiB (5.7% used) Procs: 135 Shell: bash 4.4.12 inxi: 3.0.06 ohh@antix17:~ $ inxi -F System: Host: antix17 Kernel: 4.15.14-antix.1ohh1 x86_64 bits: 64 Desktop: Fluxbox 1.3.5 Distro: antiX-17_x64-full Heather Heyer 24 October 2017 Machine: Type: Desktop System: Apple product: iMac5,1 v: 1.0 serial: N/A Mobo: Apple model: Mac-F4228EC8 v: DVT serial: N/A BIOS: Apple v: IM51.88Z.0090.B09.0706270921 date: 06/27/07 CPU: Topology: Dual Core model: Intel Core2 T7400 bits: 64 type: MCP L2 cache: 4096 KiB Speed: 1867 MHz min/max: 1000/2167 MHz Core speeds (MHz): 1: 1288 2: 1323 Graphics: Card-1: AMD RV530/M56-P [Mobility Radeon X1600] driver: radeon v: kernel Display: server: X.Org 1.19.2 driver: ati,radeon unloaded: fbdev,modesetting,vesa resolution: 1680x1050~60Hz OpenGL: renderer: Gallium 0.4 on ATI RV530 v: 2.1 Mesa 13.0.6 Audio: Card-1: Intel NM10/ICH7 Family High Definition Audio driver: snd_hda_intel Sound Server: ALSA v: k4.15.14-antix.1ohh1 Network: Card-1: Marvell 88E8053 PCI-E Gigabit Ethernet driver: sky2 IF: eth0 state: up speed: 100 Mbps duplex: full mac: Card-2: Broadcom Limited BCM4321 802.11a/b/g/n driver: b43-pci-bridge IF-ID-1: wlan0 state: down mac: 00:00:00:00 :) Drives: HDD Total Size: 465.76 GiB used: 26.56 GiB (5.7%) ID-1: /dev/sda model: Hitachi_HDS72505 size: 465.76 GiB Partition: ID-1: / size: 54.75 GiB used: 7.40 GiB (13.5%) fs: ext4 dev: /dev/sda4 ID-2: /home size: 43.80 GiB used: 19.17 GiB (43.8%) fs: ext4 dev: /dev/sda6 ID-3: swap-1 size: 18.63 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda5 Sensors: System Temperatures: cpu: 43.0 C mobo: N/A Fan Speeds (RPM): cpu: 888 Info: Processes: 135 Uptime: 14h 43m Memory: 2.92 GiB used: 811.0 MiB (27.1%) Shell: bash inxi: 3.0.06cheers,
ohhEvery matter requires prior knowledge.
- Du Mu
The Art of WarApril 19, 2018 at 10:25 am #9422Member
sleekmason
::2007 mac! I’ve never used one, but the specs look better than my 2009 studio for sure.
–
–CPU: Dual Core Pentium T4300 (-MCP-) speed/min/max: 1684/1200/2100 MHz Kernel: 4.17.0-rc16 x86_64 Up: 15h 48m Mem: 451.5/1955.8 MiB (23.1%) HDD: 149.05 GiB (22.6% used) Procs: 119 Shell: bash 4.4.19 inxi: 3.0.00 System: Host: ai Kernel: 4.17.0-rc16 x86_64 bits: 64 Desktop: Fluxbox 1.3.8 Distro: antiX-17_x64-base Heather Heyer 24 October 2017 Machine: Type: Portable System: Dell product: Studio 1737 v: A07 serial: N/A Mobo: Dell model: 0P792H v: A07 serial: N/A BIOS: Dell v: A07 date: 08/06/2009 Battery: ID-1: BAT0 charge: 4.6 Wh condition: 6.6/7.8 Wh (85%) CPU: Topology: Dual Core model: Pentium T4300 type: MCP L2 cache: 1024 KiB Speed: 1590 MHz min/max: 1200/2100 MHz Core speeds (MHz): 1: 1583 2: 1503 Graphics: Card-1: Intel Mobile 4 Series Integrated Graphics driver: i915 v: kernel Display Server: X.Org 1.19.6 driver: intel resolution: 1440x900~60Hz OpenGL: renderer: llvmpipe (LLVM 5.0 128 bits) v: 3.3 Mesa 17.3.8 Audio: Card-1: Intel 82801I HD Audio driver: snd_hda_intel Sound Server: ALSA v: k4.17.0-rc16 Network: Card-1: Broadcom Limited BCM4312 802.11b/g LP-PHY driver: wl Card-2: Broadcom Limited NetLink BCM5784M Gigabit Ethernet PCIe driver: tg3 Drives: HDD Total Size: 149.05 GiB used: 33.66 GiB (22.6%) ID-1: /dev/sda model: ST9160314AS size: 149.05 GiB Partition: ID-1: / size: 10.21 GiB used: 5.18 GiB (50.7%) fs: ext4 dev: /dev/sda1 ID-2: /home size: 124.34 GiB used: 28.48 GiB (22.9%) fs: ext4 dev: /dev/sda3 ID-3: swap-1 size: 1.94 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 Sensors: System Temperatures: cpu: 45.0 C mobo: 35.0 C Fan Speeds (RPM): cpu: 2464 fan-3: 2467 Info: Processes: 119 Uptime: 15h 49m Memory: 1.91 GiB used: 448.7 MiB (22.9%) Shell: bash inxi: 3.0.00–
–
Your ’10hh1′ addition cracked me up! unintentional or not:)
I make only a few changes at a time in the config. Nothing like going to town on menuconfig for an hour or more just to have a nice blinking cursor in the end. If that.
–
My images are coming out at around 6.6 MB with the 4.17rc-1 release.
–
If “make menuconfig” is what you are using (and I prefer it myself), you might want to look at “make xconfig”. Xconfig has a couple extra dependencies but the format is worth checking out. I’ve just gotten very used to the prior.April 19, 2018 at 11:49 am #9425Moderator
Brian Masinick
::Thanks for this tutorial, and also thanks to anti and other contributors for their additional comments and suggestions.
It’s been quite a few years since I built my own kernel, whether on a UNIX or a Linux system, though in the nineties when I was on a UNIX development team, I’d not only compile my own kernels, I frequently built other utilities from source code too, especially text editors and desktop environment localizations.
Things are quite a bit simpler now than they were then, but with the right “cookbook”, it wasn’t too daunting then either. With the suggestions and hints provided here, anyone who can follow directions ought to be able to build their own kernel!
Once again, I appreciate the tutorial and the helpful dialog; thank you very much!
--
Brian MasinickApril 20, 2018 at 6:53 am #9466Member
sleekmason
::Thank you Masinick!
–
–
I really enjoy messing with kernels. After starting with Sidux some years back, I saw android as the new boy on the block. I didn’t realize the totality of how UN-free it all is.
Maintained a custom kernel for one of the devices for a couple of years. The steps necessary to create a kernel for android is nuts! Using sed to insert code on the fly into the ramdisk while installing the kernel-image is one example.
Long story short, after becoming disenchanted with the direction I saw android going, For me, a phone will just be a phone again. Had enough.
–
Downloaded the newest antiX at the time (17 Heather Heyer) and decided to see what was still necessary. The absolute ease of building a kernel in linux now, amazed me.
–
DKMS made things simple! Of some interest here is that I was still using antiX as my base for the android work. Never changed a thing and antiX allowed me to do all my work without issue. It “just worked”.
Now, without the worry of peoples phones blowing up on them, I can just have fun doing my own thing, and write how-to’s because I feel increasing the general knowledge of others is important for us all. Luckily for me, others here feel the same way and this section rocks!April 20, 2018 at 3:37 pm #9504Moderator
Brian Masinick
::It’s interesting that sidux was a starting place for you on your Linux journey.
I got my Linux initiation in the Fall of 1995, not long after I joined the UNIX Engineering Group during my years at Digital Equipment Corporation (1985-1998).
My UNIX initiation occurred much earlier in 1982.
AT&T UNIX System V was my first UNIX system. Slackware was my first Linux distribution. I did not start using Debian-based Linux until 2001; my first Debian distro was Libranet, which eased me into Debian. A couple of years later I started using early versions of MEPIS and sidux (somewhere in the 2004-2005 timeframe).
--
Brian MasinickApril 20, 2018 at 5:57 pm #9508Member
sleekmason
::sidux (somewhere in the 2004-2005 timeframe).
I remember your name from the sidux forums:) I bought my first computer in 95-96. Windows 95. Cheap. Somewhere around 2003-4 I found one of the linux magazines with a cd in the middle at Barnes and Noble. Centos, maybe. Downloaded a Mepis CD and used that until sidux, and now antiX. Glad you are posting here!
April 20, 2018 at 6:22 pm #9509Moderator
Brian Masinick
::Libranet, then MEPIS, sidux, and antiX have been four of the Debian distributions that I have used along with pure Debian Sid and Debian Testing.
--
Brian MasinickApril 20, 2018 at 6:23 pm #9510Moderator
Brian Masinick
April 21, 2018 at 7:21 pm #9542Member
ohh
::Just realized I made a mistake in suggesting an edit on your post referring to my above post #9384
should have been:
make -j3 deb-pkgcheers,
ohhEvery matter requires prior knowledge.
- Du Mu
The Art of WarApril 21, 2018 at 10:10 pm #9545Member
sleekmason
April 27, 2018 at 4:12 am #9733Member
sleekmason
::Moderators, Is possible to move my post above to the second post (or add it to the end of the first)? Would make this a bit more cohesive. If so, Thank you very much in advance. If not, No worries:)
May 10, 2018 at 6:29 am #10148Member
sleekmason
::Thought I would share this site: https://lwn.net/Kernel/Index/
–
You need a subscription for newer content but the archives are free. Having just discovered this myself, I think it is pretty neat:) Outstanding in fact.
–
–
In relation to the above link, here is a link to the items I have disabled from the config file. Good starting point to get your feet wet. This list may be updated in the future.
kernel configuration suggestionsMay 10, 2018 at 10:35 am #10153Moderator
Brian Masinick
-
AuthorPosts
- You must be logged in to reply to this topic.