Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Sep 2014, 08:16
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Kernel Compile
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
NickBiker


Joined: 01 Mar 2006
Posts: 155
Location: Guildford, UK

PostPosted: Mon 20 Oct 2008, 10:34    Post subject:  Kernel Compile  

Hello

I am trying to recompile the Kernel.

http://www.puppylinux.com/development/compilekernel.htm

Gives details and tells me it is VITAL to copy the .configure file for puppy in folder /lib/modules.

But there is no such file here?

I am sure this is obvious once you know, but can anyone point me in the right direction?

_________________
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux
Back to top
View user's profile Send private message Visit poster's website 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Mon 20 Oct 2008, 12:33    Post subject:  

As of 4.1 it's been moved to /etc/modules.
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 20 Oct 2008, 12:38    Post subject:  

here is an instruction to recompile:
http://www.murga-linux.com/puppy/viewtopic.php?t=34186

Using a different kernelversion is more complicated, see:
http://www.murga-linux.com/puppy/viewtopic.php?t=34341

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
NickBiker


Joined: 01 Mar 2006
Posts: 155
Location: Guildford, UK

PostPosted: Mon 20 Oct 2008, 13:33    Post subject:  Kernel 4.1 Compile from Scratch - NO JOY YET!  

Hello

I am most grateful for any help - as what hair I have left I am pulling out!! There are just so many posts on how to do this, it is not too straightforward to follow.

I am running latest Puppy 4.1 official release on full HDD install. I managed to (eventually) work out how to get the devx_410.sfs to work on a full hdd installation - as the script does not do this for you Sad

I downloaded the ready-patched kernel from: http://puptrix.org/sources/kernel-2.6.25.16/
called:
Code:
linux-2.6.25.16-src-patched_squashfs_unionfs_aufs_lzma_mt.tar.gz

and extracted it to /usr/src/

I read http://www.murga-linux.com/puppy/viewtopic.php?t=34186 that you need to download lzma.458.pet to avoid problems, which I did, although I assume that since I loaded the ready-patched kernel I did not really need to do this?

I then followed instructions at: http://www.puppylinux.com/development/compilekernel.htm
i.e.
Code:
make clean
make mrproper

I then got a .config file from [url]linux-2.6.25.16-src-patched_squashfs_unionfs_aufs_lzma_mt.tar.gz[/url]and put it in /usr/src/linux-2.6.25.16/
I did a make menuconfig to check/change options
(I also did make oldconfig as this seems to be mentioned too!)
then
Code:
make bzImage


A few warnings were generated during the compile but these appeared to be mostly minor warnings on pointer types. The build takes quite some time, but I was able to poke a bottle of red wine behind my PC to get it up to room temperature...

I then made all the modules and installed these as per above instructions - no errors!

The new kernel is called bzImage and was found in /use/src/linux-2.6.25.16/arch/i386/boot

It is 22 bytes long. Arrrrrr! Either this is an amazing compression algorithm or...

For my HDD install, I was told to copy the newly compiled kernel to /boot and edit the grub loader to give me the option to boot this - which I have done.

So what have I done wrong?

Nick

_________________
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux
Back to top
View user's profile Send private message Visit poster's website 
NickBiker


Joined: 01 Mar 2006
Posts: 155
Location: Guildford, UK

PostPosted: Mon 20 Oct 2008, 13:43    Post subject: Re: Kernel 4.1 Compile from Scratch - NO JOY YET!  

NickBiker wrote:

It is 22 bytes long. Arrrrrr! Either this is an amazing compression algorithm or...

Yes - I've spotted it! That file is a LINK, the actual file is at:
Code:
/usr/src/linux-2.6.25.16/arch/x86/boot

I have now copied the 1,666k file, and it booted fine, and WOW, I now have multi core all working!
[/code]grep 'processor.*:' /proc/cpuinfo | wc -l
Code:

Gives me 4 - for 4 cores!!

Just wondered - does anyone know of a nice CPU Usage viewer for multi-core in Linux (could this be ksysguard?)??

Pleased, now for my wine!!



_________________
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 20 Oct 2008, 13:54    Post subject:  

lzma.458.pet
yes, this is needed to compress the Kernel.

You ran different steps then I did.

You should start with the existing .config.
Copy /etc/modules/DOTconfig-K2.6.25.16 to /usr/src/2.6.26.16/.config

Then run:

cd /usr/src/2.6.26.16
make oldconfig

(now you have Puppys original configuration, and could edit .config to your needs)
make
make_modules_install


Then copy bzImage to vmlinuz (if it has a correct size, around 2 MB).
And compile the aufs.ko module.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0554s ][ Queries: 11 (0.0030s) ][ GZIP on ]