openatv / enigma2

openatv-gui
GNU General Public License v2.0
200 stars 317 forks source link

DVD iso werden nicht abgespielt und es kommt ein gui neustart #2611

Closed jogibaer1948 closed 1 year ago

jogibaer1948 commented 2 years ago

Bei Wiedergabe über Enhanced Media Center und Movie Center, sowohl mit iso File auf int. HDD als auch mit externen DVD Player. Im Team blue läuft es und am pc und vlc auch.

Fehler tritt auf bei : Gigablue ue4k

ZGEMMA H7S OpenATV 7.0 image vom 10.10.2022

AX QuadBox HD2400 OpenATV 7.0 image vom 7.10.2022

Dreambox8000 OpenATV 7.0 image vom 10.10.2022

kein Fehler bei: AX HD51 4k OPENATV 7.0 image vom 7.10.2022 Testrefenz DVD iso steht bereit. 20221010-174119-enigma2-debug.log 20221010-174226-enigma2-debug.log

jogibaer1948 commented 2 years ago

Nach starten der iso und dem gui neustart sind alle tv sender nicht mehr synchronisiert und nur ein neustart hilft.

jbleyel commented 2 years ago

Geht es mit der AX HD51 4k auch mit einem neueren Image? Was ist mit den anderen Boxen und einem älteren Image?

doctorwhoopenatv commented 2 years ago

AX HD 51 4k clean OpenATV 7.1 gerade installiert . Da ist der Fehler jetzt auch vorhanden ! In 6.4 +7.0 war noch alles i.O. AX QuadBox 2400 HD + Dreambox 8000 haben kein multiboot , da müsste ich alles neuflashen. Die Zgemma H7S ist z.Z. nicht verfügbar . Müsste ich später testen . Siehe auch : https://www.opena.tv/air-digital-zgemma-h7/59283-dvd-crash-zgemma-h7-atv-6-4-25-04-2022-7-0-a.html

jogibaer1948 commented 2 years ago

Hier noch jemand mit dem problem und tolle angaben. https://www.opena.tv/air-digital-zgemma-h7/59283-dvd-crash-zgemma-h7-atv-6-4-25-04-2022-7-0-a-post515866.html#post515866

jogibaer1948 commented 2 years ago

Beim starten der test dvd iso kommt immer noch ein gui neustart. Deweiteren sind dann nicht nur alle sender unsynchron sondern auch viele mp4 haben keinen ton mehr und spulen geht bei allen nicht mehr. Auch geht dann nichts mehr mit dem hdf radio. Vieleicht hilft das ja. Nur ein richtiger neustart behebt das dann. Reproduzierbar. Kein crashlog vorhanden und debug sind ja oben.

William-Richards commented 1 year ago

https://www.opena.tv/openatv-7-1-py3-10-openssl-3-0-soon-eos/61120-openatv-7-1-dm920-dvd-iso-abspielen-und-dvd-backup-plugin-stuertzt-box-ab.html

ArnoldSchiller commented 1 year ago

OpenAtv 7.2 Image maxytecse März 2023 - Isofiles und DVD/Bluerays lassen sich nicht abspielen - enigma2 verabschiedet sich ohne crashlog und startet neu. Mit dem e2iplayer können die Isos geöffnet werden und im VIDEO_TS-Ordner die einzelnen VOB-Dateien abspielen. libdvdcss funktioniert also nur libdvdnav anscheinend nicht.

jbleyel commented 1 year ago

Das Problem ist bekannt und leider nicht so leicht zu fixen. Wir sind da seit Monaten schon dran.

ArnoldSchiller commented 1 year ago

Nun wenn ich "opkg list | grep resindvd" mache ist kein Plugin von gstreamer dabei. Auch finde ich keine libgstresindvd.so bei openatv 7.2 in der Installation. Diese Lib sollte aber für dvdnav zuständig sein und es können.

4l3x2k commented 1 year ago

Meinen Erkenntnissen nach wird für die DVD Wiedergabe unter enigma2 kein GStreamer benötigt.

Die von enigma2 verwendete Komponente ist

libdreamdvd

Diese Komponente hat weitere Abhängigkeiten zu

libdvdnav

Im Zusammenhang mit diesen Abhängigkeiten sind unter enigma2 folgende Komponenten zu untersuchen

lib/service/servicedvd.h
lib/service/servicedvd.cpp
lib/python/Screens/DVD.py (für das MediaCenter. Für EMC gilt ein anderer Screen)
lib/python/Plugins/Extensions/DVDPlayer (für DVD Laufwerke)

Weitere, optionale Komponenten sind

libdvdread
libdvdcss
libudfread
liba52

Als erstes sollten wir einen ältere Patch für libdreamdvd verwenden. Dadurch wird schonmal der "leise" Absturz von enigma2 ohne Crashlog verhindert.

Zu verwendender Patch für libdreamdvd https://github.com/oe-alliance/oe-alliance-core/commit/2aff44f5e0c5e144fda79956ddcb3e5273fdf526

Aktueller Patch für libdreamdvd https://github.com/oe-alliance/oe-alliance-core/commit/007f2ac6a23c3d5d4cf3f190ad0f89896dc9af0c

Mit dem aktuellen Patch stürzt libdreamdvd beim laden von liba52 ab.

ArnoldSchiller commented 1 year ago

Nun der e2iplayer verwendet gstreamer als Möglichkeit DVDs abzuspielen und schafft das auch ohne dvdnav da resindvd nicht installiert ist, wird er nie dvdnav können. Eine andere Möglichkeit DVDs abzuspielen besteht ja derzeit nicht. Wie enigma2 an sich DVDs abspielen möchte oder wie der weg wäre weiss ich nun gar nicht. Momentan zumindest geht es gar nicht.

ArnoldSchiller commented 1 year ago

https://github.com/oe-alliance-mirrors/libdreamdvd/blob/main/main.c sagt mir dann das die libdreamdvd standardmässig dorthin rumpelt... ddvd_set_dvd_path(pconfig, "/dev/cdroms/cdrom0");

ArnoldSchiller commented 1 year ago

Ok in servicedvd.cpp ist sowas bei openpli mit drin

static struct PyModuleDef servicedvd_moduledef = { PyModuleDef_HEAD_INIT, "servicedvd", /* m_name */ "servicedvd", /* m_doc */ -1, /* m_size */ NULL, /* m_methods */ NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL, /* m_free */ }; und endet dann mit return PyModule_Create(&servicedvd_moduledef);

https://raw.githubusercontent.com/builder08/OpenPLi-enigma2_develop-py3/master/lib/service/servicedvd.cpp

Bei openpli startet ja der dvdplayer wenn auch der ac3-Stream grottig ist,

jbleyel commented 1 year ago

Du meinst das:

https://github.com/openatv/enigma2/blob/master/lib/service/servicedvd.cpp#L1176-L1192

PyModule_Create ist Python 3

Py_InitModule ist Python 2

Keine Ahnung was du da genau bei PLI testest, denn die haben den gleichen Code wie wir.

Es sei denn du testest ein python 2 Image.

jbleyel commented 1 year ago

Wenn du nur den Film der DVD anschauen wills dann mach einfach eine MKV draus:

https://www.google.com/search?q=dvd+to+mkv&oq=dvd+to+&aqs=chrome.2.69i57j0i512l9.3596j0j9&sourceid=chrome&ie=UTF-8

Wenn du auch das Menü der DVD brauchst dann musst du warten bis wir eine Lösung haben die funktioniert.

ArnoldSchiller commented 1 year ago

Wenn die den gleichen Code haben, openpli war ja bei der maxytec vorinstalliert, wieso spielt dann bei openpli das iso-image und bei openatv sagt ein Klick nach dem Load einfach leise tschüss ohne crashlog und sonst was. Ich verwende openpli nicht mehr, sondern das war halt das erste enigma2-Image, das weil vorinstalliert, ich getestet hatte. War (Kistchen kam am 4.3.2023 ins Haus) das aktuelle Openpli-Image.

OpenAtv gefällt mir insgesamt besser und ist insgesamt durchdachter.

Ich war etwas erstaunt, dass es bei openatv gar nicht geht und versuche zu verstehen, warum nicht.

Was nun Lösung angeht, die funktioniert, ist auch die Frage, wie in Zukunft das gepflegt werden soll. Alles was ich an libdvdream so gefunden habe, ist wohl vom Code her bald 10 Jahre alt.

Nun gut gstreamer-resindvd dürfte vielleicht auch so alt sein oder älter wird aber wohl in gstreamer gepflegt. Zumindest danach https://github.com/GStreamer/gst-plugins-bad/tree/master/ext/resindvd ist die letzte Änderung vom Mai 2021.

Nur den Film schauen geht ja im Grunde auch e2iplayer die VOBs einfach der Reihe nach. e2iplayer maccht das mit dem Gstreamer allerdings fehlt in openatv resindvd - damit dann der Player logischerweise kein dvdnav. libdvdream ist zwar ein Wrapper um dvdnav tut es aber aus mir nicht ganz verständlichen Gründen offensichtlich nicht.

nickersk commented 1 year ago

so resindvd should be dvdnav running dependency?

ArnoldSchiller commented 1 year ago

yes see source of resindvd

include <dvdnav/dvdnav.h>

include <dvdread/ifo_read.h>

include <dvdread/nav_read.h>

4l3x2k commented 1 year ago

@ArnoldSchiller Could you please test dvd playback with deinstalled liba52-0?

To remove: opkg remove --force-depends liba52-0 To install: opkg install liba52-0

Please write the platform or architecture of your box. If you do not know it please report the box tested.

ArnoldSchiller commented 1 year ago

done .... DVD inserted ... dmesg ... does not look good [1111635.322182] UDF-fs: error (device loop0): udf_read_tagged: read failed, block=377, location=112 [1111635.329638] UDF-fs: error (device loop0): udf_read_inode: (ino 377) failed !bh .... ok try an isomage from harddisk - no change exactly same behavior without message in dmesg or elsewhere starts player and says goodbye without message in log or elsewhere. No change.

