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

Failed to start SDK on GM8136 #28

Open
csev1755 opened this issue Feb 27, 2025 · 4 comments
Open

Failed to start SDK on GM8136 #28

csev1755 opened this issue Feb 27, 2025 · 4 comments

Comments

@csev1755
Copy link

Getting the following error when trying to run on a GM8136 and PS5230 sensor:

Divinus for grainmedia 
Chip ID: GM8136
[watchdog] Watchdog started!
[rtsp] Started listening for clients...
App built with headers v1.0
GrainMedia - library 0x41
IPCAM not support same cap channel/path to different h264
[err]   gm_bind (0x1, 0x76f88838, 0x76f88978):
        Invalid bindfd pointer.
There are ERRORs so it cannot APPLY, please EXIT application and check flow.
[err]   gm_apply groupfd(1):
        Apply fail!
[media] Binding channel 1 failed with 0x8100000b!
Unknown error code.
[media] MJPEG initialization failed with 0x1!
[hal] Failed to start SDK!
@wberube
Copy link
Member

wberube commented Feb 28, 2025

Good morning!

What is your current configuration for the mp4 and mjpeg sections in the .yaml file, and are you running the latest kernel+rootfs combo available for your camera?

Last I checked, I was able to have both streams enabled at the same time, but I don't have access to one of these right now to validate what could have gone wrong.

Keep me updated and I'll check what can be done in the meantime!

@csev1755
Copy link
Author

Thanks for your quick response! I'm running the latest OpenIPC build, yes. Here's my configuration:

mp4:                          
  enable: true                
  codec: H264                                   
  mode: CBR                   
  width: 1920                                   
  height: 1080                                  
  fps: 20                                       
  gop: 40                                       
  bitrate: 1024               
  profile: 2                                    
                                                
jpeg:                                           
  enable: false                                 
  width: 1920                                   
  height: 1080                                  
  qfactor: 70          
                       
mjpeg:                 
  enable: true         
  mode: CBR            
  width: 1920          
  height: 1080 
  fps: 20

Disabling mjpeg does give me a video stream.

@csev1755
Copy link
Author

csev1755 commented Mar 1, 2025

Just wanted to let you know I've tested this on Majestic and it looks like I have the exact same issue. Not sure if that points to the driver being bad or not. I might go back to stock firmware to see how it behaves and if it even supported multiple streams. The sensor is a ps5230 by the way.

majestic[545]: ioctl "VPD_APPLY" fail! (ret=-1) 
majestic[545]: [err] 	gm_apply groupfd(1):
majestic[545]: 	Apply fail!
majestic[545]: Error! gm_apply fail, AP procedure something wrong!

@csev1755
Copy link
Author

csev1755 commented Mar 3, 2025

I've confirmed stock firmware supports multiple streams. Let me know how you think we should proceed.

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

2 participants