Forum Discussion

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

Nios-II boot monitor (u-boot)

u-boot for Nios-II is has been accepted into the main u-boot project at:

http://sourceforge.net/projects/u-boot (http://sourceforge.net/projects/u-boot)

The default u-boot make will attempt to build some native tools along with the target

elf, bin, and srec files. Without native gcc under cygwin, this (obviously) causes problems.

For developers using the Altera cygwin tools you will need to make some modifications

to the main source tree:

1. top-level makefile

Remove the 'tools' directory from the SUBDIRS macro.

2. common/makefile

Replace:

environment.o: environment.c ../tools/envcrc
    $(CC) $(AFLAGS) -Wa,--no-warn 
  -DENV_CRC=$(shell ../tools/envcrc) 
  -c -o $@ environment.c

With:

environment.o: environment.c
    $(CC) $(AFLAGS) -Wa,--no-warn 
  -DENV_CRC=0 
  -c -o $@ environment.c

BTW, thats a 'zero' ... not the letter 'O'. And note that the "../tools/envcrc" dependency

has been removed.

note: u-boot is a relatively large and very active project. as such, it can take several

weeks for fixes, enhancements and new features to be added to the source tree.

Regards,

--Scott
No RepliesBe the first to reply