`opkg remove --force-depends liba52-0 Removing liba52-0 (0.7.4) from root... root@maxytecmultise:~# opkg install liba52-0 Installing liba52-0 (0.7.4) on root. Downloading https://feeds2.mynonpublic.com/7.2/multiboxse/cortexa15hf-neon-vfpv4/liba52-0_0.7.4-r4_cortexa15hf-neon-vfpv4.ipk. Configuring liba52-0. root@maxytecmultise:~# dmesg [ 209.467484] i2c i2c-1: Load avl6862 firmware patch for DVB-T/T2 size=65048 [ 210.979358] i2c i2c-1: avl6862 patch ver 2.0 build 20544 [ 211.057291] i2c i2c-1: Load avl6862 firmware patch for DVB-S/S2 size=44000 [ 211.345354] i2c i2c-1: avl6862 patch ver 2.0 build 20621 [ 222.257867] i2c i2c-1: Load avl6862 firmware patch for DVB-C size=48320 [ 223.155354] i2c i2c-1: avl6862 patch ver 2.0 build 22219 [ 7422.317421] sh (7079): drop_caches: 3 [ 7558.546832] i2c i2c-1: Load avl6862 firmware patch for DVB-T/T2 size=65048 [ 7560.058842] i2c i2c-1: avl6862 patch ver 2.0 build 20544 [ 7560.135740] i2c i2c-1: Load avl6862 firmware patch for DVB-S/S2 size=44000 [ 7560.424840] i2c i2c-1: avl6862 patch ver 2.0 build 20621 [ 7571.219767] i2c i2c-1: Load avl6862 firmware patch for DVB-C size=48320 [ 7572.116850] i2c i2c-1: avl6862 patch ver 2.0 build 22219 [ 7793.822108] enigma2 (7208): drop_caches: 1 [86135.492653] R8188EU: sta recv deauth reason code(6) sta:e0:28:6d:07:8f:b8 [86135.504787] R8188EU: indicate disassoc [86137.147269] R8188EU: indicate disassoc [86138.785293] R8188EU: assoc success [596063.941139] dvb_demux_feed_del: feed not in list (type=0 state=0 pid=ffff) [596063.947334] dvb_demux_feed_del: feed not in list (type=0 state=0 pid=ffff) [596063.953125] dvb_demux_feed_del: feed not in list (type=0 state=0 pid=ffff) [1111375.079362] i2c i2c-1: Load avl6862 firmware patch for DVB-T/T2 size=65048 [1111376.570298] i2c i2c-1: avl6862 patch ver 2.0 build 20544 [1111376.647159] i2c i2c-1: Load avl6862 firmware patch for DVB-S/S2 size=44000 [1111376.935314] i2c i2c-1: avl6862 patch ver 2.0 build 20621 [1111388.106337] i2c i2c-1: Load avl6862 firmware patch for DVB-C size=48320 [1111389.004291] i2c i2c-1: avl6862 patch ver 2.0 build 22219 [1111419.066292] usb 4-1: USB disconnect, device number 2 [1111419.070775] blk_update_request: I/O error, dev sda, sector 0 [1111419.079581] sd 0:0:0:0: [sda] Synchronizing SCSI cache [1111419.083740] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=0x00 [1111431.866591] usb 4-1: new SuperSpeed USB device number 3 using xhci-hcd [1111431.885220] usb-storage 4-1:1.0: USB Mass Storage device detected [1111431.890244] scsi host1: usb-storage 4-1:1.0 [1111436.942216] scsi 1:0:0:0: CD-ROM PIONEER BD-RW BDR-UD03 1.11 PQ: 0 ANSI: 0 [1111437.086678] sr 1:0:0:0: [sr0] scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray [1111437.094021] cdrom: Uniform CD-ROM driver Revision: 3.20 [1111437.098371] sr 1:0:0:0: Attached scsi CD-ROM sr0 [1111505.289640] WARNING: CPU: 2 PID: 1369 at /home/oe1/atv7.2/build-enviroment/builds/openatv/release/multiboxse/tmp/work-shared/multiboxse/kernel-source/fs/fs-writeback.c:2117 __mark_inode_dirty+0x194/0x488() [1111505.306597] bdi-block not registered [1111505.308870] Modules linked in: sr_mod cdrom bnep bluetooth r8188eu(C) cfg80211 xfs libcrc32c tntfs(PO) mali(O) multiboxse_4(O) multiboxse_3(O) multiboxse_2(O) multiboxse_1(O) [1111505.323246] CPU: 2 PID: 1369 Comm: enigma2 Tainted: P WC O 4.4.35 #1 .,.

[1111635.298566] blk_update_request: I/O error, dev loop0, sector 1504 [1111635.303391] UDF-fs: error (device loop0): udf_read_tagged: read failed, block=376, location=111 [1111635.310814] UDF-fs: error (device loop0): udf_read_inode: (ino 376) failed !bh `

ArnoldSchiller commented 1 year ago

Ich hatte dich missverstanden. Deswegen nochmal mit deinstallierten liba52-0

