Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHi Nick,
<div class='quotetop'>QUOTE </div> --- Quote Start --- As mentioned in one of my previous posts, I seem to be missing a header file, serial.h, which is supposed to be found in the "asm/asm-niosnommu" directory. The "asm-*" directories for the other processors included in this package have this header file. The compiler only searches for this header when I have enabled the Standard / generic UART support option in the kernel configuration. Is this file generated by SOPC Builder and placed in another directory, to be copied over manually?[/b] --- Quote End --- Yep -- you're on the right track. The header search path includes 'asm' which is actually a symbolic link to an architecture-specific directory (e.g. asm->asm-niosnommu for the Nios distribution). So, if you're compiling a 386 kernel, asm->asm-i386 and serial.h is found. For the Nios, we supply NIOSserial.h because the Nios Serial IP is not a 16550. You'd need to, as you say, copy serial.h over and use it as a starting point. mike