Kernel and BTTV..

All kernel questions! 2.4 or new 2.6 kernel, compiling, modules, panics, etc.

Kernel and BTTV..

Postby Cyrano » 08 Feb 2005, 06:50

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 ?
Cyrano
ydl newbie
ydl newbie
 
Posts: 9
Joined: 08 Feb 2005, 05:37

Postby Cyrano » 09 Feb 2005, 04:52

AAAhh ahha I knew it would requires patience ( errrrr from me ) because
i gave a difficult question...



??????
Cyrano
ydl newbie
ydl newbie
 
Posts: 9
Joined: 08 Feb 2005, 05:37

Postby StarKnight83 » 09 Feb 2005, 12:16

did ./configure give you any errors? same goes for the build (make)
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby Cyrano » 09 Feb 2005, 18:16

./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
Cyrano
ydl newbie
ydl newbie
 
Posts: 9
Joined: 08 Feb 2005, 05:37

Postby wienerdoglinux » 09 Feb 2005, 20:33

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
Dummies guide to crashing Windows:
Step 1: Turn it on.
Mission Accomplished.

Apple Powerbook 1ghz
1.25 GB ram
ydl 4.0
kde 3.3
User avatar
wienerdoglinux
ydl beginner
ydl beginner
 
Posts: 41
Joined: 29 Jan 2005, 10:05
Location: Los Angeles, CA

Postby Cyrano » 09 Feb 2005, 21:29

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
Cyrano
ydl newbie
ydl newbie
 
Posts: 9
Joined: 08 Feb 2005, 05:37

Postby Cyrano » 09 Feb 2005, 21:47

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
Cyrano
ydl newbie
ydl newbie
 
Posts: 9
Joined: 08 Feb 2005, 05:37

Postby Cyrano » 10 Feb 2005, 04:09

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..
Cyrano
ydl newbie
ydl newbie
 
Posts: 9
Joined: 08 Feb 2005, 05:37

Postby Cyrano » 10 Feb 2005, 05:46

this failed...
Cyrano
ydl newbie
ydl newbie
 
Posts: 9
Joined: 08 Feb 2005, 05:37

Postby Cyrano » 11 Feb 2005, 00:42

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..
Cyrano
ydl newbie
ydl newbie
 
Posts: 9
Joined: 08 Feb 2005, 05:37

Postby StarKnight83 » 11 Feb 2005, 06:07

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)
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA


Return to Kernel

Who is online

Users browsing this forum: No registered users and 3 guests