opkg remove --force-depends liba52-0 Removing liba52-0 (0.7.4) from root... root@maxytecmultise:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.4.35 (oe-user@oe-host) (gcc version 12.2.0 (GCC) ) #1 SMP Tue Feb 18 23:44:49 UTC 2020 [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] initmrd: found no initmrd. [ 0.000000] Machine model: Hisilicon [ 0.000000] cma: Reserved 44 MiB at 0x39c00000 [ 0.000000] cma: Reserved 4 MiB at 0x3d400000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] -------------Fixed IO Mapping---------- [ 0.000000] Virt, Phys, Size [ 0.000000] 0xF9000000, 0xF8000000, 0x02000000 [ 0.000000] -------------------------------------- [ 0.000000] On node 0 totalpages: 252672 [ 0.000000] free_area_init_node: node 0, pgdat c0bb7c00, node_mem_map dfc41000 [ 0.000000] Normal zone: 1032 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 132096 pages, LIFO batch:31 [ 0.000000] HighMem zone: 120576 pages, LIFO batch:31 [ 0.000000] PERCPU: Embedded 13 pages/cpu @dfbfd000 s22604 r8192 d22452 u53248 [ 0.000000] pcpu-alloc: s22604 r8192 d22452 u53248 alloc=13*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 251640 [ 0.000000] Kernel command line: root=/dev/mmcblk0p23 rootsubdir=linuxrootfs1 rootfstype=ext4 kernel=/dev/mmcblk0p19 console=ttyAMA0,115200 blkdevparts=mmcblk0:1M(fastboot),1M(bootargs),18M(recovery),2M(bootoptions),2M(deviceinfo),4M(baseparam),4M(pqparam),4M(logo),40M(fastplay),20M(boot),20M(trustedcore),4M(misc),1024M(system),150M(vendor),306M(e2tv),256M(cache),50M(dtbo),8M(securestore),16M(linuxkernel1),16M(linuxkernel2),16M(linuxkernel3),16M(linuxkernel4),-(userdata) mem=987M mmz=ddr,0,0,44M vmalloc=500M [ 0.000000] log_buf_len individual max cpu contribution: 4096 bytes [ 0.000000] log_buf_len total cpu_extra contributions: 12288 bytes [ 0.000000] log_buf_len min size: 16384 bytes [ 0.000000] log_buf_len: 32768 bytes [ 0.000000] early log buf free: 14212(86%) [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 929868K/1010688K available (7926K kernel code, 687K rwdata, 2260K rodata, 560K init, 522K bss, 31668K reserved, 49152K cma-reserved, 422696K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) lowmem : 0xc0000000 - 0xe0400000 ( 516 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc07c5cdc (7928 kB) .init : 0xc0a94000 - 0xc0b20000 ( 560 kB) .data : 0xc0b20000 - 0xc0bcbe6c ( 688 kB) .bss : 0xc0bcd000 - 0xc0c4f938 ( 523 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:352 [ 0.000000] clocksource: hisp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000003] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.000131] Console: colour dummy device 80x30 [ 0.000141] Calibrating delay loop... 3170.30 BogoMIPS (lpj=1585152) [ 0.014030] pid_max: default: 32768 minimum: 301 [ 0.014080] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.014084] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.014366] CPU: Testing write buffer coherency: ok [ 0.014382] ftrace: allocating 26342 entries in 78 pages [ 0.040210] CPU0: update cpu_capacity 1024 [ 0.040219] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.040266] Setting up static identity map for 0x8280 - 0x82d8 [ 0.042138] CPU: hi3798mv200 [ 0.042471] CPU1: powerup [ 0.048021] CPU1: update cpu_capacity 1024 [ 0.048024] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.048196] CPU2: powerup [ 0.054020] CPU2: update cpu_capacity 1024 [ 0.054023] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.054194] CPU3: powerup [ 0.060020] CPU3: update cpu_capacity 1024 [ 0.060023] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.060053] Brought up 4 CPUs [ 0.060059] SMP: Total of 4 processors activated (12681.21 BogoMIPS). [ 0.060061] CPU: All CPU(s) started in SVC mode. [ 0.060084] CPU3: update max cpu_capacity 1024 [ 0.060560] devtmpfs: initialized [ 0.062532] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4 [ 0.062671] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.062839] PCIe read alloc area phyaddr 08 size 00000000 [ 0.062844] PCIe write alloc area phyaddr 08 size 00000000 [ 0.063247] NET: Registered protocol family 16 [ 0.063449] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.064425] CPU3: update max cpu_capacity 1024 [ 0.067527] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.067533] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.067638] Serial: AMBA PL011 UART driver [ 0.067754] f8b00000.uart: ttyAMA0 at MMIO 0xf8b00000 (irq = 25, base_baud = 0) is a PL011 rev2 [ 0.421033] console [ttyAMA0] enabled [ 0.423566] f8b02000.uart: ttyAMA1 at MMIO 0xf8b02000 (irq = 26, base_baud = 0) is a PL011 rev2 [ 0.431099] f8b03000.uart: ttyAMA2 at MMIO 0xf8b03000 (irq = 27, base_baud = 0) is a PL011 rev2 [ 0.438732] pl061_gpio f8b20000.gpio0: PL061 GPIO chip @0xf8b20000 registered [ 0.444644] pl061_gpio f8b21000.gpio1: PL061 GPIO chip @0xf8b21000 registered [ 0.450551] pl061_gpio f8b22000.gpio2: PL061 GPIO chip @0xf8b22000 registered [ 0.456461] pl061_gpio f8b23000.gpio3: PL061 GPIO chip @0xf8b23000 registered [ 0.462376] pl061_gpio f8b24000.gpio4: PL061 GPIO chip @0xf8b24000 registered [ 0.468285] pl061_gpio f8004000.gpio5: PL061 GPIO chip @0xf8004000 registered [ 0.474193] pl061_gpio f8b26000.gpio6: PL061 GPIO chip @0xf8b26000 registered [ 0.480111] pl061_gpio f8b27000.gpio7: PL061 GPIO chip @0xf8b27000 registered [ 0.486020] pl061_gpio f8b28000.gpio8: PL061 GPIO chip @0xf8b28000 registered [ 0.491928] pl061_gpio f8b29000.gpio9: PL061 GPIO chip @0xf8b29000 registered [ 0.506689] hisilicon-pcie: probe of f0001000.pcie failed with error -1 [ 0.512219] hisi_iommu_ptable_addr:phy 0x1e800000 size:0x400000 [ 0.517097] hisi_iommu_err_rdaddr :phy 0x1f76b600 size:0x200 [ 0.521707] hisi_iommu_err_wraddr :phy 0x1f76b800 size:0x200 [ 0.526439] in hisi_iommu_domain_init start [ 0.531030] in hisi_iommu_domain_init end [ 0.533882] vgaarb: loaded [ 0.535439] SCSI subsystem initialized [ 0.537971] libata version 3.00 loaded. [ 0.538037] ssp-pl022 f8b1a000.spi: ARM PL022 driver, device ID: 0x00041022 [ 0.543708] ssp-pl022 f8b1a000.spi: mapped registers from 0xf8b1a000 to f9b1a000 [ 0.549977] spi_master spi0: will run message pump with realtime priority [ 0.555652] usbcore: registered new interface driver usbfs [ 0.559861] usbcore: registered new interface driver hub [ 0.563893] usbcore: registered new device driver usb [ 0.567712] media: Linux media interface: v0.10 [ 0.570958] Linux video capture interface: v2.00 [ 0.574771] Advanced Linux Sound Architecture Driver Initialized. [ 0.580585] clocksource: Switched to clocksource hisp804 [ 0.599557] FS-Cache: Loaded [ 0.605995] NET: Registered protocol family 2 [ 0.609332] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.615096] TCP bind hash table entries: 4096 (order: 3, 32768 bytes) [ 0.620263] TCP: Hash tables configured (established 4096 bind 4096) [ 0.625354] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.629888] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.634919] NET: Registered protocol family 1 [ 0.638107] RPC: Registered named UNIX socket transport module. [ 0.642724] RPC: Registered udp transport module. [ 0.646120] RPC: Registered tcp transport module. [ 0.649516] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.654660] PCI: CLS 0 bytes, default 64 [ 0.655427] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.660786] hw perfevents: enabled with armv7_cortex_a17 PMU driver, 7 counters available [ 0.668288] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.677882] VFS: Disk quotas dquot_6.6.0 [ 0.680629] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.687156] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.692159] NFS: Registering the id_resolver key type [ 0.695932] Key type id_resolver registered [ 0.698809] Key type id_legacy registered [ 0.701520] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.706915] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.712103] FS-Cache: Netfs 'cifs' registered for caching [ 0.716384] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 0.721560] fuse init (API version 7.23) [ 0.724471] yaffs: yaffs built Installing. [ 0.726724] bounce: pool size: 64 pages [ 0.729375] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.735470] io scheduler noop registered [ 0.738089] io scheduler deadline registered (default) [ 0.741933] io scheduler cfq registered [ 0.744486] hiahci-phy: registered new sata phy driver [ 0.754196] brd: module loaded [ 0.758967] loop: module loaded [ 0.761076] ahci: probe of f9900000.hiahci failed with error -1 [ 0.765824] hifmc100: registerd new interface driver hifmc100. [ 0.770419] hifmc100: Found flash memory controller hifmc100. [ 0.776631] hifmc100: no found spi-nor device. [ 0.781595] hifmc100: no found nand device. [ 0.785617] hifmc100: no found spi-nand device. [ 0.824258] FEPHY:addr=2, la_am=0xe, ldo_am=0x3, r_tuning=0x13 [ 0.833835] libphy: himii: probed [ 0.898104] hi_eth: attached port 0 PHY 2 to driver HiSilicon Festa v330 [ 0.905900] /soc/ethernet@f9840000/ethernet_phy@0 has invalid PHY address=255 [ 0.911802] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.917037] ehci-pci: EHCI PCI platform driver [ 0.920226] ehci-platform: EHCI generic platform driver [ 0.932229] ehci-platform f9890000.ehci: EHCI Host Controller [ 0.936681] ehci-platform f9890000.ehci: new USB bus registered, assigned bus number 1 [ 0.943366] ehci-platform f9890000.ehci: irq 34, io mem 0xf9890000 [ 0.953587] ehci-platform f9890000.ehci: USB 2.0 started, EHCI 1.00 [ 0.958980] hub 1-0:1.0: USB hub found [ 0.961445] hub 1-0:1.0: 2 ports detected [ 0.964420] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 0.969305] ohci-pci: OHCI PCI platform driver [ 0.972486] ohci-platform: OHCI generic platform driver [ 0.976483] ohci-platform f9880000.ohci: Generic Platform OHCI controller [ 0.981975] ohci-platform f9880000.ohci: new USB bus registered, assigned bus number 2 [ 0.988632] ohci-platform f9880000.ohci: irq 35, io mem 0xf9880000 [ 1.047968] hub 2-0:1.0: USB hub found [ 1.050428] hub 2-0:1.0: 2 ports detected [ 1.065153] xhci-hcd f98a0000.xhci: xHCI Host Controller [ 1.069171] xhci-hcd f98a0000.xhci: new USB bus registered, assigned bus number 3 [ 1.075438] xhci-hcd f98a0000.xhci: hcc params 0x0220f06c hci version 0x100 quirks 0x00030010 [ 1.082677] xhci-hcd f98a0000.xhci: irq 37, io mem 0xf98a0000 [ 1.087552] hub 3-0:1.0: USB hub found [ 1.090016] hub 3-0:1.0: 1 port detected [ 1.092821] xhci-hcd f98a0000.xhci: xHCI Host Controller [ 1.096835] xhci-hcd f98a0000.xhci: new USB bus registered, assigned bus number 4 [ 1.103050] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.110187] hub 4-0:1.0: USB hub found [ 1.112645] hub 4-0:1.0: 1 port detected [ 1.115560] usbcore: registered new interface driver usb-storage [ 1.120415] mousedev: PS/2 mouse device common for all mice [ 1.124851] usbcore: registered new interface driver xpad [ 1.129009] i2c /dev entries driver [ 1.131770] IR NEC protocol handler initialized [ 1.134997] IR RC5(x/sz) protocol handler initialized [ 1.138744] IR RC6 protocol handler initialized [ 1.141971] IR JVC protocol handler initialized [ 1.145197] IR Sony protocol handler initialized [ 1.148510] IR SANYO protocol handler initialized [ 1.151910] IR Sharp protocol handler initialized [ 1.155313] IR MCE Keyboard/mouse protocol handler initialized [ 1.159843] IR XMP protocol handler initialized [ 1.163325] sp805-wdt f8a2c000.watchdog: registration successful [ 1.168146] registered new interface driver himciV2.0_4.4.35_20170401 [ 1.288594] usb 1-1: new high-speed USB device number 2 using ehci-platform [ 1.395593] usb 3-1: new high-speed USB device number 2 using xhci-hcd [ 1.429083] usb-storage 1-1:1.0: USB Mass Storage device detected [ 1.434004] scsi host0: usb-storage 1-1:1.0 [ 1.489347] mmc0: MAN_BKOPS_EN bit is not set [ 1.496509] scan edges:3 p2f:7 f2p:2 [ 1.498780] mix set temp-phase 4 [ 1.503451] scan elemnts: startp:20 endp:3 [ 1.506245] Tuning SampleClock. mix set phase:[04/07] ele:[11/16] [ 1.526919] mmc0: new HS400 MMC card at address 0001 [ 1.530856] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB [ 1.534172] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB [ 1.538589] usb 1-2: new high-speed USB device number 3 using ehci-platform [ 1.544521] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB [ 1.549218] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB [ 1.553944] mmcblk0: p1(fastboot) p2(bootargs) p3(recovery) p4(bootoptions) p5(deviceinfo) p6(baseparam) p7(pqparam) p8(logo) p9(fastplay) p10(boot) p11(trustedcore) p12(misc) p13(system) p14(vendor) p15(e2tv) p16(cache) p17(dtbo) p18(securestore) p19(linuxkernel1) p20(linuxkernel2) p21(linuxkernel3) p22(linuxkernel4) p23(userdata) [ 1.632672] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd [ 1.652908] usb-storage 4-1:1.0: USB Mass Storage device detected [ 1.657836] scsi host1: usb-storage 4-1:1.0 [ 1.906438] scan edges:2 p2f:2 f2p:4 [ 1.907590] f9c40000.himciv200.SD: eMMC/MMC/SD Device NOT detected! [ 1.913666] mix set temp-phase 7 [ 1.916726] scan elemnts: startp:35 endp:32 [ 1.919605] Tuning SampleClock. mix set phase:[07/07] ele:[03/10] [ 1.939778] mmc1: new ultra high speed SDR104 SDXC card at address 0001 [ 1.945308] mmcblk1: mmc1:0001 SD128 116 GiB [ 1.953387] mmcblk1: p1 [ 2.011091] usbcore: registered new interface driver usbhid [ 2.015362] usbhid: USB HID core driver [ 2.018016] ashmem: initialized [ 2.020260] usbcore: registered new interface driver snd-usb-audio [ 2.025459] oprofile: using timer interrupt. [ 2.028485] Netfilter messages via NETLINK v0.30. [ 2.031890] nfnl_acct: registering with nfnetlink. [ 2.035506] ip_tables: (C) 2000-2006 Netfilter Core Team [ 2.039521] arp_tables: (C) 2002 David S. Miller [ 2.043384] NET: Registered protocol family 10 [ 2.046928] NET: Registered protocol family 17 [ 2.050132] Key type dns_resolver registered [ 2.053173] Registering SWP/SWPB emulation handler [ 2.058003] ALSA device list: [ 2.059670] No soundcards found. [ 2.062196] Freeing unused kernel memory: 560K (c0a94000 - c0b20000) [ 2.067243] This architecture does not have kernel memory protection. [ 2.075488] EXT4-fs (mmcblk0p23): warning: maximal mount count reached, running e2fsck is recommended [ 2.086868] EXT4-fs (mmcblk0p23): mounted filesystem with ordered data mode. Opts: (null) [ 2.240804] FAT-fs (mmcblk0p4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 2.439427] scsi 0:0:0:0: Direct-Access Samsung Portable SSD T5 0 PQ: 0 ANSI: 6 [ 2.447276] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) [ 2.454642] sd 0:0:0:0: [sda] Write Protect is off [ 2.458136] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 2.459269] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.473290] sda: sda1 sda2 sda3 [ 2.478521] sd 0:0:0:0: [sda] Attached SCSI disk [ 2.665105] scsi 1:0:0:0: Direct-Access TOSHIBA External USB 3.0 5438 PQ: 0 ANSI: 6 [ 2.674721] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16). [ 2.681021] sd 1:0:0:0: [sdb] 7814037164 512-byte logical blocks: (4.00 TB/3.64 TiB) [ 2.682057] random: nonblocking pool is initialized [ 2.691105] sd 1:0:0:0: [sdb] 4096-byte physical blocks [ 2.695417] sd 1:0:0:0: [sdb] Write Protect is off [ 2.698925] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00 [ 2.699308] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.709511] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16). [ 8.022186] sdb: sdb1 sdb2 sdb3 [ 8.030018] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16). [ 8.037832] sd 1:0:0:0: [sdb] Attached SCSI disk [ 8.252722] EXT4-fs (sda1): recovery complete [ 8.257277] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [ 8.616394] FAT-fs (sda2): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 8.699443] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 9.031949] UDF-fs: bad mount option "etime" or missing value [ 9.500860] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null) [ 10.065028] hisi-sndcard hisi-sndcard: aiao-hifi <-> hisi-i2s mapping ok [ 10.113046] input: dreambox advanced remote control (native) as /devices/virtual/input/input1 [ 10.120609] input: rc mouse emulation as /devices/virtual/input/input2 [ 10.127286] DVB: registering new adapter (dvb0) [ 10.232125] i2c i2c-1: dvb: found AVL6862 family_id=0x68624955 [ 10.236696] i2c i2c-1: Load avl6862 firmware patch for DVB-S/S2 size=44000 [ 10.525394] i2c i2c-1: avl6862 patch ver 2.0 build 20621 [ 10.604125] i2c i2c-1: dvb: Rafael R848 successfully attached! [ 10.608706] platform dvb0.0: DVB: registering adapter 0 frontend 0 (Availink avl6862)... [ 10.673246] Mali: Mali device driver loaded [ 10.703230] tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel. [ 10.711572] Disabling lock debugging due to kernel taint [ 10.718319] Tuxera NTFS driver 3017.7.4.6 [Flags: R/W MODULE]. [ 10.722907] Built against headers 4.4.35_hi3798mv2x #1 SMP Tue Dec 12 14:16:24 CST 2017 arm [ 10.729973] Running on kernel 4.4.35 #1 SMP Tue Feb 18 23:44:49 UTC 2020 armv7l [ 10.736000] WARNING: Running kernel does not match configured kernel headers the driver was built with! The driver needs to be rebuilt with the correct kernel headers! [ 10.789180] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 11.315326] udevd[1844]: starting version 3.2.11 [ 11.330963] udevd[1845]: starting eudev-3.2.11 [ 11.455363] r8188eu: module is from the staging directory, the quality is unknown, you have been warned. [ 11.496038] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_UNKNOWN_CUT(10)_1T1R_RomVer(0) [ 11.550732] usbcore: registered new interface driver r8188eu [ 11.999379] EXT4-fs (mmcblk0p23): re-mounted. Opts: data=ordered [ 13.925459] EXT4-fs (sdb3): recovery complete [ 13.939038] EXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: (null) [ 14.337140] MAC Address = 30:7b:c9:8b:cb:d7 [ 14.345105] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 19.555586] R8188EU: indicate disassoc [ 21.156406] R8188EU: assoc success [ 21.158562] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 24.942705] Bluetooth: Core ver 2.21 [ 24.945004] Bluetooth: Starting self testing [ 24.970808] Bluetooth: ECDH test passed in 22281 usecs [ 24.986741] Bluetooth: SMP test passed in 75 usecs [ 24.990290] Bluetooth: Finished self testing [ 24.993323] NET: Registered protocol family 31 [ 24.996474] Bluetooth: HCI device and connection manager initialized [ 25.001543] Bluetooth: HCI socket layer initialized [ 25.005127] Bluetooth: L2CAP socket layer initialized [ 25.008901] Bluetooth: SCO socket layer initialized [ 25.031412] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 25.035491] Bluetooth: BNEP socket layer initialized [ 27.899066] i2c i2c-1: Load avl6862 firmware patch for DVB-C size=48320 [ 28.079371] i2c i2c-1: avl6862 patch ver 2.0 build 22219 [ 28.229491] i2c i2c-1: Load avl6862 firmware patch for DVB-T/T2 size=65048 [ 29.741401] i2c i2c-1: avl6862 patch ver 2.0 build 20544 [ 29.818254] i2c i2c-1: Load avl6862 firmware patch for DVB-S/S2 size=44000 [ 30.107405] i2c i2c-1: avl6862 patch ver 2.0 build 20621 [ 41.311944] i2c i2c-1: Load avl6862 firmware patch for DVB-C size=48320 [ 42.209371] i2c i2c-1: avl6862 patch ver 2.0 build 22219 [ 259.876392] i2c i2c-1: Load avl6862 firmware patch for DVB-T/T2 size=65048 [ 261.387413] i2c i2c-1: avl6862 patch ver 2.0 build 20544 [ 261.464284] i2c i2c-1: Load avl6862 firmware patch for DVB-S/S2 size=44000 [ 261.752383] i2c i2c-1: avl6862 patch ver 2.0 build 20621 [ 271.391028] i2c i2c-1: Load avl6862 firmware patch for DVB-C size=48320 [ 272.287370] i2c i2c-1: avl6862 patch ver 2.0 build 22219 Again iso image without liba52 player started and player runs and no longer crashes, but no sound.

