nmadrane You have to use make image
Hi kszaq,
"make image" generates a img.gz file and a tar file. I need a amlogic zip update package (.zip), is this possible with 8.X ?
nmadrane You have to use make image
Hi kszaq,
"make image" generates a img.gz file and a tar file. I need a amlogic zip update package (.zip), is this possible with 8.X ?
Hi,
I am trying to build an Amlogic update package (zip file) with something like :
PROJECT=S905 ARCH=arm make amlpkg
It was working with Libreelec 7.X but in 8.X there is an error :
Creating Amlogic ZIP update package
cp: cannot stat '/home/nabil/LIBREELEC/KSZAQ/8.2.1.1/LibreELEC.tv/projects/S905/install/update-binary': No such file or directory
I checked and that's true : update-binary is not there
Any idea ?
I had similar problem with my VDR, finally I asked developer of dvbapi plugin for VDR. Here You can read it:
Hi piotrekcrash,
Which VDR are you using ? I am playing with 2.2.0.
Also, in your case it works right after reboot and also if you quickly switch between encrypted channels. In my case, it never works event if the connection to OSCAM is ok (I can see the user 'vdr' connected in the webif of oscam).
If afl or kszaq confirm that this issue has nothing to do with the AVL6862 driver implementation, then I will move my question to a more VDR specific forum.
Hi,
I am using the latest version of VDR, vdr-plugin-dvbapi and VNSI. Everything works great with unencrypted channels. But when I try to zap to an encrypted channel I get the following log in VDR :
Aug 26 11:22:33 LibreELEC vdr[2843]: [3007] DVBAPI: 0.0 set CAM decrypt (SID 830 - Pastebin.com
I asked the author of the vdr-plugin-dvbapi and he told me that the problem is in the following line :
"CA_PMT doesn't contain CA descriptors"
When I use TVHEADEND, it works : it connects to my OSCAM and succesfully decodes the stream. But the same OSCAM with VDR doesn't work. Actually this is not a problem of VDR/OSCAM connection. The problem is way before that : VDR has a problem decoding the CA_PMT stuff. The author of vdr-plugin-dvbapi that maybe the signal is bad. But I am using the same antenna in both cases (VDR and TVHEDEND), so this is not the problem.
This AVL6882 driver is not compatible with w_scan and VDR is not able to scan channels with this driver. So I am using a channels.conf files from the Internet (from http://channelpedia.yavdr.com).
So, the fact that the DVB driver is somehow incompatible with the scanning part of VDR could explain why I have this problem ? Or is this a completely different issue ? As I said unencrypted channels work perfectly.
Any idea please ?
Hi AFL,
Thanks a lot for your help. I tried to clean, but I get the same error again and again. I have this problem with 8.0.2a, 8.0.2b and 8.0.2c. I even tried a fresh "git clone".
Also, could you please have a loot at the other error (concerning package qca9377-aml) ?
UNPACK qca9377-aml
APPLY PATCH (common) /home/nabil/LIBREELEC/AFL/8.0.2c/LibreELEC.tv/packages/linux-drivers/qca9377-aml/patches/qca9377-aml-001-Modify-SDIO-and-firmware-handling-to-support-chips-u.patch
patching file CORE/HDD/src/wlan_hdd_cfg.c
patching file CORE/HDD/src/wlan_hdd_main.c
patching file CORE/SERVICES/BMI/ol_fw.c
patching file CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c
patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/include/hif_internal.h
patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c
Hunk #10 FAILED at 813.
Hunk #11 FAILED at 830.
Hunk #14 FAILED at 1424.
3 out of 18 hunks FAILED -- saving rejects to file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c.rej
patching file Kbuild
Hunk #1 succeeded at 1069 (offset 1 line).
Makefile:9: recipe for target 'release' failed
make: *** [release] Error 1
Display More
Hi AFL1,
Could you please update your git, I get the following error when I compile 8.0.2b or 8.0.2c from git.
Thanks !
Code Display MoreUNPACK qca9377-aml APPLY PATCH (common) /home/nabil/LIBREELEC/AFL/8.0.2c/LibreELEC.tv/packages/linux-drivers/qca9377-aml/patches/qca9377-aml-001-Modify-SDIO-and-firmware-handling-to-support-chips-u.patch patching file CORE/HDD/src/wlan_hdd_cfg.c patching file CORE/HDD/src/wlan_hdd_main.c patching file CORE/SERVICES/BMI/ol_fw.c patching file CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/include/hif_internal.h patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c Hunk #10 FAILED at 813. Hunk #11 FAILED at 830. Hunk #14 FAILED at 1424. 3 out of 18 hunks FAILED -- saving rejects to file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c.rej patching file Kbuild Hunk #1 succeeded at 1069 (offset 1 line). Makefile:9: recipe for target 'release' failed make: *** [release] Error 1
Also, when I deactivate this patch I get the following error (in 8.0.2b) :
I found also that media_build doesn't compile (at least in 8.0.2b) because of patches that can't be applied. Could you please check that ? I think this is the same for 8.0.2c.
BUILD media_build (target)
make[1]: Entering directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi'
make -C linux/ untar
make[2]: Entering directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi/linux'
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make[2]: Leaving directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi/linux'
make[1]: Leaving directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi'
make[1]: Entering directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi'
make -C /home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi/v4l
make[2]: Entering directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi/v4l'
Forcing kernel version to 3.14.29.
scripts/make_makefile.pl
make[3]: Entering directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi/linux'
Applying patches for kernel 3.14.29
Updating/Creating .config
patch -s -f -N -p1 -i ../backports/api_version.patch
make[3]: Entering directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi/linux'
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
make[4]: Entering directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi/linux'
Unapplying patches
patch -s -f -R -p1 -i ../backports/api_version.patch
make[4]: Leaving directory '/home/nabil/LIBREELEC/AFL/8.0.2b/LibreELEC.tv/build.LibreELEC-S905.arm-8.0-devel/media_build-2017-04-17-rpi/linux'
Applying patches for kernel 3.14.29
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/dvb-frontends/dvb-pll.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/dvb-frontends/gp8psk-fe.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/dvb-frontends/lgdt3306a.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/dvb-frontends/nxt200x.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/dvb-frontends/nxt6000.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/dvb-frontends/or51211.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/media-devnode.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/pci/bt8xx/btcx-risc.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/pci/bt8xx/bttv-cards.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/pci/bt8xx/bttv-driver.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/pci/bt8xx/bttv-gpio.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/pci/bt8xx/bttv-i2c.c.rej
Display More
Hi AFL1,
Could you please update your git, I get the following error when I compile 8.0.2b or 8.0.2c from git.
Thanks !
UNPACK qca9377-aml
APPLY PATCH (common) /home/nabil/LIBREELEC/AFL/8.0.2c/LibreELEC.tv/packages/linux-drivers/qca9377-aml/patches/qca9377-aml-001-Modify-SDIO-and-firmware-handling-to-support-chips-u.patch
patching file CORE/HDD/src/wlan_hdd_cfg.c
patching file CORE/HDD/src/wlan_hdd_main.c
patching file CORE/SERVICES/BMI/ol_fw.c
patching file CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c
patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/include/hif_internal.h
patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c
Hunk #10 FAILED at 813.
Hunk #11 FAILED at 830.
Hunk #14 FAILED at 1424.
3 out of 18 hunks FAILED -- saving rejects to file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c.rej
patching file Kbuild
Hunk #1 succeeded at 1069 (offset 1 line).
Makefile:9: recipe for target 'release' failed
make: *** [release] Error 1
Display More
Also, when I deactivate this patch I get the following error (in 8.0.2b) :
In Tvheadend select for Network: 'Pre-defined muxes' and for Network discovery: 'New muxes + changed muxes'. Also verify parameters for predefined muxes, for some country this db is outdated.
Oh I see, I forgot to mention that I am using VDR (not TVHeadend). Is there a generic way to scan, independently of TVHeadend or VDR ?
The way have is done scan in w_scan is unsupported in my driver.
Hi AFL, thanks for your feedback. So what is the prefered way to scan for DVB-T or DVB-T2 channels with your version ?
Hi,
I am using 8.0.1i. Quite old but anyway...
I am trying to scan DVB-T frequencies with w_scan (I have a KII Pro with DVB-S2/T2)
I am running the following command :
w_scan -c MA
But w-scan is not able to get any frequency. Here is what I get :
w_scan version 20141122 (compiled for DVB API 5.10)
using settings for MOROCCO
Country identifier MA not defined. Using defaults.
scan type TERRESTRIAL, channellist 4
output format vdr-2.0
WARNING: could not guess your codepage. Falling back to 'UTF-8'
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
/dev/dvb/adapter0/frontend0 -> TERRESTRIAL "Availink avl6862": very good :-))
Using TERRESTRIAL frontend (adapter /dev/dvb/adapter0/frontend0)
-_-_-_-_ Getting frontend capabilities-_-_-_-_
Using DVB API 5.10
frontend 'Availink avl6862' supports
DVB-T2
INVERSION_AUTO
QAM_AUTO
TRANSMISSION_MODE_AUTO
GUARD_INTERVAL_AUTO
HIERARCHY_AUTO
FEC_AUTO
FREQ (0.95MHz ... 2.15MHz)
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Scanning DVB-T...
Scanning 7MHz frequencies...
177500: (time: 00:00.000) skipped: (freq 177500000 unsupported by driver)
initial_tune:2710: Setting frontend failed QAM_AUTO f = 177500 kHz I999B7C999D999T999G999Y999 (0:0:0)
184500: (time: 00:00.000) skipped: (freq 184500000 unsupported by driver)
initial_tune:2710: Setting frontend failed QAM_AUTO f = 184500 kHz I999B7C999D999T999G999Y999 (0:0:0)
191500: (time: 00:00.000) skipped: (freq 191500000 unsupported by driver)
initial_tune:2710: Setting frontend failed QAM_AUTO f = 191500 kHz I999B7C999D999T999G999Y999 (0:0:0)
198500: (time: 00:00.000) skipped: (freq 198500000 unsupported by driver)
Display More
Same output with 8 Mhz frequencies.
Any idea ?
Thanks, it works now.
I forgot update it. Now it is fixed.
Great work AFL !
Could you please check projects/S905/patches/linux/zz-850-amstream.c.patch
This patch gives me an error when compiling 8.0.1i :
APPLY PATCH (project) /home/nabil/LIBREELEC/AFL/8.0.1i-NEW/http://LibreELEC.tv/projects/S905/patches/linux/zz-850-amstream.c.patch
patching file drivers/amlogic/amports/amstream.c
Hunk #1 succeeded at 3567 (offset 374 lines).
patching file drivers/amlogic/amports/tsdemux.c
Hunk #1 succeeded at 84 (offset 7 lines).
patching file drivers/amlogic/amports/Makefile
Hunk #1 FAILED at 101.
1 out of 1 hunk FAILED -- saving rejects to file drivers/amlogic/amports/Makefile.rej
Makefile:12: recipe for target 'image' failed
Thanks
Hi,
I just grabbed your source code from git and built it. The only difference I see is the user id : afl1@afl1 versus nabil@SCHUBERT
Maybe I should re-clone from scratch. Do you see any strange stuff in the log, related to aml_fe ?
Cheers
In log I see you are not running my build
Code[ 0.000000@0] Initializing cgroup subsys cpuset [ 0.000000@0] Initializing cgroup subsys cpu [ 0.000000@0] Initializing cgroup subsys cpuacct [ 0.000000@0] Linux version 3.14.29 (nabil@SCHUBERT) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #1 SMP Wed May 3 23:21:32 WEST 2017 [ 0.000000@0] CPU: AArch64 Processor [410fd034] revision 4
My builds starts with following ID.Code[ 0.000000@0] Initializing cgroup subsys cpuset [ 0.000000@0] Initializing cgroup subsys cpu [ 0.000000@0] Initializing cgroup subsys cpuacct [ 0.000000@0] Linux version 3.14.29 (afl1@afl1) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #1 SMP Fri May 5 22:36:29 CEST 2017 [ 0.000000@0] CPU: AArch64 Processor [410fd034] revision 4
Hi AFL,
Here is the the link : giQX
The kodi.bin crash at the end of the log is normal, I am testing some stuff in kodi, not related to DVB.
Thanks.
[hr]
Hi prival17,
I tried on a stock android and I got the same error. Do you think it could be a problem with dtb.img (specific to KII Pro) not taken into account during boot ?
I will try on a KI Plus and see if it works.
Hi AFL,
No, it didn't work. I tried with a new SD card and I get the same error. Any other idea ?
I also tried to update by copying the .tar and the dtb.img to /storage/.update/. It reboots, finds the update, installs everything... but same error.
Try to use another SD card. Your card is most likely damaged.
Hi,
I get the following text ouput on the screen when my KII Pro boots. I compiled 8.0.1i from source code.
[FAILED] Failed to start Load Kernel Modules
See systemctl status systemd-modules-load.service for details
etc.
(Please have a look at the enclosed screenshot)
The box actually boots and I get Kodi running. The only problem is that the DVB driver is not loaded (no /dev/dvb* stuff)
When I run the above systemctl command it tells that :
Failed to insert 'aml_fe': No such file or directory
By the way, I am booting from a SD card and I have copied dtb.img (specific to KII Pro) on that SD card.
Thanks
Hi AFL,
I am building your source code for KII Pro. I know that I must put a specific dtb.img on the SD card before booting the box. However I would like to integrate that dtb.img inside the source tree. Could you please tell me where I should put it in the LibreELEC tree before compiling ?
Thanks.
Thanks AFL, your patch works !
I updated sources for 8.0.0i.
media_build: 2017-04-17-rpi