You are not logged in.

#1 2006-07-03 19:51:52

eduac
Member
Registered: 2006-03-17
Posts: 123

custom kernel tutorial

hi all,


Im a arch newbie, and i want to create a custom kernel to turn on the traffic shaping. Is there some tutorial about it?


Arch - newbie

Offline

#2 2006-07-03 20:14:41

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: custom kernel tutorial

it is not advised for newbies to play with kernel, but hey, how else can you learn smile
anyway u have many kernel related wiki entries, you can't achieve this without reading at least wiki stuff
http://wiki.archlinux.org/index.php/Spe … ext=Search
http://wiki.archlinux.org/index.php/Cus … n_with_ABS

Offline

#3 2006-07-04 11:49:11

eduac
Member
Registered: 2006-03-17
Posts: 123

Re: custom kernel tutorial

Thx _Gandalf_

but in this link (http://wiki.archlinux.org/index.php/Ker … n_with_ABS) it is too complex to understand...i cant understand how that works to compile the kernel with ABS method. I must to create a file called PKGBUILD? and after that?


Arch - newbie

Offline

#4 2006-07-04 12:18:14

eduac
Member
Registered: 2006-03-17
Posts: 123

Re: custom kernel tutorial

when he said (    *  Install your new pkg as normal.  ) to install a custom kernel with ABS,
              what the command i must have to type? pacman -A PKGBUILD.custom_kernel??


Arch - newbie

Offline

#5 2006-07-04 12:42:05

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: custom kernel tutorial

The PKGBUILD will create a file called kernel26-some numbers.pkg.tar.gz, so you have to type

pacman -A kernel26-some numbers.pkg.tar.gz

hightower[/i]

Offline

#6 2006-07-04 16:12:31

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: custom kernel tutorial

eduac wrote:

when he said (    *  Install your new pkg as normal.  ) to install a custom kernel with ABS,
              what the command i must have to type? pacman -A PKGBUILD.custom_kernel??

If you are unfamiliar with the Arch Build System, it is perhaps wise to check the ABS wiki first: http://wiki.archlinux.org/index.php/ABS

The kernel is built like a normal package, although the PKGBUILD is somewhat complex. Basically, you are supposed to grab that long script from http://wiki.archlinux.org/index.php/Cus … n_with_ABS and save it as PKGBUILD to a directory where you are going to build the kernel. Edit the PKGBUILD so that 'pkgver' matches the kernel version you are building and uncomment the configuration method you prefer (menuconfig/xconfig/gconfig). I assume you are not adding any patches, it makes things simpler. Read the wiki page about other possible options to change.

Then, run makepkg. You get to configure the kernel to your liking. When you're done, the kernel compilation starts. Grab some coffee.

If the compilation was successful, there should be a file named kernel26*.pkg.tar.gz in the build directory. This is the package you want to install with pacman (pacman -A kernel26*.pkg.tar.gz).

Do not forget to update your bootloader config after you have installed the new kernel. If you are using lilo, remember to run lilo afterwards.

Offline

#7 2006-07-04 16:17:38

eduac
Member
Registered: 2006-03-17
Posts: 123

Re: custom kernel tutorial

i follow the steps that you told me, but i this error:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Arch - newbie

Offline

#8 2006-07-04 18:54:32

eduac
Member
Registered: 2006-03-17
Posts: 123

Re: custom kernel tutorial

its possible to make a custom kernel based on the default installation kernel?


Arch - newbie

Offline

#9 2006-07-04 19:49:52

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: custom kernel tutorial

If the default kernel is installed, you can find the config in /usr/src/linux-*-ARCH/.config

That file can so be put in the folder with the kernel sources in. When you run make menuconfig/xconfig/gconfig, the default settings will be arch's. But I dunno if an initrd then will be required to boot your custom kernel too... And when thinking of initrd, I think the module you want can be included in the initrd if you don't want to compile your own kernel.

Offline

#10 2006-07-05 12:53:14

eduac
Member
Registered: 2006-03-17
Posts: 123

Re: custom kernel tutorial

i got this error on the boot time:

No support for INET on this system


Arch - newbie

Offline

Board footer

Powered by FluxBB