Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-23 Thread Rogério Brito
Hi, Maciej, On Mar 23 2013, Maciej Soltysiak wrote: > > Just curious: Can you install the package advancecomp and run on that > > ramdisk the command: > > > > advdef -z -4 ramdisk.gz > > > I've different files, but here goes. Less by 127 kB: > 3385295 3254732 96% initrd.img-3.8.3-iop

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-23 Thread Maciej Soltysiak
Hi On Sat, Mar 23, 2013 at 4:47 PM, Rogério Brito wrote: > > Initrd.img/ramdisk.gz – 2425607 > > Just curious: Can you install the package advancecomp and run on that > ramdisk the command: > > advdef -z -4 ramdisk.gz > > I've different files, but here goes. Less by 127 kB: 3385295

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-23 Thread Rogério Brito
Hi. On Mar 20 2013, Chris Wilkinson wrote: > File sizes are: > > Initrd.img/ramdisk.gz – 2425607 Just curious: Can you install the package advancecomp and run on that ramdisk the command: advdef -z -4 ramdisk.gz and report back the results? Just to be extra safe, you may want to test the r

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-21 Thread Maciej Soltysiak
On Wed, Mar 20, 2013 at 10:20 PM, Chris Wilkinson wrote: > Sure. > [...] > #Reboot > Redboot> reset Thanks for describing this so well and simple. This creates the temptation to some of the modules into the kernel. Many years ago I've read that network drivers as modules can have some penalty co

RE: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-20 Thread Chris Wilkinson
ac...@soltysiak.com] Sent: Wednesday, March 20, 2013 4:34 PM To: Chris Wilkinson Cc: Arnaud Patard; Luke Kenneth Casson Leighton; debian-arm@lists.debian.org Subject: Re: Can't get a Linux 3.6-rc zImage smaller than 2MB On Wed, Mar 20, 2013 at 3:42 PM, Chris Wilkinson wrote: Excellent,

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-20 Thread Maciej Soltysiak
On Wed, Mar 20, 2013 at 3:42 PM, Chris Wilkinson wrote: > Excellent, This worked for me. > > ** ** > > File sizes are: > > Initrd.img/ramdisk.gz – 2425607 > > Vmlinuz/zImage – 1524976 > Great! Glad to have helped! Which fit nicely in the flash. I redid the flash layout to get rid of

RE: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-20 Thread Chris Wilkinson
80 Chris From: Maciej Soltysiak [mailto:mac...@soltysiak.com] Sent: Monday, March 18, 2013 4:25 PM To: Arnaud Patard; Luke Kenneth Casson Leighton Cc: Chris Wilkinson; debian-arm@lists.debian.org Subject: Re: Can't get a Linux 3.6-rc zImage smaller than 2MB On Mon, Mar 18, 2013 at 6:10

RE: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-19 Thread Chris Wilkinson
nt on? Am I understanding right? Chris -Original Message- From: Arnaud Patard (Rtp) [mailto:arnaud.pat...@rtp-net.org] Sent: Monday, March 18, 2013 1:11 PM To: Chris Wilkinson Cc: 'Maciej Soltysiak'; debian-arm@lists.debian.org Subject: Re: Can't get a Linux 3.6-rc zImage smal

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-18 Thread Maciej Soltysiak
On Mon, Mar 18, 2013 at 6:10 PM, Arnaud Patard wrote: > "Chris Wilkinson" writes: > > > Is it necessary to flash-kernel? Once /boot on HD is populated with > > the new kernel, doesn’t it finally boot from that and it doesn’t matter > what version is flashed? > > redboot is configured to read the

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-18 Thread Rtp
"Chris Wilkinson" writes: > Is it necessary to flash-kernel? Once /boot on HD is populated with > the new kernel, doesn’t it finally boot from that and it doesn’t matter what > version is flashed? redboot is configured to read the kernel from the flash, so yes, you need flash-kernel. I've not t

RE: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-18 Thread Chris Wilkinson
: debian-arm@lists.debian.org Subject: Re: Can't get a Linux 3.6-rc zImage smaller than 2MB On Sun, Mar 17, 2013 at 3:35 PM, Chris Wilkinson wrote: Congrats! Do you think that dpkg –i … on the ss4000e would upgrade the installed stock kernel to a customized one compiled by buildroot or

RE: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-17 Thread Chris Wilkinson
: Chris Wilkinson Cc: debian-arm@lists.debian.org Subject: Re: Can't get a Linux 3.6-rc zImage smaller than 2MB On Sun, Mar 17, 2013 at 3:35 PM, Chris Wilkinson wrote: Congrats! Do you think that dpkg –i … on the ss4000e would upgrade the installed stock kernel to a customized one com

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-17 Thread Maciej Soltysiak
On Sun, Mar 17, 2013 at 3:35 PM, Chris Wilkinson wrote: > Congrats! > > ** ** > > Do you think that dpkg –i … on the ss4000e would upgrade the installed > stock kernel to a customized one compiled by buildroot or make-kpkg? > Sadly, for me, dpkg -i doesn't seem to update the /boot/vmlinuz and

RE: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-17 Thread Chris Wilkinson
Subject: Re: Can't get a Linux 3.6-rc zImage smaller than 2MB Months passed and I finally made progress. I managed to compile and boot a 3.7.10 kernel on SS4000-E. I basically went through the ordeal of doing the compile on the box itself, instead of cross-compiling on an x86 VM, Took

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2013-03-16 Thread Maciej Soltysiak
Months passed and I finally made progress. I managed to compile and boot a 3.7.10 kernel on SS4000-E. I basically went through the ordeal of doing the compile on the box itself, instead of cross-compiling on an x86 VM, Took ages, but it worked. One thing I noticed is that flash-kernel refuses to

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-14 Thread Rtp
Maciej Soltysiak writes: >> the ss4000e is using redboot not uboot. You'll have to check but I think >> that redboot doesn't handle uImage format so you're about to brick >> your system. > Thanks for the warning! I see that I have in arch/arm/boot these 3 files > -rwxr-xr-x 1 root root 3459268 Se

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-14 Thread Maciej Soltysiak
> the ss4000e is using redboot not uboot. You'll have to check but I think > that redboot doesn't handle uImage format so you're about to brick > your system. Thanks for the warning! I see that I have in arch/arm/boot these 3 files -rwxr-xr-x 1 root root 3459268 Sep 14 09:33 arch/arm/boot/Image -rw

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-14 Thread Rtp
Maciej Soltysiak writes: > On Fri, Sep 14, 2012 at 1:19 PM, Eric Cooper wrote: >> On Fri, Sep 14, 2012 at 12:33:27PM +0200, Maciej Soltysiak wrote: >>> Do you mean this cross-compiler? >>> http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/ >>> >>> Th

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-14 Thread Maciej Soltysiak
On Fri, Sep 14, 2012 at 1:19 PM, Eric Cooper wrote: > On Fri, Sep 14, 2012 at 12:33:27PM +0200, Maciej Soltysiak wrote: >> Do you mean this cross-compiler? >> http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/ >> >> The lite-version of their product? >

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-14 Thread Eric Cooper
On Fri, Sep 14, 2012 at 12:33:27PM +0200, Maciej Soltysiak wrote: > Do you mean this cross-compiler? > http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/ > > The lite-version of their product? > > Looks like codesourcery is now mentor graphics... Yes

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-14 Thread Maciej Soltysiak
On Fri, Sep 14, 2012 at 3:15 AM, Eric Cooper wrote: > On Wed, Sep 12, 2012 at 04:47:42PM +0200, Maciej Soltysiak wrote: >> Also, .config is here: http://pastebin.com/mvnkW2DD > > Using this .config, and the arm-2012.03 cross-compiler from > codesourcery, I get: > Image Name: Linux-3.6.0-rc5m

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-13 Thread Eric Cooper
On Wed, Sep 12, 2012 at 04:47:42PM +0200, Maciej Soltysiak wrote: > Also, .config is here: http://pastebin.com/mvnkW2DD Using this .config, and the arm-2012.03 cross-compiler from codesourcery, I get: Image Name: Linux-3.6.0-rc5mks1+ Created: Thu Sep 13 21:13:46 2012 Image Type:

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-13 Thread Luke Kenneth Casson Leighton
On Thu, Sep 13, 2012 at 8:10 PM, martinwguy wrote: > On 12 September 2012 19:46, Luke Kenneth Casson Leighton > wrote: >>> I went down from whopping 5MB to 2.1MB >> >> i was expecting a large number but not that large. >> >>> I also tried to use a .config file from >>> linux-image-3.2.0-3-iop3

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-13 Thread martinwguy
On 12 September 2012 19:46, Luke Kenneth Casson Leighton wrote: >> I went down from whopping 5MB to 2.1MB > > i was expecting a large number but not that large. > >> I also tried to use a .config file from >> linux-image-3.2.0-3-iop32x_3.2.23-1_armel.deb >> and it's still is a big image. > > i'

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-12 Thread Aaro Koskinen
On Tue, Sep 11, 2012 at 10:46:24PM +0200, Maciej Soltysiak wrote: > Was anyone successful in getting a 3.6-rc5 kernel zImage smaller than 2MB? Just a thought, but you could also look into kexec if your bootloader has limitations for kernel size. I.e. build a very minimal kernel/initramfs that is a

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-12 Thread Wookey
+++ Maciej Soltysiak [2012-09-12 16:47 +0200]: Have you had a look at http://elinux.org/Kernel_Size_Tuning_Guide ? > (arm-linux-gnueabi actually from emdebian.org), maybe that's the problem? I wouldn't expect it to be, but I've not seen comparisons of output size with different cross-toolchains.

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-12 Thread Luke Kenneth Casson Leighton
On Wed, Sep 12, 2012 at 3:47 PM, Maciej Soltysiak wrote: > On Wed, Sep 12, 2012 at 1:50 AM, Luke Kenneth Casson Leighton > wrote: >> On Tue, Sep 11, 2012 at 9:46 PM, Maciej Soltysiak >> wrote: >>> Hi, >>> >>> Was anyone successful in getting a 3.6-rc5 kernel zImage smaller than 2MB? >>> I'm try

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-12 Thread Maciej Soltysiak
On Wed, Sep 12, 2012 at 1:50 AM, Luke Kenneth Casson Leighton wrote: > On Tue, Sep 11, 2012 at 9:46 PM, Maciej Soltysiak > 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 >> f

Re: Can't get a Linux 3.6-rc zImage smaller than 2MB

2012-09-11 Thread Luke Kenneth Casson Leighton
On Tue, Sep 11, 2012 at 9:46 PM, Maciej Soltysiak 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