ArnoldSchiller commented 1 year ago

AC3-Downmix out - The sound is choppy and fragmented, but a little sound. Conclusion dvdnav without sound works when liba52-0 is uninstalled also the player no longer crashes.

ArnoldSchiller commented 1 year ago

Ok liba52-0 reinstalled and got me an AC3 test file - just to test if the judder itself would be normal. But works without problems. Strange problem... a52dec -o wav surroundTest.ac3 | aplay a52dec-0.7.4 - by Michel Lespinasse walken@zoy.org and Aaron Holtzman No accelerated IMDCT transform found Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo 245 frames in 7.79 sec (31.45 fps), 16 last 0.56 sec (28.57 fps) 245 frames decoded in 7.79 seconds (31.45 fps) root@maxytecmultise:~# a52dec -o wavdolby surroundTest.ac3 | aplay a52dec-0.7.4 - by Michel Lespinasse walken@zoy.org and Aaron Holtzman No accelerated IMDCT transform found Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo 245 frames in 7.79 sec (31.45 fps), 16 last 0.56 sec (28.57 fps) 245 frames decoded in 7.79 seconds (31.45 fps)

4l3x2k commented 1 year ago

Thank you for feedback.

As long as we're talking about enigma2's way of playing dvd the library that does not work is libdreamdvd! Look like it is tailored to dream property kind of hardware.

libdvdnav, libdvdread and even liba52 are working without any issues.

hisilicon boxes that use servicehisilicon are the problem at the moment as they don't play back ac3 audio via the hardware decoder like other boxes do.

ArnoldSchiller commented 1 year ago

Ok exciting question, at least the code here does not look that hardware specific https://github.com/OpenDMM/libdreamdvd/blob/master/a52_dec.c

4l3x2k commented 1 year ago

That's right.

Upstream libdreamdvd repo is at http://git.opendreambox.org/?p=libdreamdvd.git;a=summary

And while a52_dec is not the problem, the libdreamdvd mpegaudio_enc is.

libdreamdvd only uses liba52 if there is no ac3 decoding hardware. If there is no hardware support libdreamdvd tries to decode ac3 via liba52 and encodes with its own mpeg audio software encoder, mpegaudio_enc.

ArnoldSchiller commented 1 year ago

Hmmpf https://ffmpeg.org/doxygen/0.9/mpegaudioenc_8c-source.html is the origin of ffmpeg at libdreamdvd and the code actually works unchanged for years in ffmpeg.

4l3x2k commented 1 year ago

Alright. The code look quite the same, but there is something dreamdvd is not aware of.

With software decoding it works for me and my test dvd till this line: https://github.com/oe-mirrors/libdreamdvd/blob/8de792eef8901cea2f975826e379da661011b0c0/mpegaudio_enc.c#L347

Don't be surprised by the source url but this is what oe-alliance is building and distribute via images and updates.

If we really want to get software decoding from ac3 to lpcm working we need to find and fiddle what's going wrong at libdreamdvd and liba52.

That you're not happy with sound on your "servicehisilicon" box depends on driver and systemcalls in my opinion.

Currently the test result read like this

dvd without liba52-0

sf8008 (arm, servicemp3, 7.2) -> no video und no audio
hd51 (arm, servicemp3, 7.2) -> OK
zgemma h7s (arm, servicemp3, 6.4, 7.2, dvd-drive) -> OK
dm8000 (mips, servicemp3, 7.2, dvd-drive) -> OK
osmio (mips, servicemp3, 7.2) -> OK
hd61 (arm, servicehisilicon, 7.2) -> no audio
ue4k (arm, servicemp3, 7.2) -> crappy menu
ArnoldSchiller commented 1 year ago

Playing dvd-iso without lib52-0 top: '1655 root 20 0 121172 25556 6064 R 60.5 2.7 136:25.56 exe
1532 root rt 0 0 0 0 D 5.6 0.0 36:51.24 HI_VPSS_Softwar
1742 root 20 0 0 0 0 D 2.7 0.0 95:14.41 AoEngineTask
6397 root 20 0 194728 105768 22064 S 2.3 11.3 0:28.13 enigma2
1732 root rt 0 0 0 0 S 1.7 0.0 10:23.20 HI_VFMW_VideoDe
1531 root rt 0 0 0 0 D 0.7 0.0 7:45.58 HI_VPSS_Logic
1556 root 20 0 0 0 0 R 0.7 0.0 23:47.39 dmx_work
1733 root rt 0 0 0 0 S 0.7 0.0 6:06.88 VDH_Distributor
1489 root 20 0 0 0 0 D 0.3 0.0 9:07.68 HI_HDMI_kThread
1524 root 20 0 0 0 0 D 0.3 0.0 4:29.62 HI_VDEC_Task
1551 root 20 0 0 0 0 S 0.3 0.0 10:20.45 playpumps_work
1553 root 20 0 0 0 0 S 0.3 0.0 13:07.65 rec_work
1745 root 20 0 0 0 0 D 0.3 0.0 3:16.26 HI_WIN_ReleaseF '

lsof '1655 /dev/exe (deleted) 0 /dev/null 1655 /dev/exe (deleted) 1 /dev/null 1655 /dev/exe (deleted) 2 /dev/null 1655 /dev/exe (deleted) 3 /proc/1655/status 1655 /dev/exe (deleted) 4 socket:[5543] 1655 /dev/exe (deleted) 5 /dev/hi_player 1655 /dev/exe (deleted) 6 /dev/video_out0 1655 /dev/exe (deleted) 7 /dev/audio_out0 1655 /dev/exe (deleted) 8 pipe:[5544] 1655 /dev/exe (deleted) 9 pipe:[5544] 1655 /dev/exe (deleted) 10 /dev/video_out1 1655 /dev/exe (deleted) 11 pipe:[5545] 1655 /dev/exe (deleted) 12 pipe:[5545] 1655 /dev/exe (deleted) 13 pipe:[5546] 1655 /dev/exe (deleted) 14 pipe:[5546] 1655 /dev/exe (deleted) 15 pipe:[5547] 1655 /dev/exe (deleted) 16 pipe:[5547] 1655 /dev/exe (deleted) 17 /dev/hi_sys 1655 /dev/exe (deleted) 18 /dev/hi_log 1655 /dev/exe (deleted) 19 /dev/mmz_userdev 1655 /dev/exe (deleted) 20 /dev/hi_module 1655 /dev/exe (deleted) 21 /dev/hi_stat 1655 /dev/exe (deleted) 22 /dev/hi_vdec 1655 /dev/exe (deleted) 23 /dev/hi_sync 1655 /dev/exe (deleted) 24 /dev/hi_pm 1655 /dev/exe (deleted) 25 socket:[5564] 1655 /dev/exe (deleted) 26 /dev/hi_demux 1655 /dev/exe (deleted) 27 /dev/hi_venc 1655 /dev/exe (deleted) 28 /dev/hi_disp 1655 /dev/exe (deleted) 29 /dev/hi_pq 1655 /dev/exe (deleted) 30 /dev/hi_ao 1655 /dev/exe (deleted) 31 /dev/hi_vo 1655 /dev/exe (deleted) 32 /dev/hi_hdmi 1655 /dev/exe (deleted) 33 /dev/hi_adec' and

'6366 /bin/bash.bash 255 /usr/bin/enigma2.sh 6397 /usr/bin/enigma2 0 socket:[59813] 6397 /usr/bin/enigma2 1 /dev/console 6397 /usr/bin/enigma2 2 /dev/console 6397 /usr/bin/enigma2 3 socket:[59720] 6397 /usr/bin/enigma2 4 pipe:[59721] 6397 /usr/bin/enigma2 5 pipe:[59721] 6397 /usr/bin/enigma2 6 pipe:[59722] 6397 /usr/bin/enigma2 7 pipe:[59722] 6397 /usr/bin/enigma2 8 /dev/fb0 6397 /usr/bin/enigma2 9 /dev/fb0 6397 /usr/bin/enigma2 10 pipe:[59723] 6397 /usr/bin/enigma2 11 pipe:[59723] 6397 /usr/bin/enigma2 12 /dev/tty0 6397 /usr/bin/enigma2 13 /dev/input/event0 6397 /usr/bin/enigma2 14 /dev/input/event1 6397 /usr/bin/enigma2 15 /dev/hdmi_cec 6397 /usr/bin/enigma2 16 socket:[59724] 6397 /usr/bin/enigma2 17 socket:[59726] 6397 /usr/bin/enigma2 18 socket:[59727] 6397 /usr/bin/enigma2 19 pipe:[57119] 6397 /usr/bin/enigma2 20 pipe:[57119] 6397 /usr/bin/enigma2 21 pipe:[57120] 6397 /usr/bin/enigma2 22 pipe:[57120] 6397 /usr/bin/enigma2 23 /usr/lib/enigma2/python/StartEnigma.py 6397 /usr/bin/enigma2 25 pipe:[58159] 6397 /usr/bin/enigma2 26 pipe:[58159] 6397 /usr/bin/enigma2 27 pipe:[58247] 6397 /usr/bin/enigma2 28 socket:[57199] 6397 /usr/bin/enigma2 29 socket:[57200] 6397 /usr/bin/enigma2 30 socket:[57201] 6397 /usr/bin/enigma2 44 /dev/input/mice 6397 /usr/bin/enigma2 45 pipe:[59810] 6397 /usr/bin/enigma2 46 pipe:[59810] 6397 /usr/bin/enigma2 47 /dev/input/mouse0 6397 /usr/bin/enigma2 48 pipe:[59811] 6397 /usr/bin/enigma2 49 pipe:[59811] 6397 /usr/bin/enigma2 50 pipe:[59812] 6397 /usr/bin/enigma2 51 socket:[58189] 6397 /usr/bin/enigma2 52 pipe:[59812] 6397 /usr/bin/enigma2 53 /dev/dvb/adapter0/video0 6397 /usr/bin/enigma2 54 /dev/dvb/adapter0/audio0 6397 /usr/bin/enigma2 55 /media/EXT4_T5/dvd/babylon_5_the_gathering.iso 6397 /usr/bin/enigma2 57 pipe:[57169] 6397 /usr/bin/enigma2 59 pipe:[58247] 6397 /usr/bin/enigma2 61 pipe:[58248] 6397 /usr/bin/enigma2 62 /dev/null 6397 /usr/bin/enigma2 65 socket:[59734] 6397 /usr/bin/enigma2 66 pipe:[58248] 6397 /usr/bin/enigma2 68 socket:[59737] 6397 /usr/bin/enigma2 69 socket:[59738] 6397 /usr/bin/enigma2 71 pipe:[57169]'

i would have to run a strace on the whole enigma2 to find out where it goes wrong. To start the player simply for test purposes in the console is probably not possible? Used libdreamdvd0 - 1.0+git218+8de792e-r0

4l3x2k commented 1 year ago

The problem are hisilicon boxes but I did not find out what they expect to play audio correct. Maybe they need some special ioctl sequence or special PES header. But as most servicehisilicon boxes also run with servicegstreamer there should be no difference as far as I know.

No. Simply starting the player by console is not possible.

I wrote a little c program that links to libdreamdvd to get rid of enigma2 influence to libdreamdvd. This can be started from console.

The Archive contains the program code and a binary for arm boxes.

ddvd.zip

ArnoldSchiller commented 1 year ago

Output of ddvd

