Page 1 of 1
Kernel and BTTV..
Posted:
08 Feb 2005, 06:50
by Cyrano
Hi hello Ydl users,
I have just installed Ydl on a G3 desktop 292 mhz (jumpers readjusted , this belongs to my wife's cousin whom believed her G3 became obsolete.. (ouch)
So i guess with an new apache, php, an email server and squirel mail, the upgrade is not exactly OBSOLETE right ?
YDL runs fine, eeee and FIREFOX !, I didn't figure out how to make MOL recompile yet
so if anyone have there is a quick tip...
also looking in my old boxes, Ive found a BT878 Averdia TV card, I downloaded the bttv-0.7.97.tar.gz driver but the kernel seem not to take the new modules with "the make install "...
the install stoped at /lib/modules/2.4.22-2f/build... ( the build seem to be locked )
is there a workaround ?
Posted:
09 Feb 2005, 04:52
by Cyrano
AAAhh ahha I knew it would requires patience ( errrrr from me ) because
i gave a difficult question...
??????
Posted:
09 Feb 2005, 12:16
by StarKnight83
did ./configure give you any errors? same goes for the build (make)
Posted:
09 Feb 2005, 18:16
by Cyrano
./configure did not work..
I used make -f Makefile..
the makefile command stalled at the kernel believing "build" is a directory
but " build" is rather a link or symlink..
/lib/modules/2.4.22-2f/build
Posted:
09 Feb 2005, 20:33
by wienerdoglinux
Cyrano wrote:./configure did not work..
I used make -f Makefile..
the makefile command stalled at the kernel believing "build" is a directory
but " build" is rather a link or symlink..
/lib/modules/2.4.22-2f/build
is there an install.sh?
try ./install.sh
Posted:
09 Feb 2005, 21:29
by Cyrano
this below is folder (tarball- bttv-0.7.97.tar.gz ) content :
CARDLIST
Cards
Changes
COPYING
driver (folder) ( this
iInsmod -options
MAKEDEV or ./MAKEDEV
Makefile
Modules.conf
tools (folder) ------ there make -f makefile worked fine
tuners
v4l-formats
there is the terminal error :
driver]# make -f Makefile
make -C /lib/modules/2.4.22-2f/build SUBDIRS=/root/bttv-0.7.97/driver modules
make: *** /lib/modules/2.4.22-2f/build: No such file or directory. Stop.
make: *** [default] Error 2
Posted:
09 Feb 2005, 21:47
by Cyrano
actually here is the Makefile content.....
somehow this script think build is a directory but it is a link..
include Make.config
#################################################
# compile modules
ifneq ($(KERNELRELEASE),)
# recursive call from kernel build system
dummy := $(shell echo $(KERNELRELEASE) > .version)
multi-m := $(filter $(list-multi), $(obj-m))
int-m := $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs)))
#EXTRA_CFLAGS := -g -Wmissing-prototypes -Wstrict-prototypes
include $(TOPDIR)/Rules.make
else
# take version info from last module build if available
KERNELRELEASE := $(shell cat .version 2>/dev/null || uname -r)
endif
KDIR := /lib/modules/$(KERNELRELEASE)/build
PWD := $(shell pwd)
DEST := /lib/modules/$(KERNELRELEASE)/$(MDIR)
default::
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
install::
strip --strip-debug $(obj-m)
-su -c "mkdir -p $(DEST); cp -v $(obj-m) $(DEST); depmod -a"
clean::
-rm -f *~ .version
-rm -f *.o
-rm -f .*.o.flags
-rm -f .*.o.cmd
#################################################
# build tarballs
thisdir := $(notdir $(PWD))
name := $(shell echo $(thisdir) | sed 's/-.*//')
ver := $(shell echo $(thisdir) | sed 's/.*-//')
date := $(shell date +%Y%m%d)
tardest ?= .
release: clean
(cd ..; tar cvzf $(tardest)/$(name)-$(ver).tar.gz $(thisdir))
snapshot tarball: clean
(cd ..; tar cvzf $(tardest)/$(name)-$(date).tar.gz $(thisdir))
#################################################
# other stuff
%.asm: %.o
objdump -S $< > $@
-include Make.local
driver]# make -f Makefile
make -C /lib/modules/2.4.22-2f/build SUBDIRS=/root/bttv-0.7.97/driver modules
make: *** /lib/modules/2.4.22-2f/build: No such file or directory. Stop.
make: *** [default] Error 2
Posted:
10 Feb 2005, 04:09
by Cyrano
I was wondering if this would work :
instead of using the "build" directory
could I use this instead : /lib/modules/2.4.22-2f/kernel/drivers ?
the reason I say this is that where the i2c sound drivers are...
my intent is to tweek the Makefile....... then reboot like a maniac.....hoping that modprobe
will see the new drivers..
KDIR := /lib/modules/$(KERNELRELEASE)/kernel/drivers
PWD := $(shell pwd)
DEST := /lib/modules/$(KERNELRELEASE)/$(MDIR)
?????????????? difficult question it is..
Posted:
10 Feb 2005, 05:46
by Cyrano
this failed...
Posted:
11 Feb 2005, 00:42
by Cyrano
OK since this failed.. I tried something else.. whichever is daring since I am a newbee..
I installed the kernel -source-2.4.22-2fppc.rpm
played with the configs ( am new bee )
and finally the BTTV driver installed...
I am now stuck with a new problem.. I aint sure if am compiled or if i have right path...
ohh Ohh i need a old bee to help me..
Posted:
11 Feb 2005, 06:07
by StarKnight83
can you load the kernel module? (im assuming that it makes one) "modprobe bttv" (not sure if thats the right name for the module-replace bttv w/ the proper one)