Debian packages of the Linux-libre kernel
ice.cube at gmx.com
Fri Feb 12 17:48:42 UTC 2010
On Fri, 2010-02-12 at 11:01 -0500, Quiliro Ordóñez wrote:
> 2010/2/12 白い熊 <linux-libre_fsfla.org at sumou.com>
> ---------- Original Message -----------
> From: Quiliro Ordóñez <quiliro at gmail.com>
> Sent: Fri, 12 Feb 2010 07:29:20 -0500
> > In Ali Gunduz's site there are instrucction for making your
> own .deb. Could
> > you please make it available for all if you make one? It is
> not very
> > difficult.
> I can build a kernel fine, I'm mostly concerned about a
> standard "config", i.e. what gets built as a module etc.
> Is this what you need?
> Quiliro Ordóñez
> 593(02)340 1517 / 593(09)821 8696
> "¿Sólo cuando el último árbol esté muerto, el último río envenenado y
> el último pez atrapado nos daremos cuenta que no se puede comer
> "Only when the last tree is dead, the last river is poisoned and the
> last fish is caught will we realize that money is not edible?"
> linux-libre mailing list
> linux-libre at fsfla.org
:~$ cat /proc/version
Linux version 126.96.36.199-libre-metad (root at gnu) (gcc version 4.3.2 (Debian
4.3.2-1.1) ) #1 SMP Wed Feb 10 06:37:54 AKST 2010
i goes on a libre-kernel with a part of from Ali Gunduz's receipe + a
part of correction of mail of the libre-kernel from Damian Fossi =
update libre kernel to libre kernel to libre kernel easy.
Thanks to you, Ali Gunduz and Damian Fossi.
Join mail of Damian Fossi,
and some modifications i writes on directly, dones the file join (it's
personnal note but free as in freedom).
Have a happy free day!
-------------- next part --------------
An embedded message was scrubbed...
From: Damian Fossi <damianfossi at gmail.com>
Subject: Re: 2 error on compiling the 188.8.131.52-libre kernel on gNewSense
Date: Mon, 25 Jan 2010 21:52:33 +0000
-------------- next part --------------
How-To-compile-your-own-free-kernel-on-debian-based || last edit Fri Feb 12 2010.
Type: GNU documentation
License: gplv3 or later
Operating System : gNewSense metaD (Debian based)
Distribution: GNU / linux
Compile your free kernel on gNewSense metaD
This part is important and long (depending on the computers you have got)
How install compile your kernel on gNewSense metad :
If you are running on a fresh install or if you never made that type of operation before, you will need to install packages needed for kernel compilation. First, make sure your apt database is updated
sudo aptitude update
Install the needed packages
sudo aptitude install fakeroot kernel-package libncurses5-dev libqt3-mt-dev bzip2 wget build-essential
Go to last free kernel release
Copy the link adress of the free kernel version you want.
First go to /usr/src and get the source :
sudo wget http://www.linux-libre.fsfla.org/pub/linux-libre/releases/2.6.''-libre/linux-2.6.''-libre.tar.bz2
Uncompress the archive file
sudo tar xvjf linux-2.6.''-libre.tar.bz2
Go to the newly created directory of the uncompressed source
you have to edit a file in the kernel source before compiling
Edit on > linux-2.6.''/Documentation/lguest/Makefile
sudo gedit Documentation/lguest/Makefile
save and close
Now you can start the compilation of the last free kernel
normaly at this point you are already in /usr/src/linux2.6.''
sudo make clean mrproper
Now, you will need to have a base .config file that will control the build process. If you don't have a specific .config file, you can use the default file in the /boot directory. Just copy that into the source directory.
sudo cp /boot/config-* /usr/src
Now, you can review and change config variables. First, update your config file to the new options of the kernel source
sudo make oldconfig
and answer the configuration questions there. Enter yes for the module to be built into the kernel, m for it to be build modularly which will only load if needed and no to exclude the module. You can also enter ? to get information about the module. However, you don't have to worry too much as you will be able to revise your decisions in the next step.
sudo make xconfig
(make menuconfig is an alternative .config editing tool)
This will open an application that classifies and explains the properties and available modules you can either 'build into' the kernel, make modularly available or disable. When you are done, save it and exit.
Now, you can build your kernel. First enter
sudo make-kpkg clean
As the final command, enter
sudo fakeroot make-kpkg --initrd --append-to-version=-metad kernel_image kernel_headers kernel_source
You can change custom by metad value with anything as long it starts with - (minus sign) and has no whitespace in between. Optionally, you can add kernel_source at the end, if you want to build a source pack. You can also put CONCURRENCY_LEVEL=N (where N should be replaced by the number of CPU cores your computer has) at the beginning of the command to make the building process take advantage of multiple core systems.
The last command will take some time to complete. At the end, you will have linux-image and linux-headers (and linux-source if you chose) installation files.
go to linux-image and linux-headers files to the directory you want. Then, either go to that directory in terminal with cd command and install the two .deb packages:
sudo dpkg -i linux-image-2.6.''-metad.deb
sudo dpkg -i linux-headers-2.6.''-metad.deb
sudo dpkg -i linux-source-2.6.''-metad.deb
Or, just double-click on the two files and click on the Install Package button.
Restart and choose free-metad kernel from your GRUB.
ali gundunz http://www.aligunduz.org/articles/buildkernel.html for the compilation
damian fossi for the modification part of the free kernel source
(all my personnal notes are under gplV3 or later type of licence.)
Last modification bring the Fri Feb 12 2010.
More information about the linux-libre