2008-05-30 09:30:32     Image size and configuration issues

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-05-30 09:30:32     Image size and configuration issues

Mads le maire (NORWAY)

Message: 56470   

 

Hi,

 

I have been playing with the BF537-STAMP configuration with vendor tag Analog devices. The "out of the box" image works fine, but the size is 4.213.215 bytes, which allmost fill the flash memory of the card without  writing a single new application.

 

Next I tried to remove some applications from the filesystem (zmodem utils, play etc) but these programs are still in the rootfilesystem after rebuilding the system. How can I remove applications? The busybox configuration can only be configured at the top level, why?

 

When using large libs as eg. QT (graphic) do I have to mount another flashdevice in the filesystem and mount it in the rootfilesystem to get the required storage?

 

When dealing with Vendor: AD and BF537-STAMP i expected that maybe the config.vendor-2.6.x file  in this vendor catalogue should be updated during make xconfig, but it seems unchanged.

QuoteReplyEditDelete

 

 

2008-05-30 11:20:26     Re: Image size and configuration issues

Robin Getz (UNITED STATES)

Message: 56474   

 

Mads:

 

Have a look at the faq:

 

https://docs.blackfin.uclinux.org/doku.php?id=faq

 

Look at the one, "image is too large"...

 

-Robin

QuoteReplyEditDelete

 

 

2008-05-30 12:12:16     Re: Image size and configuration issues

Graham Davies (UNITED STATES)

Message: 56478   

 

I faced problems similar to yours when I started working with uClinux and eventually solved them for the distribution I was using (2006 something-or-other, nobody bothered to make a note).  I got the image down to about 2.3 Mbytes by pruning the configuration.  See my summary of how configuration files can be saved between builds:

 

http://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&_forum_action=MessageReply&message_id=35902

 

Now we have had to move to 2008R1-RC8 because we could not get our SD/MMC Card to work, but there have obviously been changes to the configuration and build system so I'm having to work this out again.  One strange thing that has persisted for two years is that user/games is built unconditionally so you may want to edit user/Makefile to remove it.

 

Graham.

 

 

QuoteReplyEditDelete

 

 

2008-05-30 13:36:09     Re: Image size and configuration issues

Robin Getz (UNITED STATES)

Message: 56479   

 

Graham:

 

Although ./user/Makefile includes ./user/games unconditionally, nothing should be added to the romfs if you have not selected it. All it really does is just include the user/games/Makefile, which has:

 

dir_$(CONFIG_USER_GAMES_ADVENT4)        += advent4

dir_$(CONFIG_USER_GAMES_DUNGEON)        += dungeon

dir_$(CONFIG_USER_GAMES_RUBIK)          += rubik

dir_$(CONFIG_USER_GAMES_TAMA)           += tama

dir_$(CONFIG_USER_GAMES_XMAME)          += xmame

 

 

If those are not selected in the menuconfig, then nothing happens.

 

-Robin

QuoteReplyEditDelete

 

 

2008-05-30 14:17:36     Re: Image size and configuration issues

Mike Frysinger (UNITED STATES)

Message: 56482   

 

if you want to use external storage, you need to mount it ... no filesystem is mounted automatically for you

 

the vendor settings only get updated when you tell it to be updated via the toplevel menuconfig ... all working settings are stored in .config files in the top directory

QuoteReplyEditDelete

 

 

2008-05-30 14:39:17     Re: Image size and configuration issues

Graham Davies (UNITED STATES)

Message: 56483   

 

Ah.  That was a bit off-topic, but thanks for pointing it out.  If found that the build did not work if I got rid of the /user/games directory (trying to get my CVS operations to complete more quickly) and jumped to the conclusion that I needed to remove the games line from the Makefile in /user.

 

Graham.

 

 

QuoteReplyEditDelete

 

 

2008-05-30 15:00:46     Re: Image size and configuration issues

Mike Frysinger (UNITED STATES)

Message: 56484   

 

well, *that* conclusion is correct ... if you delete user/games/, you'll need to remove the line from user/Makefile ... but that doesnt mean all the games in user/games/ get built/installed all the time ...

Attachments

    Outcomes