Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi Mike,
Sorry for the delay in responding ... I'm on vacation right now, so it's difficult to get Internet access. > I have an elf file and a .flash (S-record) file for the application which I want to boot using u-boot. > I'm struggling to get u-boot to download files into flash memory. Should I use the .flash or the elf file? When using u-boot to program flash it's best to load a binary image into ram, then copy the image to the target flash address (after erasing the appropriate sectors). U-boot will recognize the target address as flash and automatically perform the programming. If you have the elf file, you can use objcopy to generate the binary: $ nios2-elf-objcopy -O binary foo.elf foo.bin > Have I changed the configuration properly for this device? The config looks ok, but since the device is Am29LV128M (rather than 065D), the flash driver probably needs some modifications. I just received my 2c35 board on Monday (at least that's what I've been told). As soon as I return I'll be working on u-boot support for the board. In the mean time, take a look at the board/altera/common flash.c and AMD065D.c files. The most important being flash_init() int AMD065D.c. Regards, --Scott