`
./ddvd 
ddvd
=============================
FSCREENINFO
-----------------------------
id =             hifb
smem_start = 0x24A000
smem_len = 24883200
type = 0
type_aux = 0
visual = 2
xpanstep = 1
ypanstep = 1
ywrapstep = 0
line_length = 5120
mmio_start = 0x0
mmio_len = 0
accel = 0
capabilities = 0
=============================
=============================
VSCREENINFO
-----------------------------
xres = 1280
yres = 720
xres_virtual = 1280
yres_virtual = 1440
xoffset = 0
yoffset = 720
bits_per_pixel = 32
grayscale = 0
red.offset = 16
red.length = 8
red.msb_right = 0
green.offset = 8
green.length = 8
green.msb_right = 0
blue.offset = 0
blue.length = 8
blue.msb_right = 0
transp.offset = 24
transp.length = 8
transp.msb_right = 0
nonstd = 0
activate = 0
height = 0
width = 0
accel_flags = 0
pixclock = 4294967295
left_margin = 4294967295
right_margin = 4294967295
upper_margin = 4294967295
lower_margin = 4294967295
hsync_len = 4294967295
vsync_len = 4294967295
sync = 0
vmode = 0
rotate = 0
colorspace = 0
=============================
audio_count = 0
spu_count = 0
libdreamdvd: soft ac3 decoding is available, liba52.so.0 loaded !
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
No accelerated IMDCT transform found
LIBDVD: 000.409: /proc/stb/pcr/pcr_stc_offset: Function not implementedLIBDVD: 000.409: /proc/stb/vmpeg/0/sync_offset: Function not implementedmessagepipe poll event in
DDVD_SIZE_CHANGED
last_size: width = -1, height = -1, aspect = 3
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_FRAMERATE_CHANGED
last_framerate: frate = -1
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_PROGRESSIVE_CHANGED
last_progressive: progressive = -1
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
libdvdread: Can't stat /media/hdd/movie/MAGICAL_MYSTERY_TOUR.ISO
No such file or directory
libdvdread: Could not open /media/hdd/movie/MAGICAL_MYSTERY_TOUR.ISO
libdvdnav: vm: failed to open/read the DVD
messagepipe poll event in
DDVD_SHOWOSD_STRING
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
LIBDVD: 000.976: /proc/stb/pcr/pcr_stc_offset: Function not implementedLIBDVD: 000.977: /proc/stb/vmpeg/0/sync_offset: Function not implementedkey 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 

`

ArnoldSchiller commented 1 year ago

Ok with an iso again


./ddvd 
ddvd
=============================
FSCREENINFO
-----------------------------
id =             hifb
smem_start = 0x24A000
smem_len = 24883200
type = 0
type_aux = 0
visual = 2
xpanstep = 1
ypanstep = 1
ywrapstep = 0
line_length = 5120
mmio_start = 0x0
mmio_len = 0
accel = 0
capabilities = 0
=============================
=============================
VSCREENINFO
-----------------------------
xres = 1280
yres = 720
xres_virtual = 1280
yres_virtual = 1440
xoffset = 0
yoffset = 720
bits_per_pixel = 32
grayscale = 0
red.offset = 16
red.length = 8
red.msb_right = 0
green.offset = 8
green.length = 8
green.msb_right = 0
blue.offset = 0
blue.length = 8
blue.msb_right = 0
transp.offset = 24
transp.length = 8
transp.msb_right = 0
nonstd = 0
activate = 0
height = 0
width = 0
accel_flags = 0
pixclock = 4294967295
left_margin = 4294967295
right_margin = 4294967295
upper_margin = 4294967295
lower_margin = 4294967295
hsync_len = 4294967295
vsync_len = 4294967295
sync = 0
vmode = 0
rotate = 0
colorspace = 0
=============================
audio_count = 0
spu_count = 0
libdreamdvd: soft ac3 decoding is available, liba52.so.0 loaded !
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
LIBDVD: 000.671: /proc/stb/pcr/pcr_stc_offset: Function not implementedkey 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
No accelerated IMDCT transform found
LIBDVD: 000.671: /proc/stb/vmpeg/0/sync_offset: Function not implementedmessagepipe poll event in
DDVD_SIZE_CHANGED
last_size: width = -1, height = -1, aspect = 3
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_FRAMERATE_CHANGED
last_framerate: frate = -1
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_PROGRESSIVE_CHANGED
last_progressive: progressive = -1
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
libdvdnav: DVD Title: ANIMALS_ARE_BEAUTIFUL_PEOPLE
libdvdnav: DVD Serial Number: 327D4393
libdvdnav: DVD Title (Alternative): ANIMALS_ARE_BEAUTIFUL_PEOPLE
libdvdnav: DVD disk reports itself with Region mask 0x00e50000. Regions: 02 04 05
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000130
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000006de
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000018f9
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0020702c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00207de4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00207e08
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
messagepipe poll event in
DDVD_SHOWOSD_TITLESTRING
title_string: title_string = ANIMALS_ARE_BEAUTIFUL_PEOPLE
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
messagepipe poll event in
DDVD_SHOWOSD_TIME
last_time: pos_hours = 0, pos_minutes = 0, pos_seconds = 0, pos_chapter = 3, pos_title = 0
last_time: end_hours = 0, end_minutes = 0, end_seconds = 0, end_chapter = 0, end_title = 5
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SHOWOSD_AUDIO
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SHOWOSD_SUBTITLE
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_ANGLE
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_SUBTITLE
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_AUDIO
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
ddvd: /usr/src/debug/libdreamdvd/1.0+gitAUTOINC+8de792eef8-r0/mpegaudio_enc.c:347: ddvd_mpa_compute_scale_factors: Assertion `index >=0 && index <= 63' failed.
Aborted
ArnoldSchiller commented 1 year ago

With mv /usr/lib/liba52.so.0 /usr/lib/liba52.so.0.sav

./ddvd 
ddvd
=============================
FSCREENINFO
-----------------------------
id =             hifb
smem_start = 0x24A000
smem_len = 24883200
type = 0
type_aux = 0
visual = 2
xpanstep = 1
ypanstep = 1
ywrapstep = 0
line_length = 5120
mmio_start = 0x0
mmio_len = 0
accel = 0
capabilities = 0
=============================
=============================
VSCREENINFO
-----------------------------
xres = 1280
yres = 720
xres_virtual = 1280
yres_virtual = 1440
xoffset = 0
yoffset = 720
bits_per_pixel = 32
grayscale = 0
red.offset = 16
red.length = 8
red.msb_right = 0
green.offset = 8
green.length = 8
green.msb_right = 0
blue.offset = 0
blue.length = 8
blue.msb_right = 0
transp.offset = 24
transp.length = 8
transp.msb_right = 0
nonstd = 0
activate = 0
height = 0
width = 0
accel_flags = 0
pixclock = 4294967295
left_margin = 4294967295
right_margin = 4294967295
upper_margin = 4294967295
lower_margin = 4294967295
hsync_len = 4294967295
vsync_len = 4294967295
sync = 0
vmode = 0
rotate = 0
colorspace = 0
=============================
audio_count = 0
spu_count = 0
libdreamdvd: soft ac3 decoding is not available, liba52.so.0 not found !
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
LIBDVD: 000.802: /proc/stb/pcr/pcr_stc_offset: Function not implementedLIBDVD: 000.802: /proc/stb/vmpeg/0/sync_offset: Function not implementedmessagepipe poll event in
DDVD_SIZE_CHANGED
last_size: width = -1, height = -1, aspect = 3
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_FRAMERATE_CHANGED
last_framerate: frate = -1
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_PROGRESSIVE_CHANGED
last_progressive: progressive = -1
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
libdvdnav: DVD Title: ANIMALS_ARE_BEAUTIFUL_PEOPLE
libdvdnav: DVD Serial Number: 327D4393
libdvdnav: DVD Title (Alternative): ANIMALS_ARE_BEAUTIFUL_PEOPLE
libdvdnav: DVD disk reports itself with Region mask 0x00e50000. Regions: 02 04 05
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000130
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000006de
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000018f9
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0020702c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00207de4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00207e08
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
messagepipe poll event in
DDVD_SHOWOSD_TITLESTRING
title_string: title_string = ANIMALS_ARE_BEAUTIFUL_PEOPLE
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
messagepipe poll event in
DDVD_SHOWOSD_TIME
last_time: pos_hours = 0, pos_minutes = 0, pos_seconds = 0, pos_chapter = 3, pos_title = 0
last_time: end_hours = 0, end_minutes = 0, end_seconds = 0, end_chapter = 0, end_title = 5
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SHOWOSD_AUDIO
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = 
messagepipe poll event in
DDVD_SHOWOSD_SUBTITLE
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_ANGLE
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_SUBTITLE
key 0
last_audio: id = -1, lang = --, type = 0
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_AUDIO
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_ANGLE
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_SUBTITLE
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_AUDIO
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SIZE_CHANGED
last_size: width = 720, height = 576, aspect = 1
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_PROGRESSIVE_CHANGED
last_progressive: progressive = 0
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_ANGLE
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_SUBTITLE
key 0
last_audio: id = 0, lang = --, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_AUDIO
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_TIME
last_time: pos_hours = 0, pos_minutes = 0, pos_seconds = 5, pos_chapter = 1, pos_title = 1
last_time: end_hours = 1, end_minutes = 27, end_seconds = 52, end_chapter = 24, end_title = 5
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SIZE_CHANGED
last_size: width = 720, height = 576, aspect = 1
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_FRAMERATE_CHANGED
last_framerate: frate = 25000
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_TIME
last_time: pos_hours = 0, pos_minutes = 0, pos_seconds = 20, pos_chapter = 1, pos_title = 1
last_time: end_hours = 1, end_minutes = 27, end_seconds = 52, end_chapter = 24, end_title = 5
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_TIME
last_time: pos_hours = 0, pos_minutes = 0, pos_seconds = 21, pos_chapter = 1, pos_title = 1
last_time: end_hours = 1, end_minutes = 27, end_seconds = 52, end_chapter = 24, end_title = 5
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
messagepipe poll event in
DDVD_SHOWOSD_TIME
last_time: pos_hours = 0, pos_minutes = 0, pos_seconds = 22, pos_chapter = 1, pos_title = 1
last_time: end_hours = 1, end_minutes = 27, end_seconds = 52, end_chapter = 24, end_title = 5
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
key 0
last_audio: id = 0, lang = en, type = 1
last_spu: id = -1, lang = --
ArnoldSchiller commented 1 year ago

Well to have the latest libdreamdvd still made an opkg upgrade then the libav was also back and it crashes but also with latest libdreamdvd at the same position ddvd: /usr/src/debug/libdreamdvd/1.0+gitAUTOINC+375e791cd0-r0/mpegaudio_enc.c:347: ddvd_mpa_compute_scale_factors: Assertion `index >=0 && index <= 63' failed.

ArnoldSchiller commented 1 year ago
/* compute the scale factor index using log 2 computations */
            if (vmax > 0) {
                n = ddvd_mpa_av_log2(vmax);
                /* n is the position of the MSB of vmax. now
                   use at most 2 compares to find the index */
                index = (21 - n) * 3 - 3;
                if (index >= 0) {
                    while (vmax <= ddvd_mpa_scale_factor_table[index+1])
                        index++;
                } else {
                    index = 0; /* very unlikely case of overflow */
                }
            } else {
                index = 62; /* value 63 is not allowed */
            }

Unfortunately, I don't understand anything about what is being done. Should not be the case, but it is obvious. The else says yes that the 0 should not occur according to comment.

4l3x2k commented 1 year ago

Alright. The code look quite the same, but there is something dreamdvd is not aware of.

With software decoding it works for me and my test dvd till this line: https://github.com/oe-mirrors/libdreamdvd/blob/8de792eef8901cea2f975826e379da661011b0c0/mpegaudio_enc.c#L347

Don't be surprised by the source url but this is what oe-alliance is building and distribute via images and updates.

If we really want to get software decoding from ac3 to lpcm working we need to find and fiddle what's going wrong at libdreamdvd and liba52.

That you're not happy with sound on your "servicehisilicon" box depends on driver and systemcalls in my opinion.

Currently the test result read like this

dvd without liba52-0

sf8008 (arm, servicemp3, 7.2) -> no video und no audio
hd51 (arm, servicemp3, 7.2) -> OK
zgemma h7s (arm, servicemp3, 6.4, 7.2, dvd-drive) -> OK
dm8000 (mips, servicemp3, 7.2, dvd-drive) -> OK
osmio (mips, servicemp3, 7.2) -> OK
hd61 (arm, servicehisilicon, 7.2) -> no audio
ue4k (arm, servicemp3, 7.2) -> crappy menu

That's what I told you 3 weeks ago. If you can, fix it. Without liba52 installed there should be no crash but -as you told- the sound is crappy. That is what we need to fix. Maybe hisilicon uses some other value for AC3 stream type or bypass ioctl or a special PES header.

