Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-28-2013, 08:18 PM   #1
Bedrock Linux Advocate
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 212

Rep: Reputation: 64
How to add features to a kernel, what steps and why these steps are taken.

currently in my crunchbang [debian], i have the libre kernel from the [ deb freesh main ] freesh repo, thnx to the fsfla guys.

but as it comes out of the repo, there's no support for either virtualbox, nor remastersys.

ok, so fine, i understand i will thus likely need to get the source of the libre kernel, and add the necessary options for these to be compiled in.

... on the general concept, i get it. but in practice, i'm lost in dense fog.

could someone take my hand and show me how this is achieved?

i remember a long while ago following other walkthroughs, of looking at a text file config, and other times (like when installing gentoo) doing it through menus...

if i can just paste a few lines into the config and run whatever make whatever, then that's great...
but um...
as i say...
i dont really know what, where, how and why.
the last two there [how and why] are what i most want to walk away from this with having a clear idea of. fair enough if i get my kernel working and able to do virtualbox and run remastersys [fed a fish], but what i really want is to know enough of what i'm doing for next time i encounter something i want to add to a kernel [know how to fish].

many times, i've taken stabs at kernel meddling, and it has never gone well, often resulting in many many hours reading documentation and tutorials that numb the brain with apparent irrelevancies, and then i end up giving up, and not returning to try again for months... so this time i thought i'd ask direct, to see if i can get standing on my own two legs when it comes to simply adding a couple features to a kernel.

i understand there's now a way one can extract the config from an existing kernel, right? so i could just take that, and paste in what i need... is that right? so how's all this done?

massive thanks for any help clearing up the fog.

- P.S.
-- debian remaster sys needs "squashfs-modules for your kernel and either aufs-modules or unionfs-modules before you install remastersys".
-- "The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing '/etc/init.d/vboxdrv setup' as root. If it is available in your distribution you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary." - says the error message that pops up when attempting to launch a virtual machine in virtualbox. ... which i'm sure i tried a while ago.

Last edited by Siljrath; 03-28-2013 at 08:26 PM. Reason: ps
Old 03-30-2013, 08:53 AM   #2
Senior Member
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,436

Rep: Reputation: 275Reputation: 275Reputation: 275
currently in my crunchbang [debian], i have the libre kernel from the [ deb freesh main ] freesh repo, thnx to the fsfla guys.
The Debian kernel images are already blob-free.
The non-free blobs are in the firmware-linux-nonfree package (in the non-free repo).

No need to take it from external sources (just don't install the firmware-linux-nonfree package if you wish to keep it "libre").

Install the debian one from the official debian repos (linux-image-*) and everything will work as expected again:

#apt-get install linux-image-$(uname -r)
(and boot your debian kernel)


*Installing Virtualbox:
#apt-get install virtualbox (reboot or load your module to use it)

*Installing Remastersys (not available in wheezy):
I setup a signed repo for wheezy now:

To add my repo key as root:

wget -O - | apt-key add -

To add the repo to /etc/apt/sources.list, add these lines:
deb wheezy main
deb-src wheezy main

Now you can apt-get remastersys, remastersys-gui and the yad packages instead of manually downloading them.

The newest package with the updated installer is only on the repo right now. If testing goes well, this will be the release.

Last edited by jens; 03-30-2013 at 11:12 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What steps do I take to add Audacity to Ubuntu Linux Steve53 Ubuntu 3 12-22-2009 08:55 AM
LXer: Shuttleworth steps down as Ubuntu 10.04 alpha steps up LXer Syndicated Linux News 0 12-18-2009 09:50 AM
Less steps to add someone to Ignore list? Mega Man X LQ Suggestions & Feedback 3 02-28-2007 10:13 AM
Steps to add second NIC to RH soutTech Linux - Hardware 1 10-06-2006 10:07 PM
RHEL 3: Steps of expanding file system (add new SCSI disks) to existing SW RAID & LVM atman1974 Linux - General 2 01-12-2006 09:49 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration