On Wed, Sep 12, 2012 at 1:50 AM, Luke Kenneth Casson Leighton <l...@lkcl.net> wrote: > On Tue, Sep 11, 2012 at 9:46 PM, Maciej Soltysiak <mac...@soltysiak.com> > wrote: >> Hi, >> >> Was anyone successful in getting a 3.6-rc5 kernel zImage smaller than 2MB? >> I'm trying to fit this onto SS4000-e and I've been failing desperately >> for the last couple of days. > > isn't there a parameter which allows you to select the modules that > go into an initrd? hmmm.... /etc/initramfs-tools/initramfs.conf - > modules=most I'm aiming to get the kernel under 2MB and initrd under 4MB and I have initrd under 4MB. It's just the kernel too big and I've been trying to move things out to modules or remove completely. I honestly tried to keep things to a minimum.
> also it looks like you can specify COMPRESS=xz which, assuming you've > enabled xz compression in the linux kernel, would give you a bit more > space. I've been setting LZMA, I'll try with XD then. > also are you using busybox? again, that would likely save some > space, esp. if you compiled it specially and *only* with the actual > functions you need. Busybox is enabled for initrams. For the kernel I don't think it makes any difference if I'm using busybox or util-linux to invoke gcc (arm-linux-gnueabi actually from emdebian.org), maybe that's the problem? Is there a recommended cross_compiling chain? > send a link to a file online where the list of files is, in the > initrd - it will help check what's going on here. Sure, initrd is here: http://pastebin.com/sdQhJxsn Also, .config is here: http://pastebin.com/mvnkW2DD > .... but, just for a laugh please do tell me the size of the kernel > you've got. i remember doing 2.4.24 kernels and they were only 600k. > we converted to 2.6.8 or thereabouts and that *immediately* shot up to > 900k (exactly the same config options). hilarious. not. I went down from whopping 5MB to 2.1MB I also tried to use a .config file from linux-image-3.2.0-3-iop32x_3.2.23-1_armel.deb but during make it asked for a bunch of new stuff to which I said 'N' and it's still is a big image. Regards, Maciej -- To UNSUBSCRIBE, email to debian-arm-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAMZR1YAL2xotF7EDxQ1WHNPjKQF=q++fp9_n2mcuyyhtf0j...@mail.gmail.com