Environment setup for COBRA 7+ payload [PSL1GHT/CELL SDK]

Update as of 11/19/2015

Batch files for automated tasks on Windows + ps3mapi updates

1. Added batch files for stage1 on 4.75 / 4.76 (to use this properly, put scetool on the path of "C:\PSDK3v2\ps3dev2\bin" unless you manually set the path for scetool.

2. extra batch files for stage2 also added for easy update on my
repositories

3. if you use new batch files then please check "BIN" folders outside
the SRC folders for compiled binaries. it will move them from SRC after
finishing compliation.

4. Changes on PS3MAPI by @aldostools

-- It auto enable after peeking over 0x9800
the new code code allows to keep Cobra disabled
so it's not necessary to reboot
syscall8 is turned into lv1 peek

*The implementation on homebrews is required to use this feature ex)

webMAN MOD

Source :

https://github.com/Joonie86/COBRA-7.2/commit/32afca552b5f1ba68f7ccdc58a4bda0369d9e34c
 
Is really impressive how cobra evolved in your hands guys. Thank you all starting from Cobra dev team ending at all current devs that contribute that project!
 
5. Place pre-compiled scetool inside /usr/bin/ folder.
It's bad practice to manually install anything to the root filesystem without making the package manager aware of it. Aside from possible conflicts later, One just shouldn't be manually modifying the root filesystem outside of configs.
If you're not going to build a package to globally install scetool, it should really be placed in the users home directory at ~/.local/bin/ or whatever env $PATH is defined for local binaries (maybe ~/bin) on your system (via ~/.bash_profile, ~/.bashrc, /etc/profile, or /etc/profile.d/custom).
 
It's bad practice to manually install anything to the root filesystem without making the package manager aware of it. Aside from possible conflicts later, One just shouldn't be manually modifying the root filesystem outside of configs.
If you're not going to build a package to globally install scetool, it should really be placed in the users home directory at ~/.local/bin/ or whatever env $PATH is defined for local binaries (maybe ~/bin) on your system (via ~/.bash_profile, ~/.bashrc, /etc/profile, or /etc/profile.d/custom).

Thanks for pointing out, someone else also mentioned this was a bad idea when the guide was published, I forgot to fix it back then. I'll fix the guide a little bit with your quote. Thanks again!


Sent from my iPhone using Tapatalk
 
Cellsdk 3.1 can still be installed on Linux. All required packages required during installation are still available from the repositories despite BSC removing their support & download pages.
I installed cellsdk on 2 Linux VMs recently, one I made 10 days ago and another yesterday.
The cellsdk 3.1 rpms can still be found here & there but if someone cannot find them all for whatever reason, I can help.... [emoji5]️
 
The cellsdk 3.1 rpms can still be found here & there but if someone cannot find them all for whatever reason, I can help....
emoji5.png
️
Working download is still in first post. ;)
 
i dare someone make this work in WSL. You will blow your brains out... i promise.
WSL is based on Ubuntu 14.04 iirc.
But it is unfinished, a beta version & I think some features have not been implemented as yet.
Microsoft wrote this:
Code:
The goal is to focus on core utilities and functionality. For the Anniversary Edition we are prioritizing:

A Bash environment for developers to run standard GNU command-line tools such as grep, sed, awk
Provide access to the local hard drives through /mnt
Symlink support within the WSL environment
Linux user support
Provide the ability to run apt / apt-get for updates and package testing
Provide basic functionality for some languages: NodeJS Python, Perl, Git
Command line editors/tools vi, emacs, ssh

Additional languages and features may work in the Anniversary Edition but bugs in those areas will be a lower priority than the list above.

For instance udev,, isn't supported yet and causes several apt-get upgrade errors...
Many other features are the same..
But in the future..?
 
Yes, you are correct. Hopefully it will be more robust in the near future. i can compile just about anything else though (ps3tools, scetool, and much more on WSL) so is not a total loss. atleast i dont have to mess with cygwin or anything in windows anymore. Making stuff work in windows always seems terrible.
 
Last edited:
Yes, you are correct. Hopefully it will be more robust in the near future. i can compile just about anything else though (ps3tools, scetool, and much more) so WSL is not a total loss. atleast i dont have to mess with cygwin or anything in windows anymore. Making stuff work in windows always seems terrible
For cellsdk have you satisfied all the dependencies?
I will try it tonight though.

Have you tried installing psl1ght to compile Irisman, Managunz prepNTFS...?
All you need is the ps3toolchain-master.zip from ps3dev github or clone the github repo locally using git. Then launch ./toolchain.sh as root.
Check the dependencies as well before installing & edit the bash.rc to add the paths as explained in the Readme.

I have just remade new Virtualbox VMs with both cellsdk & psl1ght installed for development last week. Cellsdk installation took me 2mn. Psl1ght on the other hand was trickier & took a few hours to setup properly with all libraries except libcurl with which am still battling... .
 
i did try psl1ght v2 (i think it was v2, hell i cant remmeber) and tried to make irisman, it failed with some error and i cant remember. im going to have one more try at it later this evening also. if you do by chance get it working (cell sdk), please share details!

