Moderator Control Panel ]

How to install the tbs cards driver for Raspberry Pi

News and information about TBS products.

Re: How to install the tbs cards driver for Raspberry Pi

Postby Fushigi » Tue Dec 31, 2024 4:26 pm

What OS distribution do you recommend for a Raspberry Cm4 + board?

I'm trying with:

Code: Select All Code
PRETTY_NAME="Ubuntu 24.10"
NAME="Ubuntu"
VERSION_ID="24.10"
VERSION="24.10 (Oracular Oriole)"
VERSION_CODENAME=oracular
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=oracular
LOGO=ubuntu-logo

Code: Select All Code
Model           : Raspberry Pi Compute Module 4 Rev 1.1
01:00.0 Multimedia controller: Philips Semiconductors SAA7160 (rev 03)


and I can't install the driver

Code: Select All Code
root@raspberrypi:/home/linaro/media_build# cd media_build
make dir DIR=../media
make allyesconfig
sed -i -r 's/(^CONFIG.*_RC.*=)./\1n/g' v4l/.config
sed -i -r 's/(^CONFIG.*_IR.*=)./\1n/g' v4l/.config
make -j4
sudo make install
bash: cd: media_build: No such file or directory
make -C linux/ dir DIR="../../media"
make[1]: Entering directory '/home/linaro/media_build/linux'
rm -rf drivers include sound mm .patches_applied .linked_dir .git_log.md5 git_log kernel_version.h
Searching in ../../media/Makefile for kernel version.
./use_dir.pl ../../media
sync file: include/uapi/linux/lirc.h
sync file: include/linux/kconfig.h
sync file: include/linux/atmel-isc-media.h
sync file: include/uapi/linux/uvcvideo.h
sync file: include/uapi/linux/videodev2.h
sync file: include/linux/dma/xilinx_dma.h
sync file: include/uapi/linux/v4l2-common.h
sync file: include/trace/events/pwc.h
sync file: include/linux/hdmi.h
sync file: include/trace/events/vb2.h
sync file: include/uapi/linux/v4l2-mediabus.h
sync file: include/uapi/linux/v4l2-subdev.h
sync file: include/uapi/linux/ivtv.h
sync file: include/uapi/linux/v4l2-controls.h
sync file: include/sound/aci.h
sync file: include/misc/altera.h
sync file: include/trace/events/v4l2.h
sync file: include/uapi/linux/cec.h
sync file: include/linux/overflow.h
sync file: include/uapi/linux/cec-funcs.h
sync file: include/linux/ti_wilink_st.h
sync file: include/uapi/linux/ccs.h
sync file: sound/pci/bt87x.c
sync file: include/uapi/linux/max2175.h
sync file: include/linux/via-core.h
sync file: include/linux/usb/uvc.h
sync file: include/uapi/linux/v4l2-dv-timings.h
sync file: include/linux/mmc/sdio_ids.h
sync file: include/uapi/linux/usb/video.h
sync file: include/linux/pci_ids.h
sync file: include/uapi/linux/ivtvfb.h
sync file: include/linux/of_graph.h
sync file: include/linux/fixp-arith.h
sync file: include/uapi/linux/media-bus-format.h
sync file: include/uapi/linux/xilinx-v4l2-controls.h
sync file: include/uapi/linux/media.h
sync file: include/uapi/linux/smiapp.h
sync dir: drivers/misc/altera-stapl/
sync dir: include/dt-bindings/media/
sync dir: drivers/media/
sync dir: include/media/
sync dir: drivers/staging/media/
sync dir: include/linux/platform_data/media/
sync dir: include/uapi/linux/dvb/
make[1]: Leaving directory '/home/linaro/media_build/linux'
make -C /home/linaro/media_build/v4l allyesconfig
make[1]: Entering directory '/home/linaro/media_build/v4l'
make[2]: Entering directory '/home/linaro/media_build/linux'
Syncing with dir ../../media
Applying patches for kernel 6.11.0-1004-raspi
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
patch -s -f -N -p1 -i ../backports/ccs.patch
patch -s -f -N -p1 -i ../backports/rc-cec.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
Syncing with dir ../../media
make[2]: Leaving directory '/home/linaro/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/6.11.0-1004-raspi/build /lib/modules/6.11.0-1004-raspi/build 1
Preparing to compile for kernel version 6.11.0
File not found: /lib/modules/6.11.0-1004-raspi/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
make[1]: *** [Makefile:376: allyesconfig] Error 2
make[1]: Leaving directory '/home/linaro/media_build/v4l'
make: *** [Makefile:26: allyesconfig] Error 2
sed: can't read v4l/.config: No such file or directory
sed: can't read v4l/.config: No such file or directory
make -C /home/linaro/media_build/v4l
make[1]: Entering directory '/home/linaro/media_build/v4l'
scripts/make_makefile.pl
Updating/Creating .config
make[2]: Entering directory '/home/linaro/media_build/linux'
make[2]: Entering directory '/home/linaro/media_build/linux'
Syncing with dir ../../media
Syncing with dir ../../media
Patches for 6.11.0-1004-raspi already applied.
make[2]: Leaving directory '/home/linaro/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/6.11.0-1004-raspi/build /lib/modules/6.11.0-1004-raspi/build
Patches for 6.11.0-1004-raspi already applied.
make[2]: Leaving directory '/home/linaro/media_build/linux'
Preparing to compile for kernel version 6.11.0
File not found: /lib/modules/6.11.0-1004-raspi/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
Preparing to compile for kernel version 6.11.0
File not found: /lib/modules/6.11.0-1004-raspi/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
Updating/Creating .config
make[2]: Entering directory '/home/linaro/media_build/linux'
make[2]: Entering directory '/home/linaro/media_build/linux'
Syncing with dir ../../media
Syncing with dir ../../media
Patches for 6.11.0-1004-raspi already applied.
make[2]: Leaving directory '/home/linaro/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/6.11.0-1004-raspi/build /lib/modules/6.11.0-1004-raspi/build
Patches for 6.11.0-1004-raspi already applied.
make[2]: Leaving directory '/home/linaro/media_build/linux'
Preparing to compile for kernel version 6.11.0
File not found: /lib/modules/6.11.0-1004-raspi/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
Preparing to compile for kernel version 6.11.0
File not found: /lib/modules/6.11.0-1004-raspi/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/linaro/media_build/v4l'
make: *** [Makefile:26: all] Error 2
make -C /home/linaro/media_build/v4l install
make[1]: Entering directory '/home/linaro/media_build/v4l'
Installing kernel modules under /lib/modules/6.11.0-1004-raspi/updates/extra/media/:
/sbin/depmod -a 6.11.0-1004-raspi
make -C firmware install
make[2]: Entering directory '/home/linaro/media_build/v4l/firmware'
Installing firmwares at /lib/firmware:
make[2]: Leaving directory '/home/linaro/media_build/v4l/firmware'
make[1]: Leaving directory '/home/linaro/media_build/v4l'
root@raspberrypi:/home/linaro/media_build#
Fushigi
 
