Hacking Official Corbenik - Another CFW for advanced users (with bytecode patches!)

GBHAKC75

Well-Known Member
Member
Joined
Jan 26, 2008
Messages
406
Trophies
0
XP
563
Country
France
I was debating gitlabs earlier today, but gogs is a win hands down in the UX and backend department. The only negative is that I still have to create a dark CSS for it (and maybe that it's coded in go, depending on viewpoint)

Incidentally, nginx proxying is boss.

Well, I actually like the UI of GitLab. It's just that I'd really love to use the mirror feature and that's not possible on GitLab CE...

Nginx is awesome. I provision multiple reverse-proxies using Ansible and it's just really great, I now have a full setup with HA, load-balancing, and full HTTP2/LE certs automatically.
 

ketal

aiueo
Member
Joined
Aug 20, 2015
Messages
744
Trophies
0
XP
677
Country
Italy
Well, I actually like the UI of GitLab. It's just that I'd really love to use the mirror feature and that's not possible on GitLab CE...

Nginx is awesome. I provision multiple reverse-proxies using Ansible and it's just really great, I now have a full setup with HA, load-balancing, and full HTTP2/LE certs automatically.
https://github.com/samrocketman/gitlab-mirrors
I've been using this. It works, but meh
 
  • Like
Reactions: GBHAKC75

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,287
Country
United States
Well, I actually like the UI of GitLab. It's just that I'd really love to use the mirror feature and that's not possible on GitLab CE...

Nginx is awesome. I provision multiple reverse-proxies using Ansible and it's just really great, I now have a full setup with HA, load-balancing, and full HTTP2/LE certs automatically.

I actually prefer the UI on github/gogs, but I do think it comes down to preference. Both are decent. Gitlab's FOSS version is pretty crippled as of late, sadly.

Heh, can't say I've used nginx THAT extensively, seeing as this is running off a VPS, but nginx is quite nice in my personal experience.
 

gnmmarechal

Well-Known Member
Member
GBAtemp Patron
Joined
Jul 13, 2014
Messages
6,039
Trophies
2
Age
25
Location
https://gs2012.xyz
Website
gs2012.xyz
XP
5,990
Country
Portugal
I actually prefer the UI on github/gogs, but I do think it comes down to preference. Both are decent. Gitlab's FOSS version is pretty crippled as of late, sadly.

Heh, can't say I've used nginx THAT extensively, seeing as this is running off a VPS, but nginx is quite nice in my personal experience.
gogs is so..... githuby..... I'm so going to use it. Unfortunately, I don't have that much of a use for it right now.
 

GBHAKC75

Well-Known Member
Member
Joined
Jan 26, 2008
Messages
406
Trophies
0
XP
563
Country
France
https://github.com/samrocketman/gitlab-mirrors
I've been using this. It works, but meh

Well, I don't really like to use "dirty" scripts when it's a software feature already bundled in the code.

Honestly, considering how Gogs is now evoluted (It wasn't even an option when I built my GitLab server) and has pretty much everything I need, I might just move to it.
It should also be waaaay more lightweight than GitLab.
 
Last edited by GBHAKC75,

KanterZ

Modder.
Member
Joined
Oct 9, 2015
Messages
398
Trophies
0
Age
27
XP
552
Country
Philippines
corbenik-logo.png

This is yet another CFW for the 3DS. It's a lot like cakes in that patches are separate from the CFW itself, and a great deal of inspiration (as well as the FIRM decryption code) comes from Cakes.

Unlike Cakes, it uses bytecode-based patches and a VM to run them (both in the CFW and Loader,) taking a few very good ideas from @yifan_lu (Thanks, seriously.)

To people who don't quite understand that - it means patches consist of actual, interpreted code much like compiled Java, .NET CIL or Lua bytecode. The patches are roughly based on how Luma applies them.

This allows for much greater flexibility than Cakes, while working with near anything like Luma/ReiNAND. Corbenik is mainly intended for developers, power users and control freaks, not newbies. It is highly experimental, and may not work correctly in all cases.

If you don't know your way around the 3DS (or computers), chances are this isn't for you. I strongly recommend people use Luma3DS if they want something foolproof and simple. There's nothing wrong with Luma - Corbenik just has the exact opposite design goals.

At the moment, all of the essentials are in and functional. This includes all the basic patches. Signatures, FIRM Protection - as well as TWL/AGB patch support, reboot hooking, Multi-EmuNAND (both Gateway/Redirected) and other patches applied by Loader such as Region Free, update blocking, etc. It's also relatively stable at this point in time.

Please actually read the README.md and FAQ very carefully, and search the topic for problems if you have one before posting.

If you encounter issues, enable Logging and Verbose and upload boot.log and loader.log somewhere. If you don't have either, then you'll have to step through manually by enabling 'Step Through' in the options and taking down any text before it crashes. I can't help you if you don't provide proper debugging information. If you don't provide logs, that isn't helping me to help you. There is absolutely zero uniquely identifiable information in logs, so there is no reason not to upload them.

Current release: v0.2.0
Source code: https://github.com/chaoskagami/corbenik
Downloads: https://github.com/chaoskagami/corbenik/releases
Prefix-changed Nightlies: https://github.com/chaoskagami/skeith

The 'Disable SVC Permission Checks' patch is broken. Don't use it.

Q: Why would I want to use this...thing?
A: Don't ask me. In fact, I'm pretty sure you don't if this crossed your mind for even a second.

Q: Okay, smartass, is this a clone/fork of--
A: No. It does include code from some other stuff. README should explain that, but otherwise it's completely original.

Q: Why another CFW?
A: I wanted to try some weird shit and couldn't with Cakes, basically.

Q: It won't load my firmware.bin even though I put it in a native folder!
A: `native` is a file, and that file is the firmware. Without the firmware there is no native, and therefore no boot. Repeat. (Cookie if you got the reference.)

Q: It crashed! Halp.
A: Enable Logging, Verbose and upload boot.log and loader.log somewhere. If you don't have either, then you'll have to step through manually by enabling 'Step Through' in the options and taking down any text before it crashes. That said, I haven't seen a crash of that variety in a long time.

Q: I enabled autoboot and can't get into the menu!
A: Hold R. It's the same as a PSP.

Q: I can't compile it! (running Windows)
A: Compiling on Windows was never supported to begin with. If you really want to do this, search through the topic. It's easier to just install Debian in VirtualBox, though. Read the README, first off. Compiling is rather involved.

Q: What are these random letters in brackets?
A: Decrypting the firmware is a long process, and a lot can go wrong. Those represent the steps involved.

Q: Where can I get ahold of you?
A: Usually on freenode/#Cakey (which, contrary to popular belief, is more the generic arm9 dev channel now.) Otherwise, there's plenty other methods. Email is likely to be slowest.

Q: Where can I donate a few bucks to you?
A: No. Associating cash with homebrew is a bad idea for multiple reasons. I don't want your money. I appreciate the thought, though.

Q: When will the next release be?
A: When I feel like it. I prefer to not do rapid releases unless there are actual bugs that need a fix or features that add value immediately. Until things stack up such that I feel like a release is warranted, either compile from git or use the Skeith build (and brave instability.)

Q: What are your thoughts on the Nintendo Dev program?
A: You sign an NDA that forbids many things. Please do not contribute to my code if you are under this NDA. I'll grill any new contributors on the spot on this issue. If you do not pass (e.g. are under the NDA) I will be unable to accept your code no matter how good it is for the sake of my own legal safety. I don't want to open this can of worms.

Q: Why the name?
A: Because .hack > SAO, and it's totally appropriate naming.

Seriously? It's a CFW. It may have fancy menus, but there really isn't much to look at. These are all slightly out of date (get me new ones, please!)

The bland out-of-box experience:
View attachment 54203

When I was testing the newer wallpaper code (yes the brightness is off):
View attachment 54202

@yifan_lu For the absolutely insane and wonderful idea to use bytecode, as well as the open source loader replacement. https://github.com/yifanlu/3ds_injector
@mid-kid General inspiration from Cakes, FIRM decryption code, reboot assembly code, some code for text display. https://github.com/mid-kid/CakesForeveryWan
@Wolfvak Code segment dumping + loading, plus BootAnim9 which is cool.
@Aurora Wright RE work, patches, EmuNAND, and Reboot/Firmlaunch C code. https://github.com/AuroraWright/Luma3ds
@Reisyukaku For the 'Force TestMenu' patch, and RE work. Also coded ReiNand, which some parts of Luma are derived from and thus some parts of this.
@d0k3 start.s, recursive directory listing, RE work. https://github.com/d0k3/GodMode9
@TuxSH RE work, code, and patches. Some code in loader is based on his extensions to it.
@Steveice10 RE work, patch offsets.
@dark_samus3 RE work, screen init.
@b1l1s RE work, screen init.
@Normmatt RE work, screen init, and sdmmc.c/h
@delebile RE work, screen init, and also the A9LH version I personally use.
@smealum Pioneering the open source hax frontier. (No actual code of his is in this repo itself, but ctrulib is basically essential for everything.)
@TiniVi RE work, screen deinit.
@Temptress Cerise A LOT of testing which was really helpful.
@Crystal the Glaceon A LOT of testing which was really helpful.
CyberConnect2 Because the name originates from .hack, which you should go play.


I only get a blackscreen when booting?
 

KanterZ

Modder.
Member
Joined
Oct 9, 2015
Messages
398
Trophies
0
Age
27
XP
552
Country
Philippines
Mark the Logging and Verbose in the Configuration > Options and post it here, it makes easier to know how to help you
Alright. Hold on.

--------------------- MERGED ---------------------------

Mark the Logging and Verbose in the Configuration > Options and post it here, it makes easier to know how to help you
it is the boot.log on \skeith\var\log yeah?
 

KanterZ

Modder.
Member
Joined
Oct 9, 2015
Messages
398
Trophies
0
Age
27
XP
552
Country
Philippines
Here it is, then

Cache: Region Free HOME (Loader)
Version: 10
cache: 0004003000008F02
cache: 0004003000008202
cache: 0004003000009802
cache: 000400300000A102
cache: 000400300000A902
cache: 000400300000B102
Cache: Title Downgrade Fix (11.0+ NFIRM)
Version: 10
cache: 0004013800000002
cache: 0004013820000002
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 35317068
ordblks: 5
uordblks: 35314708
fordblks: 2360
arena: 1762636
ordblks: 2
uordblks: 1758572
fordblks: 4064
Firmlaunch failed, returning to menu
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 1762636
ordblks: 3
uordblks: 1759132
fordblks: 3504
Firmlaunch failed, returning to menu
arena: 1762636
ordblks: 2
uordblks: 1758572
fordblks: 4064
Firmlaunch failed, returning to menu
arena: 1762636
ordblks: 2
uordblks: 1758612
fordblks: 4024
Firmlaunch failed, returning to menu
Cache: Region Free HOME (Loader)
Version: 10
cache: 0004003000008F02
cache: 0004003000008202
cache: 0004003000009802
cache: 000400300000A102
cache: 000400300000A902
cache: 000400300000B102
Cache: Settings Version String (Loader)
Version: 10
cache: 0004001000021000
cache: 0004001000020000
cache: 0004001000022000
cache: 0004001000026000
cache: 0004001000027000
cache: 0004001000028000
Cache: Block eShop Updates (Loader)
Version: 10
cache: 0004013000002C02
Cache: Block Cart Update / Cart RF (Loader)
Version: 10
cache: 0004013000008002
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 1762636
ordblks: 5
uordblks: 1761452
fordblks: 1184
Firmlaunch failed, returning to menu
 

Gray_Jack

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
732
Trophies
0
XP
407
Country
Here it is, then

Cache: Region Free HOME (Loader)
Version: 10
cache: 0004003000008F02
cache: 0004003000008202
cache: 0004003000009802
cache: 000400300000A102
cache: 000400300000A902
cache: 000400300000B102
Cache: Title Downgrade Fix (11.0+ NFIRM)
Version: 10
cache: 0004013800000002
cache: 0004013820000002
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 35317068
ordblks: 5
uordblks: 35314708
fordblks: 2360
arena: 1762636
ordblks: 2
uordblks: 1758572
fordblks: 4064
Firmlaunch failed, returning to menu
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 1762636
ordblks: 3
uordblks: 1759132
fordblks: 3504
Firmlaunch failed, returning to menu
arena: 1762636
ordblks: 2
uordblks: 1758572
fordblks: 4064
Firmlaunch failed, returning to menu
arena: 1762636
ordblks: 2
uordblks: 1758612
fordblks: 4024
Firmlaunch failed, returning to menu
Cache: Region Free HOME (Loader)
Version: 10
cache: 0004003000008F02
cache: 0004003000008202
cache: 0004003000009802
cache: 000400300000A102
cache: 000400300000A902
cache: 000400300000B102
Cache: Settings Version String (Loader)
Version: 10
cache: 0004001000021000
cache: 0004001000020000
cache: 0004001000022000
cache: 0004001000026000
cache: 0004001000027000
cache: 0004001000028000
Cache: Block eShop Updates (Loader)
Version: 10
cache: 0004013000002C02
Cache: Block Cart Update / Cart RF (Loader)
Version: 10
cache: 0004013000008002
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 1762636
ordblks: 5
uordblks: 1761452
fordblks: 1184
Firmlaunch failed, returning to menu

Do you selected the "Firmlaunch Hook" in the Configuration > Options ?
 

ih8ih8sn0w

Koreaboo
Member
Joined
Aug 22, 2015
Messages
1,677
Trophies
0
Age
25
Location
Hell
XP
898
Country
United States
Last edited by ih8ih8sn0w,

ih8ih8sn0w

Koreaboo
Member
Joined
Aug 22, 2015
Messages
1,677
Trophies
0
Age
25
Location
Hell
XP
898
Country
United States
Hey people, can you test the patch I just add in this https://github.com/GrayJack/corbenik/tree/factory-1.x-2.x-sigpatch
I want to test before I pull request.
Thanks in advance :3

(Offtopic)And if someone have a hardmoded N3DS, please PM me!!! Thanks
Managed to get it to "work" with hs, but stuff wasn't actually getting beyond the nintendo 3ds screen with the exception of fbi 2.whatever the latest build is (this would go into a fatal error: Failed to set syscore CPU time limit: D900A82F). Without sigpatches, the Nintendo 3ds screen doesn't even appear, and it just black screens. Didn't get too much time to attempt to get further along and try titles outside of hs (I would need to install them while on 2.1), but I guess it semi-works?
Other random thing, launching it twice would corrupt the bottom screen display, but inputs from there still worked properly. Solved by launching another app.
 

Gray_Jack

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
732
Trophies
0
XP
407
Country
Managed to get it to "work" with hs, but stuff wasn't actually getting beyond the nintendo 3ds screen with the exception of fbi 2.whatever the latest build is (this would go into a fatal error: Failed to set syscore CPU time limit: D900A82F). Without sigpatches, the Nintendo 3ds screen doesn't even appear, and it just black screens. Didn't get too much time to attempt to get further along and try titles outside of hs (I would need to install them while on 2.1), but I guess it semi-works?
Other random thing, launching it twice would corrupt the bottom screen display, but inputs from there still worked properly. Solved by launching another app.

Great to know that at least it "working", I got a bad downgrading all day long that made impossible to me to try in my O3DS, plus I don't have the factory NATIVE_FIRM (a.k.a. v0 NATIVE_FIRM) to test.
Did you used the patch the title downgrade list and downgraded or you just ctrtransfered to 2.1?
Can you test if Luma3DS get the same behavior using the latest hourly build?
Don't need to hurry, do it when you have the time

And thanks for testing it, helps a lot
 
Last edited by Gray_Jack,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    I @ idonthave: :)