]> Chaos Git - corbenik/corbenik.git/log
corbenik/corbenik.git
8 years agoFIRM payload compilation
Jon Feldman [Sat, 20 May 2017 03:24:47 +0000 (23:24 -0400)]
FIRM payload compilation

8 years agoFix incorrect fpdver update
Jon Feldman [Tue, 2 May 2017 23:39:13 +0000 (19:39 -0400)]
Fix incorrect fpdver update

8 years agoMerge pull request #68 from d3m3vilurr/change-autogen-url-for-11.4
Jon F [Fri, 14 Apr 2017 10:51:39 +0000 (06:51 -0400)]
Merge pull request #68 from d3m3vilurr/change-autogen-url-for-11.4

Change 11.4 nfirm download link

8 years agoChange 11.4 nfirm download link 68/head
Sunguk Lee [Fri, 14 Apr 2017 04:30:28 +0000 (13:30 +0900)]
Change 11.4 nfirm download link

Only changed README before commit.
This patch will generate 11.4 url to out/*_firm.sh

8 years agoMerge pull request #67 from ih8ih8sn0w/patch-1
Jon F [Thu, 13 Apr 2017 11:33:53 +0000 (07:33 -0400)]
Merge pull request #67 from ih8ih8sn0w/patch-1

Add 11.4 nfirm links

8 years agoMerge pull request #66 from GrayJack/master
Jon F [Thu, 13 Apr 2017 11:33:42 +0000 (07:33 -0400)]
Merge pull request #66 from GrayJack/master

Update reboot_hook to work on 11.4 and Friends List version

8 years agoRemove an unnecessary code line 66/head
GrayJack [Thu, 13 Apr 2017 11:21:05 +0000 (08:21 -0300)]
Remove an unnecessary code line

8 years agoUpdate reboot_hook to work on 11.4 (credit goes to TuxSH) and Friend List version...
GrayJack [Tue, 11 Apr 2017 20:10:29 +0000 (17:10 -0300)]
Update reboot_hook to work on 11.4 (credit goes to TuxSH) and Friend List version spoof

8 years agoAdd 11.4 nfirm links 67/head
ih8ih8sn0w [Tue, 11 Apr 2017 01:05:53 +0000 (20:05 -0500)]
Add 11.4 nfirm links

8 years agoMerge pull request #64 from GrayJack/master
Jon F [Tue, 28 Mar 2017 13:18:06 +0000 (09:18 -0400)]
Merge pull request #64 from GrayJack/master

Added Factory FIRM and SciresM QR-code patch for Pokemon Sun/Moon

8 years agoAdded patch for the O3DS Facory FIRM 64/head
GrayJack [Tue, 28 Mar 2017 05:51:02 +0000 (02:51 -0300)]
Added patch for the O3DS Facory FIRM

8 years agoAdded QR code patch for Poke S/M
GrayJack [Tue, 28 Mar 2017 05:50:17 +0000 (02:50 -0300)]
Added QR code patch for Poke S/M

8 years agoSo very very late! v0.3.1
Jon Feldman [Mon, 27 Mar 2017 20:51:35 +0000 (16:51 -0400)]
So very very late!

...Well, it's better than nothing.

The Switch is out and things are now slow with the 3DS. Time for a stable release; it's long overdue(*) and I keep getting people using the old-ass stable filing bugs. This cannot continue.

*by this, I mean 105 commits. Seriously?

8 years agoUpdate bdfe submodule
Jon Feldman [Sun, 26 Mar 2017 14:26:43 +0000 (10:26 -0400)]
Update bdfe submodule

8 years agoReflect that said unit tests are gone
Jon Feldman [Sun, 26 Mar 2017 14:23:38 +0000 (10:23 -0400)]
Reflect that said unit tests are gone

8 years agoFix a logic mistake (Should fix #61)
Jon Feldman [Sat, 18 Feb 2017 21:34:44 +0000 (16:34 -0500)]
Fix a logic mistake (Should fix #61)

8 years agoUpdate firm URLs
Jon Feldman [Sun, 12 Feb 2017 11:27:32 +0000 (06:27 -0500)]
Update firm URLs

8 years agoClean up screeninit and arm11 logic as prep work wip/firmlaunch-refactor
Jon Feldman [Sat, 11 Feb 2017 14:31:14 +0000 (09:31 -0500)]
Clean up screeninit and arm11 logic as prep work

8 years agoFixups post-revert
Jon Feldman [Sat, 11 Feb 2017 13:34:14 +0000 (08:34 -0500)]
Fixups post-revert

8 years agoPartially revert "Put corbenik at 0x24F00000 and use a loader to get it there from...
Jon Feldman [Sat, 11 Feb 2017 13:31:04 +0000 (08:31 -0500)]
Partially revert "Put corbenik at 0x24F00000 and use a loader to get it there from non-elf-based a9lh."

This reverts commit 31dc21fdc592d8eed5d99f706ecb856073f2b8f7.

This is in retrospect overcomplicated and stupid.

8 years agoBOOM, FIRMLAUNCH IS A GO
Jon Feldman [Sat, 11 Feb 2017 12:15:13 +0000 (07:15 -0500)]
BOOM, FIRMLAUNCH IS A GO

Turns out the entrypoint under firmlaunch for ARM11 is at 0x1FFFFFFC, not 0x1FFFFFF8 like arm9loaderhax / brahma

That also explains why screeninit fails on firmlaunch; the wrong entry is used.

Either way I still want to do some cleanup, but it works now.

I'm going to slap a big thank you here to the authors of Luma3DS. I never would have realized the entrypoint was different unless I looked at their code.

8 years agoSave path string the same way as Luma, rather than convert the path string like Cakes...
Jon Feldman [Thu, 9 Feb 2017 13:33:52 +0000 (08:33 -0500)]
Save path string the same way as Luma, rather than convert the path string like Cakes; that's way too much assembly imho

It's not like there's really any other way to implement this, unless I were to stick it in memory elsewhere. The assembly would still be the same other than the offset.

8 years agoClean up a lot of logic related to the reboot hook.
Jon Feldman [Thu, 9 Feb 2017 12:41:19 +0000 (07:41 -0500)]
Clean up a lot of logic related to the reboot hook.

I can confirm that we now get into corbenik's payload on firmlaunch (the good old power off on button approach) but some step of initialization is resulting in a hang. Not there yet, sadly.

8 years agoAdjust pattern window on firmlaunch to NOT include code that changes T_T
Jon Feldman [Wed, 8 Feb 2017 18:24:23 +0000 (13:24 -0500)]
Adjust pattern window on firmlaunch to NOT include code that changes T_T

8 years agoPut corbenik at 0x24F00000 and use a loader to get it there from non-elf-based a9lh.
Jon Feldman [Wed, 8 Feb 2017 18:14:51 +0000 (13:14 -0500)]
Put corbenik at 0x24F00000 and use a loader to get it there from non-elf-based a9lh.

This is a pre-requisite for using a reentrant payload.

This brings an important note; chain.bin is now required even on non-chainloader builds, and unless you are booting via the elf, arm9loaderhax.bin is a stub responsible for loading PREFIX/libexec/corbenik.bin

Update chainloader to directly launch payload (chain.bin is a thing of the past now that we're further up in memory)

8 years agoUpdate gitignore
Jon Feldman [Wed, 8 Feb 2017 18:38:21 +0000 (13:38 -0500)]
Update gitignore

8 years agoUpdate gitignore
Jon Feldman [Wed, 8 Feb 2017 18:14:15 +0000 (13:14 -0500)]
Update gitignore

8 years agoBump friends version (10.3)
Jon Feldman [Tue, 7 Feb 2017 04:20:28 +0000 (23:20 -0500)]
Bump friends version (10.3)

8 years agoUpdate help for silent mode; behavior has changed
Jon Feldman [Sun, 5 Feb 2017 09:05:51 +0000 (04:05 -0500)]
Update help for silent mode; behavior has changed

8 years agoRe-add the build info menu
Jon Feldman [Sun, 5 Feb 2017 08:36:33 +0000 (03:36 -0500)]
Re-add the build info menu

8 years agoText formatting
Jon Feldman [Wed, 25 Jan 2017 20:55:33 +0000 (15:55 -0500)]
Text formatting

8 years agoUpdate DLP
Jon Feldman [Wed, 25 Jan 2017 20:54:41 +0000 (15:54 -0500)]
Update DLP

8 years agoUpdate firm header based on latest 3dbrew docs
Jon Feldman [Wed, 25 Jan 2017 20:54:10 +0000 (15:54 -0500)]
Update firm header based on latest 3dbrew docs

8 years agoMove common sources to a dedicated directory
Jon Feldman [Sun, 22 Jan 2017 16:37:56 +0000 (11:37 -0500)]
Move common sources to a dedicated directory

8 years agoUpdate patches
chaoskagami [Fri, 20 Jan 2017 13:19:13 +0000 (08:19 -0500)]
Update patches

8 years agoMerge pull request #57 from GrayJack/master
Jon F [Thu, 19 Jan 2017 18:12:42 +0000 (13:12 -0500)]
Merge pull request #57 from GrayJack/master

Fix for factory signature patch

8 years agoFix for factory signature patch (forgot to add the factory FIRM title id) 57/head
GrayJack [Thu, 19 Jan 2017 11:42:48 +0000 (09:42 -0200)]
Fix for factory signature patch (forgot to add the factory FIRM title id)

8 years agoUpdate ctrulib fork (should work)
chaoskagami [Wed, 18 Jan 2017 15:07:01 +0000 (10:07 -0500)]
Update ctrulib fork (should work)

BIG. FAT. WARNING. DEVKITARM R46 IS NOW MANDATORY.

8 years agoPack all the stuff
chaoskagami [Tue, 17 Jan 2017 18:27:31 +0000 (13:27 -0500)]
Pack all the stuff

8 years agoMerge remote-tracking branch 'grayjack/factory-1.x-2.x-sigpatch'
chaoskagami [Tue, 17 Jan 2017 18:20:36 +0000 (13:20 -0500)]
Merge remote-tracking branch 'grayjack/factory-1.x-2.x-sigpatch'

8 years agoUpdate some bits in README
chaoskagami [Tue, 17 Jan 2017 13:58:03 +0000 (08:58 -0500)]
Update some bits in README

8 years agoKill common.h, std/unused.h
chaoskagami [Tue, 17 Jan 2017 13:33:29 +0000 (08:33 -0500)]
Kill common.h, std/unused.h

_UNUSED is a stupid macro and I should just use __attribute__((unused)) directly.
This will never build on anything aside from GCC or clang anyways, since msvc is shit
that targets windows and armcc is proprietary and expensive.

Clean up includes massively; the mess was mainly due to common.h "abstracting" all
the dependencies, allowing me to be lazy and not properly componentize code. Now all
files include solely what they need, which is a step in the right direction of unfucking
all the cross-dependencies.

This would have been much more painful to figure out were it not for include-what-you-use
(https://github.com/include-what-you-use/include-what-you-use) so next time you dig your
grave into source dependency hell using a common header, try that tool.

8 years agoFix structure
chaoskagami [Tue, 10 Jan 2017 14:07:01 +0000 (09:07 -0500)]
Fix structure

8 years agoUpdate .gitignore
chaoskagami [Tue, 10 Jan 2017 14:06:18 +0000 (09:06 -0500)]
Update .gitignore

8 years agoRestructure source code
chaoskagami [Tue, 10 Jan 2017 13:57:54 +0000 (08:57 -0500)]
Restructure source code

8 years agoUpdate Tewi
chaoskagami [Tue, 10 Jan 2017 13:49:41 +0000 (08:49 -0500)]
Update Tewi

8 years agoRemove the unit test framework.
chaoskagami [Tue, 10 Jan 2017 13:47:35 +0000 (08:47 -0500)]
Remove the unit test framework.

Pretty much all of it is sanity tests for things that are now using
newlib (or WILL be)

The test suite right now is a terrible piece of crap, so remove it.

8 years agoMore minor cleanup
chaoskagami [Tue, 10 Jan 2017 13:42:29 +0000 (08:42 -0500)]
More minor cleanup

8 years agoCleanup, fixes
chaoskagami [Tue, 10 Jan 2017 13:21:23 +0000 (08:21 -0500)]
Cleanup, fixes

Brought langemu up to the assembly hacks in use in Luma3DS. Currently going through and figuring out how to go and clean up the codebase more.

8 years agoPotential edge case; when the first byte of the NAND CID is 0x00 - 0x0F, the config...
chaoskagami [Tue, 10 Jan 2017 07:52:46 +0000 (02:52 -0500)]
Potential edge case; when the first byte of the NAND CID is 0x00 - 0x0F, the config name is zero terminated early and this may very well break everything

8 years agoAdd 1.x, 2.x and Factory FIRM signature patch
GrayJack [Mon, 9 Jan 2017 05:12:16 +0000 (03:12 -0200)]
Add 1.x, 2.x and Factory FIRM signature patch

8 years agoMinor readability changes.
chaoskagami [Fri, 6 Jan 2017 03:46:24 +0000 (22:46 -0500)]
Minor readability changes.

8 years agoShould fix #51
chaoskagami [Fri, 6 Jan 2017 03:45:09 +0000 (22:45 -0500)]
Should fix #51

8 years agoUpdate README to include jenkins status
chaoskagami [Sat, 31 Dec 2016 00:24:07 +0000 (19:24 -0500)]
Update README to include jenkins status

8 years agoMiscellany
chaoskagami [Thu, 29 Dec 2016 03:04:23 +0000 (22:04 -0500)]
Miscellany

8 years agoActually add it to the all target
chaoskagami [Wed, 28 Dec 2016 23:10:21 +0000 (18:10 -0500)]
Actually add it to the all target

8 years agoAdd a early-ish prototype ips2pco tool.
chaoskagami [Wed, 28 Dec 2016 22:56:12 +0000 (17:56 -0500)]
Add a early-ish prototype ips2pco tool.

This tool takes an IPS or IPS32 patch and creates a .pco (bytecode source) skeleton. This is based on a previously written tool in my libbinmod repository for actually creating/applying IPS patches. The core changes to blib.c/blib.h will make it there soon-ish.

This can be used to automate conversion of IPS patches to a format compatible with corbenik's patcher system. Do note the output files are not ready for use as-is -- you will need to manually edit the name, description, and titleID as needed, as well as actually run it through bytecode_asm.py.

8 years agoSkip repatch of TWL / AGB unless reconfigured
chaoskagami [Tue, 27 Dec 2016 05:10:45 +0000 (00:10 -0500)]
Skip repatch of TWL / AGB unless reconfigured

8 years agoInsert debugging information into caches
chaoskagami [Tue, 27 Dec 2016 03:24:48 +0000 (22:24 -0500)]
Insert debugging information into caches

Implements #46 (as patch name is printed before execution)

8 years agoResolve #48
chaoskagami [Tue, 27 Dec 2016 02:36:39 +0000 (21:36 -0500)]
Resolve #48

Allocate framebuffer before screeninit, and only initialize screen before entering menu (or showing splash)

8 years agoFixup: nice mistake me
chaoskagami [Tue, 27 Dec 2016 02:31:51 +0000 (21:31 -0500)]
Fixup: nice mistake me

8 years agoFix description (thanks for explaining, @sykhro)
chaoskagami [Tue, 27 Dec 2016 01:02:52 +0000 (20:02 -0500)]
Fix description (thanks for explaining, @sykhro)

8 years agoTweaks
chaoskagami [Tue, 27 Dec 2016 00:50:00 +0000 (19:50 -0500)]
Tweaks

8 years agoRefactor some more for patching entire codebin
chaoskagami [Tue, 27 Dec 2016 00:19:13 +0000 (19:19 -0500)]
Refactor some more for patching entire codebin

8 years agoRenumber patches and rename to make it easier to determine the naming
chaoskagami [Mon, 26 Dec 2016 23:52:27 +0000 (18:52 -0500)]
Renumber patches and rename to make it easier to determine the naming

8 years agoAllow merged codebins as option.
chaoskagami [Mon, 26 Dec 2016 23:38:51 +0000 (18:38 -0500)]
Allow merged codebins as option.

This is utterly stupid and a lossy removal of information. Unfortunately, it's what you call a "scene standard" which is to say an idiotic decision that somehow stuck.

Anyways, add a toggle for usage of merged codebins. These should go one level above where text/ro/data are and are named by titleid sans extension.

8 years agoAdd DLP region patch.
chaoskagami [Mon, 26 Dec 2016 23:17:23 +0000 (18:17 -0500)]
Add DLP region patch.

*Should* work, but relatively untested. Rewritten as bytecode from this PR: https://github.com/AuroraWright/Luma3DS/pull/305

8 years agoBig commit
chaoskagami [Tue, 20 Dec 2016 07:24:53 +0000 (02:24 -0500)]
Big commit

malloc(3) is now newlib's implementation instead of my shitty one. Turns out; after poking around the latest linker.ld in libctr9, all this time...

It was a linker script issue. I. Hate. Everything.

Miscellaneous changes also here:
 * f{whatever} -> cr{whatever} to avoid clashes with newlib (and hopefully facillitate replacement)
 * FIRM allocation size was made to be fixed at 0x100000 as a stopgap. Turns out that memory corruption was massive, and the only thing saving my ass before was the allocator being...dumb.

8 years agoMerge branch 'master' into newlib_malloc
chaoskagami [Tue, 20 Dec 2016 04:12:00 +0000 (23:12 -0500)]
Merge branch 'master' into newlib_malloc

8 years agoFixup: patches in aux were not being cached (and consequently, not applied)
chaoskagami [Tue, 20 Dec 2016 04:11:04 +0000 (23:11 -0500)]
Fixup: patches in aux were not being cached (and consequently, not applied)

8 years agoRemove malloc (not working, obviously)
chaoskagami [Tue, 20 Dec 2016 04:10:17 +0000 (23:10 -0500)]
Remove malloc (not working, obviously)

8 years agoFixup
chaoskagami [Tue, 20 Dec 2016 03:23:54 +0000 (22:23 -0500)]
Fixup

8 years agoUpdate the README
chaoskagami [Tue, 20 Dec 2016 03:22:06 +0000 (22:22 -0500)]
Update the README

8 years agoUpdate ctrulib to sync with upstream
chaoskagami [Tue, 20 Dec 2016 02:01:11 +0000 (21:01 -0500)]
Update ctrulib to sync with upstream

8 years agoMove the firm scripts out of Makefile.am, and rename template scripts for clarity
chaoskagami [Tue, 20 Dec 2016 01:43:24 +0000 (20:43 -0500)]
Move the firm scripts out of Makefile.am, and rename template scripts for clarity

8 years agoWhoops.
chaoskagami [Tue, 20 Dec 2016 01:27:05 +0000 (20:27 -0500)]
Whoops.

8 years agoFriends ver. bump
chaoskagami [Tue, 20 Dec 2016 00:46:01 +0000 (19:46 -0500)]
Friends ver. bump

8 years agoAccording to Luma's commit log, <=8.0 only has one instance of the cart update pattern
chaoskagami [Tue, 20 Dec 2016 00:45:22 +0000 (19:45 -0500)]
According to Luma's commit log, <=8.0 only has one instance of the cart update pattern

8 years agohttps://github.com/AuroraWright/Luma3DS/commit/429488a4ba1233ebd7efc2cdc10295f31dd0d2ff
chaoskagami [Tue, 20 Dec 2016 00:31:32 +0000 (19:31 -0500)]
https://github.com/AuroraWright/Luma3DS/commit/429488a4ba1233ebd7efc2cdc10295f31dd0d2ff

I asked about this a while ago on #Cakey.

8 years agoResolve #27 by properly specifying dependencies.
chaoskagami [Tue, 20 Dec 2016 00:19:34 +0000 (19:19 -0500)]
Resolve #27 by properly specifying dependencies.

8 years agoMerge pull request #43 from GrayJack/no-outlines-patch
Jon F [Thu, 1 Dec 2016 13:29:42 +0000 (08:29 -0500)]
Merge pull request #43 from GrayJack/no-outlines-patch

Add patch to remove outlines in pokemon sun/moon

8 years agoAdd patch to remove outlines in pokemon sun/moon 43/head
GrayJack [Thu, 1 Dec 2016 07:01:30 +0000 (05:01 -0200)]
Add patch to remove outlines in pokemon sun/moon

8 years agoMerge pull request #42 from chaoskagami/wip/plainconf
Jon F [Sun, 27 Nov 2016 08:02:30 +0000 (00:02 -0800)]
Merge pull request #42 from chaoskagami/wip/plainconf

Merge wip/plainconf

8 years agoMerge pull request #41 from kitling/sun-moon-patches
Jon F [Sun, 27 Nov 2016 08:00:03 +0000 (00:00 -0800)]
Merge pull request #41 from kitling/sun-moon-patches

Extend mystery machine patch to Sun & Moon.

8 years agoUpdate README.md 41/head
Kitling [Sat, 26 Nov 2016 19:37:44 +0000 (11:37 -0800)]
Update README.md

8 years agoExtend mystery machine patch to Sun & Moon.
Kitling [Sat, 26 Nov 2016 19:23:29 +0000 (11:23 -0800)]
Extend mystery machine patch to Sun & Moon.

Note: I have not tested this myself.

8 years agoMerge branch 'master' into wip/plainconf wip/plainconf 42/head
chaoskagami [Thu, 27 Oct 2016 15:54:34 +0000 (11:54 -0400)]
Merge branch 'master' into wip/plainconf

8 years agoUpdate anti-DG.
chaoskagami [Thu, 27 Oct 2016 15:19:03 +0000 (11:19 -0400)]
Update anti-DG.

I'll switch to a code patch later; I feel patching data for this seems error-prone.

8 years agoFix up README
chaoskagami [Thu, 27 Oct 2016 15:27:56 +0000 (11:27 -0400)]
Fix up README

8 years agoUpdate FIRM URLs
chaoskagami [Thu, 27 Oct 2016 15:23:53 +0000 (11:23 -0400)]
Update FIRM URLs

8 years agoMerge branch 'master' into wip/plainconf
chaoskagami [Sat, 15 Oct 2016 07:20:40 +0000 (03:20 -0400)]
Merge branch 'master' into wip/plainconf

8 years agomake -> $(MAKE)
chaoskagami [Sat, 15 Oct 2016 07:19:37 +0000 (03:19 -0400)]
make -> $(MAKE)

8 years agoRe-add input delay (apparently my dpad is fucky now)
chaoskagami [Sat, 15 Oct 2016 07:17:50 +0000 (03:17 -0400)]
Re-add input delay (apparently my dpad is fucky now)

8 years agoSpacing cleanup
chaoskagami [Sat, 15 Oct 2016 00:16:52 +0000 (20:16 -0400)]
Spacing cleanup

8 years agoDisable IRQ/FIQ while in svcBackdoor
chaoskagami [Fri, 14 Oct 2016 23:58:27 +0000 (19:58 -0400)]
Disable IRQ/FIQ while in svcBackdoor

8 years agoMove PxiPM to ctrulib
chaoskagami [Fri, 14 Oct 2016 11:46:35 +0000 (07:46 -0400)]
Move PxiPM to ctrulib

8 years agoSwitch to using a modified ctrulib.
chaoskagami [Fri, 14 Oct 2016 11:18:50 +0000 (07:18 -0400)]
Switch to using a modified ctrulib.

Far too much functionality is workarounds because ctrulib is not implemented in a system-module friendly manner.

Therefore, I am done. Whether or not use of this fork catches on doesn't matter - it's a far cleaner solution, with far less duplicated code.

8 years agodelete
chaoskagami [Fri, 14 Oct 2016 08:55:30 +0000 (04:55 -0400)]
delete

8 years agoMerge branch 'master' into wip/plainconf
chaoskagami [Fri, 14 Oct 2016 08:25:02 +0000 (04:25 -0400)]
Merge branch 'master' into wip/plainconf

8 years agoRevert a few changes that caused a severe regression, causing inability to firmlaunch.
chaoskagami [Fri, 14 Oct 2016 08:17:39 +0000 (04:17 -0400)]
Revert a few changes that caused a severe regression, causing inability to firmlaunch.

These commits are reverted (partially):
  "Fixup"
    da1a41cf95fc9aea198f621fc6fe2692870bb4f6
  "Improve some documentation based on in-progress RE, zero-fill new program break (remind me not to rely on this)"
    330cd376ccc71c89b0568ab3741ce56e2fa667f2