Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: XIP Image size
PostPosted: Fri Oct 28, 2011 12:33 pm 
Offline

Joined: Wed Sep 06, 2006 3:06 pm
Posts: 17
I have an AT91SAM9263EK where I added an 8MB NOR Flash.
I would like to start the Linux Kernel directly from there but I have troubles with the size of the kernel image.

I configured linux kernel 2.6.38 to boot from NOR flash and built it with "make xipImage"
Building went fine, but the image size is over 16MB, whereas the vmlinux binary is only 4.3MB big.
What causes the image getting that big?


Top
 Profile  
 
 Post subject: Re: XIP Image size
PostPosted: Fri Oct 28, 2011 1:28 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Isn't the regular linux kernel image compressed? To execute in place it can't be compressed. You'd need to look more carefully to see if all the 4 to 16MB comes from that, but could easily explain half of it.

Look at the XIP binary, it should be evident if there is lots of repeating data patterns. Try ZIPing the 16MB binary and see how small it gets, as this will provide a good indicator of the entropy.


Top
 Profile  
 
 Post subject: Re: XIP Image size
PostPosted: Mon Nov 07, 2011 10:56 am 
Offline

Joined: Wed Sep 06, 2006 3:06 pm
Posts: 17
I already had a look into it and it was mostly filled up with zeroes from around the offset of 4MB to the end.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: