Homebrew RELEASE Chiaki (PS5 & PS4 remote play) homebrew

User experience

  • good

    Votes: 21 65.6%
  • decent

    Votes: 8 25.0%
  • terrible

    Votes: 3 9.4%

  • Total voters
    32
  • Poll closed .

ksdazhahs

Member
Newcomer
Joined
Jun 13, 2020
Messages
8
Trophies
0
XP
160
Country
Australia
My theory/guess is it could be a writing rights issue related to the regex parsing and writing back to the .conf file process. @H0neyBadger mentioned this process earlier in the thread.

You running SXOS and starting Chiaki.nro from album as well?
Yes running SXOS - I've tried from album as well as applet mode via hbmenu
 
Last edited by ksdazhahs,

ksdazhahs

Member
Newcomer
Joined
Jun 13, 2020
Messages
8
Trophies
0
XP
160
Country
Australia
Yes running SXOS - I've tried from album as well as applet mode via hbmenu
@trondvegardk can you try this please:

Run any game from switch menu in SX OS while holding down the R key. Choose the user for the game. After this, instead of the game, hb menu will launch -> this gives hb menu full ram access

Try run chiaki from here, after PS4 is in remote play pairing mode. A keyboard should pop up, enter pin without spaces. Let me know if this works for you?

--------------------- MERGED ---------------------------

@trondvegardk can you try this please:

Run any game from switch menu in SX OS while holding down the R key. Choose the user for the game. After this, instead of the game, hb menu will launch -> this gives hb menu full ram access

Try run chiaki from here, after PS4 is in remote play pairing mode. A keyboard should pop up, enter pin without spaces. Let me know if this works for you?
The chiaki nro should work without full RAM access as well after it is paired, but my guess is you will probably get better performance launching with full RAM access.
 

igoticecream

Well-Known Member
Newcomer
Joined
Jul 6, 2018
Messages
55
Trophies
0
Age
36
XP
369
Country
Spain
Hi,
I m personally using containers to avoid maintaining updates and compilation.
https://github.com/thestr4ng3r/chiaki/blob/master/scripts/switch/Dockerfile

--------------------- MERGED ---------------------------


As far as I can see this log exit after setting parsing.
It may have fail to read the file
or the chiaki.conf is missing.

by default the nxlink push nro files in the /switch folder. so please verify the /switch/chiaki.conf

--------------------- MERGED ---------------------------


Hi
to force pin prompt you may remove RP key lines from your conf:
rp_key =
rp_regist_key =
rp_key_type =

those parameters are maintained internally by chiaki.nro.
then the pin keyboard should prompt again.
let us know if it solves your issue

--------------------- MERGED ---------------------------


Hi
more frames == more CPU pref ;-)
since there is no Hardware acceleration yet (as far as i know)
that s a huge limitation for video stream (and a big disappointment for me)
I m still digging (if someone has a solution for h264 decode on switch, let me know)

Have you tried this to help with the video stream without overclocking? https://github.com/devkitPro/deko3d
 
  • Like
Reactions: H0neyBadger

H0neyBadger

Well-Known Member
OP
Newcomer
Joined
Oct 4, 2015
Messages
96
Trophies
0
XP
505
Country
France
@H0neyBadger , I did compiled successfully your port few week back but now
I have tried to compile the project on linux with the updated devkitpro but I have and error:


do you have any suggestion?
Hi Djakku, sorry for the late reply.
I m having the same issue.
On a fresh build, aarch64-none-elf-gcc raise the following error.
And after as second run, compilation process is working like nothing happened.
  • rm -r ./build_switch
  • bash scripts/switch/build.sh # ERROR
  • bash scripts/switch/build.sh # Success

@XorTroll do you have any idea (I m asking because you faced the same issue before)?


Code:
+ cmake -B ./build_switch -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/switch.cmake -DCMAKE_CROSSCOMPILING=1 -DCHIAKI_ENABLE_TESTS=OFF -DCHIAKI_ENABLE_CLI=OFF -DCHIAKI_ENABLE_G
UI=OFF -DCHIAKI_ENABLE_ANDROID=OFF -DCHIAKI_ENABLE_SWITCH=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCHIAKI_SWITCH_ENABLE_LINUX=OFF -DCHIAKI_LIB_ENABLE_MBEDTLS=ON           
-- The C compiler identification is GNU 10.1.0                                                                                                                           
-- The CXX compiler identification is GNU 10.1.0                                                                                                                         
-- Check for working C compiler: /opt/devkitpro/devkitA64/bin/aarch64-none-elf-gcc                                                                                       
-- Check for working C compiler: /opt/devkitpro/devkitA64/bin/aarch64-none-elf-gcc - broken                                                                             
CMake Error at /usr/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):                                                                                     
  The C compiler

    "/opt/devkitpro/devkitA64/bin/aarch64-none-elf-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /var/home/h0neybadger/Projects/chiaki/build_switch/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/sbin/make cmTC_1bf81/fast && /usr/sbin/make  -f CMakeFiles/cmTC_1bf81.dir/build.make CMakeFiles/cmTC_1bf81.dir/build
    make[1]: Entering directory '/var/home/h0neybadger/Projects/chiaki/build_switch/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_1bf81.dir/testCCompiler.c.obj
    /opt/devkitpro/devkitA64/bin/aarch64-none-elf-gcc  -isystem /opt/devkitpro/libnx/include  -D__SWITCH__ -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -ftls-model=local-exec -ffunction-sections -fdata-sections  -fPIE   -o CMakeFiles/cmTC_1bf81.dir/testCCompiler.c.obj   -c /var/home/h0neybadger/Projects/chiaki/build_switch/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_1bf81
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1bf81.dir/link.txt --verbose=1
    /opt/devkitpro/devkitA64/bin/aarch64-none-elf-gcc -D__SWITCH__ -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -ftls-model=local-exec -ffunction-sections -fdata-sections    -specs=/opt/devkitpro/libnx/switch.specs -specs=/opt/devkitpro/libnx/switch.specs  CMakeFiles/cmTC_1bf81.dir/testCCompiler.c.obj  -o cmTC_1bf81  /opt/devkitpro/libnx/lib/libnx.a
    aarch64-none-elf-gcc: fatal error: /opt/devkitpro/libnx/switch.specs: attempt to rename spec 'link' to already defined spec 'old_link'
    compilation terminated.
    make[1]: *** [CMakeFiles/cmTC_1bf81.dir/build.make:107: cmTC_1bf81] Error 1
    make[1]: Leaving directory '/var/home/h0neybadger/Projects/chiaki/build_switch/CMakeFiles/CMakeTmp'
    make: *** [Makefile:141: cmTC_1bf81/fast] Error 2
    
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)


-- Configuring incomplete, errors occurred!
See also "/var/home/h0neybadger/Projects/chiaki/build_switch/CMakeFiles/CMakeOutput.log".
See also "/var/home/h0neybadger/Projects/chiaki/build_switch/CMakeFiles/CMakeError.log".

I suspect the duplicated "-specs=/opt/devkitpro/libnx/switch.specs -specs=/opt/devkitpro/libnx/switch.specs " in gcc test to be responsible of this. But I did not identified the faulty component (cmake, aarch64-none-elf-gcc, or toolchain change issue?)

thestr4ng3r (upstream project owner) got the same issue
https://github.com/thestr4ng3r/chiaki/commit/0df3ba69cd11d1833a328cee93aa21669bba70e3
chiaki's automatic builds look broken (on pacman arch) since the 31st of may.

I will search a little bit more and raise an issue on devkitpro's repos if I can't fix it by myself.
 

Djakku

