You are not logged in.

#1 2007-10-16 17:53:41

spookshow
Member
From: abbotsford, bc
Registered: 2006-11-15
Posts: 95
Website

custom kernel?!?!?!

how hard is it to have a custom kernel that would have the 64g option? i've never built a custom kernel, and i was wondering if there was a way that i could do it so that everytime i upgrade the kernel with pacman it would auto rebuild it? is there a way?
i am a complete noob when it comes to building kernels.. .:\
but i learn quick.
ish.

thanks in advance

(or is there a kernel in aur or in the repos that would have that option already in it?)

i really want to see all 4gb that i have wink

edit: bios fully upgraded, and i have tried the mem=4096M in the grub line

Last edited by spookshow (2007-10-16 18:09:03)

Offline

#2 2007-10-16 18:16:52

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: custom kernel?!?!?!

Just one configuration line away.

Maybe two, at the most.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2007-10-16 19:08:51

spookshow
Member
From: abbotsford, bc
Registered: 2006-11-15
Posts: 95
Website

Re: custom kernel?!?!?!

do i just edit kconfig26 ?
and what else can i do in there?

i found this in there

CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set

Last edited by spookshow (2007-10-16 19:15:03)

Offline

#4 2007-10-16 19:19:39

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: custom kernel?!?!?!

Check out the wiki paying particular attention on where to place the make xconfig etc command. editing the kconfig26 file does not work
http://wiki.archlinux.org/index.php/Ker … n_with_ABS

In the PKGBUILD for the kernel at line 114 insert make menuconfig or make xconfig as indicated below  save the configuration and the build continues. (In xconfig or menuconfig just select the 64g mem option.)

line 114
#_kernver="2.6.23-rc9${CONFIG_LOCALVERSION}"
  _kernver="${_basekernel}${CONFIG_LOCALVERSION}"
insert ==>> make xconfig
  # load configuration

Last edited by kishd (2007-10-16 19:27:55)


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#5 2007-10-16 19:20:11

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: custom kernel?!?!?!

I'm not sure but i think you just can comment the first line and set CONFIG_HIGHMEM64G=y
(.config)

Last edited by timtux (2007-10-16 19:20:33)


http://timtux.net/ - my personal blog about almost everything

Offline

#6 2007-10-16 19:23:45

spookshow
Member
From: abbotsford, bc
Registered: 2006-11-15
Posts: 95
Website

Re: custom kernel?!?!?!

kishd wrote:

Check out the wiki paying particular attention on where to place the make xconfig etc command. editing the kconfig26 file does not work
http://wiki.archlinux.org/index.php/Ker … n_with_ABS

i have that sitting in front of me here right now, printed off, highlighter and pen a blazin.. kind of lost in the process, but i figure i can learn it. we will see....

Offline

#7 2007-10-16 19:32:58

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: custom kernel?!?!?!

Spookshow use abs at the command line as root type abs and all the packagebuilds are updated to /var/abs. The PKGBUILD for the kernel is found in /var/abs/kernels/kernel26. Copy the kernel26 directory to your home directory. Edit the PKGBUILD inserting the required make xconfig after line 115 as indicated above. run makepkg and when xconfig pops up edit as needed. run makepkg as normal user and only use root to install the package that is created.


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#8 2007-10-16 19:38:29

spookshow
Member
From: abbotsford, bc
Registered: 2006-11-15
Posts: 95
Website

Re: custom kernel?!?!?!

o0o0o, was just doing the abs part when you came in kishd. thanks. going to try it now. heh.


ok, doing it over ssh isn't working for me, i will wait till i get home from work and start from scratch on this.
i also want to add the realtime patch for this.. is that hard to do?


and does someone want to add me to aim (morkuma) so that i can ask questions if needed?

Last edited by spookshow (2007-10-16 20:22:28)

Offline

#9 2007-10-17 04:04:23

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: custom kernel?!?!?!

Applying patches should not be too hard to do though they sometimes break the config. If you look at the PKGBUILD of the arch kernel  you can modify it to apply your custom patches. However if you use the abs system to build the kernel the name of the kernel stays the same. If you look at the post below kano wrote a nice script to rename the custom kernel so that you do not overwrite the default kernel.

http://bbs.archlinux.org/viewtopic.php?id=34815


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#10 2007-10-17 04:17:53

spookshow
Member
From: abbotsford, bc
Registered: 2006-11-15
Posts: 95
Website

Re: custom kernel?!?!?!

sweet. i'm using all 4gb of my ram now big_smile

Offline

#11 2007-10-17 06:17:08

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: custom kernel?!?!?!

Once upon a time, there was a tool called srcpac. It's exactly what you're looking for, and it still exists, it's just the bbs has long forgotten about it sad

Install srcpac and check it out though. Basically it's a wrapper for pacman (so you always want to run srcpac -Syu instead of pacman -Syu) that will use regex and other magic tricks to modify packages that you want custom, and rebuild them before it upgrades them. Definitely worth a look.


The suggestion box only accepts patches.

Offline

#12 2007-10-17 12:29:13

spookshow
Member
From: abbotsford, bc
Registered: 2006-11-15
Posts: 95
Website

Re: custom kernel?!?!?!

i will check it out, thanks

Offline

#13 2007-10-17 17:39:13

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: custom kernel?!?!?!

spookshow, Now that you have the core kernel setup why not have a look at this thread (http://bbs.archlinux.org/viewtopic.php?id=7154) and download and build the testing kernel?


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#14 2007-10-17 17:53:15

spookshow
Member
From: abbotsford, bc
Registered: 2006-11-15
Posts: 95
Website

Re: custom kernel?!?!?!

definitely. i have been meaning to spend some time playing with custom builds and such, i have an extra computer i can boot up and play with, thinking i will jump into the wide world of customizing a bit more, just need to actually learn what i'm doing. heh.
all i really needed was to get the ball rolling so i think that this kernel build might have been the proper place to start... everywhere says not to do a kernel as your first, but i did, and successfully, so i'm thinking i'm on the right track, and arch seems to make it nice and easy.
thanks for all the help guys, i'm sure i will be breaking stuff in the near future and will need some help wink

Offline

#15 2007-10-17 18:46:55

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: custom kernel?!?!?!

Don't get overconfident wink. Adding stuff to your kernel is almost never a problem, it's stripping out stuff that can be a b*tch smile. I can attest tongue.

Congrats on the successful build though.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#16 2007-10-17 19:30:41

spookshow
Member
From: abbotsford, bc
Registered: 2006-11-15
Posts: 95
Website

Re: custom kernel?!?!?!

HAHA, yeah, i know i'm a noob at it, which is why i'm going to use the old computer i don't care about wink
amd 2500+ with 1gb of ram and a 7600 video card and whatever i want for hdd's, i have lots wink
so yeah... nothing i'm worried about, and it is just sitting in the off position anyway.

Offline

Board footer

Powered by FluxBB