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

FunTuna 2.0.0 #4

Open
wants to merge 133 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
80bd6d2
port FreeMcBoot Configurator to newer sdk
israpps Dec 2, 2021
912e7d8
add workflow step to compile new FreeMcBoot & configurator
israpps Dec 2, 2021
6067e2d
add FreeMcBoot ported to newer SDK by @parrado and some changes
israpps Dec 2, 2021
ffc2861
apply new workflow triggers and clean file
israpps Dec 2, 2021
78062a4
delete unused files
israpps Dec 2, 2021
1275349
Update README.md
israpps Dec 2, 2021
9660ad7
fix workflow indentation
israpps Dec 2, 2021
48aabcd
update makefile
israpps Dec 2, 2021
2ab5c76
Update Makefile
israpps Dec 2, 2021
c18334d
replace `stricmp()` with `strcmp()`
israpps Dec 2, 2021
32bc1fb
revert last commit and downgrade docker to ps2dev:v1.2.0
israpps Dec 2, 2021
958caab
fuse workflow steps to reduce build time & enhance installer Makefile
israpps Dec 2, 2021
ea81d39
replace old USB drivers with `ps2dev:v1.2.0` USB drivers
israpps Dec 2, 2021
6d5d120
Append branch name to artifact package
israpps Dec 2, 2021
6b6f6a3
Fix workflow
israpps Dec 2, 2021
49a86c6
Update repack-and-release.yml
israpps Dec 2, 2021
b2e726e
remove `stricmp()` again
israpps Dec 3, 2021
2b5933c
split workflow again
israpps Dec 3, 2021
02e37e3
skip size reductions
israpps Dec 3, 2021
92f16a0
remove some shit
israpps Dec 3, 2021
79be673
bring back size reductions
israpps Dec 3, 2021
e3be066
remove HWNJ name from bottom delimiter default value
israpps Dec 3, 2021
98ffe50
Update config.c
israpps Dec 3, 2021
a237a5e
Update config.c
israpps Dec 3, 2021
8a76f7e
try to fix bug
israpps Dec 3, 2021
21d485b
reduce scope of `args` array
israpps Dec 3, 2021
dd00673
Update repack-and-release.yml
israpps Dec 3, 2021
cc720da
Update repack-and-release.yml
israpps Dec 3, 2021
fcffac1
update usb drivers during compilation
israpps Dec 3, 2021
9e1497c
Update Makefile
israpps Dec 4, 2021
570192e
avoid freeing memory previously released
israpps Dec 7, 2021
03c8a57
Merge branch 'main' into FunTuna-2.0
israpps Dec 8, 2021
205620f
try to fix bug on configurator applist index iteration
israpps Dec 8, 2021
673ad69
update wLaunchELF update step
israpps Dec 8, 2021
a32c811
fix apps list iterator
israpps Dec 8, 2021
98f43a2
update error messages to reduce size
israpps Dec 8, 2021
38cdf5d
avoid buffer overflow on `tsts` buffer used on `CNF` loading
israpps Dec 8, 2021
b3d6d8f
fix `Reboot FunTuna` item and reduce CNF size
israpps Dec 8, 2021
b1bfe4f
some debugging
israpps Dec 8, 2021
9e8d132
Update config.c
israpps Dec 8, 2021
5b103c6
fix stupid error
israpps Dec 8, 2021
399554b
add extra `\t` and `\n` to ensure log fits on CRT screens
israpps Dec 8, 2021
15cdd09
Revert new IRX loader and cleanup some files
israpps Dec 8, 2021
bcaf0dd
more cleanup
israpps Dec 8, 2021
54a6e50
Update main.c
israpps Dec 8, 2021
e6296f6
fix bug on installer
israpps Dec 8, 2021
3ec107e
Update README.md
israpps Dec 9, 2021
81a510d
fix buffer overflow
israpps Dec 23, 2021
4a9fe67
Make replace_var buffer larger
parrado Dec 27, 2021
c28e14e
Fixed double free
parrado Dec 27, 2021
51966c5
Fixed double free
parrado Dec 27, 2021
c623d70
Merge pull request #5 from parrado/FunTuna-2.0
israpps Dec 27, 2021
6360c7f
fmcb config in static buffer
parrado Dec 27, 2021
59d3c9d
Merge branch 'israpps:FunTuna-2.0' into FunTuna-2.0
parrado Dec 27, 2021
a1a6bf1
Update Update-uLaunchELF.yml
israpps Dec 27, 2021
61af8d7
Update uLaunchELF 4.43x_isr
github-actions[bot] Dec 27, 2021
b3ab5af
Merge pull request #6 from parrado/FunTuna-2.0
israpps Dec 27, 2021
193c5e6
strcasecmp instead of strcmp
parrado Dec 27, 2021
4254e76
improve readability a bit and make extension filtering case insensitive
israpps Dec 27, 2021
4d63f67
Update filer.c
israpps Dec 27, 2021
d37d2d9
put `strcasecmp()` where `stricmp()` used to be
israpps Dec 27, 2021
380042f
append compilation data on CNF head
israpps Dec 27, 2021
3c6c059
try to implement `%CNF%`
israpps Dec 27, 2021
6dcabc8
Merge branch 'israpps:FunTuna-2.0' into FunTuna-2.0
parrado Dec 28, 2021
ddbcec5
fix variable replacement
israpps Dec 28, 2021
500f3ea
remove seccond replacement
israpps Dec 28, 2021
5bce2a0
Merge branch 'israpps:FunTuna-2.0' into FunTuna-2.0
parrado Dec 28, 2021
8904601
New readmass function
parrado Dec 28, 2021
bfb9799
Merge pull request #7 from parrado/FunTuna-2.0
israpps Dec 28, 2021
7c234fc
Bundle commit code into artifact package
israpps Jan 14, 2022
2c9f886
fix items iteration
israpps Jan 15, 2022
35e07db
cleanup
israpps Jan 28, 2022
f8f4cad
Revert OPL to `v1.0.0`
israpps Jan 28, 2022
e24f992
move all embedded images into same folder
israpps Jan 28, 2022
090be78
more cleanup
israpps Jan 28, 2022
19e086b
Delete exploit_sys.s
israpps Jan 28, 2022
e687cab
make configurator capable of loading FILEXIO.IRX as shared driver
israpps Jan 28, 2022
3990368
implement internal poweroff utility
israpps Jan 28, 2022
d9e25c9
add `FILEXIO.IRX` into installer
israpps Jan 28, 2022
649839a
update config file for new test
israpps Jan 28, 2022
26fa31a
remove external poweroff app from package and installer
israpps Jan 28, 2022
a070e34
fix configurator
israpps Jan 29, 2022
53a3df3
temporarly remove poweroff till troubleshooting ends
israpps Jan 29, 2022
42c605b
Update Makefile
israpps Jan 29, 2022
0169bca
clean crap
israpps Jan 29, 2022
76b384e
move filexio load into poweroff setup to avoid RAM ussage if there is…
israpps Jan 29, 2022
5eb0748
Update Makefile
israpps Jan 29, 2022
bd68429
show ps2packer info
israpps Jan 29, 2022
3685c8c
Update repack-and-release.yml
parrado Jan 29, 2022
8b96612
Update repack-and-release.yml
parrado Jan 29, 2022
7addd56
Update Makefile
parrado Jan 29, 2022
3ad64bf
Load adress fix by @parrado
israpps Jan 29, 2022
321b1f7
workflows cleanup
israpps Jan 29, 2022
00b294e
Merge branch 'FunTuna-2.0' of https://github.com/israpps/Funtuna-Fork…
israpps Jan 29, 2022
24ebc20
Start address from free BIOS RAM
parrado Jan 30, 2022
760f7b9
Start address from free BIOS RAM (by Alex parrado, #9 )
israpps Jan 30, 2022
e4f5418
FMCB loadd address to 0x90000
parrado Jan 30, 2022
6a7fe04
ELF loader address to 0x84000
parrado Jan 30, 2022
4fd03b1
Fix load address #10 by @parrado
israpps Jan 30, 2022
a773f24
revert internal poweroff
israpps Jan 31, 2022
c09a802
re-add old poweroff
israpps Jan 31, 2022
3f33bfa
Merge branch 'FunTuna-2.0' of https://github.com/israpps/Funtuna-Fork…
israpps Jan 31, 2022
e4274ca
Back to poweroff in Makefile (#11)
israpps Feb 2, 2022
4fc9253
remove `FILEXIO.IRX` & cleanup SRC
israpps Feb 2, 2022
b3b6e10
remove inclusion of useles header file
israpps Feb 2, 2022
d96f911
Update Makefile
israpps Feb 2, 2022
b66fbe2
Update README.md
israpps Feb 6, 2022
4c01365
Make workflow use smaller wle & ignore filexio.irx
israpps Feb 6, 2022
ceb9c45
Update wLaunchELF updater workflow
israpps Feb 6, 2022
030873c
Update repack-and-release.yml
israpps Feb 6, 2022
b0b51e2
Update uLaunchELF 4.43x_isr
github-actions[bot] Feb 6, 2022
de2af55
Remove calls to `PS2LOGO` to aid in Mechapwn usage
israpps Feb 14, 2022
27f076f
Delete _check-format.yml
israpps Apr 18, 2022
f82b26b
Use homebrew modules & new padman code (#15)
israpps Apr 25, 2022
0caa22a
Update uLaunchELF 4.43x_isr
github-actions[bot] May 7, 2022
301eb93
lol
israpps Jun 5, 2022
1435155
attempt to fix compile errors by ps2dev/ps2sdk@e3cd91a
israpps Jul 3, 2022
b80c3a4
2nd attemp?
israpps Jul 3, 2022
3b75553
whyyyy
israpps Jul 3, 2022
5626bf0
Update libcdvdmod.h
israpps Jul 3, 2022
6cb0c8a
Update libcdvdmod.h
israpps Jul 3, 2022
b25e4fa
Update libcdvdmod.h
israpps Jul 3, 2022
3c06b48
Update libcdvdmod.h
israpps Jul 4, 2022
978797f
Update libcdvdmod.h
israpps Jul 4, 2022
ee7fbd1
Update libcdvdmod.h
israpps Jul 4, 2022
9f73fd7
Update libcdvdmod.h
israpps Jul 4, 2022
0f54c39
Update libcdvdmod.h
israpps Jul 4, 2022
7a1c17b
Update libcdvdmod.h
israpps Jul 4, 2022
3e5f58a
Update libcdvdmod.h
israpps Jul 4, 2022
cacffa3
Update libcdvdmod.h
israpps Jul 4, 2022
20b159b
Update launcher2.c
israpps Jul 4, 2022
8da5572
not sure what happened there?
israpps Jul 4, 2022
ccd2992
make free space controls safer
israpps Jul 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions !out/Makefile

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/Update-uLaunchELF.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Update uLaunchELF

on:
workflow_dispatch:
repository_dispatch:
types: [Component_update]

Expand All @@ -17,8 +18,8 @@ jobs:

- name: Update wLaunchELF_ISR
run: |
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT.ELF -O __Binaries/ULE.ELF
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT.ELF -O __Release/ULE_psu.ELF
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT-NO_NETWORK.ELF -O installer/INSTALLER_CONTENTS/BOOT/ULE.ELF
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT-NO_NETWORK.ELF -O __Release/ULE_psu.ELF

- uses: EndBug/add-and-commit@v7
with:
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/_check-format.yml

This file was deleted.

101 changes: 92 additions & 9 deletions .github/workflows/repack-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,113 @@
name: Release Funtuna
on:
workflow_dispatch:
pull_request:
# pull_request:
repository_dispatch:
types: [Component_update]
push:
paths:
- '__Release/**'
- 'installer/**'
- 'FreeMcBoot-Configurator/**'
- 'FreeMcBoot/**'
- '.github/workflows/repack-and-release.yml'

# schedule:
# - cron: "0 15 * * 2,5"
jobs:
Build-FreeMcBoot-and-Configurator:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:

- name: Install dependencies
run: |
apk add build-base git

- name: checkout code for release
uses: actions/checkout@v1

- name: build FreeMcBoot
run: |
cd FreeMcBoot
make
cp BOOT.ELF ../BOOT.ELF

- name: build FreeMcBoot Configurator
run: |
cd FreeMcBoot-Configurator
make
cp CFG.ELF ../CFG.ELF

- name: Copy drivers
run: |
# cp $PS2SDK/iop/irx/fileXio.irx ./FILEXIO.IRX
# cp $PS2SDK/iop/irx/usbd.irx ./USBD.IRX
# cp $PS2SDK/iop/irx/usbhdfsd.irx ./USBHDFSD.IRX

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ELFS
path: |
CFG.ELF
BOOT.ELF
FreeMcBoot/BOOT-UNC.ELF
FreeMcBoot/BOOT-STRIPPED.ELF

Repack_and_Release:
runs-on: ubuntu-latest
needs: Build-FreeMcBoot-and-Configurator
container: ps2dev/ps2dev:v1.2.0
steps:

- name: Install dependencies
run: |
apk add build-base git zip p7zip

- name: checkout code for release
uses: actions/checkout@v1


- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"


- name: Download FreeMcBoot-and-Configurator artifacts
uses: actions/download-artifact@v1
with:
name: ELFS

- name: Update wLaunchELF_ISR
run: |
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT.ELF -O installer/INSTALLER_CONTENTS/BOOT/ULE.ELF
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT.ELF -O __Release/ULE_psu.ELF

wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT-NO_NETWORK.ELF -O ULE.ELF
cp ULE.ELF installer/INSTALLER_CONTENTS/BOOT/ULE.ELF
mv ULE.ELF __Release/ULE_psu.ELF

- name: Load new FMCB and configurator binaries
run: |
cp ELFS/BOOT.ELF installer/INSTALLER_CONTENTS/BOOT/BOOT.ELF
cp ELFS/CFG.ELF installer/INSTALLER_CONTENTS/BOOT/CFG.ELF
# cp ELFS/FILEXIO.IRX installer/INSTALLER_CONTENTS/BOOT/FILEXIO.IRX
# cp ELFS/USBD.IRX installer/INSTALLER_CONTENTS/BOOT/USBD.IRX
# cp ELFS/USBHDFSD.IRX installer/INSTALLER_CONTENTS/BOOT/USBHDFSD.IRX

- name: add comment on main CNF with commit hash
run: |
SCH=${GITHUB_SHA::7}
DATEE=`date '+[%Y-%m-%d]'`
REPO=${GITHUB_REPOSITORY}
cd installer
cd INSTALLER_CONTENTS
cd BOOT
mv FUNTUNA.CNF FUNTUNA.TMP
echo "#FunTuna Fork configuration file - commit: $SCH - compiled on $DATEE" > FUNTUNA.CNF
echo "#Compiled on GitHub Actions by runner: $REPO" >> FUNTUNA.CNF
echo "#FunTuna Fork configuration file - commit: $SCH - compiled on $DATEE"
echo "#Compiled on GitHub Actions by runner: $REPO"
cat FUNTUNA.TMP >> FUNTUNA.CNF
rm FUNTUNA.TMP

- name: build installer
run: |
cd installer
Expand All @@ -52,17 +130,22 @@ jobs:
TARGET=FunTuna\[$SCH\].7z
echo TARGET is $TARGET
7z a -t7z -r $TARGET *
ls -R
ls -R

- name: Extract branch name
# shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: FunTuna
name: FunTuna-${{ steps.extract_branch.outputs.branch }}-${{ steps.slug.outputs.sha8 }}
path: |
__Release/*.7z
installer/FunTuna-Fork_Installer.ELF

- name: Create release
if: github.ref == 'refs/heads/main'
uses: marvinpinto/action-automatic-releases@latest
Expand Down
117 changes: 0 additions & 117 deletions .github/workflows/stable.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ __Experimental/**/desktop.ini
__STABLE/**/desktop.ini
**/desktop.ini

**_irx.c

FreeMcBoot/launcher2.elf.BAK
**.lnk

Expand All @@ -16,3 +18,13 @@ installer/stripped.elf
!**dma_asm.S
!**gs_asm.S
!**ps2_asm.S
FreeMcBoot-Configurator/nul
FreeMcBoot/poweroff_irx.s
FreeMcBoot/init/init.irx
FreeMcBoot/init.s
FreeMcBoot/init.irx
FreeMcBoot/elf_loader.s
FreeMcBoot/chkesr/chkesr.irx
FreeMcBoot/chkesr.s
FreeMcBoot/chkesr.irx
.vscode/*
Loading