Forum Discussion
Altera_Forum
Honored Contributor
20 years agouClinux Boot problem
Hi, I am testing my own custom board with EP1C12Q240, Flash=16bit*4M, Sdram=32bit*2M. My system has NiosII/f Core, uart, jtag-uart, sdram, flash, epcs_controller, timer and some PIOs. I use...
Altera_Forum
Honored Contributor
20 years agoHi LiangYi,
<div class='quotetop'>QUOTE </div> --- Quote Start --- BTW, another question. When I use <div class='quotetop'>QUOTE --- Quote End --- --- Quote Start --- $ mkimage -a nios2 -o linux -t filesystem -c none -a 0x00a00000 -e 0x00a00000 -n 'romfs' -d romfs.bin romfs.img $ bin2flash --flash=U5 --location=0x00200000 --input=romfs.img --output=romfs.flash $ nios2-flash-programmer –base=0x00800000 –input=romfs.flash –sof=<path to pgm sof>[/b] --- Quote End --- [/b] --- Quote End --- Don't use mkimage -- it adds an 'image' header to your romfs image ... which the kernel knows nothing about. Just use bin2flash and the flash programmer as you normally would. In most cases, mkimage is used only for the kernel itself ... since u-boot for Nios does not support separate kernel/ramdisk image files at this time. Regards, --Scott