Altera_Forum
Honored Contributor
14 years agocannot compile u-boot for DE1
Hello folks.
I am trying to compile u-boot for the DE1 board. I am following the instructions on this (http://www.alterawiki.com/wiki/dasuboot) page to the point. A nios processor and some of its peripherals were instantiated from the de1 board cd, specifically the DE1_NIOS from the DE1_demonstrations. It compiled fine and I was also able to program it into the board. Then with the SOPC file, I created a header for uboot using the 'sopc-create-config-files' and put it in the right directory. I am using linux to build uboot for this board. The make version is 3.83 and the gcc version is 4.5.1 . After doing a make clean and make my_nios2_config, I issue a make in the u-boot directory (within the nios2-linux directory) upon which I got the following errors:interrupts.c: In function 'reset_timer':
interrupts.c:59: error: 'CONFIG_SYS_TIMER_BASE' undeclared (first use in this function)
interrupts.c:59: error: (Each undeclared identifier is reported only once
interrupts.c:59: error: for each function it appears in.)
interrupts.c: In function 'tmr_init':
interrupts.c:120: error: 'CONFIG_SYS_TIMER_BASE' undeclared (first use in this function)
interrupts.c:127: error: 'CONFIG_SYS_TIMER_FREQ' undeclared (first use in this function)
interrupts.c:132: error: 'CONFIG_SYS_TIMER_IRQ' undeclared (first use in this function)
make: *** Error 1
I am keen to hear some from people who have managed this. And im sure there must be quite a few out there :) thanks.