2009-04-28 11:31:19 Porting problems in uClinux
Harbhajan Singh (INDIA)
Message: 73385
Hi,
I am trying to port a wifi linux source code in to the blackfin uClinux platform.
I am able to build the source code and run on the Linux PC.
I have found the places where to change the path etc details.
If the platform is PC the Linux_SRC path is as follows.
ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
CROSS_COMPILE =
endif
for the Blackfin platform i have changed the path as follows.
ifeq ($(PLATFORM),BLACKFIN)
LINUX_SRC = /home/Linu/uclinux-dist-trunk-svn-7856/linux-2.6.x/
#LINUX_SRC_MODULE = /home/Linu/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/net/wireless
CROSS_COMPILE = bfin-uclinux-
ARCH := blackfin
export ARCH
endif
When i try to build i am getting the following errors.
Linu@HDDteam:~/test/2009_0302_RT2870_Linux_STA_v2.1.0.0> make
make -C tools
make[1]: Entering directory `/home/Linu/test/2009_0302_RT2870_Linux_STA_v2.1.0.0/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/Linu/test/2009_0302_RT2870_Linux_STA_v2.1.0.0/tools'
/home/Linu/test/2009_0302_RT2870_Linux_STA_v2.1.0.0/tools/bin2h
cp -f os/linux/Makefile.6 /home/Linu/test/2009_0302_RT2870_Linux_STA_v2.1.0.0/os/linux/Makefile
make -C /home/Linu//uclinux-dist-trunk-svn-7856/linux-2.6.x/ SUBDIRS=/home/Linu/test/2009_0302_RT2870_Linux_STA_v2.1.0.0/os/linux modules
make[1]: Entering directory `/home/Linu/uclinux-dist-trunk-svn-7856/linux-2.6.x'
make[1]: *** /home/Linu/uclinux-dist-trunk-svn-7856/linux-2.6.x/arch/blackfin: Is a directory. Stop.
make[1]: Leaving directory `/home/Linu/uclinux-dist-trunk-svn-7856/linux-2.6.x'
make: *** [LINUX] Error 2
How to solve this error.
Thanks, Harbhajan
QuoteReplyEditDelete
2009-04-28 12:32:41 Re: Porting problems in uClinux
Mike Frysinger (UNITED STATES)
Message: 73392
it's an error in the build system of that package, and considering it's a pretty complicated package, you should ask the people who you got the source from