I have Puppy Linux Dingo setup and running on Sony VAIO CR23G.
Things not working :
1. Bluetooth
2. Multimedia Keys
3. Webcam
I can do without 1 & 2 (for now), but I needed to get the webcam working.
As usual I used google and got the name of the webcam driver.
r5u870-0.20.tar.bz2
But I am not able to compile it.
Code: Select all
# make KDIR=/root/downloads/linux-2.6.21.7/kernel/
make -C /root/downloads/linux-2.6.21.7/kernel/ M=/root/downloads/r5u870-VCC6 V=0 modules
make[1]: Entering directory `/root/downloads/linux-2.6.21.7/kernel'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/root/downloads/linux-2.6.21.7/kernel'
make: *** [all] Error 2
The makefile is as below :
Code: Select all
# changelog :
#------------
# naresh - 29-Mar-2007 : cyan_00391
# fixed the code which detects the existing kernel module
#
# Notes:
# -----------
# This clever makefile was shamelessly copied from the ivtv project.
#
# By default, the build is done against the running kernel version.
# to build against a different kernel version, set KVER
#
# make KVER=2.6.11-alpha
#
# Alternatively, set KDIR
#
# make KDIR=/usr/src/linux
V ?= 0
MDIR := extra
KVER ?= $(shell uname -r)
KDIR ?= /lib/modules/$(KVER)/kernel
FWDIR ?= /lib/firmware
# Old module name to detect and complain about when installing
OLD_MODULE_NM = ry5u870.ko
FWFILES = r5u870_1830.fw r5u870_1832.fw r5u870_1833.fw r5u870_1834.fw r5u870_1835.fw r5u870_1836.fw r5u870_1870_1.fw r5u870_1870.fw r5u870_1810.fw r5u870_183a.fw
ifneq ($(KERNELRELEASE),)
include $(src)/Kbuild
else
all::
$(MAKE) -C $(KDIR) M=$(CURDIR) V=$(V) modules
install:: all
$(MAKE) INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=$(MDIR) \
-C $(KDIR) M=$(CURDIR) modules_install
clean::
$(MAKE) -C $(KDIR) M=$(CURDIR) clean
rm -f Module.symvers
endif
install::
install -m 0644 -o root -g root $(FWFILES) $(FWDIR)
/sbin/depmod -a
@if find /lib/modules -name $(OLD_MODULE_NM) | grep $(OLD_MODULE_NM) >/dev/null; then \
echo; \
echo "*** !!! WARNING !!! ***"; \
echo "A prior version of this driver was detected, installed with a different file"; \
echo "name. It is possible that a boot-time device detection component will choose"; \
echo "to load the older version of this driver instead of the newly installed"; \
echo "version."; \
echo; \
echo "Please consider deleting the following files:"; \
echo; \
find /lib/modules -name $(OLD_MODULE_NM); \
echo; \
echo "*** !!! WARNING !!! ***"; \
echo; \
printf "\\a"; sleep 1; printf "\\a"; sleep 1; printf "\\a"; \
fi
I already have the linux kernel source in directory that is passed and I am able to compile the whole kernel.
Please can someone tell me what am I doing wrong ?
Cheers,
AceVentura