Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest firmware upgrades have broken the mjpeg stream endpoint - XM530 #200

Open
cdg123 opened this issue Sep 24, 2024 · 0 comments
Open

Comments

@cdg123
Copy link

cdg123 commented Sep 24, 2024

  • Camera board id: XM530
  • OpenIPC version: 2.4.09.24-lite ( master+179f369, 2024-09-24 )
  • installation method: Used webui firmware update to get latest in case it had been fixed original was built locally.
  • modified majestic.yaml: yes

# Issue description
I am trying to move my development environment to the latest version of OpenIPC firmware to work with my older XM530's and some newer Goke boards.

I previously had a working stable XM530 build with my own updates to the webui (https://github.com/cdg123/openIPC-firmware-xm530) so pan and tilt was working through the preview page however upgrading the firmware and rebuilding it has broken the mjpeg stream.

Attempting to access the majestic endpoint of http://192.168.1.11/mjpeg just hangs.

RTSP stream is working fine on both channels.

My local build for hi3516ev300 is working fine.

Let me know if you need any further information or diagnostics completed.

  • cat /dev/kmsg
6,0,0,-;Booting Linux on physical CPU 0x0
5,1,0,-;Linux version 3.10.103+ (runner@fv-az736-983) (buildroot-gcc-13.2.0) #2 SMP Tue Sep 24 00:20:04 UTC 2024
3,2,0,-;CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
3,3,0,-;CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
3,4,0,-;Machine: xm530
3,5,0,-;Memory policy: ECC disabled, Data cache writealloc
7,6,0,-;On node 0 totalpages: 10240
7,7,0,-;free_area_init_node: node 0, pgdat c0342640, node_mem_map c0356000
7,8,0,-;  Normal zone: 80 pages used for memmap
7,9,0,-;  Normal zone: 0 pages reserved
7,10,0,-;  Normal zone: 10240 pages, LIFO batch:1
6,11,0,-;PERCPU: Embedded 7 pages/cpu @c03a9000 s6272 r8192 d14208 u32768
7,12,0,-;pcpu-alloc: s6272 r8192 d14208 u32768 alloc=8*4096
7,13,0,-;pcpu-alloc: [0] 0 [0] 1
3,14,0,-;Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 10160
5,15,0,-;Kernel command line: mem=40M console=ttyAMA0,115200 panic=0 root=/dev/mtdblock3 rootfstype=squashfs init=/init mtdparts=xm_sfc:256k(boot),64k(env),2048k(kernel),5120k(rootfs),-(rootfs_data)
6,16,0,-;PID hash table entries: 256 (order: -2, 1024 bytes)
6,17,0,-;Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
6,18,0,-;Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
6,19,0,-;Memory: 40MB = 40MB total
5,20,0,-;Memory: 37096k/37096k available, 3864k reserved, 0K highmem
5,21,0,-;Virtual kernel memory layout:\x0a    vector  : 0xffff0000 - 0xffff1000   (   4 kB)\x0a    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)\x0a    vmalloc : 0xc3000000 - 0xff000000   ( 960 MB)\x0a    lowmem  : 0xc0000000 - 0xc2800000   (  40 MB)\x0a    modules : 0xbf000000 - 0xc0000000   (  16 MB)\x0a      .text : 0xc0008000 - 0xc02fbe64   (3024 kB)\x0a      .init : 0xc02fc000 - 0xc0321880   ( 151 kB)\x0a      .data : 0xc0322000 - 0xc0342ee0   ( 132 kB)\x0a       .bss : 0xc0342ee0 - 0xc0355f64   (  77 kB)
6,22,0,-;SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
6,23,0,-;Hierarchical RCU implementation.
6,24,0,-;NR_IRQS:96
6,25,0,-;sched_clock: 32 bits at 12MHz, resolution 83ns, wraps every 357913ms
6,26,115,-;Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
6,27,70129,-;pid_max: default: 32768 minimum: 301
6,28,70560,-;Mount-cache hash table entries: 512
6,29,72150,-;CPU: Testing write buffer coherency: ok
6,30,72920,-;Setting up static identity map for 0xc029df18 - 0xc029df70
6,31,72974,-;L310 cache controller enabled
6,32,72995,-;l2x0: 8 ways, CACHE_ID 0x410000c9, AUX_CTRL 0x32420000, Cache size: 131072 B
3,33,74446,-;CPU1: Booted secondary processor
6,34,143015,-;Brought up 2 CPUs
6,35,143035,-;SMP: Total of 2 processors activated (598.42 BogoMIPS).
6,36,143041,-;CPU: All CPU(s) started in SVC mode.
6,37,144085,-;devtmpfs: initialized
6,38,148256,-;NET: Registered protocol family 16
6,39,148820,-;DMA: preallocated 256 KiB pool for atomic coherent allocations
6,40,151005,-;Serial: AMBA PL011 UART driver
6,41,151133,-;uart:0: ttyAMA0 at MMIO 0x10030000 (irq = 32) is a PL011 rev1
6,42,353167,-;console [ttyAMA0] enabled
6,43,356133,-;uart:1: ttyAMA1 at MMIO 0x10040000 (irq = 33) is a PL011 rev1
6,44,384510,-;bio: create slab <bio-0> at 0
6,45,389995,-;usbcore: registered new interface driver usbfs
6,46,394548,-;usbcore: registered new interface driver hub
6,47,398956,-;usbcore: registered new device driver usb
6,48,405432,-;Switching to clocksource timer0
6,49,413163,-;NET: Registered protocol family 2
6,50,417562,-;TCP established hash table entries: 512 (order: 0, 4096 bytes)
6,51,423235,-;TCP bind hash table entries: 512 (order: 0, 4096 bytes)
6,52,428220,-;TCP: Hash tables configured (established 512 bind 512)
6,53,433255,-;TCP: reno registered
6,54,435203,-;UDP hash table entries: 256 (order: 1, 8192 bytes)
6,55,439861,-;UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
6,56,445318,-;NET: Registered protocol family 1
6,57,448984,-;RPC: Registered named UNIX socket transport module.
6,58,453612,-;RPC: Registered udp transport module.
6,59,457012,-;RPC: Registered tcp transport module.
6,60,460459,-;RPC: Registered tcp NFSv4.1 backchannel transport module.
6,61,485857,-;squashfs: version 4.0 (2009/01/31) Phillip Lougher
6,62,492596,-;jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc.
6,63,498613,-;fuse init (API version 7.22)
6,64,502648,-;msgmni has been set to 72
6,65,507428,-;Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
6,66,513579,-;io scheduler noop registered
6,67,516200,-;io scheduler deadline registered (default)
6,68,520109,-;io scheduler cfq registered
6,69,529538,-;dma-pl330 dma-pl330: Loaded driver for PL330 DMAC-267056
SUBSYSTEM=amba
DEVICE=+amba:dma-pl330
6,70,534609,-;dma-pl330 dma-pl330: \x09DBUFF-32x8bytes Num_Chans-4 Num_Peri-24 Num_Events-4
SUBSYSTEM=amba
DEVICE=+amba:dma-pl330
6,71,542066,-;uart-pl011 uart:0: no DMA platform data
SUBSYSTEM=amba
DEVICE=+amba:uart:0
6,72,545654,-;uart-pl011 uart:1: no DMA platform data
SUBSYSTEM=amba
DEVICE=+amba:uart:1
6,73,567455,-;brd: module loaded
6,74,579170,-;loop: module loaded
7,75,582608,-;XM Spi Flash Controller Device Driver Version 1.0
6,76,583228,-;XMSFCV2: flash name:XT25F64BSSI/HGU-S size:0x800000
5,77,588253,-;5 cmdlinepart partitions found on MTD device xm_sfc
5,78,592930,-;5 cmdlinepart partitions found on MTD device xm_sfc
5,79,597555,-;Creating 5 MTD partitions on "xm_sfc":
5,80,601113,-;0x000000000000-0x000000040000 : "boot"
5,81,606989,-;0x000000040000-0x000000050000 : "env"
5,82,612756,-;0x000000050000-0x000000250000 : "kernel"
5,83,618946,-;0x000000250000-0x000000750000 : "rootfs"
5,84,624933,-;0x000000750000-0x000000800000 : "rootfs_data"
6,85,631436,-;tun: Universal TUN/TAP device driver, 1.6
6,86,635191,-;tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
6,87,641785,-;XMMMAC driver:\x0a\x09platform registration...
6,88,645451,-;\x09done!
6,89,647792,-;\x09eth0 - (dev. name: xmmaceth - id: -1, IRQ #35\x0a\x09IO base addr: 0xfe010000)
6,90,656731,-;libphy: XMMMAC MII Bus: probed
6,91,659574,-;eth0: PHY ID 00010000 at 1 IRQ 0 (0:01) active
6,92,664761,-;TCP: cubic registered
6,93,666787,-;NET: Registered protocol family 17
5,94,670137,-;Key type dns_resolver registered
6,95,673232,-;VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
6,96,681026,-;registered taskstats version 1
6,97,689512,-;VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
6,98,701119,-;devtmpfs: mounted
6,99,703421,-;Freeing unused kernel memory: 148K (c02fc000 - c0321000)
5,100,1467248,-;jffs2: notice: (351) jffs2_build_xattr_subsystem: complete building xattr subsystem, 9 of xdatum (0 unchecked, 9 orphan) and 11 of xref (0 dead, 11 orphan) found.
3,101,1542918,-;devpts: called with bogus options
7,102,2580494,-;Module dwc_common_port init
6,103,2715158,-;dwc_otg: version 3.30a 13-OCT-2015
6,104,2791464,-;xm_i2c init is ok!
6,105,2806709,-;mmz: init ok start=0x82800000, size=0x1800000
6,106,2822364,-;VI: init ok!
0,107,2875665,-;IspKo: ispDev_init start!
0,108,2881497,-;IspKo: ispDev_init OK!
6,109,2906240,-;hx280enc: module init - base_port=0x20070000 irq=77
6,110,2911898,-;hx280enc: HW at base <0x20070000> with ID <0x82900760>
6,111,2911972,-;hx280enc: module inserted. Major <0>
6,112,2926902,-;xm_rtc init is ok!
6,113,2941796,-;xm_wdt init is ok!
0,114,2973302,-;Core Release: 3.30a
0,115,2973321,-;Setting default values for core params
0,116,2973343,-;INFO:: Host Mode.
6,117,3079140,-;acodec init is ok!
3,118,3101201,-;MVE: Failed to create 'mve' dir.
3,119,3101216,-;MVE: Failed to create 'dmesg' dir.
3,120,3101264,-;MVE: Failed to create 'ram0' dir.
3,121,3101272,-;MVE: Failed to create 'ram0/msg.
3,122,3101279,-;MVE: Failed to create 'generic' dir.
3,123,3101285,-;MVE: Failed to create 'scheduler' dir.
3,124,3101291,-;MVE: Failed to create 'firmware_interface' dir.
3,125,3101297,-;MVE: Failed to create 'session' dir.
0,126,3106328,-;MVE resource driver loaded successfully (nlsid=4, cores=1, version=0x56550002)
0,127,3177695,-;MVE base driver loaded successfully
0,128,3275749,-;Using Descriptor DMA mode
0,129,3275768,-;Periodic Transfer Interrupt Enhancement - disabled
0,130,3275775,-;Multiprocessor Interrupt Enhancement - disabled
0,131,3275788,-;OTG VER PARAM: 0, OTG VER FLAG: 0
0,132,3275806,-;Dedicated Tx FIFOs mode
6,133,3275969,-;dwc_otg dwc_otg.0: DWC OTG Controller
SUBSYSTEM=platform
DEVICE=+platform:dwc_otg.0
6,134,3276029,-;dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1
SUBSYSTEM=platform
DEVICE=+platform:dwc_otg.0
6,135,3276084,-;dwc_otg dwc_otg.0: irq 76, io mem 0x00000000
SUBSYSTEM=platform
DEVICE=+platform:dwc_otg.0
0,136,3276129,-;Init: Power Port (0)
6,137,3276259,-;usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
SUBSYSTEM=usb
DEVICE=c189:0
6,138,3276280,-;usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
SUBSYSTEM=usb
DEVICE=c189:0
6,139,3276295,-;usb usb1: Product: DWC OTG Controller
SUBSYSTEM=usb
DEVICE=c189:0
6,140,3276308,-;usb usb1: Manufacturer: Linux 3.10.103+ dwc_otg_hcd
SUBSYSTEM=usb
DEVICE=c189:0
6,141,3276321,-;usb usb1: SerialNumber: dwc_otg.0
SUBSYSTEM=usb
DEVICE=c189:0
6,142,3283512,-;hub 1-0:1.0: USB hub found
SUBSYSTEM=usb
DEVICE=+usb:1-0:1.0
6,143,3283579,-;hub 1-0:1.0: 1 port detected
SUBSYSTEM=usb
DEVICE=+usb:1-0:1.0
0,144,3336595,-;usbwifi_init.
0,145,3336616,-;0x82
3,146,3336627,-;PDN pin is low, ouput high and delay 2 sec. gpio:96 : 0x82
3,147,3336634,-;
6,148,4427231,-;libphy: 0:01 - Link is Up - 100/Full
3,149,4849192,-;i2c_write timeout 0x2
3,150,4891226,-;i2c_write timeout 0x2
3,151,4933338,-;i2c_write timeout 0x2
3,152,4975468,-;i2c_write timeout 0x2
3,153,5017532,-;i2c_write timeout 0x2
3,154,5059659,-;i2c_write timeout 0x2
3,155,5328401,-;ouput high and delay 2000ms
3,156,5610473,-;i2c_write timeout 0x2
3,157,5652561,-;i2c_write timeout 0x2
0,158,5708461,-;Indeed it is in host mode hprt0 = 00021501
0,159,5763575,-;IspKo: [IspDrv]: Memery Init Buffer!Num[2]
6,160,5888452,-;usb 1-1: new high-speed USB device number 2 using dwc_otg
SUBSYSTEM=usb
DEVICE=+usb:1-1
0,161,5888624,-;Indeed it is in host mode hprt0 = 00001101
6,162,6090084,-;usb 1-1: New USB device found, idVendor=f000, idProduct=6700
SUBSYSTEM=usb
DEVICE=c189:1
6,163,6090117,-;usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
SUBSYSTEM=usb
DEVICE=c189:1
6,164,6090131,-;usb 1-1: Product: WLAN
SUBSYSTEM=usb
DEVICE=c189:1
6,165,6090144,-;usb 1-1: Manufacturer: Montage
SUBSYSTEM=usb
DEVICE=c189:1
6,166,6090156,-;usb 1-1: SerialNumber: 7000
SUBSYSTEM=usb
DEVICE=c189:1
6,167,7360410,-;Loading modules backported from Linux version v3.13-rc8-0-g7e22e91
6,168,7360428,-;Backport generated by backports.git v3.13-rc8-1-0-gae71bd3
6,169,7466615,-;cfg80211: Calling CRDA to update world regulatory domain
6,170,7713063,-;usb 1-1: Lynx [boot mode] now attached
SUBSYSTEM=usb
DEVICE=c189:1
6,171,7713827,-;usb 1-1: Lynx ROM version: 0x3
SUBSYSTEM=usb
DEVICE=c189:1
6,172,7767715,-;usb 1-1: lynx_usb_probe: Firmware lynx/app_3.img requested
SUBSYSTEM=usb
DEVICE=c189:1
6,173,7767739,-;usb 1-1: Lynx new [app mode] now attached
SUBSYSTEM=usb
DEVICE=c189:1
7,174,7767799,-;bNumEndpoints=3[0]
7,175,7767813,-;RX Bulk Ep:0x81 maxpktsz:512
7,176,7767822,-;bNumEndpoints=3[1]
7,177,7767831,-;TX Bulk Ep:0x01 maxpktsz:512
7,178,7767838,-;bNumEndpoints=3[2]
7,179,7767846,-;TX Bulk Ep:0x02 maxpktsz:512
7,180,7767856,-;USB:
7,181,7767864,-;iw6700 hw init ready
7,182,7767871,-;    vendor id=f000
7,183,7767877,-;    device id=6700
7,184,7767882,-;endpoint mapping
7,185,7767887,-;    VFC_TX_AC0=1
7,186,7767894,-;    VFC_TX_AC1=2
7,187,7767899,-;    VFC_TX_AC3=3
7,188,7767904,-;    VFC_TX_AC4=4
7,189,7767910,-;    VFC_RX_MCU=1
0,190,8768928,-;/system/etc/wifi//MAC.txt,file open error.
0,191,8768948,-;set random mac
0,192,8769020,-;Set default mac(random):80 05 df 11 e0 04
0,193,8769107,-;/data//RF.txt,file open error.
0,194,9479592,-;MAC Rule:1
0,195,9479618,-;FOFS Rule:1
0,196,9479625,-;TXVGA Rule:1
6,197,9506480,-;usbcore: registered new interface driver xm711
0,198,9506552,-;lynx proc add
0,199,9506571,-;lynx driver rev. = 1665
3,200,76165922,-;i2c_write timeout 0x2
3,201,76208676,-;i2c_write timeout 0x2
  • Majestic log
LIBH264: Complied at Apr 30 2019 16:55:22
12:21:28  <       majestic> [    main] main@237                      Majestic Lite for Xiongmai, version master+e3705f4, built on                                                 2024-09-21
12:21:28  <       majestic> [app_conf] parse_app_config@396          Main audio codec is opus (other options: aac, pcm, alaw, ula                                                w)
12:21:28  <       majestic> [watchdog] watchdog_start@115            Watchdog timeout set to 100 seconds
12:21:28  <       majestic> [   httpd] start_web_server@383          Set server path: /var/www
12:21:28  <       majestic> [   httpd] new_http_server@371           HTTP server started on 0.0.0.0:80
12:21:28  <       majestic> [app_conf] parse_app_config@396          Main audio codec is opus (other options: aac, pcm, alaw, ula                                                w)
12:21:28  <       majestic> [    main] init_sdk@66                   Loading main configuration: /etc/majestic.yaml
DEBUG: [ISP_SDK]BUILD TIME:Sep 21 2021 11:58:04
DEBUG: OSC:12M
12:21:28  <       majestic> [     log] printf@292                    SYS/VI set in      [ Sofia ]
12:21:28  <       majestic> [     log] printf@292                    Vstd_init  [ PAL ]
12:21:28  <       majestic> [     log] printf@292                    Rslt       [ 0 ]
12:21:28  <       majestic> [     log] printf@292                    IPC_Venc:  [ H.264 ]
12:21:28  <       majestic> [     log] printf@292                    Sns_IF:    [ By src ]

DEBUG: SC307E!
DEBUG: sensor_get_chip:
12:21:29  <       majestic> [     log] printf@292                    0x30
 12:21:29  <       majestic> [     log] printf@292                    0x2
 12:21:29  <       majestic> [     log] printf@292                    0x1
 12:21:29  <       majestic> [     log] printf@292                    0x45
12:21:29  <       majestic> [    puts]
ERR: open /mnt/mtd/Config/SensorType.bat failed
DEBUG: Venc(264):495
DEBUG: DspChip:XM530
DEBUG: SnsIF:MIPI
DEBUG: Vstd:PAL[25fps]
DEBUG: ------------- SC307E (@20190110_mipi) ----------------
DEBUG: sensor_init Ok!
DEBUG: Init over ~~~~~~~~
DEBUG: ProductType: 0x0
DEBUG: libfvideo: SC307E!
DEBUG: isp_sample end!
DEBUG: imageStyle XM!
12:21:30  <       majestic> [     sdk] ViChnConfig@164               ViChn = 0, enSize = 14
12:21:30  <       majestic> [     sdk] ViChnConfigEx@188             ViChn = 1, enSize = 0
12:21:30  <       majestic> [     sdk] COMM_VENC_Start@249           VencChn = 0, enType = 96, enSize = 14 (1920x1080), enRcMode                                                 = 1
12:21:30  <move_detect_pro> [    puts]                               XM_MPI_ISP_MemInit OK...
12:21:30  <       majestic> [     sdk] COMM_VENC_Start@249           VencChn = 1, enType = 96, enSize = 0 (704x576), enRcMode = 1
12:21:30  <       majestic> [     sdk] COMM_VENC_Start@249           VencChn = 2, enType = 26, enSize = 0 (704x576), enRcMode = 1
12:21:30  <       majestic> [    rtsp] rtsp_init@28                  RTSP server started on port 554
12:21:30  <       majestic> [   media] media_start_servers@173       Using Opus as an audio codec for MP4
DEBUG: color
DEBUG: EShutter 1/1
DEBUG: Delay Over !!!
  • /etc/majestic.yaml
system:
  webAdmin: enabled
  buffer: 1024
  logLevel: verbose
  httpsPort: 443
  plugins: false
  webPort: 80
image:
  mirror: false
  flip: false
  rotate: none
  contrast: 50
  hue: 50
  saturation: 50
  luminance: 50
osd:
  enabled: false
  template: "%a %e %B %Y %H:%M:%S %Z"
nightMode:
  enabled: true
  nightAPI: false
  irSensorPinInvert: true
  colorToGray: false
  irCutSingleInvert: true
  lightMonitor: true
  lightSensorInvert: true
  monitorDelay: 0
records:
  enabled: false
  path: /mnt/mmc/%Y/%m/%d/%H.mp4
  maxUsage: 95
video0:
  enabled: true
  bitrate: 4096
  codec: h264
  fps: 25
  profile: main
  rcMode: vbr
  size: 1080p
video1:
  enabled: true
  bitrate: 1024
  codec: h264
  fps: 15
  profile: main
  rcMode: vbr
  size: 720p
jpeg:
  enabled: true
  fps: 5
  qfactor: 50
  rtsp: false
  size: 320x240
mjpeg:
  size: 640x360
  fps: 5
  bitrate: 1024
audio:
  enabled: true
  volume: 50
  srate: 8000
  codec: opus
  outputEnabled: false
  outputVolume: 50
  speakerPinInvert: false
rtsp:
  enabled: true
  port: 554
hls:
  enabled: false
youtube:
  enabled: false
motionDetect:
  enabled: false
  visualize: true
  debug: true
ipeye:
  enabled: false
watchdog:
  enabled: true
  timeout: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant