Forum Discussion
Altera_Forum
Honored Contributor
20 years agoCan it be done ?
I adjust the scripts page an i get now a good nios2_system.h tha looks similar to the uart's/* Executing ...scripts/nios2_system.h/altera_avalon_spi.pm */
/* Redefining spi_0 -> spi0 */# undef na_spi_0# undef na_spi_0_irq
# define na_spi0 ((np_spi *) 0x82120980)# define na_spi0_irq 13
/* Redefining spi_1 -> spi1 */# undef na_spi_1# undef na_spi_1_irq
# define na_spi1 ((np_spi *) 0x821209a0)# define na_spi1_irq 14 But is i f i want to build the kernel now i get the follow error's make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x'
era/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/char/spi.c:273: error: for each function it appears in.)
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/char/spi.c: In function `unregister_NIOS_SPI':
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/char/spi.c:289: error: `na_spi' undeclared (first use in this function)
make: *** Error 1
make: *** Error 2
make: *** Error 2
make: *** Error 2 I think i must adjust the driver spi.c in the dir /drivers/char/spi.c Can someone help me ??