Page 1 of 2

Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 6:55 am
by georg
i have a big problem with building the driver
###########################
4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux
###########################
make -j4
make -C /home/xxx/tbsdriver/media_build/v4l
make[1]: Entering directory '/home/xxx/tbsdriver/media_build/v4l'
Updating/Creating .config
make[2]: Entering directory '/home/xxx/tbsdriver/media_build/linux'
make[2]: Entering directory '/home/xxx/tbsdriver/media_build/linux'
Syncing with dir ../../media
Syncing with dir ../../media
Patches for 4.9.0-11-amd64 already applied.
make[2]: Leaving directory '/home/xxx/tbsdriver/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/4.9.0-11-amd64/build /lib/modules/4.9.0-11-amd64/build
Patches for 4.9.0-11-amd64 already applied.
make[2]: Leaving directory '/home/xxx/tbsdriver/media_build/linux'
Preparing to compile for kernel version 4.9.0
File not found: /lib/modules/4.9.0-11-amd64/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
Preparing to compile for kernel version 4.9.0
File not found: /lib/modules/4.9.0-11-amd64/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
make[1]: *** No rule to make target '.config', needed by '.myconfig'. Stop.
make[1]: Leaving directory '/home/xxx/tbsdriver/media_build/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2


###################
git clone https://github.com/tbsdtv/media_build.git
git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
cd media_build
make dir DIR=../media
make allyesconfig
make -j4
sudo make install
sudo reboot
################

have they any idea???????

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 9:38 am
by zhangchao
For Debian please try this
uname -r to get the kernel version

# uname -r
4.9.0-8-amd64
# apt-get install linux-headers-4.9.0-8-amd64

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 9:43 am
by steven
Hi

For Debian please try this
uname -r to get the kernel version

# uname -r
4.9.0-8-amd64
# apt-get install linux-headers-4.9.0-8-amd64

Then try this package :
# wget http://www.tbsdtv.com/download/document/linux/media_build-2019-11-01.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2019-11-01.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind regards

steven

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 5:27 pm
by georg
steven Wrote:Hi

For Debian please try this
uname -r to get the kernel version

# uname -r
4.9.0-8-amd64
# apt-get install linux-headers-4.9.0-8-amd64

Then try this package :
# wget http://www.tbsdtv.com/download/document/linux/media_build-2019-11-01.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2019-11-01.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind regards

steven


thanks Steven,

linux-headers is up2date:
root@xxx02:/home/xxx# uname -r
4.9.0-11-amd64
root@xxx:/home/xxx# apt install linux-headers-4.9.0-11-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.9.0-11-amd64 is already the newest version (4.9.189-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Build faild

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 5:33 pm
by georg
Error1.png
steven Wrote:Hi

For Debian please try this
uname -r to get the kernel version

# uname -r
4.9.0-8-amd64
# apt-get install linux-headers-4.9.0-8-amd64

Then try this package :
# wget http://www.tbsdtv.com/download/document/linux/media_build-2019-11-01.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2019-11-01.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind regards

steven

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 5:34 pm
by georg
georg Wrote:
The attachment Error1.png is no longer available
steven Wrote:Hi

For Debian please try this
uname -r to get the kernel version

# uname -r
4.9.0-8-amd64
# apt-get install linux-headers-4.9.0-8-amd64

Then try this package :
# wget http://www.tbsdtv.com/download/document/linux/media_build-2019-11-01.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2019-11-01.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind regards

steven

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 5:36 pm
by georg
Error3.pnp

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 5:37 pm
by georg
georg Wrote:Error3.pnp

Error 4

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 5:39 pm
by georg
zhangchao Wrote:For Debian please try this
uname -r to get the kernel version

# uname -r
4.9.0-8-amd64
# apt-get install linux-headers-4.9.0-8-amd64


Thanks Zhangchao,

I did it

Re: Debian 9 Driver building

PostPosted: Thu Dec 19, 2019 11:36 pm
by georg
has anybody an idea????