Forum Discussion

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

Where does the boot loader come from

Hello:

I've got a NIOS 2 running out of DRAM. So I plan to put the configuration into epcs (done) and put the application program into a FLASH (also done).

I used elf2flash to create the srec filt that I loaded using a serial port bacause that's the way it will be done in the field.

I ran elf2flash --verbose --log=log.txt --input-Project.elf --output-ProjectOut.srec --base=0x09000000 --end=0x09FFFFFF --reset=0x08000000 -flash=U23 --boot=boot_loader_cfi.srec

All this ran OK and I found the boot_loader data infront of the applicatio code as expected.

My question are:

1. Is this the proper boot loader to use.

2. The sof file does not use a cfi interface but the flash device works since I can store data and erase blocks.

3. My flash interface is 16 bits wide but the boot loader looks like it's working 8 bits at a time.

4. How can I create a custom bot loader?

Thanks

George

14 Replies