Posts: 4
Joined: Tue Dec 31, 2024 2:11 pm

Re: How to install the tbs cards driver for Raspberry Pi

Postby zhangchao » Tue Dec 31, 2024 6:16 pm

hi ,
please add skype jack_2431 . i will check with you .
best regards!
zhangchao
 
Posts: 108
Joined: Thu Jan 17, 2013 4:59 pm

Re: How to install the tbs cards driver for Raspberry Pi

Postby Fushigi » Fri Jan 10, 2025 8:09 pm

Hi, would it also work with a CM5?
Fushigi
 
Posts: 4
Joined: Tue Dec 31, 2024 2:11 pm

Re: How to install the tbs cards driver for Raspberry Pi

Postby Fushigi » Sat Jan 11, 2025 6:32 pm

JV16Bar Wrote:@zhangchao : Thank you for your help, it was a really great support from your side!
It's a pity that TBS is so good on the hardware side but it's lacking support on software / drivers / linux.

For those, who are trying to install a PCI-E TBS card on Compute Module 4 + IO Board, and the card is not showing up on lspci:

Code: Select All Code
sudo cp /boot/bcm2711-rpi-cm4.dtb /boot/bcm2711-rpi-cm4.dtb.bak
dtc -I dtb -O dts /boot/bcm2711-rpi-cm4.dtb -o ~/test.dts
nano ~/test.dts

after this line:
Code: Select All Code
&pcie0 {
brcm,enable-l1ss;

insert:
Code: Select All Code
max-link-speed = <1>;

save
Code: Select All Code
dtc -I dts -O dtb ~/test.dts -o ~/test.dtb
sudo mv ~/test.dtb /boot/bcm2711-rpi-cm4.dtb

reboot and lspci.

Credits to @geerlingguy and stinger1 on forums.raspberrypi.com


I have installed the CM4 IO board Extended 4-Ch PCIe Gen 2 ×1 Expander and now I don't get it when doing lspci on the tbs-6881 card

Code: Select All Code
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge (rev 20)
01:00.0 PCI bridge: ASMedia Technology Inc. ASM1184e 4-Port PCIe x1 Gen2 Packet Switch
02:01.0 PCI bridge: ASMedia Technology Inc. ASM1184e 4-Port PCIe x1 Gen2 Packet Switch
02:03.0 PCI bridge: ASMedia Technology Inc. ASM1184e 4-Port PCIe x1 Gen2 Packet Switch
02:05.0 PCI bridge: ASMedia Technology Inc. ASM1184e 4-Port PCIe x1 Gen2 Packet Switch
02:07.0 PCI bridge: ASMedia Technology Inc. ASM1184e 4-Port PCIe x1 Gen2 Packet Switch
03:00.0 Non-Volatile memory controller: MAXIO Technology (Hangzhou) Ltd. NVMe SSD Controller MAP1202 (rev 01)


Image
Last edited by Fushigi on Wed Jan 15, 2025 7:07 pm, edited 1 time in total.
Fushigi
 
Posts: 4
Joined: Tue Dec 31, 2024 2:11 pm

Re: How to install the tbs cards driver for Raspberry Pi

Postby Fushigi » Mon Jan 13, 2025 6:04 am

How can I talk so I can have the tvheadend on another computer installed and connect to the Raspberry to sync TDT?
Thank you.
Fushigi
 
Posts: 4
Joined: Tue Dec 31, 2024 2:11 pm

Previous

Return to News

Who is online

Users browsing this forum: Google [Bot] and 3 guests