| Author |
Message |
NickBiker

Joined: 01 Mar 2006 Posts: 155 Location: Guildford, UK
|
Posted: 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
|
|
 |
Sit Heel Speak

Joined: 30 Mar 2006 Posts: 2595 Location: downwind
|
Posted: Mon 20 Oct 2008, 12:33 Post_subject:
|
|
As of 4.1 it's been moved to /etc/modules.
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
NickBiker

Joined: 01 Mar 2006 Posts: 155 Location: Guildford, UK
|
Posted: 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
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
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
|
|
 |
NickBiker

Joined: 01 Mar 2006 Posts: 155 Location: Guildford, UK
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
|