Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

problem with using elf2flash!!!

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?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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 ?