Skip to content

Asecam / Jieuno (fullhan / vatilon) integration #1610

Open

Description

@mtrakal

Hello, I would like to help / provide some small info for cameras.

SoC of my cameras is fh8856v200 or fh8856/IF56N

There is my repo with extracted partitions, etc: https://github.com/mtrakal/ipc-vatilon

I'm not able to help with integration itself, but if you will need anything get from cameras or be a beta tester with firmware I can be that person :).


I still didn't catch network traffic / didn't try to / while upgrading FW, so I don't know process how camera is possible to flash firmware without uboot / uart usage. It's not possible in camera UI itself, but possible by some external tool. But it's work for some of next days for me, if I'll have some time :)

Activity

  1. darrylb123 commented on Nov 26, 2024

    @darrylb123

    I have a number of the ASECAM Vatilon PB1 cameras. They can be affected by something on the network that causes them to all reboot at once. This can continue for some time, all rebooting regularly. I am willing to assist where I can. I upgraded the firmware using the Windows tool. It didn't help with the reboots but it may be the way to install alternative firmware.

  2. mtrakal commented on Nov 28, 2024

    @mtrakal
    Author

    I have a number of the ASECAM Vatilon PB1 cameras. They can be affected by something on the network that causes them to all reboot at once. This can continue for some time, all rebooting regularly. I am willing to assist where I can. I upgraded the firmware using the Windows tool. It didn't help with the reboots but it may be the way to install alternative firmware.

    In the camera WebGui is possible to setup autoreboot. Maybe you have it enabled?
    I have no issue with reboots of camera when this settings is disabled. But I have it enabled to reboot once per day to cleanup possible FW memleaks, sync time again, etc.

    image

  3. darrylb123 commented on Nov 28, 2024

    @darrylb123
  4. mtrakal commented on Nov 29, 2024

    @mtrakal
    Author

    I upgraded the firmware using the Windows tool. It didn't help with the reboots but it may be the way to install alternative firmware.

    Yeah, I already caught FW upgrade packets, but it's a bit useless because it's encrypted. So App and Cam changed the keys and session and encrypted the rest of the communication. So until we know the algorithm and how the key is build, we are lost I think this simple way for upgrade FW, but we have 2 others ⏬.

    Discover camera is based on Broadcast on Network L2 (ARP broadcast on same network area):

    {
        "DeviceType": "IPC",
        "ChannelNum": 1,
        "DeviceModel": "PB4",
        "DeviceModel2": "PB",
        "DeviceName": "PB4",
        "CloudID": "__CLEARED__",
        "SerialNo": "__CLEARED__",
        "NetType": 1,
        "MAC": "__CLEARED__",
        "DHCP": 0,
        "Address": "10.0.0.33",
        "Submask": "255.255.255.0",
        "GateWay": "10.0.0.254",
        "DNS": "10.0.0.252",
        "TCPPort": 8600,
        "RTSPPort": 554,
        "HTTPPort": 80,
        "Language": "English",
        "SoftwareVersion": "V1.13.23-20240524",
        "DeviceRunTime": 78,
        "QWTEnable": false,
        "IPAdaptive": 1,
        "LampType": 1,
        "DayNightSwitch": 0,
        "P2PType": 4,
        "P2PPID": "__CLEARED__",
        "P2PQRCode": "__CLEARED__",
        "LensCount": 1,
        "StreamCount": 2,
        "StreamNumPerChannel": 2,
        "NetTypeSet": 1,
        "NetProtocolSet": 143,
        "Status": 2,
        "Version": 1,
        "Scode": "__CLEARED__"
    }

    After that application sends UDP packet to camera IP address with body:

    {
      "operation": "login",
      "param": {
        "user": "JmsRxTtVEW+J5da5aSt3lw==",
        "password": "bC+UKGMPDDiynIUE9ViJzw==",
        "heartbeat_timeinterval": 1,
        "heartbeat_timeoutcounts": 3,
        "sessionid": 179511328,
        "encryptionkey": "EOtDcH4DFPJZj2CDhLFNAg==",
        "roletype": 5
      }
    }

    So we know, that decrypted user = admin and password = 123456.

    Response is:

    {
      "operation": "login_response",
      "code": 0,
      "msg": "successful ",
      "sessionid": 179511328,
      "encryptionkey": "HO55v18ZnC9cL6pJe0U9Tg=="
    }

    And the rest is encryped with new key.


    But we already have ROOT access to telnet, so I don!t think, that we need use standard way how to upgrade firmware, when you can (I supose) re-mount partition as write or use dd to rewrite flash memory. Not sure, but expecting, that with root bash / bussybox it is possible.


    And second tested variant - the author of articles on Reddit already used UART and flash his own custom FW (changed default password to telnet with custom one). So flash new FW is not the main problem I think :)

  5. darrylb123 commented on Nov 29, 2024

    @darrylb123
  6. L4ky commented on Dec 28, 2024

    @L4ky

    Hi, i have a few Simicam cameras from Aliexpress.
    They are Vatilon PB4 boards and various firmware version:

    • V1.13.23-20240524 ( linux-4.9-11 , uboot-2016-15 )
    • V1.14.10-20240725 ( linux-4.9-11 , uboot-2016-15 )

    On Vatilon website there is 1.15.11 firmware version but still didn't tried it.

    I have root access via telnet on port 2360.

    Let me know if i can contribute in some way.

  7. kellerman commented on Feb 22, 2025

    @kellerman

    I have multiple Vatilon cameras, including PB4. They actually work pretty well if you block internet comms to them. I see we can already get to Uboot and have root access to the firmware. I can contribute. Nice cheap cameras these.

  8. attila-lendvai commented on Feb 23, 2025

    @attila-lendvai

    i also have two ASECAM cameras that say they are PB1 in their web UI.

    i'm relatively experienced in lowlevel hw hacking, i can also help, but i'm very new to openipc.

  9. attila-lendvai commented on Feb 24, 2025

    @attila-lendvai

    i have two of these: https://www.aliexpress.com/item/1005006826151802.html

    i have used nmap to scan the ports, and 2360 was not listed as open, but i can indeed telnet to that port.

    but the admin 123456 doesn't work there (it works through the web UI, though).

    any other ideas for login/pw?

  10. L4ky commented on Feb 25, 2025

    @L4ky

    i have two of these: https://www.aliexpress.com/item/1005006826151802.html

    i have used nmap to scan the ports, and 2360 was not listed as open, but i can indeed telnet to that port.

    but the admin 123456 doesn't work there (it works through the web UI, though).

    any other ideas for login/pw?

    Try root/ipc@hs66

  11. attila-lendvai commented on Feb 25, 2025

    @attila-lendvai

    i have two of these: https://www.aliexpress.com/item/1005006826151802.html
    i have used nmap to scan the ports, and 2360 was not listed as open, but i can indeed telnet to that port.
    but the admin 123456 doesn't work there (it works through the web UI, though).
    any other ideas for login/pw?

    Try root/ipc@hs66

    it worked! :) thank you!

  12. crankmosh commented on May 26, 2025

    @crankmosh

    it seems with the v1.14 and v1.15 there is a bug that does not let you save the time settings on the webgui on the PB4... I have one camera with v1.13 and that works fine but I used IPC tool and tried to upgrade from v1.14 to v1.15 and neither allows me to save the time settings

  13. oglabogla commented on Oct 7, 2025

    @oglabogla

    hello everyone i have a chinese camera which runs a V1.14.91-20241120, but everytime my nvr reboots (once a week) the camera fails to connect and needs a manual password input
    can someone supply me with the V1.12 version
    thank you

  14. ETE-Design commented on Nov 8, 2025

    @ETE-Design

    @mtrakal Any progress on this? Also have an Vatilon PB4 with the fh8856v200 so would be nice to flash OpenIPC on it :-)

  15. tylerwight commented on Nov 18, 2025

    @tylerwight

    Just here to add some info as there isn't much on the internet. I have two of these cameras and can help any sort of testing if needed.

    I bought some REVODATA fisheye cameras in 2022 that turned out to run these Vatilon boards. I can confirm I also had the same issue darrylb123 had where both of these cameras would just reboot on their own, and I didn't have auto reboot on. These cameras eventually broke and started boot looping, the webUI would show up just for a moment and I couldn't get in.

    I didn't know much about them at the time, opened them up and bought new SOCs/mobos for them, so these cameras now run this module:
    https://www.aliexpress.us/item/3256804887434971.html

    in case the link goes down: FH8852V200+GC5053 V1.14.91-20241120 PA4 uboot-2016-22

    Well these ones eventually broke in the exact same way so I dug further and found the info discussed here: the open telnet port and cracked root password. root/ipc@hs66

    I got in and found the /tmp/ipcam binary was segfaulting on boot, which then caused it to restart forever. After reading the /usr/app/run.sh I found you can force a factory reset which I did, but still it was bootlooping. The fix for me was to manually edit the /tmp/etc/config/ipcam.conf and disable ONVIF. I don't know what changed, cause it worked before but if that camera booted with ONVIF it would segfault on startup, and no way to get in the webUI. My camera now boots and I just have to use RTSP

    point being, if you have this Vatilon firmware and your camera boot loops, I fixed it by killing ipcam process to keep it up, editing the /tmp/etc/config/ipcam.conf to disable ONVIF. So having a nice working OpenIPC would be great, there are tons of cheap cameras out there that that use these chips =)

  16. 23 remaining items

  17. darrylb123 commented on Nov 17, 2026

    @darrylb123

    No video or image

    root@openipc-fh8856v100:~# logread | grep -i -E 'sensor|gc4653|mipi|isp|majestic' | head -80
    Nov 17 17:17:51 openipc-fh8856v100 kern.info kernel: [    8.271831] 	isp - (dev. name: ispp - IRQ #7
    Nov 17 17:17:51 openipc-fh8856v100 kern.info kernel: [    8.271928] 	isp - (dev. name: ispf - IRQ #8
    Nov 17 17:17:53 openipc-fh8856v100 user.info majestic[816]: Majestic Lite for Fullhan (fh8852v100), version master+80cb39d, built on 2026-11-16 17:41
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: Loading main configuration: /etc/majestic.yaml
    Nov 17 17:17:54 openipc-fh8856v100 user.debug majestic[816]: Detected Synopsys DesignWare Watchdog
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: Watchdog armed: asked 300 s, accepted 300 s, fed every 150.000s, magic close supported
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: no identity: no chip identity on this platform
    Nov 17 17:17:54 openipc-fh8856v100 user.debug majestic[816]: Set server path: /var/www
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: HTTP server started on :::80
    Nov 17 17:17:54 openipc-fh8856v100 user.warn majestic[816]: HTTPS port :::443 configured without cert/key; skipping TLS server
    Nov 17 17:17:54 openipc-fh8856v100 user.debug majestic[816]: Autodetected sensor as 'gc4653_i2c'
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: Using gc4653_i2c sensor
    Nov 17 17:17:54 openipc-fh8856v100 user.debug majestic[816]: 2560 1440 25  maxw 2560
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: [dsp] version: V1.2.0(gcd1ec21),build: 2020-03-24
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: [isp] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: [ispcore] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:17:54 openipc-fh8856v100 user.debug majestic[816]: trying to load /usr/lib/sensors/libgc4653_mipi.so
    Nov 17 17:17:54 openipc-fh8856v100 user.debug majestic[816]: ADV_ISP version: 		V1.2.0(g4bb12fc)
    Nov 17 17:17:54 openipc-fh8856v100 user.debug majestic[816]: Error: FHAdv_Isp_SensorInit failed, ret = -2
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: [sensor] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:17:54 openipc-fh8856v100 user.info majestic[816]: [mipi] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:17:54 openipc-fh8856v100 user.err majestic[816]: API_ISP_SensorKick failed with -1(ffffffff)
    Nov 17 17:17:54 openipc-fh8856v100 user.debug majestic[816]: Error(-1 - ffffffff): fh_start_isp!
    Nov 17 17:17:55 openipc-fh8856v100 kern.err kernel: [   12.444912] isp_release start
    Nov 17 17:17:55 openipc-fh8856v100 kern.err kernel: [   12.481683] fh81_isp_release finish
    Nov 17 17:17:59 openipc-fh8856v100 user.err majestic[816]: Cannot start SDK
    Nov 17 17:18:09 openipc-fh8856v100 user.info majestic[816]: Live backlog budget: 5209 KiB of 25868 KiB RAM (board-class bound, memory available 17720 KiB); 1280 KiB per session, so about 4 concurrent live viewers across /ws/video, WebRTC, RTSP-over-TCP, /mjpeg and /video.mp4. Low
    Nov 17 17:18:09 openipc-fh8856v100 user.warn majestic[816]: this kernel publishes no MemAvailable, so the budget and the low-memory floor are read from MemFree + Buffers + Cached; both understate what is reclaimable and tighten early
    
    root@openipc-fh8856v100:~# dmesg | tail -40
    [   11.167285] [VPU]vpu_parse_cmdline 638: set command success! (vi)
    [   11.167482] [VPU]vpu_parse_cmdline 349: VPU Revc Command: cap_0_2560_1440
    [   11.167521] [VPU]vpu_parse_cmdline 638: set command success! (cap)
    [   11.167710] [VPU]vpu_parse_cmdline 349: VPU Revc Command: cap_1_1280_720
    [   11.167745] [VPU]vpu_parse_cmdline 638: set command success! (cap)
    [   11.168435] [MEDIA]fh_media_open 111: media_process open success.
    [   11.168847] [ENC]pae_enc_isr 3285: [PAE]---PAE RUN!!---
    [   11.181572] [ENC]pae_open 69: pae open success!
    [   11.182088] [HEVC]hevc_open 42: hevc open success!
    [   11.182363] [JPEG]jpeg_open 35: jpeg open success.
    [   11.182559] [VPU]vpu_open 544: vpu open success.
    [   11.182665] [BGM]bgm_open 329: bgm open success.
    [   11.182891] remap_pfn_range start~end: 0x405de000 0x40600000, pyh:0xa1d00 , nocached.
    [   11.183989] remap_pfn_range start~end: 0x41120000 0x42129000, pyh:0xa1d22 , nocached.
    [   11.184938] remap_pfn_range start~end: 0x4214e000 0x426b3000, pyh:0xa2d2b , nocached.
    [   11.185516] remap_pfn_range start~end: 0x42772000 0x42b8d000, pyh:0xa3290 , nocached.
    [   11.185985] remap_pfn_range start~end: 0x4099b000 0x409f1000, pyh:0xa36ab , nocached.
    [   11.221883] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 1 0x0 0 0
    [   11.221916] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 5 0x0 0 0
    [   11.222642] remap_pfn_range start~end: 0x42b8d000 0x43788000, pyh:0xa3701 , nocached.
    [   11.321654] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 19 0x0 0 0
    [   11.321783] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 2 0x0 0 0
    [   11.322033] remap_pfn_range start~end: 0x43803000 0x439f2000, pyh:0xa42fc , nocached.
    [   11.322202] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 8 0x0 0 0
    [   11.324553] remap_pfn_range start~end: 0x43a5e000 0x450c5000, pyh:0xa44f0 , nocached.
    [   12.444912] isp_release start
    [   12.481683] fh81_isp_release finish
    [   12.481806] [VPU]vpu_disable 2734: wait vpu stop...
    [   12.481829] [VPU]vpu_disable 2745: vpu stop!
    [   13.181943] [ENC]pae_cpu_reset 40: [PAE]---RESET PAE---
    [   13.221710] [ENC]pae_release 103: pae release success
    [   13.241707] vbus_dev_read returns: 0
    [   14.222131] [HEVC]hevc_release 50: hevc release success
    [   15.181925] [JPEG]jpeg_release 43: jpeg release success
    [   15.182614] [VPU]vpu_disable 2734: wait vpu stop...
    [   15.182637] [VPU]vpu_disable 2745: vpu stop!
    [   16.182071] [VPU]vpu_release 571: vpu release success
    [   16.182131] [BGM]bgm_release 343: bgm release success
    [   16.182166] [MEDIA]fh_media_release 118: media process release success
    [   63.725911] set time :rtc core busy
    
  18. openipc-ai commented on Nov 17, 2026

    @openipc-ai
    Collaborator

    @darrylb123 sorry, that one is my fault again. Your camera is most likely still running test build 1. Both test builds carried the same version stamp, so sysupgrade saw "Same version, nothing to update" and wrote nothing. Your log is identical to the first one, line for line.

    You can check which library you have:

    sha256sum /usr/lib/sensors/libgc4653_mipi.so

    15fd4c88… is test build 1 and d56fb0c1… is test build 2.

    The quickest way to get test build 2 is to replace just that one file, since nothing else changed:

    curl -L -o /usr/lib/sensors/libgc4653_mipi.so https://github.com/OpenIPC/openfullhan/releases/download/test-fh8856v100-gc4653-2/libgc4653_mipi.so
    sha256sum /usr/lib/sensors/libgc4653_mipi.so   # should print d56fb0c11eaa12f3...
    reboot

    I've also re-uploaded the full test build 2 image with its own version stamp, so the sysupgrade command from my last message now works too.

    After the reboot, the same two outputs as before would tell me where it stops next, if it does:

    logread | grep -i -E 'sensor|gc4653|mipi|isp|majestic' | head -80
    dmesg | tail -40

    Plus whether rtsp://<camera-ip>/stream=0 or http://<camera-ip>/image.jpg shows anything.

  19. darrylb123 commented on Nov 17, 2026

    @darrylb123

    Initially asked for a login and password.
    ran vlc http:///image.jpg and an image flashed up briefly
    ran vlc rtsp:///stream=0 and it asked for login then said it couldn't display the video format.
    Changed to H264 but can no longer get anything to work, video or image.

    root@openipc-fh8856v100:~# logread | grep -i -E 'sensor|gc4653|mipi|isp|majestic' | head -80
    Nov 17 17:44:19 openipc-fh8856v100 kern.info kernel: [    9.181855] 	isp - (dev. name: ispp - IRQ #7
    Nov 17 17:44:19 openipc-fh8856v100 kern.info kernel: [    9.181952] 	isp - (dev. name: ispf - IRQ #8
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: Majestic Lite for Fullhan (fh8852v100), version master+80cb39d, built on 2026-11-16 17:41
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: Loading main configuration: /etc/majestic.yaml
    Nov 17 17:44:22 openipc-fh8856v100 user.debug majestic[812]: Detected Synopsys DesignWare Watchdog
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: Watchdog armed: asked 300 s, accepted 300 s, fed every 150.000s, magic close supported
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: no identity: no chip identity on this platform
    Nov 17 17:44:22 openipc-fh8856v100 user.debug majestic[812]: Set server path: /var/www
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: HTTP server started on :::80
    Nov 17 17:44:22 openipc-fh8856v100 user.warn majestic[812]: HTTPS port :::443 configured without cert/key; skipping TLS server
    Nov 17 17:44:22 openipc-fh8856v100 user.debug majestic[812]: Autodetected sensor as 'gc4653_i2c'
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: Using gc4653_i2c sensor
    Nov 17 17:44:22 openipc-fh8856v100 user.debug majestic[812]: 2560 1440 25  maxw 2560
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: [dsp] version: V1.2.0(gcd1ec21),build: 2020-03-24
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: [isp] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: [ispcore] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:44:22 openipc-fh8856v100 user.debug majestic[812]: trying to load /usr/lib/sensors/libgc4653_mipi.so
    Nov 17 17:44:22 openipc-fh8856v100 user.debug majestic[812]: ADV_ISP version: 		V1.2.0(g4bb12fc)
    Nov 17 17:44:22 openipc-fh8856v100 user.debug majestic[812]: Error: FHAdv_Isp_SensorInit failed, ret = -2
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: [sensor] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: [mipi] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: Error: sensor function get_bayer_format is NULL
    Nov 17 17:44:22 openipc-fh8856v100 user.warn majestic[812]: mirror 0, flip 0 not set: -1(ffffffff)
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: joined 239.255.255.250 on eth0 (172.25.1.99)
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: onvif discovery sent Hello via eth0 as 172.25.1.99
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: also answering for openipc-fh8856v100.local.
    Nov 17 17:44:22 openipc-fh8856v100 user.info majestic[812]: joined 224.0.0.251 on eth0 (172.25.1.99)
    Nov 17 17:44:23 openipc-fh8856v100 user.info majestic[812]: announced openipc.local. and openipc-fh8856v100.local. as 172.25.1.99 on eth0
    Nov 17 17:44:23 openipc-fh8856v100 user.info majestic[812]: RTSP listener on IPv4 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 17 17:44:23 openipc-fh8856v100 user.info majestic[812]: RTSP listener on IPv6 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 17 17:44:23 openipc-fh8856v100 user.info majestic[812]: RTSP server started on port 554
    Nov 17 17:44:23 openipc-fh8856v100 user.info majestic[812]: H.264 SPS said nothing about picture reordering; publishing it with max_num_reorder_frames=0 (20 -> 23 bytes) so decoders that would otherwise hold a level's whole DPB show the first frame at once
    Nov 17 17:44:23 openipc-fh8856v100 user.info majestic[812]: H.264 SPS said nothing about picture reordering; publishing it with max_num_reorder_frames=0 (20 -> 23 bytes) so decoders that would otherwise hold a level's whole DPB show the first frame at once
    Nov 17 17:44:23 openipc-fh8856v100 user.debug majestic[812]: DTLS identity: P-256, 289-byte certificate
    Nov 17 17:44:23 openipc-fh8856v100 user.info majestic[812]: WebRTC fingerprint sha-256 49:DA:A7:CE:34:7F:65:BA:0B:49:56:C0:B8:DC:E1:EA:C9:80:61:6A:CC:62:ED:67:E9:F0:EE:1E:7A:D6:BE:47
    Nov 17 17:44:24 openipc-fh8856v100 user.debug majestic[812]: announced again as 172.25.1.99 on eth0
    Nov 17 17:44:24 openipc-fh8856v100 user.debug majestic[812]: onvif discovery sent Probe via eth0
    Nov 17 17:44:25 openipc-fh8856v100 user.debug majestic[812]: onvif discovery sent Hello again via eth0
    Nov 17 17:44:26 openipc-fh8856v100 user.debug majestic[812]: announced again as 172.25.1.99 on eth0
    Nov 17 17:44:29 openipc-fh8856v100 user.debug majestic[812]: onvif discovery sent Hello again via eth0
    Nov 17 17:44:30 openipc-fh8856v100 user.debug majestic[812]: announced again as 172.25.1.99 on eth0
    Nov 17 17:44:33 openipc-fh8856v100 user.info majestic[812]: Live backlog budget: 5209 KiB of 25868 KiB RAM (board-class bound, memory available 17024 KiB); 1280 KiB per session, so about 4 concurrent live viewers across /ws/video, WebRTC, RTSP-over-TCP, /mjpeg and /video.mp4. Low
    Nov 17 17:44:33 openipc-fh8856v100 user.warn majestic[812]: this kernel publishes no MemAvailable, so the budget and the low-memory floor are read from MemFree + Buffers + Cached; both understate what is reclaimable and tighten early
    Nov 17 17:44:38 openipc-fh8856v100 kern.err kernel: [   28.151544] isp_release start
    Nov 17 17:44:38 openipc-fh8856v100 kern.err kernel: [   28.171295] fh81_isp_release finish
    Nov 17 17:44:38 openipc-fh8856v100 user.notice majestic: crashed (signal 8); starting it again in 5s
    Nov 17 17:44:43 openipc-fh8856v100 user.info majestic[864]: Majestic Lite for Fullhan (fh8852v100), version master+80cb39d, built on 2026-11-16 17:41
    Nov 17 17:44:43 openipc-fh8856v100 user.info majestic[864]: Loading main configuration: /etc/majestic.yaml
    Nov 17 17:44:43 openipc-fh8856v100 user.warn majestic[864]: the previous majestic crashed with SIGFPE (8); its crash dump is in /etc/crash. Its video pools may still be held and the hardware watchdog may still be armed from it
    Nov 17 17:44:43 openipc-fh8856v100 user.debug majestic[864]: Detected Synopsys DesignWare Watchdog
    Nov 17 17:44:43 openipc-fh8856v100 user.info majestic[864]: Watchdog armed: asked 300 s, accepted 300 s, fed every 150.000s, magic close supported
    Nov 17 17:44:43 openipc-fh8856v100 user.info majestic[864]: no identity: no chip identity on this platform
    Nov 17 17:44:43 openipc-fh8856v100 user.debug majestic[864]: Set server path: /var/www
    Nov 17 17:44:43 openipc-fh8856v100 user.info majestic[864]: HTTP server started on :::80
    Nov 17 17:44:43 openipc-fh8856v100 user.warn majestic[864]: HTTPS port :::443 configured without cert/key; skipping TLS server
    Nov 17 17:44:44 openipc-fh8856v100 user.debug majestic[864]: Autodetected sensor as 'gc4653_i2c'
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: Using gc4653_i2c sensor
    Nov 17 17:44:44 openipc-fh8856v100 user.debug majestic[864]: 2560 1440 25  maxw 2560
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: [dsp] version: V1.2.0(gcd1ec21),build: 2020-03-24
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: [isp] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: [ispcore] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:44:44 openipc-fh8856v100 user.debug majestic[864]: trying to load /usr/lib/sensors/libgc4653_mipi.so
    Nov 17 17:44:44 openipc-fh8856v100 user.debug majestic[864]: ADV_ISP version: 		V1.2.0(g4bb12fc)
    Nov 17 17:44:44 openipc-fh8856v100 user.debug majestic[864]: Error: FHAdv_Isp_SensorInit failed, ret = -2
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: [sensor] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: [mipi] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: Error: sensor function get_bayer_format is NULL
    Nov 17 17:44:44 openipc-fh8856v100 user.warn majestic[864]: mirror 0, flip 0 not set: -1(ffffffff)
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: joined 239.255.255.250 on eth0 (172.25.1.99)
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: onvif discovery sent Hello via eth0 as 172.25.1.99
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: also answering for openipc-fh8856v100.local.
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: joined 224.0.0.251 on eth0 (172.25.1.99)
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: announced openipc.local. and openipc-fh8856v100.local. as 172.25.1.99 on eth0
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: RTSP listener on IPv4 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: RTSP listener on IPv6 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: RTSP server started on port 554
    Nov 17 17:44:44 openipc-fh8856v100 user.debug majestic[864]: DTLS identity: P-256, 289-byte certificate
    Nov 17 17:44:44 openipc-fh8856v100 user.info majestic[864]: WebRTC fingerprint sha-256 47:21:D0:A9:5D:24:78:AE:3C:4A:FA:79:06:BF:78:94:CC:E8:3D:08:7A:1E:35:94:48:8D:56:DA:74:DA:66:36
    Nov 17 17:44:45 openipc-fh8856v100 user.debug majestic[864]: wait pic_end fail, errno=0 
    Nov 17 17:44:45 openipc-fh8856v100 user.debug majestic[864]: announced again as 172.25.1.99 on eth0
    
    root@openipc-fh8856v100:~# dmesg | tail -40
    [   28.151443] [vmm] clean vmm zone anonymous
    [   28.151456] [vmm] clean vmm zone anonymous
    [   28.151467] [vmm] clean vmm zone anonymous
    [   28.151479] [vmm] clean vmm zone anonymous
    [   28.151490] [vmm] clean vmm zone anonymous
    [   28.151502] [vmm] clean vmm zone anonymous
    [   28.151514] [vmm] clean vmm zone anonymous
    [   28.151526] [vmm] clean vmm zone anonymous
    [   28.151544] isp_release start
    [   28.171295] fh81_isp_release finish
    [   33.355224] [wdt] set topval: 5
    [   33.400033] [VPU]vpu_parse_cmdline 349: VPU Revc Command: vi_2560_1440
    [   33.400078] [VPU]vpu_parse_cmdline 638: set command success! (vi)
    [   33.400295] [VPU]vpu_parse_cmdline 349: VPU Revc Command: cap_0_2560_1440
    [   33.400335] [VPU]vpu_parse_cmdline 638: set command success! (cap)
    [   33.400512] [VPU]vpu_parse_cmdline 349: VPU Revc Command: cap_1_1280_720
    [   33.400551] [VPU]vpu_parse_cmdline 638: set command success! (cap)
    [   33.401267] [MEDIA]fh_media_open 111: media_process open success.
    [   33.403463] [ENC]pae_enc_isr 3285: [PAE]---PAE RUN!!---
    [   33.422204] [ENC]pae_open 69: pae open success!
    [   33.422813] [HEVC]hevc_open 42: hevc open success!
    [   33.423106] [JPEG]jpeg_open 35: jpeg open success.
    [   33.423309] [VPU]vpu_open 544: vpu open success.
    [   33.423422] [BGM]bgm_open 329: bgm open success.
    [   33.423658] remap_pfn_range start~end: 0x406ea000 0x4070c000, pyh:0xa1d00 , nocached.
    [   33.424789] remap_pfn_range start~end: 0x4136c000 0x42375000, pyh:0xa1d22 , nocached.
    [   33.425761] remap_pfn_range start~end: 0x42446000 0x429ab000, pyh:0xa2d2b , nocached.
    [   33.426367] remap_pfn_range start~end: 0x42a5c000 0x42e77000, pyh:0xa3290 , nocached.
    [   33.426860] remap_pfn_range start~end: 0x408ec000 0x40942000, pyh:0xa36ab , nocached.
    [   33.441724] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 1 0x0 0 0
    [   33.441758] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 5 0x0 0 0
    [   33.442259] remap_pfn_range start~end: 0x42e77000 0x4356c000, pyh:0xa3701 , nocached.
    [   33.442514] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 7 0x0 0 0
    [   33.442679] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 2 0x0 0 0
    [   33.442942] remap_pfn_range start~end: 0x43644000 0x43833000, pyh:0xa3df6 , nocached.
    [   33.443127] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 8 0x0 0 0
    [   33.445543] remap_pfn_range start~end: 0x4386f000 0x44ed6000, pyh:0xa3ff0 , nocached.
    [   33.521925] remap_pfn_range start~end: 0x44ed6000 0x45099000, pyh:0xa5657 , nocached.
    [   33.522129] [MEDIA]check_dst_chan 455: [unlegality chan]:chan 16 0x0 0 0
    [   63.780250] set time :rtc core busy
    
    
  20. openipc-ai commented on Nov 17, 2026

    @openipc-ai
    Collaborator

    @darrylb123 that's real progress, thank you. With test build 2 the sensor is streaming. The image that flashed up in VLC was a real frame from the GC4653, and the log shows the encoder starting (H.264 SPS ...). So the sensor setup, the MIPI link and the timing all work on your camera.

    What stops it now is that majestic crashes about 16 seconds in (crashed (signal 8), a division by zero). After the automatic restart it gets no frames at all (wait pic_end fail), which is why nothing worked after you switched to H.264. Keeping H.264 is fine.

    Two lines just before streaming starts are related: FHAdv_Isp_SensorInit failed, ret = -2 and sensor function get_bayer_format is NULL. They show a vendor call that registers the sensor's colour-order functions failing in majestic's start-up. That affects every sensor on this chip, not just yours, and it's being looked at on the majestic side.

    majestic saved a crash dump, and that's what will show where the division by zero happens. Could you please:

    1. Reboot the camera, so it starts clean, and wait about a minute.
    2. Post the readable part of the dump:
    ls -l /etc/crash/
    strings /etc/crash/majestic.dump | grep -E '^(signal|code|addr|thread|version)=' 
    strings /etc/crash/majestic.dump | grep -E '^[0-9]{2}:[0-9]{2}:[0-9]{2} ' | tail -40
    1. If you can, also attach the dump file itself. On the camera, run gzip -c /etc/crash/majestic.dump > /tmp/majestic.dump.gz. Copy it to your PC (for example scp root@<camera-ip>:/tmp/majestic.dump.gz .) and drag it into a comment here. It holds the registers and stack at the moment of the crash, which the readable part doesn't.

    If the camera crashes again after the reboot, the dump will be from that crash, which is fine.

  21. openipc-ai commented on Nov 17, 2026

    @openipc-ai
    Collaborator

    @darrylb123 there's a test build 3 with a fix for the FHAdv_Isp_SensorInit failed, ret = -2 line from your log. It contains a test majestic that registers the GC4653 library with the vendor's ISP layer correctly on this chip. That registration failed on every start before, and it's the most likely cause of the crash at 16 seconds. The sensor library is the same as in build 2.

    https://github.com/OpenIPC/openfullhan/releases/tag/test-fh8856v100-gc4653-3

    This image has its own version stamp, so sysupgrade will actually install it this time:

    sysupgrade -k -r --url=https://github.com/OpenIPC/openfullhan/releases/download/test-fh8856v100-gc4653-3/openipc.fh8856v100-nor-lite.tgz
    Or try only the new majestic, without reflashing

    It's 1.6 MB, too big for the camera's writable space, so this runs it from RAM until the next reboot:

    curl -L -o /tmp/majestic https://github.com/OpenIPC/openfullhan/releases/download/test-fh8856v100-gc4653-3/majestic
    sha256sum /tmp/majestic    # should print 641cd99ddb17a253...
    chmod +x /tmp/majestic
    /etc/init.d/S95majestic stop
    mount --bind /tmp/majestic /usr/bin/majestic
    /etc/init.d/S95majestic start

    If that gives wait pic_end fail again, the video drivers are still stuck from the last crash, and the full image above is the better test.

    After it boots, please let it run for at least a minute and post:

    logread | grep -i -E 'sensor|gc4653|mipi|isp|majestic|picture|crash' | head -80

    I'm looking for three things:

    1. FHAdv_Isp_SensorInit without -2, and no get_bayer_format is NULL.
    2. A picture upright line instead of mirror 0, flip 0 not set.
    3. Video that keeps going past 16 seconds: does rtsp://<camera-ip>/stream=0 play (H.264 is fine), and does http://<camera-ip>/image.jpg show a picture?

    If it still crashes, the readable part of the new crash dump would help as before:

    strings /etc/crash/majestic.dump | grep -E '^(signal|code|addr|thread|version)='
    strings /etc/crash/majestic.dump | grep -E '^[0-9]{2}:[0-9]{2}:[0-9]{2} ' | tail -40
  22. darrylb123 commented on Nov 17, 2026

    @darrylb123

    The dashboard displays an image. Image cannot be seen over http and no video.

    root@openipc-fh8856v100:~# logread | grep -i -E 'sensor|gc4653|mipi|isp|majestic|picture|crash' | head -80
    Nov 17 19:59:04 openipc-fh8856v100 kern.info kernel: [    9.541124] 	isp - (dev. name: ispp - IRQ #7
    Nov 17 19:59:04 openipc-fh8856v100 kern.info kernel: [    9.541221] 	isp - (dev. name: ispf - IRQ #8
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: Majestic Lite for Fullhan (fh8852v100), version fullhan-v100-sensor-info+5705db24, built on 2026-11-17 08:21
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: Loading main configuration: /etc/majestic.yaml
    Nov 17 19:59:07 openipc-fh8856v100 user.debug majestic[828]: Detected Synopsys DesignWare Watchdog
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: Watchdog armed: asked 300 s, accepted 300 s, fed every 150.000s, magic close supported
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: no identity: no chip identity on this platform
    Nov 17 19:59:07 openipc-fh8856v100 user.debug majestic[828]: Set server path: /var/www
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: HTTP server started on :::80
    Nov 17 19:59:07 openipc-fh8856v100 user.warn majestic[828]: HTTPS port :::443 configured without cert/key; skipping TLS server
    Nov 17 19:59:07 openipc-fh8856v100 user.debug majestic[828]: Autodetected sensor as 'gc4653_i2c'
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: Using gc4653_i2c sensor
    Nov 17 19:59:07 openipc-fh8856v100 user.debug majestic[828]: 2560 1440 25  maxw 2560
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: [dsp] version: V1.2.0(gcd1ec21),build: 2020-03-24
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: [isp] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: [ispcore] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 19:59:07 openipc-fh8856v100 user.debug majestic[828]: trying to load /usr/lib/sensors/libgc4653_mipi.so
    Nov 17 19:59:07 openipc-fh8856v100 user.debug majestic[828]: ADV_ISP version: 		V1.2.0(g4bb12fc)
    Nov 17 19:59:07 openipc-fh8856v100 user.debug majestic[828]: probe sensor: gc4653_mipi
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: [sensor] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 19:59:07 openipc-fh8856v100 user.info majestic[828]: [mipi] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: picture upright
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: H.264 SPS said nothing about picture reordering; publishing it with max_num_reorder_frames=0 (20 -> 23 bytes) so decoders that would otherwise hold a level's whole DPB show the first frame at once
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: joined 239.255.255.250 on eth0 (172.25.1.99)
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: onvif discovery sent Hello via eth0 as 172.25.1.99
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: also answering for openipc-fh8856v100.local.
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: joined 224.0.0.251 on eth0 (172.25.1.99)
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: announced openipc.local. and openipc-fh8856v100.local. as 172.25.1.99 on eth0
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: RTSP listener on IPv4 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: RTSP listener on IPv6 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: RTSP server started on port 554
    Nov 17 19:59:08 openipc-fh8856v100 user.debug majestic[828]: DTLS identity: P-256, 290-byte certificate
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: WebRTC fingerprint sha-256 F4:DA:38:85:1D:F8:44:72:CC:6B:83:47:13:3D:39:19:66:47:93:86:78:23:B6:1E:24:71:20:E8:1A:25:95:CA
    Nov 17 19:59:08 openipc-fh8856v100 user.info majestic[828]: H.264 SPS said nothing about picture reordering; publishing it with max_num_reorder_frames=0 (20 -> 23 bytes) so decoders that would otherwise hold a level's whole DPB show the first frame at once
    Nov 17 19:59:09 openipc-fh8856v100 user.debug majestic[828]: announced again as 172.25.1.99 on eth0
    Nov 17 19:59:10 openipc-fh8856v100 user.debug majestic[828]: onvif discovery sent Probe via eth0
    Nov 17 19:59:10 openipc-fh8856v100 user.debug majestic[828]: onvif discovery sent Hello again via eth0
    Nov 17 19:59:11 openipc-fh8856v100 user.debug majestic[828]: announced again as 172.25.1.99 on eth0
    Nov 17 19:59:12 openipc-fh8856v100 user.info majestic[828]: session restored from stay-signed-in token for root
    Nov 17 19:59:12 openipc-fh8856v100 user.debug majestic[828]: JPEG was sent to client
    Nov 17 19:59:12 openipc-fh8856v100 user.debug majestic[828]: JPEG: 356184 bytes
    Nov 17 19:59:14 openipc-fh8856v100 user.debug majestic[828]: onvif discovery sent Hello again via eth0
    Nov 17 19:59:17 openipc-fh8856v100 kern.err kernel: [   22.330645] isp_release start
    Nov 17 19:59:17 openipc-fh8856v100 kern.err kernel: [   22.350403] fh81_isp_release finish
    Nov 17 19:59:17 openipc-fh8856v100 user.notice majestic: crashed (signal 8); starting it again in 5s
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: Majestic Lite for Fullhan (fh8852v100), version fullhan-v100-sensor-info+5705db24, built on 2026-11-17 08:21
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: Loading main configuration: /etc/majestic.yaml
    Nov 17 19:59:22 openipc-fh8856v100 user.warn majestic[906]: the previous majestic crashed with SIGFPE (8); its crash dump is in /etc/crash. Its video pools may still be held and the hardware watchdog may still be armed from it
    Nov 17 19:59:22 openipc-fh8856v100 user.debug majestic[906]: Detected Synopsys DesignWare Watchdog
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: Watchdog armed: asked 300 s, accepted 300 s, fed every 150.000s, magic close supported
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: no identity: no chip identity on this platform
    Nov 17 19:59:22 openipc-fh8856v100 user.debug majestic[906]: Set server path: /var/www
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: HTTP server started on :::80
    Nov 17 19:59:22 openipc-fh8856v100 user.warn majestic[906]: HTTPS port :::443 configured without cert/key; skipping TLS server
    Nov 17 19:59:22 openipc-fh8856v100 user.debug majestic[906]: Autodetected sensor as 'gc4653_i2c'
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: Using gc4653_i2c sensor
    Nov 17 19:59:22 openipc-fh8856v100 user.debug majestic[906]: 2560 1440 25  maxw 2560
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: [dsp] version: V1.2.0(gcd1ec21),build: 2020-03-24
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: [isp] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: [ispcore] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 19:59:22 openipc-fh8856v100 user.debug majestic[906]: trying to load /usr/lib/sensors/libgc4653_mipi.so
    Nov 17 19:59:22 openipc-fh8856v100 user.debug majestic[906]: ADV_ISP version: 		V1.2.0(g4bb12fc)
    Nov 17 19:59:22 openipc-fh8856v100 user.debug majestic[906]: probe sensor: gc4653_mipi
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: [sensor] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: [mipi] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: picture upright
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: joined 239.255.255.250 on eth0 (172.25.1.99)
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: onvif discovery sent Hello via eth0 as 172.25.1.99
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: also answering for openipc-fh8856v100.local.
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: joined 224.0.0.251 on eth0 (172.25.1.99)
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: announced openipc.local. and openipc-fh8856v100.local. as 172.25.1.99 on eth0
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: RTSP listener on IPv4 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: RTSP listener on IPv6 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: RTSP server started on port 554
    Nov 17 19:59:22 openipc-fh8856v100 user.debug majestic[906]: DTLS identity: P-256, 289-byte certificate
    Nov 17 19:59:22 openipc-fh8856v100 user.info majestic[906]: WebRTC fingerprint sha-256 24:78:56:4F:2E:E1:0E:21:FD:7C:1B:56:13:7A:5B:31:99:27:D2:FA:AB:2F:21:61:32:89:0F:0F:54:15:29:5E
    Nov 17 19:59:23 openipc-fh8856v100 user.debug majestic[906]: wait pic_end fail, errno=0 
    Nov 17 19:59:23 openipc-fh8856v100 user.debug majestic[906]: announced again as 172.25.1.99 on eth0
    Nov 17 19:59:24 openipc-fh8856v100 user.debug majestic[906]: wait pic_end fail, errno=0 
    Nov 17 19:59:24 openipc-fh8856v100 user.debug majestic[906]: onvif discovery sent Hello again via eth0
    
    root@openipc-fh8856v100:~# strings /etc/crash/majestic.dump | grep -E '^(signal|code|addr|thread|version)='
    signal=8
    code=-6
    addr=0x33c
    thread=majestic
    version=fullhan-v100-sensor-info+5705db24, 2026-11-17 08:21
    root@openipc-fh8856v100:~# strings /etc/crash/majestic.dump | grep -E '^[0-9]{2}:[0-9]{2}:[0-9]{2} ' | tail -40
    19:59:07 INFO  <majestic> [main] main@1397: Majestic Lite for Fullhan (fh8852v100), version fullhan-v100-sensor-info+5705db24, built on 2026-11-17 08:21
    19:59:07 INFO  <majestic> [main] main@1430: Loading main configuration: /etc/majestic.yaml
    19:59:07 DEBUG <majestic> [watchdog] watchdog_start@341: Detected Synopsys DesignWare Watchdog
    19:59:07 INFO  <majestic> [watchdog] watchdog_start@376: Watchdog armed: asked 300 s, accepted 300 s, fed every 150.000s, magic close supported
    19:59:07 INFO  <majestic> [licence] licence_evaluate@166: no identity: no chip identity on this platform
    19:59:07 DEBUG <majestic> [httpd] start_web_server@812: Set server path: /var/www
    19:59:07 INFO  <majestic> [httpd] new_http_server@778: HTTP server started on :::80
    19:59:07 WARN  <majestic> [httpd] new_http_server@550: HTTPS port :::443 configured without cert/key; skipping TLS server
    19:59:07 DEBUG <majestic> [sensor_lookup] sensor_hint@139: Autodetected sensor as 'gc4653_i2c'
    19:59:07 INFO  <majestic> [sdk] start_sdk@2438: Using gc4653_i2c sensor
    19:59:07 DEBUG <majestic> [sdk] start_sdk@2503: 2560 1440 25  maxw 2560
    19:59:07 INFO  <majestic> [puts] @0: [dsp] version: V1.2.0(gcd1ec21),build: 2020-03-24
    19:59:07 INFO  <majestic> [puts] @0: [isp] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    19:59:07 INFO  <majestic> [puts] @0: [ispcore] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    19:59:07 DEBUG <majestic> [sdk] try_to_load@311: trying to load /usr/lib/sensors/libgc4653_mipi.so
    19:59:07 DEBUG <majestic> [log] printf@381: ADV_ISP version: 		V1.2.0(g4bb12fc)
    19:59:07 DEBUG <majestic> [log] printf@381: probe sensor: gc4653_mipi
    19:59:07 INFO  <majestic> [puts] @0: [sensor] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    19:59:07 INFO  <majestic> [puts] @0: [mipi] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    19:59:08 INFO  <majestic> [sdk] sdk_apply_image_orientation@3043: picture upright
    19:59:08 INFO  <majestic> [commonsdk] publish_sps@219: H.264 SPS said nothing about picture reordering; publishing it with max_num_reorder_frames=0 (20 -> 23 bytes) so decoders that would otherwise hold a level's whole DPB show the first frame at once
    19:59:08 INFO  <majestic> [network] mcast_follow@859: joined 239.255.255.250 on eth0 (172.25.1.99)
    19:59:08 INFO  <majestic> [discovery] send_on@565: onvif discovery sent Hello via eth0 as 172.25.1.99
    19:59:08 INFO  <majestic> [mdns] init_owned_names@154: also answering for openipc-fh8856v100.local.
    19:59:08 INFO  <majestic> [network] mcast_follow@859: joined 224.0.0.251 on eth0 (172.25.1.99)
    19:59:08 INFO  <majestic> [mdns] announce@705: announced openipc.local. and openipc-fh8856v100.local. as 172.25.1.99 on eth0
    19:59:08 INFO  <majestic> [server] rtsp_listen@553: RTSP listener on IPv4 refused (Protocol not available); listening without SO_REUSEPORT
    19:59:08 INFO  <majestic> [server] rtsp_listen@553: RTSP listener on IPv6 refused (Protocol not available); listening without SO_REUSEPORT
    19:59:08 INFO  <majestic> [rtsp] rtsp_init@28: RTSP server started on port 554
    19:59:08 DEBUG <majestic> [dtls] rtc_identity_new@257: DTLS identity: P-256, 290-byte certificate
    19:59:08 INFO  <majestic> [rtc] start_rtc@104: WebRTC fingerprint sha-256 F4:DA:38:85:1D:F8:44:72:CC:6B:83:47:13:3D:39:19:66:47:93:86:78:23:B6:1E:24:71:20:E8:1A:25:95:CA
    19:59:08 INFO  <majestic> [commonsdk] publish_sps@219: H.264 SPS said nothing about picture reordering; publishing it with max_num_reorder_frames=0 (20 -> 23 bytes) so decoders that would otherwise hold a level's whole DPB show the first frame at once
    19:59:09 DEBUG <majestic> [mdns] announce@710: announced again as 172.25.1.99 on eth0
    19:59:10 DEBUG <majestic> [discovery] send_on@559: onvif discovery sent Probe via eth0
    19:59:10 DEBUG <majestic> [discovery] send_on@559: onvif discovery sent Hello again via eth0
    19:59:11 DEBUG <majestic> [mdns] announce@710: announced again as 172.25.1.99 on eth0
    19:59:12 INFO  <majestic> [httpd] check_remember@3617: session restored from stay-signed-in token for root
    19:59:12 DEBUG <majestic> [on_jpg] send_regular_jpeg@22: JPEG was sent to client
    19:59:12 DEBUG <majestic> [sdk] capture_jpeg@2281: JPEG: 356184 bytes
    
  23. darrylb123 commented on Nov 17, 2026

    @darrylb123

    Crash dump from web browser dump page

    majestic_172.25.1.99_2026-11-17_20-11-26.dump.gz

  24. openipc-ai commented on Nov 17, 2026

    @openipc-ai
    Collaborator

    @darrylb123 thanks, the log and dump answer the first two questions: the sensor now registers properly (no -2, no get_bayer_format is NULL) and the picture comes up upright. The crash is new information. I decoded your dump, and the divide by zero happens inside Fullhan's own ISP library, in its white-balance step.

    The cause looks like the tuning file. There's no Fullhan tuning for the GC4653, so I borrowed the GC4633's. One byte in it tells the ISP library that the sensor driver supplies the white-balance gains. GC4633's driver does that; ours doesn't. So the ISP is left with zero gains and divides by one about 10 seconds in. Every other 2560x1440 tuning in Fullhan's SDK has that byte cleared, and test build 4 clears it too:

    https://github.com/OpenIPC/openfullhan/releases/tag/test-fh8856v100-gc4653-4

    sysupgrade -k -r --url=https://github.com/OpenIPC/openfullhan/releases/download/test-fh8856v100-gc4653-4/openipc.fh8856v100-nor-lite.tgz
    Or try only the corrected tuning on build 3, without reflashing

    Only two small files change, and /etc is writable:

    cd /etc/sensors
    for f in gc4653_mipi_attr.hex gc4653_mipi_night_attr.hex; do
      curl -L -o $f https://github.com/OpenIPC/openfullhan/releases/download/test-fh8856v100-gc4653-4/$f
    done
    sha256sum gc4653_mipi*_attr.hex    # both should print b0ff6c82857b1668...
    reboot

    Reboot rather than restart majestic. After a crash the video hardware stays stuck until a reboot, which is the wait pic_end fail in your second run.

    After it boots, please let it run for a couple of minutes and post the same output as last time:

    logread | grep -i -E 'sensor|gc4653|mipi|isp|majestic|picture|crash' | head -80

    Two more things that would help:

    1. A snapshot from http://<camera-ip>/image.jpg. It works even when the video doesn't, and a colour cast or a missing colour would point at the next thing to fix.
    2. Whether rtsp://<camera-ip>/stream=0 plays.

    If it still crashes, the crash dump file from the web page again, as you did this time.

  25. darrylb123 commented on Nov 18, 2026

    @darrylb123

    Video displays on Live page of majestic interface. In monochrome and a little blurry. As seen in the jpg image.
    There is video over rtsp:///stream=1
    On stream 0 VLC displays the following error:
    MultiFramedRTPSource::doGetNextFrame1(): The total received frame size exceeds the client's buffer size (250000). 158682 bytes of trailing data will be dropped!

    image
    root@openipc-fh8856v100:~# logread | grep -i -E 'sensor|gc4653|mipi|isp|majestic|picture|crash' | head -80
    Nov 18 10:12:23 openipc-fh8856v100 kern.info kernel: [    8.881858] 	isp - (dev. name: ispp - IRQ #7
    Nov 18 10:12:23 openipc-fh8856v100 kern.info kernel: [    8.881957] 	isp - (dev. name: ispf - IRQ #8
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: Majestic Lite for Fullhan (fh8852v100), version fullhan-v100-sensor-info+5705db24, built on 2026-11-17 08:21
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: Loading main configuration: /etc/majestic.yaml
    Nov 18 10:12:26 openipc-fh8856v100 user.debug majestic[808]: Detected Synopsys DesignWare Watchdog
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: Watchdog armed: asked 300 s, accepted 300 s, fed every 150.000s, magic close supported
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: no identity: no chip identity on this platform
    Nov 18 10:12:26 openipc-fh8856v100 user.debug majestic[808]: Set server path: /var/www
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: HTTP server started on :::80
    Nov 18 10:12:26 openipc-fh8856v100 user.warn majestic[808]: HTTPS port :::443 configured without cert/key; skipping TLS server
    Nov 18 10:12:26 openipc-fh8856v100 user.debug majestic[808]: Autodetected sensor as 'gc4653_i2c'
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: Using gc4653_i2c sensor
    Nov 18 10:12:26 openipc-fh8856v100 user.debug majestic[808]: 2560 1440 25  maxw 2560
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: [dsp] version: V1.2.0(gcd1ec21),build: 2020-03-24
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: [isp] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: [ispcore] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 18 10:12:26 openipc-fh8856v100 user.debug majestic[808]: trying to load /usr/lib/sensors/libgc4653_mipi.so
    Nov 18 10:12:26 openipc-fh8856v100 user.debug majestic[808]: ADV_ISP version: 		V1.2.0(g4bb12fc)
    Nov 18 10:12:26 openipc-fh8856v100 user.debug majestic[808]: probe sensor: gc4653_mipi
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: [sensor] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: [mipi] version:	V1.2.0(gaee6fa1),build: 2020-03-24
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: picture upright
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: H.264 SPS said nothing about picture reordering; publishing it with max_num_reorder_frames=0 (20 -> 23 bytes) so decoders that would otherwise hold a level's whole DPB show the first frame at once
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: joined 239.255.255.250 on eth0 (172.25.1.99)
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: onvif discovery sent Hello via eth0 as 172.25.1.99
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: also answering for openipc-fh8856v100.local.
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: joined 224.0.0.251 on eth0 (172.25.1.99)
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: announced openipc.local. and openipc-fh8856v100.local. as 172.25.1.99 on eth0
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: RTSP listener on IPv4 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: RTSP listener on IPv6 refused (Protocol not available); listening without SO_REUSEPORT
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: RTSP server started on port 554
    Nov 18 10:12:26 openipc-fh8856v100 user.debug majestic[808]: DTLS identity: P-256, 290-byte certificate
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: WebRTC fingerprint sha-256 26:3E:97:D7:D3:17:2D:6B:C2:C4:85:A6:DC:CA:32:B6:54:1A:FD:7B:9F:E1:AB:46:D1:49:C9:99:85:E1:EF:B8
    Nov 18 10:12:26 openipc-fh8856v100 user.info majestic[808]: H.264 SPS said nothing about picture reordering; publishing it with max_num_reorder_frames=0 (20 -> 23 bytes) so decoders that would otherwise hold a level's whole DPB show the first frame at once
    Nov 18 10:12:27 openipc-fh8856v100 user.debug majestic[808]: announced again as 172.25.1.99 on eth0
    Nov 18 10:12:28 openipc-fh8856v100 user.debug majestic[808]: onvif discovery sent Probe via eth0
    Nov 18 10:12:28 openipc-fh8856v100 user.debug majestic[808]: onvif discovery sent Hello again via eth0
    Nov 18 10:12:29 openipc-fh8856v100 user.info majestic[808]: session restored from stay-signed-in token for root
    Nov 18 10:12:29 openipc-fh8856v100 user.debug majestic[808]: announced again as 172.25.1.99 on eth0
    Nov 18 10:12:32 openipc-fh8856v100 user.debug majestic[808]: onvif discovery sent Hello again via eth0
    Nov 18 10:12:33 openipc-fh8856v100 user.debug majestic[808]: announced again as 172.25.1.99 on eth0
    Nov 18 10:12:36 openipc-fh8856v100 user.info majestic[808]: Live backlog budget: 5209 KiB of 25868 KiB RAM (board-class bound, memory available 17000 KiB); 1280 KiB per session, so about 4 concurrent live viewers across /ws/video, WebRTC, RTSP-over-TCP, /mjpeg and /video.mp4. Low
    Nov 18 10:12:36 openipc-fh8856v100 user.warn majestic[808]: this kernel publishes no MemAvailable, so the budget and the low-memory floor are read from MemFree + Buffers + Cached; both understate what is reclaimable and tighten early
    Nov 18 10:12:42 openipc-fh8856v100 user.debug majestic[808]: JPEG was sent to client
    Nov 18 10:12:42 openipc-fh8856v100 user.debug majestic[808]: JPEG: 622313 bytes
    Nov 18 10:12:43 openipc-fh8856v100 user.debug majestic[808]: JPEG was sent to client
    Nov 18 10:12:43 openipc-fh8856v100 user.debug majestic[808]: JPEG: 622187 bytes
    Nov 18 10:12:48 openipc-fh8856v100 user.debug majestic[808]: JPEG was sent to client
    Nov 18 10:12:48 openipc-fh8856v100 user.debug majestic[808]: JPEG: 625127 bytes
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: Native WebRTC client 0x4154c130 connected
    Nov 18 10:12:49 openipc-fh8856v100 user.info majestic[808]: WebRTC serving stream 1, as the viewer asked
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: ICE will ask STUN server stun.cloudflare.com:3478 for a reflexive address
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: ICE send buffer 1048576 bytes (asked 524288)
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: ICE receive buffer 212992 bytes (asked 262144)
    Nov 18 10:12:49 openipc-fh8856v100 user.info majestic[808]: WebRTC answering with H.264 pt 116, profile-level-id 4d001f, ssrc 3615751538
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: ICE local candidate:1 1 udp 2130706431 172.25.1.99 34165 typ host
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: ICE candidate address d69defce-9275-40e3-9d76-2c52e53e4700.local is not an IPv4 literal; relying on the peer's checks instead
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: ICE remote candidate 122.99.121.3:56397 (signalled)
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: ICE STUN server stun.cloudflare.com resolved to 162.159.207.0 and 0 other address(es)
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: ICE remote candidate 172.25.1.100:56397 (peer-reflexive)
    Nov 18 10:12:49 openipc-fh8856v100 user.info majestic[808]: ICE nominated pair with 172.25.1.100:56397
    Nov 18 10:12:49 openipc-fh8856v100 user.info majestic[808]: WebRTC ICE connected; starting DTLS
    Nov 18 10:12:49 openipc-fh8856v100 user.debug majestic[808]: DTLS starting as client
    Nov 18 10:12:49 openipc-fh8856v100 user.info majestic[808]: ICE reflexive address is 122.99.121.3:34165
    Nov 18 10:12:49 openipc-fh8856v100 user.info majestic[808]: DTLS peer certificate matches the signalled fingerprint
    Nov 18 10:12:49 openipc-fh8856v100 user.info majestic[808]: DTLS handshake done, SRTP profile AES128_CM_HMAC_SHA1_80
    Nov 18 10:12:50 openipc-fh8856v100 user.debug majestic[808]: SRTP: HMAC-SHA1 on armv4
    Nov 18 10:12:50 openipc-fh8856v100 user.debug majestic[808]: RTSP chn 1 vps_len 0 sps_len 27 pps_len 8
    Nov 18 10:12:50 openipc-fh8856v100 user.info majestic[808]: WebRTC track started, pt 116 ssrc 3615751538
    Nov 18 10:12:50 openipc-fh8856v100 user.info majestic[808]: WebRTC session up
    Nov 18 10:12:56 openipc-fh8856v100 user.debug majestic[808]: ICE pair with 172.25.1.100:56397 is valid
    Nov 18 10:12:57 openipc-fh8856v100 user.warn majestic[808]: not implemented for this vendor; WebRTC adaptive-bitrate is a no-op
    Nov 18 10:12:58 openipc-fh8856v100 user.debug majestic[808]: onvif discovery sent Probe via eth0
    Nov 18 10:13:04 openipc-fh8856v100 user.debug majestic[808]: JPEG was sent to client
    Nov 18 10:13:04 openipc-fh8856v100 user.debug majestic[808]: JPEG: 631498 bytes
    Nov 18 10:13:28 openipc-fh8856v100 user.debug majestic[808]: onvif discovery sent Probe via eth0
    Nov 18 10:13:58 openipc-fh8856v100 user.debug majestic[808]: onvif discovery sent Probe via eth0
    Nov 18 10:14:28 openipc-fh8856v100 user.debug majestic[808]: onvif discovery sent Probe via eth0
    Nov 18 10:14:58 openipc-fh8856v100 user.debug majestic[808]: onvif discovery sent Probe via eth0
    
    
  26. darrylb123 commented on Nov 18, 2026

    @darrylb123

    The camera light is on all the time which may indicate that it thinks it is night time and so switches to monochrome. This may be able to be configured though I haven't found where in the settings.
    It is currently 10:30AM her in Australia.

  27. darrylb123 commented on Nov 18, 2026

    @darrylb123

    I had fiddled with quite a few settings trying to turn the lights off.
    I ended up resetting to defaults and turned off the IR-Cut filter and enabled the substream with both streams set to H264. I now get both RTSP streams but now the majestic live page only shows colour bars.

  28. eribito commented on Nov 18, 2026

    @eribito

    @openipc-ai darrylb123's PB1 now shows video, but it stays in monochrome with the camera's light on all the time, which looks like night mode stuck on. You posted the IR-cut pins for the PB4 (nightMode.irCutPin1: 1, irCutPin2: 0). Are the pins known for the PB1 / IF56N board (FH8856V100)? The PB1 spec sheet lists IR LEDs, a warm/white LED and a CDS light sensor ("CDS IR control" on the 8-pin tail), so I'd expect an IR-cut pair, an IR LED pin and a light-sensor input. If they aren't known yet, what's the recommended way to find them on a unit already running OpenIPC? I can report them here once I flash one of my IF56N units.

    @darrylb123 the VLC message on stream=0 comes from VLC's own 250 KB RTSP frame buffer, which a 2560x1440 keyframe overflows. vlc --rtsp-frame-buffer-size=1000000 rtsp://<ip>/stream=0 or ffplay -rtsp_transport tcp rtsp://<ip>/stream=0 should play it.

  29. darrylb123 commented on Nov 18, 2026

    @darrylb123

    I've not played with OpenIPC before so I have a lot to learn. The hunt for the GPIO pins that control the light and night mode etc is very obscure. I started the Find them for me scan and the light flashed briefly but I have not been able to do it again. The doco around this seems to be outdated, Is there a recommended method?

  30. darrylb123 commented on Nov 18, 2026

    @darrylb123

    Ok, I think I've got the tool worked out. The first couple of pins it tried locked up the camera. Skipping them let me find the while light on pin 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions