[uClinux-dev] latest list of nios2 fixes/cleanups

Robert P. J. Day rpjday at crashcourse.ca
Thu Oct 25 19:43:01 EDT 2007


  for those following along at home, here's a short list of the
changes i've made to the nios2 stuff to get the kernel build further
along:

 * fix the aforementioned scatterlist.h, move a couple macros
from pci.h


* drop all nios2-specific I2C_GPIO content, and simply use the stock
kernel content for that feature


* add a couple includes to arch/nios2nommu/kernel/process.c to handle
undefined symbols:
  #include <linux/fs.h>
  #include <linux/err.h>


* add an include to arch/nios2nommu/kernel/sys_nios2.c for the same
reason:
  # include <linux/fs.h>


* fix the conditional include in arch/nios2nommu/kernel/setup.c so
that the declaration for paging_init() is found (i'm not sure this is
the correct solution, but it does fix the problem):

  -#ifdef CONFIG_DEV_BLK_INITRD
   #include <asm/pgtable.h>
  -#endif


* the nios2-specific <asm/ipc.h> header file causes a duplicate
declaration problem for "ipc_kludge" and is entirely superseded by the
stock <linux/ipc.h>, so fix the source file
arch/nios2nommu/kernel/sys_nios2.c with:

  -#include <asm/ipc.h>
  +#include <linux/ipc.h>

and entirely delete the nios2-supplied <asm/ipc.h> header file.


  and now, i'm fighting with some DMA issues.  more later.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================


More information about the uClinux-dev mailing list