Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 讨论

Cyclone V : Flashing binaries to mmc

Altera_Forum
名誉分销商 II
1,831 次查看

Dear All, I am new to Altera Cyclone V. As per the altera website , i downloaded and installed EDS. I followed the instruction for compiling the preloader in the EDS user guide. After compilation the "preloader-mkpimage.bin" got created. The size of the binary is 256KB. But in Cyclone V device handbook(Booting and configuration chapter), it is mentioned that the preloader binary size should be less than 64KB. I directly flashed the preloader-mkpimage.bin to SD card without giving the file to the mkpimage tool.I flashed the preloader to SD card using the following command:dd if=preloader-mkpimage.bin of=/dev/sdc.I got the following commands in the terminal:U-Boot SPL 2012.10 (May 25 2013 - 15:21:53)SDRAM : Initializing MMR registersSDRAM : Calibrationg PHYSEQ.C: Preparing to start memory calibrationSEQ.C: CALIBRATION PASSEDDESIGNWARE SD/MMC: 0spl: No MBR signature is found### ERROR# ## Please RESET the board# ##I didn't partition my mmc sd card. In cyclone V device handbook it is mentioned that A2 partition needs to be created. Anyone please tell me the procedure /commands to partition the mmc card and flashing preloader, uboot and uImage to mmc card.Thanks & Regards,Sowmya

0 项奖励
3 回复数
Altera_Forum
名誉分销商 II
810 次查看

I'm having this same issue right now trying to make the preloader image from the binary. Have you found out why the preloader-mkpimage.bin file is so large (mine is 256 KB as well)? I am getting the same outputs when trying to run the binary file too.

0 项奖励
Altera_Forum
名誉分销商 II
810 次查看

Hi Zack, 

Actual preloader binary is 64KB size. They are generating 4 copies of preloader binary in a single binary. so the size is 256KB. The 256KB image is stored in boot device. So if the first image is corrupted, the boot rom will take the next 64KB and copy it to OCRAM. 

 

Thanks & Regards, 

Sowmya
0 项奖励
Altera_Forum
名誉分销商 II
810 次查看

Hey Sowmya, 

So I guess the problem is the format of the SD card. Have you been able to format yours correctly and get past the original error above?  

 

On a side note, is it necessary to remake the preloader for each new Qsys system design? 

 

Thanks, 

Zack
0 项奖励
回复