04-05-2018, 02:27 PM
(This post was last modified: 04-08-2019, 09:49 AM by tinkerboy. Edited 1 time in total.)
Recompiling the kernel for DVB-T support on Tinkerboard.
Tested in clean installation of Tinker-OS 2.0.5.
UPDATED: 2018-April-09
****
In this old line in the howto...
sudo mv /lib/modules/4.4.71+ /lib/modules/old-modules must be...
sudo cp -r /lib/modules/4.4.71+ /lib/modules/old-modules
It is already corrected in the howto.
***
You don't need repeat all the job if you have done this howto before this was corrected.
If it is your first try start on HOWTO corrected.
But If you have done before corrected, then rename folder /lib/modules/4.4.71+ to not-ok-modules-dep-4.4.71+ and copy the /lib/modules/old-modules/4.4.71+ to /lib/modules/ you can use sudo pcmanfm to rename the folders and then...
cd debian_kernel
sudo make ARCH=arm modules_install
And reboot and test.
Now you can delete /lib/modules/not-ok-modules-dep-4.4.71+
***
HOWTO corrected.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get install -y ncurses-dev
sudo apt-get install -y git-core
sudo apt-get install -y gitk
sudo apt-get install -y git-gui
sudo apt-get install -y device-tree-compiler
sudo apt-get install -y mtools
sudo apt-get install -y parted
sudo apt-get install -y libssl-dev
sudo apt-get install -y build-essential
git clone https://github.com/TinkerBoard/debian_kernel.git -b release
cd debian_kernel
make ARCH=arm miniarm-rk3288_defconfig -j16
make ARCH=arm oldconfig -j16
make ARCH=arm scripts -j16
make ARCH=arm menuconfig
***
Add drivers for example to Afatech AF9035 DVB-T USB2.0 support:
Device Drivers --->
<*> Multimedia support --->
[*] Digital TV support
[*] Media USB Adapters --->
<M> Support for various USB DVB devices
<M> Support for various USB DVB devices v2
<M> Afatech AF9035 DVB-T USB2.0 support
Save and exit.
***
Optional:
If you do some error you can do:
make ARCH=arm clean -j16
and start again.
make ARCH=arm miniarm-rk3288_defconfig -j16
make ARCH=arm oldconfig -j16
make ARCH=arm scripts -j16
make ARCH=arm menuconfig
***
make zImage ARCH=arm -j16
About 30 minutes with SD card Sandisk Ultra A1 16Gb.
***
Note: As of 2018-01-05, if may be necessary to edit the Makefile
to add
-Wno-misleading-indentation
to the CFLAGS_MODULE if you are using GCC 6 and up.
gcc -v
Output in terminal on Tinker Os 2.0.5 is...gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
leafpad /home/linaro/debian_kernel/Makefile
Search CFLAGS_MODULE that is about line 383... must see:
CFLAGS_MODULE = -Wno-misleading-indentation
Save and exit.
***
make modules ARCH=arm -j16
About 5 minutes with SD card Sandisk Ultra A1 16Gb.
***
make ARCH=arm rk3288-miniarm.dtb -j16
Ignore warnings.
make dtbs ARCH=arm -j16
Ignore warnings.
***
sudo mkdir /lib/modules/old-modules
sudo cp -r /lib/modules/4.4.71+ /lib/modules/old-modules
sudo mkdir /boot/old-boot
sudo mv /boot/zImage /boot/old-boot/zImage
sudo mv /boot/rk3288-miniarm.dtb /boot/old-boot/rk3288-miniarm.dtb
***
sudo make ARCH=arm modules_install
***
sudo cp arch/arm/boot/zImage /boot
sudo cp arch/arm/boot/dts/rk3288-miniarm.dtb /boot
***
https://tinkerboarding.co.uk/wiki/index....are#Kernel
***
TV support on tinker OS:
DVB-T programs...
sudo apt-get install -y dvb-apps
You need dvb-usb-af9035-02.fw or dvb-usb-it9135-02.fw firmware in /lib/firmware
AVerMedia AVerTV Volar Green HD (A835)...
/lib/firmware/dvb-usb-it9135-02.fw
/lib/firmware/dvb-usb-it9135-01.fw
https://github.com/OpenELEC/dvb-firmware...9135-02.fw
https://github.com/OpenELEC/dvb-firmware...9135-01.fw
AVerMedia AVerTV Volar HD PRO (A835)...
/lib/firmware/dvb-usb-af9035-02.fw
https://github.com/OpenELEC/dvb-firmware...9035-02.fw
***
Reboot to activate new kernel and firmware and enjoy.
https://linuxtv.org/wiki/index.php/TV_Related_Software
Tested in clean installation of Tinker-OS 2.0.5.
UPDATED: 2018-April-09
****
In this old line in the howto...
sudo mv /lib/modules/4.4.71+ /lib/modules/old-modules must be...
sudo cp -r /lib/modules/4.4.71+ /lib/modules/old-modules
It is already corrected in the howto.
***
You don't need repeat all the job if you have done this howto before this was corrected.
If it is your first try start on HOWTO corrected.
But If you have done before corrected, then rename folder /lib/modules/4.4.71+ to not-ok-modules-dep-4.4.71+ and copy the /lib/modules/old-modules/4.4.71+ to /lib/modules/ you can use sudo pcmanfm to rename the folders and then...
cd debian_kernel
sudo make ARCH=arm modules_install
And reboot and test.
Now you can delete /lib/modules/not-ok-modules-dep-4.4.71+
***
HOWTO corrected.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get install -y ncurses-dev
sudo apt-get install -y git-core
sudo apt-get install -y gitk
sudo apt-get install -y git-gui
sudo apt-get install -y device-tree-compiler
sudo apt-get install -y mtools
sudo apt-get install -y parted
sudo apt-get install -y libssl-dev
sudo apt-get install -y build-essential
git clone https://github.com/TinkerBoard/debian_kernel.git -b release
cd debian_kernel
make ARCH=arm miniarm-rk3288_defconfig -j16
make ARCH=arm oldconfig -j16
make ARCH=arm scripts -j16
make ARCH=arm menuconfig
***
Add drivers for example to Afatech AF9035 DVB-T USB2.0 support:
Device Drivers --->
<*> Multimedia support --->
[*] Digital TV support
[*] Media USB Adapters --->
<M> Support for various USB DVB devices
<M> Support for various USB DVB devices v2
<M> Afatech AF9035 DVB-T USB2.0 support
Save and exit.
***
Optional:
If you do some error you can do:
make ARCH=arm clean -j16
and start again.
make ARCH=arm miniarm-rk3288_defconfig -j16
make ARCH=arm oldconfig -j16
make ARCH=arm scripts -j16
make ARCH=arm menuconfig
***
make zImage ARCH=arm -j16
About 30 minutes with SD card Sandisk Ultra A1 16Gb.
***
Note: As of 2018-01-05, if may be necessary to edit the Makefile
to add
-Wno-misleading-indentation
to the CFLAGS_MODULE if you are using GCC 6 and up.
gcc -v
Output in terminal on Tinker Os 2.0.5 is...gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
leafpad /home/linaro/debian_kernel/Makefile
Search CFLAGS_MODULE that is about line 383... must see:
CFLAGS_MODULE = -Wno-misleading-indentation
Save and exit.
***
make modules ARCH=arm -j16
About 5 minutes with SD card Sandisk Ultra A1 16Gb.
***
make ARCH=arm rk3288-miniarm.dtb -j16
Ignore warnings.
make dtbs ARCH=arm -j16
Ignore warnings.
***
sudo mkdir /lib/modules/old-modules
sudo cp -r /lib/modules/4.4.71+ /lib/modules/old-modules
sudo mkdir /boot/old-boot
sudo mv /boot/zImage /boot/old-boot/zImage
sudo mv /boot/rk3288-miniarm.dtb /boot/old-boot/rk3288-miniarm.dtb
***
sudo make ARCH=arm modules_install
***
sudo cp arch/arm/boot/zImage /boot
sudo cp arch/arm/boot/dts/rk3288-miniarm.dtb /boot
***
https://tinkerboarding.co.uk/wiki/index....are#Kernel
***
TV support on tinker OS:
DVB-T programs...
sudo apt-get install -y dvb-apps
You need dvb-usb-af9035-02.fw or dvb-usb-it9135-02.fw firmware in /lib/firmware
AVerMedia AVerTV Volar Green HD (A835)...
/lib/firmware/dvb-usb-it9135-02.fw
/lib/firmware/dvb-usb-it9135-01.fw
https://github.com/OpenELEC/dvb-firmware...9135-02.fw
https://github.com/OpenELEC/dvb-firmware...9135-01.fw
AVerMedia AVerTV Volar HD PRO (A835)...
/lib/firmware/dvb-usb-af9035-02.fw
https://github.com/OpenELEC/dvb-firmware...9035-02.fw
***
Reboot to activate new kernel and firmware and enjoy.
https://linuxtv.org/wiki/index.php/TV_Related_Software



![[-]](https://tinkerboarding.co.uk/forum/images/collapse.png)