Analog.com Analog Dialogue Wiki English
Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Site
  • User
  • Site
  • Search
  • User
EngineerZone
EngineerZone
  • Log in
  • Site
  • Search
  • Log in
  • Home
  • Blogs ⌵
    • EngineerZone Spotlight
    • The Engineering Mind
  • Browse ⌵
    • All Groups
    • All Members
  • Support ⌵
    • 3D ToF Depth Sensing
    • Amplifiers
    • Analog Microcontrollers
    • Audio
    • Clock and Timing
    • Data Converters
    • Design Tools and Calculators
    • Direct Digital Synthesis (DDS)
    • Embedded Vision Sensing
    • Energy Monitoring and Metering
    • FPGA Reference Designs
    • Industrial Ethernet
    • Interface and Isolation
    • Low Power RF Transceivers
    • MEMS Inertial Sensors
    • Motor Control Hardware Platforms
    • Optical Sensing
    • Power By Linear
    • Processors and DSP
    • Reference Circuits
    • RF and Microwave
    • Switches/Multiplexers
    • Temperature Sensors
    • Video
    • Wide Band RF Transceivers
    • Wireless Sensor Networks Reference Library
  • My EZ
  • More
  • Cancel
  • 主页
  • 浏览 ⌵
    • 收件箱
    • 个人设置
    • 会员
    • 专区列表
  • 论坛专区 ⌵
    • 放大器专区
    • 精密转换器专区
    • 音频专区
    • ADE电能计量专区
    • MEMS和传感器专区
    • 接口和隔离专区
    • Power 中文专区
    • ADUC微处理器专区
    • 锁相环专区
    • 开关和多路复用器专区
    • 温度传感器
    • 基准电压源专区
    • 资源库
    • 论坛使用指南
    • 技术支持参考库
    • 在线研讨会
    • 论坛社群活动
    • 论坛激励活动
  • More
  • Cancel
Linux Distribution for Blackfin
  • Processors and DSP
  • Software and Development Tools
  • Linux Distribution for Blackfin
  • More
  • Cancel
Linux Distribution for Blackfin
Documents 2008-08-06 08:19:54     ELF SIZE
  • Q&A
  • Discussions
  • Documents
  • File Uploads
  • Video/Images
  • Sub-Groups
  • Members
  • Tags
  • Reports
  • Managers
  • More
  • Cancel
  • New
Linux Distribution for Blackfin requires membership for participation - click to join
  • Documents
  • 2005-06-18 08:54:21     how load and compile the uClinux kernel
  • 2007-04-03 05:21:47     SPI eeprom write read
  • 2007-06-05 06:05:45     How to load Linux from JFFS2/NAND flash
  • 2011-10-18 00:59:25     Attention: help forums are moving to the Analog Devices' EngineerZone Since Oct.24
  • 2013R1 Linux release for Blackfin
  • AD5700/AD5700-1 RXD Activity After HART Carrier Off
  • DAS U-BOOT FOR BLACKFIN BUGS ARCHIVE
  • Development of the Blackfin Linux Projects is moved to sourceforge.net since Jul. 20, 2013.
  • FAQ: Demo the video capability on BF609
  • FAQ: Does ADI u-boot support BF70x processors?
  • FAQ: GDB commands for newbie.
  • FAQ: Getting Started with SDP-B using GCC Toolchain
  • FAQ: How do I re-use projects built in VDSP in a GCC Bare metal environment?
  • FAQ: How to make u-boot to do somthing automatically after booting
  • FAQ: Moving to a newer Blacinfin Linux release version
  • FAQ: Why I get compile errors with the default ADI release
  • GNU TOOLCHAIN FOR BLACKFIN BUGS ARCHIVE
  • GNU TOOLCHAIN FOR BLACKFIN SUPPORT COMMUNITY
  • How can I flash the uImage into Flash and boot from it?
  • How to autorun applications in uClinux
  • I want to use the second core of Blackfin in Linux to boost the performance, is there a quick guide?
  • LINUX DISTRIBUTION FOR BLACKFIN SUPPORT COMMUNITY
  • +Parent Document for U-Boot Bug Archive
  • -Parent Document for U-Boot Bug Forum Archive
    • 2008-03-04 06:39:14     Big problem with bads block of Nand flash
    • 2008-05-23 10:14:01     BF548 EZKIT u-boot fails after saveenv/reset
    • 2008-05-27 10:12:00     Problem with booting uboot over UART on BF527 Ezkit
    • 2008-06-21 07:54:44     u-boot size
    • 2008-07-17 06:41:24     sureshkumar
    • 2008-07-17 11:49:06     [U-Boot On Custom Board] Flash Problem
    • 2008-07-19 12:57:30     difference between a uboot standalone application and bare metal standalone application
    • 2008-08-06 08:19:54     ELF SIZE
    • 2008-08-07 06:03:44     data transfer
    • 2008-09-19 14:20:31     u-boot 1.1.6, bf561, custom board and spi flash
  • +Parent for all content moved from GNU Archive
  • Re: bf537 SPI Bus: To use Kernel, Userspace, or Bitbang control
  • TAGS LIST: Interface and Isolation
  • The 2013R1 Linux release for Blackfin
  • The development of the Blackfin Linux Projects is moved to sourceforge.net since Jul. 20, 2013.
  • Use gdbproxy to debug kernel
  • Use the ADI test scripts to auto config and build a target for a set of function
  • what does a successful "loading u-boot over uart" look like?
  • Where can I get Linux Blackfin documents?
  • [#3812] svn head u-boot build fails initcode.c on older parts
  • [#5809] gcc/g++ test on trunk head regression compared with testing on 09r1.1
  • [#5825] gdb: symbols cannot map to correct source file
  • [#5826] gdb.cp/userdef.exp fails to load executable's loadmap in fdpic testing
  • [#5827] gcc.dg/trampoline-1.c test on hardware fdpic fails on bf527 but pass on bf548
  • [#5828] libstdc++-4.3 21_strings/basic_string/capacity/char/18654.cc test on fdpic would fail
  • [#5842] gdb.base/sigall.exp would fail when debug through serial port 1
  • [#5845] gdb.gdbtk/c_variable.exp fails to be tested through /dev/ttyBF1
  • [#5858] gcc.c-torture/execute/memset-2.c regression now
  • [#5880] ldr-utils build fails
  • [#5886] bfin-elf-libstdc++-4.3 has two regression case compared with libstdc++-4.1
  • [#5887] bfin-uclinux-libstdc++-4.3 ext/headers.cc regress
  • [#5888] bfin-uclinux-libmudflap-4.3.sum pass40-frag.c output pattern test regress
  • [#5889] toolchain-regtest -r (test compare) option has multiple issues
  • [#5890] toolchain-regtest does not handle unknown args very well
  • [#5891] trunk head gdbproxy can't find and open urjtag device
  • [#5892] bfin-uclinux-libstdc++-4.3 23_containers/set/modifiers/16728.cc fail sometimes
  • [#5895] prepare_target_solibs in toolchain-regtest fail to check the libs
  • [#5922] gcc/g++ testcase regression in simulator test for Unhandled instruction
  • [#5928] gas has problems with local labels in LOOP instructions
  • [#5935] toolchain-regtest can't find the toolchain to be tested now
  • [#5938] toolchain-regtest aborts when previous results are missing
  • [#5953] test libmudflap fails for mfconfig.exp.in missing
  • [#5962] mcpu doesn't get passed in testing linux-uclibc toolchain
  • [#5965] elf-simulator test cases regress for program stopped with signal 11
  • [#5966] build sim binutils fails now
  • [#5970] Build oprofile failed at bfd library after toolchain upgrade from 3801 to 3852
  • [#5974] CPLB fault or SIGABRT when throwing&catching C++ exception in static FDPIC ELF
  • [#5980] trunk toolchain cannot find -lbffastfp with -mfast-fp
  • [#5981] gas tests have regressions due to SHIFT->LSHIFT change
  • [#5989] build toolchain fails at binutils-2.17/sim/bfin
  • [#6018] gcc-4.3 ICEs with {interrupt,exception,nmi}_handler function attributes in copyprop_hardreg_forward_1, at regrename.c:1787
  • [#6030] test bfin-elf via simulator, it stops in gdb.gdbtk/c_variable.exp with case "stop in subroutine1"
  • [#7702] GDB fails to find prologue
  • [#7806] gdb test regression after using buildroot as target os
  • [DOC] Configuring Qt Creator as SDK for uClinux

2008-08-06 08:19:54     ELF SIZE

2008-08-06 08:19:54     ELF SIZE

Pranay Upadhyay (INDIA)

Message: 60035   

Hello sir,

   The size of the elf  file is 3410,446 bytes, which is generated by the bfin-elf-gcc.The problem I am facing that there is not too much flash memory size in my board.The flash memory size is 1 megabits. Can we reduce the size of elf file which suit in my application? Please guide me.

-Regards

Pranay

QuoteReplyEditDelete

2008-08-06 12:39:58     Re: ELF SIZE

Robin Getz (UNITED STATES)

Message: 60047   

Pranay:

did you try strip? To find out what is consuming the space - "bfin-elf-readelf -S file_name"

-Robin

QuoteReplyEditDelete

2008-08-07 01:26:19     Re: ELF SIZE

Pranay Upadhyay (INDIA)

Message: 60065   

Hello Robin sir,

   Thanks, I tried from this command I found that sdram0 is taking more space 32a040   ,because in the file bf561m.ld I write the memory allocation for the sdram, like

MEMORY

{

MEM_SDRAM0(wx) : ORIGIN = 0x0000c400, LENGTH = 0x7FF3C00  /*ADDED BY PRANAY*/

  MEM_L1_CODE : ORIGIN = 0xFFA00000, LENGTH = 0x4000

  MEM_L1_CODE_CACHE : ORIGIN = 0xFFA10000, LENGTH = 0x4000

  MEM_L1_SCRATCH : ORIGIN = 0xFFB00000, LENGTH = 0x1000

  MEM_L1_DATA_B : ORIGIN = 0xFF900000, LENGTH = 0x8000

  MEM_L1_DATA_A : ORIGIN = 0xFF800000, LENGTH = 0x8000

  B_MEM_L1_CODE : ORIGIN = 0xFF600000, LENGTH = 0x4000

  B_MEM_L1_CODE_CACHE : ORIGIN = 0xFF610000, LENGTH = 0x4000

  B_MEM_L1_SCRATCH : ORIGIN = 0xFF700000, LENGTH = 0x1000

  B_MEM_L1_DATA_B : ORIGIN = 0xFF500000, LENGTH = 0x8000

  B_MEM_L1_DATA_A : ORIGIN = 0xFF400000, LENGTH = 0x8000

  B_MEM_L1_STACK : ORIGIN = 0xFF501000, LENGTH = 0x8000  /* ADDED BY PRANAY*/

  MEM_L2 : ORIGIN = 0xFEB00000, LENGTH = 0x20000

  MEM_L2_SHARED : ORIGIN = 0xFEB20000, LENGTH = 0xC000  /* ADDED BY PRANAY*/

}

The memory map for the elf file for sdram is like this like this

[Nr] Name              Type            Addr                     Off                        Size       ES    Flg Lk Inf Al

  [ 0]                   NULL            00000000            000000            000000           00        0   0  0

  [ 1] .l2               PROGBITS        feb00000       32b000           00023c          00  AX  0   0  4

  [ 2] .l2_shared        PROGBITS  feb20000     32c000          000004          00  WA  0   0  4

  [ 3] .init             PROGBITS        ffa00000       330000          000012         00  AX  0   0  1

  [ 4] .b.text           PROGBITS        ff600000     32e000          000118           00  AX  0   0  2

  [ 5] .text             PROGBITS        ffa00014      330014            001ddc           00  AX  0   0  4

  [ 6] .fini             PROGBITS        ffa01df0       331df0            00000e           00  AX  0   0  1

  [ 7] .rodata           PROGBITS    f800000      32f000             000008           00   A  0   0  4

  [ 8] .eh_frame         PROGBITS ff800008    32f008            000004          00   A  0   0  4

  [ 9] .ctors            PROGBITS     ff80000c     32f00c             000008        00  WA  0   0  4

  [10] .dtors            PROGBITS   ff800014     32f014           000008          00  WA  0   0  4

  [11] .jcr              PROGBITS     ff80001c      32f01c            000004           00  WA  0   0  4

  [12] .b.data           PROGBITS  ff400000    32d000           000004           00  WA  0   0  4

  [13] .data             PROGBITS    ff800020    32f020             000824           00  WA  0   0  4

  [14] .SDRAM0           PROGBITS 0000c400     000400      32a040           00  WA  0   0  4

  [15] .b.bss            PROGBITS   ff400004        32d004            000004           00  WA  0   0  4

  [16] .bss              NOBITS          ff800844       32f844               00006c            00  WA  0   0  4

  [17] .comment          PROGBITS 00000000     331dfe             0002b2            00      0   0  1

  [18] .debug_aranges    PROGBITS 00000000     3320b0              0002b8         00      0   0  8

  [19] .debug_pubnames   PROGBITS  00000000         332368          000651          00      0   0  1

  [20] .debug_info       PROGBITS        00000000           3329b9           0078f0             00      0   0  1

  [21] .debug_abbrev     PROGBITS        00000000             33a2a9      001675             00      0   0  1

  [22] .debug_line       PROGBITS        00000000           33b91e         0017f5                 00      0   0  1

  [23] .debug_frame      PROGBITS        00000000            33d114          00062c            00      0   0  4

  [24] .debug_str        PROGBITS        00000000           33d740         000b8b                00      0   0  1

  [25] .debug_loc        PROGBITS        00000000           33e2cb         001b03               00      0   0  1

  [26] .debug_ranges     PROGBITS        00000000           33fdce          000088            00      0   0  1

  [27] .shstrtab         STRTAB          00000000             33fe56           0000f9                  00      0   0  1

  [28] .symtab           SYMTAB          00000000           340400          000aa0                  10     29  76  4

  [29] .strtab           STRTAB          00000000          340ea0          000bb2                00      0   0  1

 

           Can we treduce the size of elf file.

-Regards

Pranay

QuoteReplyEditDelete

2008-08-08 10:59:08     Re: ELF SIZE

Mike Frysinger (UNITED STATES)

Message: 60176   

the tools do what your code tells it to.  you cant just create large buffers and then expect the tools to magically shrink things.

if the data going into SDRAM0 takes up 0x32a040 bytes, and that is too much, then you need to go through your code and shrink things yourself.

  • Share
  • History
  • More
  • Cancel
Comments
Anonymous
Related
 
社交网络
快速链接
  • 关于ADI
  • Partners
  • 模拟对话
  • 职业
  • 联系我们
  • 投资信息
  • 新闻中心
  • 质量和可靠性
  • 办事处与代理商
  • Analog Garage
语言
  • English
  • 简体中文
  • 日本語
  • Руccкий
电子快讯

欲获得最新ADI产品、设计工具、培训与活动的相关新闻与文章,请从我们的在线快讯中选出您感兴趣的产品类别,每月或每季度都会发送至您的收件箱。

订阅
Switch to mobile view
Analog Logo
© 1995 - 2021 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2021 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • 网站地图
  • 隐私和保密政策
  • 隐私设置
  • 使用条款
 
Social
Quick Links
  • About ADI
  • Partners
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Analog Garage
Languages
  • English
  • 简体中文
  • 日本語
  • Руccкий
Newsletters

Interested in the latest news and articles about ADI products, design tools, training and events? Choose from one of our 12 newsletters that match your product area of interest, delivered monthly or quarterly to your inbox.

Sign Up
Switch to mobile view
Analog Logo
© 1995 - 2021 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2021 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • Sitemap
  • Privacy & Security
  • Privacy Settings
  • Terms of use
EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.