about installing cell sdk... i tried like hell on ubuntu, i couldnt get anything to work pretty much, so with some trickery i found on a website, i managed to change the ubuntu bash on windows to fedora bash on windows (fedora 21) and then tried latest fedora, which is rawhide i believe. both instances of the fedora bash were very unstable.... the closest i got was psl1ght and it failed in WSL as well.

im sure i could jump over to vm and do it, but wouldnt it be neat as hell to get all of this working in WSL somehow?
 
Last edited:
i did try psl1ght v2 and tried to make irisman, it failed with some error and i cant remember. im going to have one more try at it later this evening also. if you do by chance get it working (cell sdk), please share details!
You mean that you already installed psl1ght v2 on wsl ok? From source?
 
it was a precompiled version actually now that i think about it. let me retry.

EDIT: It is compiling right now (on WSL), will report back (fingers crossed)
 
Last edited:
Don't expect too much from wsl though. It's not a VM replacement & it's not meant to be. It's only a developer's aid.
Also am not sure it was such a good idea to change wsl to fedora, such things will be supported in the future but right now you may get more issues than you already should.

Upgrading Ubuntu to the latest release though seems fine although you manually have to setup sudo after the upgrade.
 
Nope, couldnt get it to work. i cant get past not being able to install wine. and on top of that my internet connection has been dropping to 20kb/s for most of the day.
Code:
clean ...
-ne
main.c
linking ... updater.elf
CEX self ... updater.self
ELF header size @ 40
8 program headers @ 40
23 section headers @ 41170
deflated...processing segment 0 with rlen 1c3f4 len c3c2 offset 0...encrypted...
deflated...processing segment 1 with rlen 3bc0 len 1097 offset 20000...encrypted...
deflated...processing segment 2 with rlen 4378 len a48 offset 30000...encrypted...
deflated...processing segment 3 with rlen 1090 len 167 offset 40000...encrypted...
processing segment 4 with rlen 0 len 0 offset 41090...encrypted...
processing segment 5 with rlen 0 len 0 offset 23bc0...encrypted...
processing segment 6 with rlen 0 len 0 offset 0...encrypted...
deflated...processing segment 7 with rlen 28 len 21 offset 1c3cc...encrypted...
segments enumerated
built crypt data
file built
self written in memory
building pkg ... updater.pkg
Make_PKG.sh: 13: Make_PKG.sh: wine: not found
Make_PKG.sh: 21: Make_PKG.sh: wine: not found
mv: cannot stat 'EP0001-UPDWEBMOD_00-0000000000000000.pkg': No such file or directory
-ne
mv: cannot stat 'webMAN_MOD_1.45.xx_Updater.pkg': No such file or directory
root@JAMES-LAPTOP:/opt/ps3/webMAN-MOD#
 
this may be a stupid suggestion, but r there any spaces in the directory listing? when I was compiling my fw.img for the wii-u, u couldn't have any spaces in the directory listing or it would error.
 
nope no spaces. i will rerun the complete install tomorrow. i forgot to install g++ when i did a fresh install. it crashed in one of the scripts/*.sh. ill give it another go tomorrow. it looked like it was going to install fine and work. ill make sure to install build essential and a few other things before getting the dependencies for toolchain and trying to install.
 
don't worry. either u or someone here will figure out ur issue. we've got a lot of intelligent people here. :)
 
Nope, couldnt get it to work. i cant get past not being able to install wine. and on top of that my internet connection has been dropping to 20kb/s for most of the day.
Code:
clean ...
-ne
main.c
linking ... updater.elf
CEX self ... updater.self
ELF header size @ 40
8 program headers @ 40
23 section headers @ 41170
deflated...processing segment 0 with rlen 1c3f4 len c3c2 offset 0...encrypted...
deflated...processing segment 1 with rlen 3bc0 len 1097 offset 20000...encrypted...
deflated...processing segment 2 with rlen 4378 len a48 offset 30000...encrypted...
deflated...processing segment 3 with rlen 1090 len 167 offset 40000...encrypted...
processing segment 4 with rlen 0 len 0 offset 41090...encrypted...
processing segment 5 with rlen 0 len 0 offset 23bc0...encrypted...
processing segment 6 with rlen 0 len 0 offset 0...encrypted...
deflated...processing segment 7 with rlen 28 len 21 offset 1c3cc...encrypted...
segments enumerated
built crypt data
file built
self written in memory
building pkg ... updater.pkg
Make_PKG.sh: 13: Make_PKG.sh: wine: not found
Make_PKG.sh: 21: Make_PKG.sh: wine: not found
mv: cannot stat 'EP0001-UPDWEBMOD_00-0000000000000000.pkg': No such file or directory
-ne
mv: cannot stat 'webMAN_MOD_1.45.xx_Updater.pkg': No such file or directory
root@JAMES-LAPTOP:/opt/ps3/webMAN-MOD#
It's useless to use wine in WSL. You should try to install that https://github.com/xilun/cbwin/blob/master/README.md, Launch Windows programs from "Bash on Ubuntu on Windows" (WSL).
Then in shell scripts replace "wine" command by "wcmd".
 
Back
Top