cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dborkma
Visitor
Visitor
3,920 Views
Registered: ‎12-19-2011

data2mem with elf file: system.bit and download.bit have the same size

Jump to solution

Hi all,

 

I use the following command for my ML605 Board to produce a download.bit file with the Linux kernel ELF:

 

data2mem -bm implementation/system_bd -p xc6vlx240tff1156-1 -bt implementation/system.bit  -bd /home/bordanie/edk/simpleImage.ml605_blubb.elf tag microblaze_0  -o b implementation/download.bit

 

Afterwards, the system.bit and download.bit have the same file size (xps version: 12.3). This is clearly wrong since the download.bit must contain the elf and the system.bit.

 

System.bit: 8.8 MB, Kernel.elf: 39.9 MB, Download.bit: 8.8 MB

 

What did I do wrong?

 

All files are here: https://github.com/borkmann/xilinx-ml605

 

(Note: the Kernel ELF works fine when uploading first the system.bit and later the elf to the board, but I need a download.bit for the systemace. The system also has a BRAM where I used the kernel ELF for initialization in xps, updating the bitstream worked without error messages, but as mentioned ... both have the same size!)

 

Thanks for help,

Daniel

 

P.s.: the log says:

 

... (INFO messages)

 

Computing clock values...

Performing IP level DRCs on properties...

Running DRC Tcl procedures for OPTION IPLEVEL_DRC_PROC...
Address Map for Processor microblaze_0
(0000000000-0x07ffffff) DDR3_SDRAM mb_plb
(0000000000-0x07ffffff) DDR3_SDRAM microblaze_0_DXCL
(0000000000-0x07ffffff) DDR3_SDRAM microblaze_0_IXCL
(0x08000000-0x0800ffff) xps_bram_if_cntlr_0 mb_plb
(0x40010000-0x4001ffff) dlmb_cntlr dlmb
(0x40010000-0x4001ffff) ilmb_cntlr ilmb
(0x81000000-0x8100ffff) Ethernet_MAC mb_plb
(0x81400000-0x8140ffff) Push_Buttons_5Bit mb_plb
(0x81420000-0x8142ffff) LEDs_Positions mb_plb
(0x81440000-0x8144ffff) LEDs_8Bit mb_plb
(0x81460000-0x8146ffff) DIP_Switches_8Bit mb_plb
(0x81600000-0x8160ffff) IIC_SFP mb_plb
(0x81620000-0x8162ffff) IIC_FMC_LPC mb_plb
(0x81640000-0x8164ffff) IIC_EEPROM mb_plb
(0x81660000-0x8166ffff) IIC_DVI mb_plb
(0x81800000-0x8180ffff) xps_intc_0 mb_plb
(0x81818000-0x818180ff) xps_timer_0 mb_plb
(0x83600000-0x8360ffff) SysACE_CompactFlash mb_plb
(0x84000000-0x8400ffff) RS232_Uart_1 mb_plb
(0x84400000-0x8440ffff) mdm_0 mb_plb

 

... (INFO messages)

 

Checking platform address map ...

Initializing Memory...
Running Data2Mem with the following command:
data2mem -bm implementation/system_bd -p xc6vlx240tff1156-1 -bt
implementation/system.bit -bd simpleImage.ml605_blubb.elf tag microblaze_0 -o
b implementation/download.bit
Memory Initialization completed successfully.

0 Kudos
1 Solution

Accepted Solutions
robn
Moderator
Moderator
4,960 Views
Registered: ‎11-10-2010
A bitstream contains a "blueprint" that descripes how the *entire* FPGA will be programmed. This includes data that describes parts of the device that aren't used for your design; these unused parts are still saved as "unplaced", or "unrouted", but they still have to exist.

Basically, this translates into a single size bitstream for a particular device, no matter how full it is! :-)

You could have some HDL that blinks a single LED, or you could have 8 Microblazes running all sorts of RTOS-es; the bitstream for both these designs will remain the same size.

View solution in original post

0 Kudos
2 Replies
robn
Moderator
Moderator
4,961 Views
Registered: ‎11-10-2010
A bitstream contains a "blueprint" that descripes how the *entire* FPGA will be programmed. This includes data that describes parts of the device that aren't used for your design; these unused parts are still saved as "unplaced", or "unrouted", but they still have to exist.

Basically, this translates into a single size bitstream for a particular device, no matter how full it is! :-)

You could have some HDL that blinks a single LED, or you could have 8 Microblazes running all sorts of RTOS-es; the bitstream for both these designs will remain the same size.

View solution in original post

0 Kudos
tibacou
Explorer
Explorer
3,312 Views
Registered: ‎02-17-2013

Hey

I search a kind of programm my spartan 6 I have a file bitsream and application in c language I want programme the  spartan 6 's flash. Idon't know hpw I can do with the tools of Xilinx of 14.4 or 14.2. I want load the files .bit and .elf and the system is standalon. When the supply cut the system can lauch the .bit and .elf
Do you can help me ?  
Best Regards. 
0 Kudos