4l3x2k commented 1 year ago

Get a media file with mpeg2 video and ac3 audio and play it on your hisilicon box with

a) systemplugin servicehisilicon installed b) systemplugin servicehislicon uninstalled

If b) works than we can be sure that stream type and bypass mode are correct like set in dvbmediasink

ArnoldSchiller commented 1 year ago

opkg remove --force-depends enigma2-plugin-systemplugins-servicehisilicon Removing enigma2-plugin-systemplugins-servicehisilicon (git16+5fbd8a0) from root There is no problem with mpeg and ac3 with e2iplayer it works. But just removed servicehisilicon. Behavior exactly the same. Oh not quite

ddvd
=============================
FSCREENINFO
-----------------------------
id =             hifb
smem_start = 0x24A000
smem_len = 24883200
type = 0
type_aux = 0
visual = 2
xpanstep = 1
ypanstep = 1
ywrapstep = 0
line_length = 5120
mmio_start = 0x0
mmio_len = 0
accel = 0
capabilities = 0
=============================
=============================
VSCREENINFO
-----------------------------
xres = 1280
yres = 720
xres_virtual = 1280
yres_virtual = 1440
xoffset = 0
yoffset = 720
bits_per_pixel = 32
grayscale = 0
red.offset = 16
red.length = 8
red.msb_right = 0
green.offset = 8
green.length = 8
green.msb_right = 0
blue.offset = 0
blue.length = 8
blue.msb_right = 0
transp.offset = 24
transp.length = 8
transp.msb_right = 0
nonstd = 0
activate = 0
height = 0
width = 0
accel_flags = 0
pixclock = 4294967295
left_margin = 4294967295
right_margin = 4294967295
upper_margin = 4294967295
lower_margin = 4294967295
hsync_len = 4294967295
vsync_len = 4294967295
sync = 0
vmode = 0
rotate = 0
colorspace = 0
=============================
audio_count = 0
spu_count = 0
libdreamdvd: soft ac3 decoding is available, liba52.so.0 loaded !
messagepipe poll event in
DDVD_SCREEN_UPDATE
last_blit_area: x_start = 0, x_end = 1279, y_start = 0, y_end = 719
blit_destination: x_offset = 0, y_offset = 0, width = 1280, height = 720
key 0
last_audio: id = -1, lang = , type = 0
last_spu: id = -1, lang = 
Segmentation fault
ArnoldSchiller commented 1 year ago

And without libav, the DVD player starts with the same effects as if servicehisilicon didn't matter at all. Exactly the same behavior.

ArnoldSchiller commented 1 year ago

https://stackoverflow.com/questions/671815/what-is-the-fastest-most-efficient-way-to-find-the-highest-set-bit-msb-in-an-i Well, at least I'm learning something and now I know what the whiteloop does.

4l3x2k commented 1 year ago

Meinen Erkenntnissen nach wird für die DVD Wiedergabe unter enigma2 kein GStreamer benötigt.

Die von enigma2 verwendete Komponente ist

libdreamdvd

Diese Komponente hat weitere Abhängigkeiten zu

libdvdnav

Im Zusammenhang mit diesen Abhängigkeiten sind unter enigma2 folgende Komponenten zu untersuchen

lib/service/servicedvd.h
lib/service/servicedvd.cpp
lib/python/Screens/DVD.py (für das MediaCenter. Für EMC gilt ein anderer Screen)
lib/python/Plugins/Extensions/DVDPlayer (für DVD Laufwerke)

Weitere, optionale Komponenten sind

libdvdread
libdvdcss
libudfread
liba52

Als erstes sollten wir einen ältere Patch für libdreamdvd verwenden. Dadurch wird schonmal der "leise" Absturz von enigma2 ohne Crashlog verhindert.

Zu verwendender Patch für libdreamdvd oe-alliance/oe-alliance-core@2aff44f

Aktueller Patch für libdreamdvd oe-alliance/oe-alliance-core@007f2ac

Mit dem aktuellen Patch stürzt libdreamdvd beim laden von liba52 ab.

These are the core components to play back dvd with openatv's enigma2. Nothing else.

libav (ffmpeg), servicehisilicon or servicegstreamer come much later in the pipeline of playing back media. This is only my thing to distinguish where dvd play back and where dvd do not play back. libdreamdvd access the audio, video and framebuffer devices directly.

If you like e2iplayer and it works with whatever player is selected then this player may give us a hint why ac3 audio is not acceptable on (service)hisilicon boxes. I do not have this problem with my sf8008 hisilicon box. audio with downmix is in sync with video.

ArnoldSchiller commented 1 year ago

With the while loop such values should come out 249 246 243 240 237 234 231 228 225 222 219 216 213 210 207 204 201 198 195 192 189 186 183 180 177 174 171 168 165 162 159 156 153 150 147 144 141 138 135 132 129 126 123 120 117 114 111 108 105 102 99 96 93 90 87 84 81 78 75 72 69 66 63 60 57 54 51 48 45 42 39 36 33 30 27 24 21 18 15 12 9 6 3 0 -3 -6 -9 -12 -15 -18 -21 -24 -27 -30 -33 -36 -39 -42 -45 -48 -51 -54 -57 -60 -63 -66 -69 -72 -75 -78 -81 -84 -87 -90 -93 -96 -99 -102 -105 -108 -111 -114 -117 -120 -123 -126 -129 maybe you should set the else index = n to know if it is really zero.

ArnoldSchiller commented 1 year ago

If you like e2iplayer and it works with whatever player is selected then this player may give us a hint why ac3 audio is not acceptable on (service)hisilicon boxes. I do not have this problem with my sf8008 hisilicon box. audio with downmix is in sync with video.

e2iplayer again cannot do dvdnav because gstreamerdvdnavlib is not included with openatv. So you can only play the vob files.

nickersk commented 1 year ago

gst resindvd plugin should be available in atv 7.3 feeds . https://github.com/oe-alliance/oe-alliance-core/commit/09d57456a9221a980d31cd7500512abfdc969f85

ArnoldSchiller commented 1 year ago

mount -o loop MAGICAL_MYSTERY_TOUR.ISO dvd ln -s dvd/VIDEO_TS/VTS_01_1.VOB VTS_01_1.VOB started the default player the vobfile - no problems at all well soundtrack not changeable takes the first soundtrack AC3 which is French on the test dvd.

funny top with opkg remove --force-depends enigma2-plugin-systemplugins-servicehisilicon 1542 root 20 0 115012 23976 10816 S 65.1 2.6 8:50.41 exe
3112 root 20 0 258276 115172 24800 S 5.0 12.3 0:12.19 enigma2
1306 root rt 0 0 0 0 D 4.7 0.0 5:06.31 HI_VPSS_Softwar
and it takes english as soundtrack and the soundtrack is changeable. So servicehisilicon is already meddling and playing along with the problem.

4l3x2k commented 1 year ago

I really hope someone can confirm that dvd is running on hd2400. Else I won't be able to close this issue.

There are too many options at the moment. We're at openatv's enigma2. So e2iplayer and sorts do not issue our problem.

rsindvd need a complete new implementation for servicedvd. That would be the last resort.

ArnoldSchiller commented 1 year ago

gst resindvd plugin should be available in atv 7.3 feeds . oe-alliance/oe-alliance-core@09d5745

Nice, immediately start the update - 7.3 is now flashed - it is still working - let's see if e2iplayer can then dvdnav.

ArnoldSchiller commented 1 year ago

Nice, immediately start the update - 7.3 is now flashed - it is still working - let's see if e2iplayer can then dvdnav.

ok with openatv 7.3 - e2iplayer unfortunately can not dvdnav even with installed resindvd. liba52 is not installed by default, so the default player does not crash, but sound problems as usual. Audio track only changeable with vobfiles when I do 'opkg remove --force-depends enigma2-plugin-systemplugins-servicehisilicon'. Now strangely also with e2iplayer. The standard player 'mount -o loop dvd.iso dvd' and link VTS_01_1.VOB -> dvd/VIDEO_TS/VTS_01_1.VOB now performs better than the e2iplayer because audio track changeable. No sound problems at all when playing the vobfile. Only the problem of not being able to change the audio track, with enigma2-plugin-systemplugins-servicehisilicon installed but the selected audio track is fine.

ArnoldSchiller commented 1 year ago

Basically resindvd should probably go, I just have on the command line now no screen to operate dvdnav and there it is now.

 gstplayer dvd://./babylon5_s4_disc3.iso 
/usr/src/debug/gstplayer/0.1-r0/gstplayer/common/gstplayer.c >
{"GSTPLAYER_EXTENDED":{"version":10021,"gst_ver_major":1}}
{"PLAYBACK_INFO":{ "isPlaying":false, "isPaused":false, "isForwarding":false, "isSeeking":false, "isCreationPhase":false,"BackWard":0.000000, "SlowMotion":0, "Speed":0, "AVSync":0, "isVideo":false, "isAudio":false, "isSubtitle":false }}
libdvdnav: DVD Title: BABYLON5_S4_DISC3
libdvdnav: DVD Serial Number: 30547121
libdvdnav: DVD Title (Alternative): BABYLON5_S4_DISC3
libdvdnav: DVD disk reports itself with Region mask 0x00ed0000. Regions: 02 05
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x000044c0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00004a7f
libdvdread: Elapsed time 1
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000f7a3
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00388805
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00389686
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 1
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
{"PLAYBACK_INFO":{ "isPlaying":true, "isPaused":false, "isForwarding":false, "isSeeking":false, "isCreationPhase":false,"BackWard":0.000000, "SlowMotion":0, "Speed":1, "AVSync":0, "isVideo":false, "isAudio":false, "isSubtitle":false }}
{"PLAYBACK_INFO":{ "isPlaying":true, "isPaused":false, "isForwarding":false, "isSeeking":false, "isCreationPhase":false,"BackWard":0.000000, "SlowMotion":0, "Speed":1, "AVSync":0, "isVideo":false, "isAudio":false, "isSubtitle":false }}
{"PLAYBACK_PLAY":{"file":"dvd://./babylon5_s4_disc3.iso", "sts":0}}
{"PLAYBACK_INFO":{ "isPlaying":true, "isPaused":false, "isForwarding":false, "isSeeking":false, "isCreationPhase":false,"BackWard":0.000000, "SlowMotion":0, "Speed":1, "AVSync":0, "isVideo":false, "isAudio":false, "isSubtitle":false }}
{"GST_MISSING_PLUGIN":{"msg":"DVD AC-3 (ATSC A/52) decoder"}}
{"PLAYBACK_LENGTH":{"length":61.520000, "sts":0}}
{"PLAYBACK_INFO":{ "isPlaying":true, "isPaused":true, "isForwarding":false, "isSeeking":false, "isCreationPhase":false,"BackWard":0.000000, "SlowMotion":0, "Speed":1, "AVSync":0, "isVideo":false, "isAudio":false, "isSubtitle":false }}
{"a_l": []}
{"v_c":{"id":0,"e":"video/x-raw","n":"und","w":720,"h":576,"f":25000}}
{"PLAYBACK_INFO":{ "isPlaying":true, "isPaused":true, "isForwarding":false, "isSeeking":false, "isCreationPhase":false,"BackWard":0.000000, "SlowMotion":0, "Speed":1, "AVSync":1, "isVideo":false, "isAudio":false, "isSubtitle":false }}
{"PLAYBACK_LENGTH":{"length":61.520000, "sts":0}}
{"PLAYBACK_LENGTH":{"length":61.520000, "sts":0}}
{"PLAYBACK_INFO":{ "isPlaying":true, "isPaused":false, "isForwarding":false, "isSeeking":false, "isCreationPhase":false,"BackWard":0.000000, "SlowMotion":0, "Speed":1, "AVSync":1, "isVideo":false, "isAudio":false, "isSubtitle":false }}
ArnoldSchiller commented 1 year ago

Well, whoever plays around a lot will eventually have a crash log lying around. Maybe only this line 04:24:31.5804 [eDVBPESReader] ERROR reading PES (fd=37): Function not implemented interesting.

openATV Enigma2 crash log

crashdate=Do Mai  4 04:25:23 2023
compiledate=Apr 28 2023
skin=Default Skin
sourcedate=2023-04-28
branch=7.2
rev=32230+3c064d2
component=enigma2, signal

