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

some work about kernel module support #6094

Open
tpunix opened this issue May 16, 2014 · 31 comments
Open

some work about kernel module support #6094

tpunix opened this issue May 16, 2014 · 31 comments

Comments

@tpunix
Copy link
Contributor

tpunix commented May 16, 2014

https://github.com/tpunix/ppsspp/tree/kmod
This is my attempt to support kernel modules. It's not finished. The game(chinese translate) can load and run, but hang at last.
The code can not be merged now... too many hacks inside it.

@tpunix
Copy link
Contributor Author

tpunix commented May 16, 2014

https://github.com/tpunix/ppsspp/tree/libfont_support
another hacks: sceReg support. with this, the official libfont.prx can be load and run.

@tpunix
Copy link
Contributor Author

tpunix commented May 16, 2014

This code is writen based an old ppsspp versions.

@hrydgard
Copy link
Owner

With some cleanup (like removing the asset files you added accidentally) both of these would be easy to merge with current PPSSPP.

@unknownbrackets
Copy link
Collaborator

Well, I'm not sure about the PSP_GetKernelMemoryBase() changes or some of the flags handling...

-[Unknown]

@tpunix
Copy link
Contributor Author

tpunix commented May 16, 2014

I change the kernel address from 0x08000000 to 0x88000000. It is the real address used on psp.
There have a pending problem: Core/MIPS/x86/Jit.cpp use this address to do something. I dont know how to handle it.

@sum2012
Copy link
Collaborator

sum2012 commented May 16, 2014

@tpunix Have you changed to PSP Model to 1000 to test ?
1
Because you always return 0 in kuKernelGetModel

SysclibForKernel is done by @unknownbrackets but still not test
https://github.com/hrydgard/ppsspp/blob/master/Core/HLE/sceKernelInterrupt.cpp#L595

@unknownbrackets
Copy link
Collaborator

Well, the top bit is just set for kernel access. For the purposes of jit, and for many other purposes, we want it to stay 0x08000000 I think. We should just OR in the kernel bit as appropriate.

-[Unknown]

@sum2012
Copy link
Collaborator

sum2012 commented May 16, 2014

@hrydgard can we try to add support of missing kernel module before v0.9.9 ?
Find in Bugz Homebrew
http://downloads.exophase.com/234/bugz-psp/

Log:
https://gist.github.com/sum2012/c57d7fe9656254d7060a

@daniel229
Copy link
Collaborator

@tpunix the libfont_support branch works great many games' fonts work fine except these two games.they still read the flash0/font/
World Neverland:The Nalulu KingDom Stories
01

Gran Turismo
02

@daniel229
Copy link
Collaborator

Tales of the World Radiant Mythology 2 Chinese patch does not read the font in the iso either.

Toradora P Chinese patch blackscreen on startup with libfont_support branch.Master build works fine.
report these errors

37:54:746 Test Thread  E[HLE]: HLE\HLE.cpp:474 Unknown syscall: Module: (unknown)
37:54:746 Test Thread  E[HLE]: HLE\HLE.cpp:474 Unknown syscall: Module: (unknown)
37:54:944 Test Thread  E[HLE]: HLE\HLE.cpp:474 Unknown syscall: Module: (unknown)
37:55:144 Test Thread  E[HLE]: HLE\HLE.cpp:474 Unknown syscall: Module: (unknown)
37:55:345 Test Thread  E[HLE]: HLE\HLE.cpp:474 Unknown syscall: Module: (unknown)
37:55:545 Test Thread  E[HLE]: HLE\HLE.cpp:474 Unknown syscall: Module: (unknown)
37:55:745 Test Thread  E[HLE]: HLE\HLE.cpp:474 Unknown syscall: Module: (unknown)
37:55:945 Test Thread  E[HLE]: HLE\HLE.cpp:474 Unknown syscall: Module: (unknown)

@sum2012
Copy link
Collaborator

sum2012 commented Aug 15, 2014