Well-Known Member
Newcomer
Joined
May 9, 2019
Messages
97
Trophies
0
XP
1,179
Country
United Kingdom
Hey @H0neyBadger ,
I'm pretty certain the issue lies in the makefile, taken from nxengine-evo , when I played around with it,
I have managed to compile the lib but not the nro file as of yet.

But then again, I started to c++ during to lockdown so there is so much I actually don't know. I was planning to see If I could play around your build and learn how to make GUI with plutonium or the newly released borealis.
 

H0neyBadger

Well-Known Member
OP
Newcomer
Joined
Oct 4, 2015
Messages
96
Trophies
0
XP
505
Country
France
Hey @H0neyBadger ,
I'm pretty certain the issue lies in the makefile, taken from nxengine-evo , when I played around with it,
I have managed to compile the lib but not the nro file as of yet.

But then again, I started to c++ during to lockdown so there is so much I actually don't know. I was planning to see If I could play around your build and learn how to make GUI with plutonium or the newly released borealis.

Hi,
in that case, feel free to give a try on the switch-gui branch
https://github.com/H0neyBadger/chiaki/tree/switch-gui
this is a work in progress branch.
it contains my latest changes and a Plutonium GUI prototype.
you just have to run the build script twice to build the nro (with the latest devkitpro from pacman).
  • rm -r ./build_switch
  • bash scripts/switch/build.sh # ERROR
  • bash scripts/switch/build.sh # Success

you might be right about the cmake/switch.cmake, I will take a look a it . thx.

I keep this branch in a dirty state since I broke the remote play and a lot of work needs to be done.
as always, any help is welcome ;-)
 
  • Like
Reactions: Djakku

Legend Of Kay

Well-Known Member
Member
Joined
Oct 12, 2018
Messages
230
Trophies
0
Age
32
XP
900
Country
Australia
Im stuck at finding my Psn AccountID. I'm probably just missing something stupid but i dont know. Iv'e downloaded the script but when i open it nothing happens.

@H0neyBadger i'm sure i'm just an idiot but would you mind spoonfeeding me. when running the file in terminal i get this:


\psn-account-id.py", line 6
<!DOCTYPE html>
^
SyntaxError: invalid syntax
 
Last edited by Legend Of Kay,

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
I don't know why, but I always had issue connecting to Sony's servers, or partners websites (dreams, path of exile, etc.)
it works fine only on PS4, but on computer or phone, it always says "The connection to the server timed out", or even gives an error in red GUID form.

their help page is only "if you forgot your password, reset it"...
One day, I'll be able to get my ID and try Chiaki, I don't give up trying :D
 
Last edited by Cyan,

lunixoid

New Member
Newbie
Joined
Jul 16, 2020
Messages
1
Trophies
0
Age
33
XP
52
Country
Russia
Hi, all.
I want to help with developing this awesome app, but I had issues with compiling the project.
Branch: switch-gui
Env: docker image chiaki-switch builded from chiaki/switch-gui sources
1st issue that make could not test devkitpro gcc with error:
aarch64-none-elf-gcc: error: unrecognized command-line option '-rdynamic'
Then I removed '-rdynamic' from /usr/share/cmake-3.17/Modules/Platform/Linux-GNU.cmake and tried to run scripts/switch/build.sh
2nd issue about linker errors
Some reference issues could be fixed with adding -lswresample -lm -lz -lvpx -lavcodec
But I got more issues that could not resolve, f.e.
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/10.1.0/../../../../aarch64-none-elf/bin/ld: glspirv.c:(.text._mesa_spirv_to_nir+0x17c): undefined reference to `nir_lower_variable_initializers'
/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/10.1.0/../../../../aarch64-none-elf/bin/ld: /home/fincs/pacman-packages/libnx/src/libnx-3.3.0/nx/source/runtime/newlib.c:435: undefined reference to `__tls_start'

and etc.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    HiradeGirl @ HiradeGirl: :discuss: