Altera_Forum
Honored Contributor
20 years agoRedboot will not build
Hi All,
I'm trying to get eCos up and running on a Cyclone II development board, and thought it would be a good place to start to get Redboot built and installed. I have created a config using the nios2configtool with "Hardware" selected as "Nios II Development Board (Altera)", and the "Packages" selected as "redboot". When I attempt to build the library (without fiddling with the configuration) the build fails thus: nios2-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static -mhw-mul -mno-hw-mulx -mno-hw-div -L/cygdrive/c/Ws/CSW1/eCos/redboot_install/lib -Ttarget.ld -o /cygdrive/c/Ws/CSW1/eCos/redboot_install/bin/redboot.elf /cygdrive/c/Ws/CSW1/eCos/redboot_install/lib/version.o make[1]: Leaving directory `/cygdrive/c/Ws/CSW1/eCos/redboot_build/redboot/current' /cygdrive/c/Ws/CSW1/eCos/redboot_install/lib/libtarget.a(redboot_main.o)(.text.do_idle+0x14): In function `valid_address': make: Leaving directory `/cygdrive/c/Ws/CSW1/eCos/redboot_build' /cygdrive/c/altera/kits/nios2_51/components/ecos/ecos-current/packages/redboot/current/src/main.c:756: Unable to reach __RedBoot_IDLE_TAB_END__ (at 0x02011e40) from the global pointer (at 0x02019e58) because the offset (-32792) is out of the allowed range, -32678 to 32767. This looks like a fairly fundamental failure. Is it appropriate to run Redboot in this environment? Surely this will have been tested before the current version of eCos for Nios II was released, so any suggestions as to what I may have done wrong? Is there some config/setup I may have missed here? Thanks in anticipation of any and all assistance! Steve