Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

problem with using elf2flash!!!

Altera_Forum
Honored Contributor II
1,076 Views

my vmlinux is only 1.3M Bytes 

 

when i use: 

elf2flash --base=0x0 --end=0x3fffff --reset=0x0 --input=vmlinux --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec 

 

i get the ext_flash.flash with the size of 3.6M Bytes, why the final file became so big, is the boot copier takes up 2.3M bytes?  

 

i think the boot loader is no more then 500k bytes , why the .flash file became so big?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
336 Views

 

--- Quote Start ---  

originally posted by leadensky@Aug 22 2006, 02:30 AM 

my vmlinux is only 1.3m bytes 

 

when i use: 

elf2flash --base=0x0 --end=0x3fffff --reset=0x0 --input=vmlinux --output=ext_flash.flash --boot=$sopc_kit_nios2/components/altera_nios2/boot_loader_cfi.srec 

 

i get the ext_flash.flash with the size of 3.6m bytes, why the final file became so big, is the boot copier takes up 2.3m bytes?  

 

i think the boot loader is no more then 500k bytes , why the .flash file became so big? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17753) 

--- quote end ---  

 

--- Quote End ---  

 

 

Hi, 

the .flash-File is a Ascii-Hex File. One Byte is coded in more bytes.... 

 

Marco
0 Kudos
Altera_Forum
Honored Contributor II
336 Views

 

--- Quote Start ---  

originally posted by mabcom@Aug 22 2006, 03:41 PM 

hi, 

the .flash-file is a ascii-hex file. one byte is coded in more bytes.... 

 

marco 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17754) 

--- quote end ---  

 

--- Quote End ---  

 

 

Thank you 

i have read the data in the flash, the actual playload is less than 1.4M bytes, so if i use a flash with the size of 2M, it will work with no problem when i use: nios2-flash-programmer --base=0 ext_flash.flash, with the 3.5M bytes ext_flash.flash file ?
0 Kudos
Reply