@daniel229 Can you provide full info log ?

@daniel229
Copy link
Collaborator

@daniel229
Copy link
Collaborator

Don't comment out this return,fixes the issue,but the font would not work.
tpunix@3ca4e02#diff-eb784c656c56255624635d18f7e2f057R625

@sum2012
Copy link
Collaborator

sum2012 commented Aug 15, 2014

@daniel229 Can you try this change work or not ? (without you above change)
sum2012@9f4efaf
If still fail,please post again info log,thanks

@daniel229
Copy link
Collaborator

Yes,great,it works.

@sum2012
Copy link
Collaborator

sum2012 commented Aug 16, 2014

@daniel229 Does Tales of the World Radiant Mythology 2 Chinese patch fixed as well ?
If fail,please post info log,thanks

@sum2012
Copy link
Collaborator

sum2012 commented Aug 16, 2014

@tpunix if you have time, please help imp SysMemForKernel
Find in Tales of Phantasia chinese version
log:
https://gist.github.com/sum2012/a15bea82292ee111cf1d

@daniel229
Copy link
Collaborator

Tales of the World Radiant Mythology 2 Chinese patch is not fixed.
https://gist.github.com/daniel229/eda99a13b632ec7654dc

@sum2012
Copy link
Collaborator

sum2012 commented Aug 16, 2014

@daniel229
I don't have the idea of the Tales of the World Radiant Mythology 2 Chinese patch

@sum2012
Copy link
Collaborator

sum2012 commented Aug 16, 2014

@daniel229
I know it now.It is "OLD_EBOOT.BIN"
in core\PSPloaders.cpp,comment "disc0:/PSP_GAME/SYSDIR/OLD_EBOOT.BIN",
Log again,Thanks.

@sum2012
Copy link
Collaborator

sum2012 commented Aug 16, 2014

Utawareru Mono chinese patched version also have font problem
1
Same problem use "OLD_EBOOT.BIN"
log: https://gist.github.com/sum2012/943f09b5807ea5623b77

in core\PSPloaders.cpp,comment "disc0:/PSP_GAME/SYSDIR/OLD_EBOOT.BIN",
Now the log:https://gist.github.com/sum2012/6dccf069a9bc2b1127e9
@tpunix again if you have time, please help imp SystemCtrlForKernel,sceIoWrite

@daniel229
Copy link
Collaborator

@sum2012
Copy link
Collaborator

sum2012 commented Aug 16, 2014

YES,Same as my log - unimp systemctrlforkernal and sceiowrite

@daniel229
Copy link
Collaborator

So,it's still the kernel module.

@daniel229
Copy link
Collaborator

@tpunix @hrydgard @unknownbrackets
I have push the libfont_support branch to the current master.
https://github.com/daniel229/ppsspp/commits/libfont_support
two thing need to be fixed.
1,old savestate compatibility
2,toradoraP missing some characters.

libfont_support
01

master
02

@sum2012
Copy link
Collaborator

sum2012 commented Jan 8, 2015

Just a record ,Ghost In A Shell use scereg.
edit EURO version doesn't work with fast memory on

@sum2012
Copy link
Collaborator

sum2012 commented Apr 22, 2015

Utawareru Mono chinese patched version.
JPCSP fixed it.
JPCSP have added support kernel mode now.
jpcsp/jpcsp@bd06360

JPCSP log:
https://gist.github.com/sum2012/7272d5295c4e09621d8e
1

@sum2012
Copy link
Collaborator

sum2012 commented Apr 22, 2015

When I have time in sunday,I will try to remove the support of "OLD_EBOOT.BIN"

@xiangzhai
Copy link

ROCK!!! PSP kernel module hacker!

@ghost
Copy link

ghost commented Jan 7, 2022

This is only for Chinese region games?

@sum2012
Copy link
Collaborator

sum2012 commented Jan 7, 2022

Yes,it only effect chinese patched game

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

6 participants