displaymodel=Multibox SE
imagebuild=20230503
imageversion=7.3
machinebuild=maxytecmultise
model=multiboxse

kernelcmdline=root=/dev/mmcblk0p23 rootsubdir=linuxrootfs2 rootfstype=ext4 kernel=/dev/mmcblk0p20 console=ttyAMA0,115200 blkdevparts=mmcblk0:1M(fastboot),1M(bootargs),18M(recovery),2M(bootoptions),2M(deviceinfo),4M(baseparam),4M(pqparam),4M(logo),40M(fastplay),20M(boot),20M(trustedcore),4M(misc),1024M(system),150M(vendor),306M(e2tv),256M(cache),50M(dtbo),8M(securestore),16M(linuxkernel1),16M(linuxkernel2),16M(linuxkernel3),16M(linuxkernel4),-(userdata) mem=987M mmz=ddr,0,0,44M vmalloc=500M

nimsockets:
NIM Socket 0:
    Type: DVB-S2
    Name: avl6862
    Has_Outputs: no
    Frontend_Device: 0
    I2C_Device: 0
    Supports_Blind_Scan: yes

04:23:32.9584 [Enigma] Python path is '/usr/lib/enigma2/python'.
04:23:32.9586 [Enigma] DVB API version 5, DVB API version minor 11.
04:23:32.9587 [Enigma] Enigma debug level 3.
04:23:46.2766   File "/usr/lib/enigma2/python/StartEnigma.py", line 931, in <module>
    runScreenTest()  # Start running the first screen.
04:23:46.2767   File "/usr/lib/enigma2/python/StartEnigma.py", line 377, in runScreenTest
    plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
04:23:46.2768   File "/usr/lib/enigma2/python/Components/PluginComponent.py", line 57, in readPluginList
04:23:46.2768   File "/usr/lib/enigma2/python/Tools/Import.py", line 2, in my_import
04:23:46.2768   File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
04:23:46.2769   File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
04:23:46.2769   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
04:23:46.2769   File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
04:23:46.2770   File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
04:23:46.2770   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
04:23:46.2770   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
04:23:46.2771   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
04:23:46.2771   File "/usr/lib/enigma2/python/Plugins/Extensions/PlutoTV/__init__.py", line 54, in <module>
    language.addCallback(localeInit())
04:23:46.2771   File "/usr/lib/enigma2/python/Components/Language.py", line 34, in addCallback
04:23:50.2330 [eDVBPESReader] Created. Opening demux
04:23:50.2332 [eDVBPESReader] Created. Opening demux
04:24:29.3304 [eDVBPESReader] Created. Opening demux
04:24:29.3306 [eDVBPESReader] Created. Opening demux
04:24:31.5804 [eDVBPESReader] ERROR reading PES (fd=37): Function not implemented
04:24:51.2007 [eDVBPESReader] Created. Opening demux
04:24:51.2008 [eDVBPESReader] Created. Opening demux
04:25:23.5753 PC: b5ec3094
04:25:23.5753 Fault Address: 00000000
04:25:23.5753 Error Code:: 0
04:25:23.5755 Backtrace:
04:25:23.5757 /usr/bin/enigma2(_Z17handleFatalSignaliP9siginfo_tPv) [0x7717C]
04:25:23.5758 /lib/libc.so.6(__default_rt_sa_restorer) [0xB5E89EC0]
04:25:23.5759 /lib/libc.so.6(n/a) [0xB5EC3094]
04:25:23.5760 /lib/libc.so.6(gsignal) [0xB5E8903C]
04:25:23.5761 /lib/libc.so.6(abort) [0xB5E76540]
04:25:23.5761 -------FATAL SIGNAL
04:25:23.5762 PC: b6372db8

dmesg

<6>Booting Linux on physical CPU 0x0
<5>Linux version 4.4.35 (oe-user@oe-host) (gcc version 12.2.0 (GCC) ) #1 SMP Tue Feb 18 23:44:49 UTC 2020
<6>CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
<6>CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
<5>initmrd: found no initmrd.
<6>Machine model: Hisilicon
<6>cma: Reserved 44 MiB at 0x39c00000
<6>cma: Reserved 4 MiB at 0x3d400000
<6>Memory policy: Data cache writealloc
<7>-------------Fixed IO Mapping----------
<7>Virt,            Phys,             Size
<7>0xF9000000,    0xF8000000,    0x02000000
<7>--------------------------------------
<7>On node 0 totalpages: 252672
<7>free_area_init_node: node 0, pgdat c0bb7c00, node_mem_map dfc41000
<7>  Normal zone: 1032 pages used for memmap
<7>  Normal zone: 0 pages reserved
<7>  Normal zone: 132096 pages, LIFO batch:31
<7>  HighMem zone: 120576 pages, LIFO batch:31
<6>PERCPU: Embedded 13 pages/cpu @dfbfd000 s22604 r8192 d22452 u53248
<7>pcpu-alloc: s22604 r8192 d22452 u53248 alloc=13*4096
<7>pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
<6>Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 251640
<5>Kernel command line: root=/dev/mmcblk0p23 rootsubdir=linuxrootfs2 rootfstype=ext4 kernel=/dev/mmcblk0p20 console=ttyAMA0,115200 blkdevparts=mmcblk0:1M(fastboot),1M(bootargs),18M(recovery),2M(bootoptions),2M(deviceinfo),4M(baseparam),4M(pqparam),4M(logo),40M(fastplay),20M(boot),20M(trustedcore),4M(misc),1024M(system),150M(vendor),306M(e2tv),256M(cache),50M(dtbo),8M(securestore),16M(linuxkernel1),16M(linuxkernel2),16M(linuxkernel3),16M(linuxkernel4),-(userdata) mem=987M mmz=ddr,0,0,44M vmalloc=500M
<6>log_buf_len individual max cpu contribution: 4096 bytes
<6>log_buf_len total cpu_extra contributions: 12288 bytes
<6>log_buf_len min size: 16384 bytes
<6>log_buf_len: 32768 bytes
<6>early log buf free: 14212(86%)
<6>PID hash table entries: 2048 (order: 1, 8192 bytes)
<6>Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
<6>Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>Memory: 929868K/1010688K available (7926K kernel code, 687K rwdata, 2264K rodata, 556K init, 522K bss, 31668K reserved, 49152K cma-reserved, 422696K highmem)
<5>Virtual kernel memory layout:
<5>    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
<5>    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
<5>    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
<5>    lowmem  : 0xc0000000 - 0xe0400000   ( 516 MB)
<5>    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
<5>    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
<5>      .text : 0xc0008000 - 0xc07c5cdc   (7928 kB)
<5>      .init : 0xc0a95000 - 0xc0b20000   ( 556 kB)
<5>      .data : 0xc0b20000 - 0xc0bcbe6c   ( 688 kB)
<5>       .bss : 0xc0bcd000 - 0xc0c4f938   ( 523 kB)
<6>SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
<6>Hierarchical RCU implementation.
<6> Build-time adjustment of leaf fanout to 32.
<6>NR_IRQS:352
<6>clocksource: hisp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
<6>sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
<6>Console: colour dummy device 80x30
<6>Calibrating delay loop... 3170.30 BogoMIPS (lpj=1585152)
<6>pid_max: default: 32768 minimum: 301
<6>Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>CPU: Testing write buffer coherency: ok
<6>ftrace: allocating 26342 entries in 78 pages
<6>CPU0: update cpu_capacity 1024
<6>CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
<6>Setting up static identity map for 0x8280 - 0x82d8
<4>CPU: hi3798mv200
<7>CPU1: powerup
<6>CPU1: update cpu_capacity 1024
<6>CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
<7>CPU2: powerup
<6>CPU2: update cpu_capacity 1024
<6>CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
<7>CPU3: powerup
<6>CPU3: update cpu_capacity 1024
<6>CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
<6>Brought up 4 CPUs
<6>SMP: Total of 4 processors activated (12681.21 BogoMIPS).
<6>CPU: All CPU(s) started in SVC mode.
<6>CPU3: update max cpu_capacity 1024
<6>devtmpfs: initialized
<6>VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
<6>clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
<4>PCIe read alloc area phyaddr 08  size 00000000
<4>PCIe write alloc area phyaddr 08  size 00000000
<6>NET: Registered protocol family 16
<6>DMA: preallocated 256 KiB pool for atomic coherent allocations
<6>CPU2: update max cpu_capacity 1024
<6>hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
<6>hw-breakpoint: maximum watchpoint size is 8 bytes.
<6>Serial: AMBA PL011 UART driver
<6>f8b00000.uart: ttyAMA0 at MMIO 0xf8b00000 (irq = 25, base_baud = 0) is a PL011 rev2
<6>console [ttyAMA0] enabled
<6>f8b02000.uart: ttyAMA1 at MMIO 0xf8b02000 (irq = 26, base_baud = 0) is a PL011 rev2
<6>f8b03000.uart: ttyAMA2 at MMIO 0xf8b03000 (irq = 27, base_baud = 0) is a PL011 rev2
<6>pl061_gpio f8b20000.gpio0: PL061 GPIO chip @0xf8b20000 registered
<6>pl061_gpio f8b21000.gpio1: PL061 GPIO chip @0xf8b21000 registered
<6>pl061_gpio f8b22000.gpio2: PL061 GPIO chip @0xf8b22000 registered
<6>pl061_gpio f8b23000.gpio3: PL061 GPIO chip @0xf8b23000 registered
<6>pl061_gpio f8b24000.gpio4: PL061 GPIO chip @0xf8b24000 registered
<6>pl061_gpio f8004000.gpio5: PL061 GPIO chip @0xf8004000 registered
<6>pl061_gpio f8b26000.gpio6: PL061 GPIO chip @0xf8b26000 registered
<6>pl061_gpio f8b27000.gpio7: PL061 GPIO chip @0xf8b27000 registered
<6>pl061_gpio f8b28000.gpio8: PL061 GPIO chip @0xf8b28000 registered
<6>pl061_gpio f8b29000.gpio9: PL061 GPIO chip @0xf8b29000 registered
<4>hisilicon-pcie: probe of f0001000.pcie failed with error -1
<6>hisi_iommu_ptable_addr:phy 0x1e800000    size:0x400000
<6>hisi_iommu_err_rdaddr :phy 0x1f74d600    size:0x200
<6>hisi_iommu_err_wraddr :phy 0x1f74d800     size:0x200
<6>in hisi_iommu_domain_init start 
<6>in hisi_iommu_domain_init end 
<6>vgaarb: loaded
<5>SCSI subsystem initialized
<7>libata version 3.00 loaded.
<6>ssp-pl022 f8b1a000.spi: ARM PL022 driver, device ID: 0x00041022
<6>ssp-pl022 f8b1a000.spi: mapped registers from 0xf8b1a000 to f9b1a000
<6>spi_master spi0: will run message pump with realtime priority
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>media: Linux media interface: v0.10
<6>Linux video capture interface: v2.00
<6>Advanced Linux Sound Architecture Driver Initialized.
<6>clocksource: Switched to clocksource hisp804
<5>FS-Cache: Loaded
<6>NET: Registered protocol family 2
<6>TCP established hash table entries: 4096 (order: 2, 16384 bytes)
<6>TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
<6>TCP: Hash tables configured (established 4096 bind 4096)
<6>UDP hash table entries: 256 (order: 1, 8192 bytes)
<6>UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
<6>NET: Registered protocol family 1
<6>RPC: Registered named UNIX socket transport module.
<6>RPC: Registered udp transport module.
<6>RPC: Registered tcp transport module.
<6>RPC: Registered tcp NFSv4.1 backchannel transport module.
<7>PCI: CLS 0 bytes, default 64
<6>NetWinder Floating Point Emulator V0.97 (double precision)
<6>hw perfevents: enabled with armv7_cortex_a17 PMU driver, 7 counters available
<6>futex hash table entries: 1024 (order: 4, 65536 bytes)
<5>VFS: Disk quotas dquot_6.6.0
<6>VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
<6>squashfs: version 4.0 (2009/01/31) Phillip Lougher
<5>NFS: Registering the id_resolver key type
<5>Key type id_resolver registered
<5>Key type id_legacy registered
<6>nfs4filelayout_init: NFSv4 File Layout Driver Registering...
<6>Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
<5>FS-Cache: Netfs 'cifs' registered for caching
<6>jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
<6>fuse init (API version 7.23)
<7>yaffs: yaffs built Installing.
<6>bounce: pool size: 64 pages
<6>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
<6>io scheduler noop registered
<6>io scheduler deadline registered (default)
<6>io scheduler cfq registered
<6>hiahci-phy: registered new sata phy driver
<6>brd: module loaded
<6>loop: module loaded
<4>ahci: probe of f9900000.hiahci failed with error -1
<6>hifmc100: registerd new interface driver hifmc100.
<5>hifmc100: Found flash memory controller hifmc100.
<6>hifmc100: no found spi-nor device.
<6>hifmc100: no found nand device.
<6>hifmc100: no found spi-nand device.
<6>FEPHY:addr=2, la_am=0xe, ldo_am=0x3, r_tuning=0x13
<6>libphy: himii: probed
<6>hi_eth: attached port 0 PHY 2 to driver HiSilicon Festa v330
<6>/soc/ethernet@f9840000/ethernet_phy@0 has invalid PHY address=255
<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>ehci-pci: EHCI PCI platform driver
<6>ehci-platform: EHCI generic platform driver
<6>ehci-platform f9890000.ehci: EHCI Host Controller
<6>ehci-platform f9890000.ehci: new USB bus registered, assigned bus number 1
<6>ehci-platform f9890000.ehci: irq 34, io mem 0xf9890000
<6>ehci-platform f9890000.ehci: USB 2.0 started, EHCI 1.00
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 2 ports detected
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
<6>ohci-pci: OHCI PCI platform driver
<6>ohci-platform: OHCI generic platform driver
<6>ohci-platform f9880000.ohci: Generic Platform OHCI controller
<6>ohci-platform f9880000.ohci: new USB bus registered, assigned bus number 2
<6>ohci-platform f9880000.ohci: irq 35, io mem 0xf9880000
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 2 ports detected
<6>xhci-hcd f98a0000.xhci: xHCI Host Controller
<6>xhci-hcd f98a0000.xhci: new USB bus registered, assigned bus number 3
<6>xhci-hcd f98a0000.xhci: hcc params 0x0220f06c hci version 0x100 quirks 0x00030010
<6>xhci-hcd f98a0000.xhci: irq 37, io mem 0xf98a0000
<6>hub 3-0:1.0: USB hub found
<6>hub 3-0:1.0: 1 port detected
<6>xhci-hcd f98a0000.xhci: xHCI Host Controller
<6>xhci-hcd f98a0000.xhci: new USB bus registered, assigned bus number 4
<6>usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
<6>hub 4-0:1.0: USB hub found
<6>hub 4-0:1.0: 1 port detected
<6>usbcore: registered new interface driver usb-storage
<6>mousedev: PS/2 mouse device common for all mice
<6>usbcore: registered new interface driver xpad
<6>i2c /dev entries driver
<6>IR NEC protocol handler initialized
<6>IR RC5(x/sz) protocol handler initialized
<6>IR RC6 protocol handler initialized
<6>IR JVC protocol handler initialized
<6>IR Sony protocol handler initialized
<6>IR SANYO protocol handler initialized
<6>IR Sharp protocol handler initialized
<6>IR MCE Keyboard/mouse protocol handler initialized
<6>IR XMP protocol handler initialized
<6>sp805-wdt f8a2c000.watchdog: registration successful
<4>registered new interface driver himciV2.0_4.4.35_20170401
<6>usb 1-1: new high-speed USB device number 2 using ehci-platform
<6>usb-storage 1-1:1.0: USB Mass Storage device detected
<6>scsi host0: usb-storage 1-1:1.0
<6>usb 3-1: new high-speed USB device number 2 using xhci-hcd
<6>mmc0: MAN_BKOPS_EN bit is not set
<4>scan edges:3 p2f:7 f2p:2
<4>mix set temp-phase 4
<4>scan elemnts: startp:19 endp:3
<5>Tuning SampleClock. mix set phase:[04/07] ele:[11/16] 
<6>mmc0: new HS400 MMC card at address 0001
<6>mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
<6>mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
<6>mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
<6>mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
<6>usb 1-2: new high-speed USB device number 3 using ehci-platform
<6> mmcblk0: p1(fastboot) p2(bootargs) p3(recovery) p4(bootoptions) p5(deviceinfo) p6(baseparam) p7(pqparam) p8(logo) p9(fastplay) p10(boot) p11(trustedcore) p12(misc) p13(system) p14(vendor) p15(e2tv) p16(cache) p17(dtbo) p18(securestore) p19(linuxkernel1) p20(linuxkernel2) p21(linuxkernel3) p22(linuxkernel4) p23(userdata)
<6>usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
<6>usb-storage 4-1:1.0: USB Mass Storage device detected
<6>scsi host1: usb-storage 4-1:1.0
<4>scan edges:2 p2f:2 f2p:4
<5>f9c40000.himciv200.SD: eMMC/MMC/SD Device NOT detected!
<4>mix set temp-phase 7
<4>scan elemnts: startp:35 endp:32
<5>Tuning SampleClock. mix set phase:[07/07] ele:[03/10] 
<6>mmc1: new ultra high speed SDR104 SDXC card at address 0001
<6>mmcblk1: mmc1:0001 SD128 116 GiB 
<6> mmcblk1: p1
<6>usbcore: registered new interface driver usbhid
<6>usbhid: USB HID core driver
<6>ashmem: initialized
<6>usbcore: registered new interface driver snd-usb-audio
<6>oprofile: using timer interrupt.
<6>Netfilter messages via NETLINK v0.30.
<6>nfnl_acct: registering with nfnetlink.
<6>ip_tables: (C) 2000-2006 Netfilter Core Team
<6>arp_tables: (C) 2002 David S. Miller
<6>NET: Registered protocol family 10
<6>NET: Registered protocol family 17
<5>Key type dns_resolver registered
<5>Registering SWP/SWPB emulation handler
<6>ALSA device list:
<6>  No soundcards found.
<6>Freeing unused kernel memory: 556K (c0a95000 - c0b20000)
<4>This architecture does not have kernel memory protection.
<4>EXT4-fs (mmcblk0p23): warning: maximal mount count reached, running e2fsck is recommended
<6>EXT4-fs (mmcblk0p23): mounted filesystem with ordered data mode. Opts: (null)
<4>FAT-fs (mmcblk0p4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
<5>scsi 0:0:0:0: Direct-Access     Samsung  Portable SSD T5  0    PQ: 0 ANSI: 6
<5>sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
<5>sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<6> sda: sda1 sda2 sda3
<5>sd 0:0:0:0: [sda] Attached SCSI disk
<5>random: nonblocking pool is initialized
<5>scsi 1:0:0:0: Direct-Access     TOSHIBA  External USB 3.0 5438 PQ: 0 ANSI: 6
<5>sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
<5>sd 1:0:0:0: [sdb] 7814037164 512-byte logical blocks: (4.00 TB/3.64 TiB)
<5>sd 1:0:0:0: [sdb] 4096-byte physical blocks
<5>sd 1:0:0:0: [sdb] Write Protect is off
<7>sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
<5>sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<5>sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
<6>EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
<6> sdb: sdb1 sdb2 sdb3
<5>sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
<5>sd 1:0:0:0: [sdb] Attached SCSI disk
<4>FAT-fs (sda2): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
<4>FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
<3>UDF-fs: bad mount option "etime" or missing value
<6>EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
<6>hisi-sndcard hisi-sndcard: aiao-hifi <-> hisi-i2s mapping ok
<6>input: dreambox advanced remote control (native) as /devices/virtual/input/input1
<6>input: rc mouse emulation as /devices/virtual/input/input2
<6>DVB: registering new adapter (dvb0)
<6>i2c i2c-1: dvb: found AVL6862 family_id=0x68624955
<6>i2c i2c-1: Load avl6862 firmware patch for DVB-S/S2 size=44000
<6>EXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: (null)
<6>i2c i2c-1: avl6862 patch ver 2.0 build 20621
<6>i2c i2c-1: dvb: Rafael R848 successfully attached!
<6>platform dvb0.0: DVB: registering adapter 0 frontend 0 (Availink avl6862)...
<4>Mali: Mali device driver loaded
<4>tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel.
<4>Disabling lock debugging due to kernel taint
<6>Tuxera NTFS driver 3017.7.4.6 [Flags: R/W MODULE].
<6>Built against headers 4.4.35_hi3798mv2x #1 SMP Tue Dec 12 14:16:24 CST 2017 arm
<6>Running on kernel 4.4.35 #1 SMP Tue Feb 18 23:44:49 UTC 2020 armv7l
<2>WARNING: Running kernel does not match configured kernel headers the driver was built with!  The driver needs to be rebuilt with the correct kernel headers!
<6>SGI XFS with ACLs, security attributes, realtime, no debug enabled
<6>EXT4-fs (mmcblk0p23): re-mounted. Opts: data=ordered
<4>r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
<6>Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_UNKNOWN_CUT(10)_1T1R_RomVer(0)
<6>usbcore: registered new interface driver r8188eu
<6>MAC Address = 30:7b:c9:8b:cb:d7
<6>IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
<6>R8188EU: assoc success
<6>IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<6>Bluetooth: Core ver 2.21
<6>Bluetooth: Starting self testing
<6>Bluetooth: ECDH test passed in 20955 usecs
<6>Bluetooth: SMP test passed in 84 usecs
<6>Bluetooth: Finished self testing
<6>NET: Registered protocol family 31
<6>Bluetooth: HCI device and connection manager initialized
<6>Bluetooth: HCI socket layer initialized
<6>Bluetooth: L2CAP socket layer initialized
<6>Bluetooth: SCO socket layer initialized
<6>Bluetooth: BNEP (Ethernet Emulation) ver 1.3
<6>Bluetooth: BNEP socket layer initialized
<6>i2c i2c-1: Load avl6862 firmware patch for DVB-C size=48320
<6>i2c i2c-1: avl6862 patch ver 2.0 build 22219
<6>i2c i2c-1: Load avl6862 firmware patch for DVB-T/T2 size=65048
<6>i2c i2c-1: avl6862 patch ver 2.0 build 20544
<6>i2c i2c-1: Load avl6862 firmware patch for DVB-S/S2 size=44000
<6>i2c i2c-1: avl6862 patch ver 2.0 build 20621
<4>UDF-fs: warning (device mmcblk0p1): udf_fill_super: No partition found (2)
<4>UDF-fs: warning (device mmcblk0p1): udf_fill_super: No partition found (2)
<6>yaffs: dev is 187695105 name is "mmcblk0p1" rw
<6>yaffs: passed flags ""
<7>yaffs: yaffs: Attempting MTD mount of 179.1,"mmcblk0p1"
<7>yaffs: yaffs: MTD device 1 either not valid or unavailable
<6>yaffs: dev is 187695105 name is "mmcblk0p1" rw
<6>yaffs: passed flags ""
<7>yaffs: yaffs: Attempting MTD mount of 179.1,"mmcblk0p1"
<7>yaffs: yaffs: MTD device 1 either not valid or unavailable
<6>tntfs info (device mmcblk0p1, pid 2566): ntfs_fill_super(): fail_safe is enabled.
<4>UDF-fs: warning (device mmcblk0p3): udf_fill_super: No partition found (2)
<4>UDF-fs: warning (device mmcblk0p3): udf_fill_super: No partition found (2)
<6>yaffs: dev is 187695107 name is "mmcblk0p3" rw
<6>yaffs: passed flags ""
<7>yaffs: yaffs: Attempting MTD mount of 179.3,"mmcblk0p3"
<7>yaffs: yaffs: MTD device 3 either not valid or unavailable
<6>yaffs: dev is 187695107 name is "mmcblk0p3" rw
<6>yaffs: passed flags ""
<7>yaffs: yaffs: Attempting MTD mount of 179.3,"mmcblk0p3"
<7>yaffs: yaffs: MTD device 3 either not valid or unavailable
<6>tntfs info (device mmcblk0p3, pid 2607): ntfs_fill_super(): fail_safe is enabled.
<6>i2c i2c-1: Load avl6862 firmware patch for DVB-C size=48320
<6>i2c i2c-1: avl6862 patch ver 2.0 build 22219