[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image too large!



On Fri, 2002-02-01 at 16:20, Serge Gardien wrote:
> Hi, 
> I just  have compiled a small program using threads, and I have a
> problem when I am tring to make an image before flashing the devboard ? 
> Somebody can help me ? 
> 
> I have this message: 
> ........................................................................
> .................. 
> cramfs.img > flash1.img 
> padflashimage 0x1a0000 flash1.img 
> ****PROBLEM: image this far exceeds alignement offset - it too large! 
> make:***[fimage] Erreue 255 

Your application is too big to fit in the kernel/cramfs-partition
(there's no way of making the partition bigger without sacrificing
important stuff). There's a couple of things you can try though:

- Remove other applications.
- Try to make your smaller. Check what libraries your application is
  using and try to aviod them or try linking them statically.
- Boot from RAM instead of flash (temporarily, not really a solution).
- NFS-mount a partition (exported on your PC, not really a solution 
  either since you probably don't want to use a PC with your embedded 
  application, but it may help when testing big applications before 
  deciding to upgrade flash memory).
- Replace the 2MB flash chip with a 4MB one (requires tricky soldering).

Best regards
/Jonas