Hello,
I am in need some some guidance for my test qemu-malta image.
I noticed that the malta image does not offer a pantabox ncurses frontend which is fine and i would need to interact with pantavisor via cli to fully understand programatic access anyway.
Inside the running image, i can see /pantavisor/ location with the pv-ctrl binary.
From what i have learned so far is that this is the local http call socket which uses callback as documented here: Pantavisor Control Socket - Docs
I have also learned that the pv-ctrl socket can be interacted with using the pvcontrol tool in pvr-sdk-container however i can see that the mips binaries are not available and i haven’t attempted to build from source as i wanted to see if there was a solution for this before i over-complicate my approach. Is there a way to (if available) of possibility to add pvr-sdk container to the malta fw or perhaps there is a lan accessible “pvr” way to interact with the machine bypassing pantahub.
In my test qemu-malta image i was able to add curl for ease. Using suggested endpoint command examples:
curl -X GET --unix-socket /pantavisor/pv-ctrl "http://localhost/user-meta"
curl -X GET --unix-socket /pantavisor/pv-ctrl "http://localhost/buildinfo"
However each request is returning the same response which leads me to believe that my usage/application of these commands may be incorrect or i am missing some per-requisite steps/understanding
root@(none):/# curl -X GET --unix-socket /pantavisor/pv-ctrl “http://localhost/b
uildinfo”
curl: (48) Error
root@(none):/# curl -X GET --unix-socket /pantavisor/pv-ctrl “http://localhost/d
evice-meta”
curl: (48) Error
much appreciate any/all input and help.