For about a year now, nearly all puppy kernels have been compiled using build scripts. Barry has his own scripts which you can find at http://bkhome.org/sources (user,pass required). This kit was originally designed by Iguleder.

A limitation of Barry's way is that a full install is required. Any type of install should work with this as long as the script is run on a Linux filesystem.

This kit will download,patch (aufs and others) and compile the kernel, extract the headers, make the kernel and install it into a directory ready for manual running of dir2pet and build the kernel source sfs without manual intervention.

History

A bit over a year ago, Iguleder introduced kernel-kit. Myself and pemasu have been using it to produce kernels for Slacko, Dpup-Exprimo, Upup and Saluki ever since. We have both added our own refinements and it has evolved to the point where almost anyone can compile a kernel for Puppy.

Prerequisites

* you must be comfortable with scripts and command line usage
* a late model Puppy install (YMMV with older pups, but it may work)
* deps: gcc, git, mksquashfs
* patience

THIS KIT COMES WITH ABSOLUTELY NO WARRANTY, USE ENTIRELY AT OWN RISK
NO RESPONSIBILITY ACCEPTED. YOU HAVE BEEN WARNED

ABOUT
-----
This kit is designed to make it easy to compile a kernel for Puppy Linux.
The packages produced are compatible with Woof/Woof2.
See Barry's Blog .. bkhome.org/blog
This kit assumes you are comfortable with shell scripts and command line usage.

DEPENDENCIES
------------
This kit is designed for Puppy Linux. A late model build is
recommended, such as Wary, Racy, Slacko, Precise, Dpup-Exprimo.
Be aware that for best results you should compile in a host
distro which is compatible with the target distro.

Hi Mick,
I believe the aufs lopback patch is not needed some time now (ref 1, ref 2)
Actually XO kernels run fine without it._________________Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too

While I'm waiting for my Raspberry Pi to arrive, I'm doing some automation work and I think it would be nice to have a kernel building kit for kernel 3.2.x, since the Raspberry Pi guys maintain a tree with all the modifications required for it.

Since it's a LTS kernel (and because the next Slacko is going to use it), it's a great fit for Puppy._________________My homepageMy GitHub profile

I want to compile the kernel with a list of predefined, machine specific CFLAGS - "march=native etc, etc,(as a noob, I have a long and dangerous list)." So that every bit of performance could be squeezed out of my equipment. Is there a way to "stick" the CFLAGS and make them permanent in this kit and ideally for any compilation task? Do once and forget about it approach?

When you run ./build.sh, after the sources are downloaded, extracted and patched you are given the option to alter the configuration. It may take some time, but I recommend the first option which gives a dialog interface to configuration. Go through it fastidiously and check all the things related to your processor and what hardware you want supported. You can get a very specific kernel this way tuned exactly how you want. The configs supplied are very general to support as much hardware as possible.

For anyone interested, I have found patches for k3.7 that support f2fs. They apply cleanly. Just put them into the patches directory in the kit. Attached also is a config I used. Vary it how you want. I haven't yet tested the resulting kernel. Soon.

Apparently patches can be applied to k3.6 for f2fs, but I didn't find them. They will be around somewhere, maybe even these ones will work. Probably not on anything earlier though.

Here is the original source of the patches. I only had to edit patch 16 because it didn't know about aufs, only 1 line.

EDIT: patches and config removed, while the kernel worked fine, f2fs was failing to mount, so stick to >= 3.8x if you want f2fs file system._________________Woof Mailing List | keep the faith |

I have tried doing a kernel but it would not compile. What do I need? I have the devx, Do I need the kernel-sources.sfs as well? I got the Dot-config for kernel 3.9.11 from Barryk site along with the source sfs. I want to compile kernel 3.12.

Since this is Barryk's DOT_config do I need to do this with a full install?

Hi Oldyeller
What do you mean by "it would not compile" ? ->e.g. "Error: failed to add Aufs to the kernel sources" ?
This occurs with Kernel 3.12 since 3.12.7 for some reasons. So 3.12.6 could be compiled by you. This desired version number has to be written down in the build.conf file in line 20.
I use a local install of Puppy which was recommended elsewhere for this purpose (I use a virtual machine) and of course the latest release of woof-CE-master kernel kit. Included is a .config file for 3.12.2 which could be used for your compilation purpose. Please save your changes as .config before you exit the kernel configuration program. The compilation results in a SFS file. The PET-file you are looking forward is not generated directly. How to get this PET-file is described in detail in the Readme file.
Good luck.
Christian

Hi Oldyeller
I tested a kernel compilation with a setup I assume it is comparable to yours:
- Fluxpup with installed DEVX only,
- fresh frugal installation
- Savefile on EXT4-partition
(for sure one difference: everything is located in virtual machine).
I used the latest kernel-kit of woof-CE-master.
Two modifications as I mentioned before:
- build.conf modified so that kernel 3.12.6 can be downloaded and compiled (higher than 3.12.6 gives error)
- DOTconfig file from kernel-kit -> configs-extra for 3.12.2 used as basis.

Both files are attached. Then the compilation starts with ./build.sh and runs until "Done !". Kernel-source SFS is generated, PET for woofing builds has to be generated by dir2pet of the relevant folder which is also there (see readme).
Good luck.
Christian

Seen earlier, that kernel 3.14 is now released. There, it seems that ZRAM has been added back. Does the problem exhibited by 3.12.7+ also apply in latest kernel? Is this a continuing problem?_________________Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engineor use DogPile

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