Project Ideas

See https://tai.henkaku.xyz/, this forum is for taiHEN specific API and functionalities.
Post Reply
Yifan Lu
Site Admin
Posts: 5
Joined: Sat Dec 10, 2016 10:16 pm

Project Ideas

Post by Yifan Lu » Tue Jan 03, 2017 5:41 am

Here I will post some ideas that would be possible with taiHEN but I personally won't have the time to work on.
---

USB storage as memory card for PS TV
There is built in support for USB mass storage on PS TV (Safe Mode => Update uses it). This is internally mapped as uma0:. Currently, for some reason, this device isn't mounted for regular boot. The first step would be to get it to mount after launching HENkaku (which is past the kernel mounting init). So this would involve manually mounting it somehow. Next, you have to redirect ux0: to uma0: This might also be tricky. I think you can unmount ux0 and mount device 0x2030001,0x2 as ux0 instead. However, the complication comes from all the open file descriptors on the old ux0. There needs to be some way of cleaning up/reopening the fd if needed (or letting open apps crash or something). I estimate the majority of the work would be here.

If successful, PS TV can use any USB drive and we can say goodbye to expensive memory cards!

A USB storage/SD card port on PCH-1xxx
This would be in addition to the mod above. For handheld vitas, there isn't a USB type A port, but there are two USB protocol ports. One is the "accessory port" which you might be able to make a custom cable for & enable it in kernel. More promising is the "PCIe" slot used by 3G vitas. I'm pretty sure there is no PCIe supported by the Vita (no references in the kernel), but the MDM6200 only supports USB 2.0 so it's likely that the PCIe only works in USB 2.0 mode. Therefore it is possible to solder the right pins (on wifi models) or insert a PCIe => USB 2.0 bridge card (do those exist? I'm sure they do, if not it would be "easy" to make one) on 3g models to get a USB 2.0 port. Then you need to patch the kernel to use this USB port for mass storage (I think only the other one is used by default). Bonus points if you make a case mod that accepts a microSD from the SIM slot and embed a SD to USB adapter inside the Vita.

Console output
Redirect Vita's stdio through sockets or USB serial (there is a driver in kernel used by PSM). This would let you see kernel and user printf. Would help in debugging and hacking. SceDebugForDriver lets you set a callback for console output so I think for most cases, it's as easy as setting the callback. Bonus: here is a function that enables kernel stack trace printing on crash.

Screen casting
The naive way would just be to capture the screenbuffer, compress, and send it. But that uses too much CPU cycles. A cool way would be to use the built in hardware encoders and the dedicated media processors (MeP based) to do it.

Yoti
Posts: 7
Joined: Tue Dec 13, 2016 1:03 pm

Re: Project Ideas

Post by Yoti » Tue Jan 03, 2017 7:43 pm

Delete the ux0:data/bootstrap.self file.

Yifan Lu
Site Admin
Posts: 5
Joined: Sat Dec 10, 2016 10:16 pm

Re: Project Ideas

Post by Yifan Lu » Tue Jan 03, 2017 11:39 pm

I think you posted in the wrong place...

Yoti
Posts: 7
Joined: Tue Dec 13, 2016 1:03 pm

Re: Project Ideas

Post by Yoti » Thu Jan 05, 2017 2:07 pm

No. It's my idea to the project =)

Yifan Lu
Site Admin
Posts: 5
Joined: Sat Dec 10, 2016 10:16 pm

Re: Project Ideas

Post by Yifan Lu » Thu Jan 05, 2017 4:16 pm

You still fail to understand what this thread is about. Please read the post before replying to it. This isn't about any "project". It is ideas for developers wishing to use taihen.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest