Comments (7)
Last time I checked, printf
messages with fileXio
are working with DTL-T machines.
Once I reverse the STDIO
and IOMAN
module, I'll probably have a better understanding of how this all integrates and how to resolve this.
from ps2sdk.
Last time I checked,
printf
messages withfileXio
are working with DTL-T machines.Once I reverse the
STDIO
andIOMAN
module, I'll probably have a better understanding of how this all integrates and how to resolve this.
Was it before or after the newlib integration, #161 ?
from ps2sdk.
Last time I checked,
printf
messages withfileXio
are working with DTL-T machines.
Once I reverse theSTDIO
andIOMAN
module, I'll probably have a better understanding of how this all integrates and how to resolve this.Was it before or after the newlib integration, #161 ?
After
from ps2sdk.
These printf messages that magically appear in PCSX2, do you know how they get there?
I'm assuming they are IOP SIO writes, not EE SIO? And I'm assuming ioman somehow uses fd=0 and fd=1 to write to the IOP serial port. Can you confirm the PCSX2 output you see is the IOP serial port output? And if not, do you know what it is?
Searching in the ps2sdk sources I can find no driver for using the iop serial port.
We could probably make an iop serial port driver (using ps1 code as example), then do the same thing we do with udptty:
ps2sdk/iop/network/udptty/src/udptty.c
Lines 200 to 208 in 56dc192
from ps2sdk.
These printf messages that magically appear in PCSX2, do you know how they get there?
I'm assuming they are IOP SIO writes, not EE SIO? And I'm assuming ioman somehow uses fd=0 and fd=1 to write to the IOP serial port. Can you confirm the PCSX2 output you see is the IOP serial port output? And if not, do you know what it is?
Searching in the ps2sdk sources I can find no driver for using the iop serial port. We could probably make an iop serial port driver (using ps1 code as example), then do the same thing we do with udptty:
ps2sdk/iop/network/udptty/src/udptty.c
Lines 200 to 208 in 56dc192
Watching into the PCSX2 code I saw it print messages coming from SIO_TXFIFO
https://github.com/PCSX2/pcsx2/blob/master/pcsx2/HwWrite.cpp#L314
I think that somehow fio
redirect to SIO Write
from ps2sdk.
PCSX2 hooks IOMAN write
and SYSMEM Kprintf
.
write
: https://github.com/PCSX2/pcsx2/blob/e3eae7fbe83aad3952e3ed6a8e56fc016b51a9c3/pcsx2/IopBios.cpp#L725
Kprintf
: https://github.com/PCSX2/pcsx2/blob/e3eae7fbe83aad3952e3ed6a8e56fc016b51a9c3/pcsx2/IopBios.cpp#L752
In order to resolve this, probably need to determine if IOMAN is hooked already, and if so, use its functionality instead
from ps2sdk.
In the end, it wasn't an issue in the ps2sdk
it was PCSX2
that wasn't hooking properly fileXio
.
This PR PCSX2/pcsx2#7007 has fixed the issue.
Cheers
from ps2sdk.
Related Issues (20)
- [feature]: add 'silent' variant of ELF loader
- File descriptor namespace merging HOT 1
- AUR build HOT 2
- Some kernel headers are not installed HOT 1
- Incorrect librm example
- Incorrect RM_DVD_x values HOT 1
- ELF Loader seems to be broken if SetMemoryMode is called by the same program HOT 11
- `HDDLOAD.IRX`: is there any open source implementation around? HOT 16
- `TimerBusClock2USec` not reporting microseconds properly HOT 2
- [idea]: if MX4SIO driver is stored on a `sio/` folder. why not move sio2man and similar stuff there too? HOT 8
- Option argument for sceUsbdTransferPipe()? HOT 2
- `fileXio` somehow blocks `IOP` to reset
- Using docker, getting errors HOT 2
- Playstation2 read/write speed test HOT 1
- kr_ps2: possible typo HOT 1
- NETMAN: Why the readme file for this module is at repository root? HOT 1
- How do I use ps2adpcm tool HOT 1
- MIPTBP1 and 2 incorrect bitmask HOT 2
- Why not add support for GB2312 encoding HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps2sdk.