07-28-2010 02:19 AM
I am new to this field. I am trying to compile and execute the xbmd.c file.
For eg: (Here Open function)
int XPCIe_Open(struct inode *inode, struct file *filp)
printk(KERN_INFO"%s: Open: module opened\n",gDrvrName);
After compilation the message should appear on the output window. Like the ordinray compilation as gcc-o xbmd xbmd.c and execution as ./xbmd. How to acheive this?
xbmd.ko file gets generated and file listed in the Makefile also.
07-28-2010 07:17 AM
You don't give many details here.
Are you trying to run this under Linux on MicroBlaze or Powerpc?
You need to cross compile applications as you're not running on an X86 box if so.
Cross compiling means using a compiler that runs on a host and compiles code for another machine, like MicroBlaze or PowerPC.
I'm not sure even where to guide you to yet as your a long ways from doing embedded work. You should probably get some good embedded books for Linux 1st as it's hard to google your way from zero.