Source Code :
Linux : linux-3.1.0-psp04.06.00.03.sdk
U-boot : u-boot-2011.09-psp04.06.00.03
Toolchain :
[linux-devkit]:/home/linux/Practise/application_linux> arm-arago-linux-gnueabi-
arm-arago-linux-gnueabi-addr2line arm-arago-linux-gnueabi-gcc arm-arago-linux-gnueabi-ld arm-arago-linux-gnueabi-run
arm-arago-linux-gnueabi-ar arm-arago-linux-gnueabi-gccbug arm-arago-linux-gnueabi-nm arm-arago-linux-gnueabi-size
arm-arago-linux-gnueabi-as arm-arago-linux-gnueabi-gcov arm-arago-linux-gnueabi-objcopy arm-arago-linux-gnueabi-strings
arm-arago-linux-gnueabi-c++filt arm-arago-linux-gnueabi-gdb arm-arago-linux-gnueabi-objdump arm-arago-linux-gnueabi-strip
arm-arago-linux-gnueabi-cpp arm-arago-linux-gnueabi-gdbtui arm-arago-linux-gnueabi-ranlib
arm-arago-linux-gnueabi-g++ arm-arago-linux-gnueabi-gprof arm-arago-linux-gnueabi-readelf
Host Machine :
uname -a
Linux linux-HP-G42-Notebook-PC 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Target Board Beagle Bone :
root@am335x-evm:~# uname -a
Linux am335x-evm 3.1.0 #1 Sat Mar 2 19:23:10 IST 2013 armv7l unknown
Files : hello.c
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KERN_ALERT */
MODULE_LICENSE("GPL");
MODULE_AUTHOR("viulian, 2011");
MODULE_DESCRIPTION("Demo module for X10i");
int init_module(void)
{
printk("<1>Hello world\n");
// A non 0 return means init_module failed; module can't be loaded.
return 0;
}
void cleanup_module(void)
{
printk(KERN_ALERT "Goodbye world 1.\n");
}
File : Makefile
KERNEL_DIR=/home/linux/Practise/board-support/linux-3.1.0-psp04.06.00.03.sdk/kernel
obj-m := hello.o
PWD := $(shell pwd)
all:
$(MAKE) ARCH=arm CROSS_COMPILE=/home/linux/Practise/linux-devkit/bin/arm-arago-linux-gnueabi- -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules
clean:
$(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(PWD) clean
/
**********************************************************************
******************************MAKE COMMAND EXECUTION OUTPUT***********
/
[linux-devkit]:/home/linux/Practise/application_linux> make
make: Nothing to be done for `all'.
[linux-devkit]:/home/linux/Practise/application_linux>
Please suggest the work around.
I have gone through this weblink but didnt help :
http://www.angstrom-distribution.org/building-angstrom