I have two problems with the kernel compilation. 1. I have a small rootfs. It is too small to put all the modules there without gzipping it first. So installing it requires lots of sweating. That is why I was wondering if there is a (more/less easy) way to make the "make modules_install" command gzip the modules "on the fly". 2. I modified the sources and after compilation the string "g76f6e1f-dirty" was appended to the kernel version. It is a bit annoying because of the lack of the space at the rootfs. Is there a way to avoid this kind of a version extension?? Thanks for your help in advance.
On Thu, 07 Oct 2010 22:14:19 +0200 Grzesiek S?jka <pld at pfu.pl> wrote:> I have two problems with the kernel compilation. > > 1. I have a small rootfs. It is too small to put all the modules > there without gzipping it first. So installing it requires lots > of sweating. That is why I was wondering if there is a (more/less > easy) way to make the "make modules_install" command gzip the > modules "on the fly".Wait, does modprobe support compressed kernel modules? I've never heard of that. If you really do not want to touch the partitioning, how about symlinking some directories elsewhere? Be careful on what is needed to boot, though.> 2. I modified the sources and after compilation the string > "g76f6e1f-dirty" was appended to the kernel version. It is a bit > annoying because of the lack of the space at the rootfs. Is there > a way to avoid this kind of a version extension??Yes, it is CONFIG_LOCALVERSION_AUTO as far as I recall, disable that. -- Pekka Paalanen http://www.iki.fi/pq/
On 10/07/10 22:34, Pekka Paalanen wrote:> Yes, it is CONFIG_LOCALVERSION_AUTO as far as I recall, disable that.Where is it?? Which file??
2010/10/7 Grzesiek S?jka <pld at pfu.pl>:> I have two problems with the kernel compilation. > > 1. I have a small rootfs. It is too small to put all the modules there > without gzipping it first. So installing it requires lots of sweating. That > is why I was wondering if there is a (more/less easy) way to make the "make > modules_install" command gzip the modules "on the fly". >No idea if you can do that but here are some possible alternatives : 1) increase the size of your rootfs 2) remove modules you don't need and change from modules to builtin for features or drivers that you don't need to unload/reload 3) a quick googling showed me this patch : http://www.mail-archive.com/linux-kernel at vger.kernel.org/msg271865.html However it seems to install first then compress so if that's the case, you will need to adapt it to your need 4) set INSTALL_MOD_PATH to a prefix , compress modules , then move to /lib/modules/ LOCALVERSION_AUTO is found in : make menuconfig General Setup Automatically append version information to the version string