Hi, I am unable to run my LKM on the Google Dev Phone2. The thing that i tried was that I sent the .ko file to the phone using
adb push <.ko file> /sdcard/module and when i tried executing it it simply said: Permission denied. How do i get my module to work on the phone that I have. Thanks, Rohan. On Wed, May 26, 2010 at 6:50 PM, rohan raizada <rohan.raiza...@gmail.com>wrote: > Thanks Greg, Perumal and Pavan for your inputs .. finally i got it working > :-) > > Thanks, > Rohan. > > > On Wed, May 26, 2010 at 12:46 PM, Pavan Savoy <pavan.sa...@gmail.com>wrote: > >> M=`pwd` should work from your present working directory .. >> >> On Wed, May 26, 2010 at 10:07 PM, rohan raizada >> <rohan.raiza...@gmail.com> wrote: >> > Hi, >> > >> > I created a Makefile as Greg suggested but even then it doesnt seem to >> work >> > and now it seems to be giving me this error. >> > The Makefile that I have is as follows: >> > >> > >> /**********************************************************************************************************************/ >> > myhome=/home/roaan >> > compiler=${myhome}/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin >> > moduledir=/home/roaan/junk >> > obj-m := hello.o >> > >> > all: >> > make ARCH=arm CROSS_COMPILE=${compiler}/arm-eabi- -C >> > ${myhome}/mydroid/common/kernel M= ${moduledir}/ modules >> > >> > The error that i seem to get is as follows: >> > make[1]: Entering directory `/home/roaan/mydroid/common/kernel' >> > make[1]: Nothing to be done for `/home/roaan/junk/'. >> > make[1]: *** No rule to make target `modules'. Stop. >> > make[1]: Leaving directory `/home/roaan/mydroid/common/kernel' >> > make: *** [all] Error 2 >> > >> > I have a module called as hello.c in folder /home/roaan/junk and >> Makefile is >> > also in the same folder. Also I didn't understand the usage of M= >> > ${moduledir}/ modules >> > and what is modules used for here. >> > >> > Thanks, >> > Rohan. >> > >> > On Wed, May 26, 2010 at 11:27 AM, perumal316 <perumal...@gmail.com> >> wrote: >> >> >> >> Hi Rohan, >> >> >> >> You can try using the below code in the Makefile: >> >> >> >> ifeq ($(KERNELRELEASE),) >> >> >> >> KERNELDIR ?= /home/<AndroidKernelDirectory> >> >> PWD := $(shell pwd) >> >> >> >> .PHONY: build clean >> >> >> >> build: >> >> $(MAKE) -C $(KERNELDIR) M=$(PWD) modules >> >> >> >> clean: >> >> rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c >> >> else >> >> >> >> $(info Building with KERNELRELEASE = ${KERNELRELEASE}) >> >> obj-m := hello.o >> >> >> >> endif >> >> >> >> Regards, >> >> Perumal >> >> >> >> >> >> On May 25, 1:57 pm, rohan raizada <rohan.raiza...@gmail.com> wrote: >> >> > Hi, >> >> > >> >> > I have written a small LKM for android. Now when i try to build it I >> >> > get the following error: >> >> > >> >> > make ARCH=arm >> >> > >> CROSS_COMPILE=../../../prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi- >> >> > -C /home/roaan/mydroid/common/kernel/ M=`pwd` modules >> >> > make: Entering directory `/home/roaan/mydroid/common/kernel' >> >> > make: *** No rule to make target `modules'. Stop. >> >> > make: Leaving directory `/home/roaan/mydroid/common/kernel >> >> > >> >> > The module that i want to build is hello.c in the current directory. >> >> > >> >> > Thanks, >> >> > Rohan. >> >> > >> >> > -- >> >> > unsubscribe: >> >> > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com> >> >> > website:http://groups.google.com/group/android-kernel >> >> >> >> -- >> >> unsubscribe: >> >> android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com> >> >> website: http://groups.google.com/group/android-kernel >> > >> > -- >> > unsubscribe: >> > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com> >> > website: http://groups.google.com/group/android-kernel >> >> >> >> -- >> --Pavan Savoy >> >> -- >> unsubscribe: >> android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com> >> website: http://groups.google.com/group/android-kernel >> > > -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel