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

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
Ok, I had these trying to build it again

Code:
linking loader.elf
/tmp/ccfqI7Lz.ltrans0.ltrans.o: In function `main':
<artificial>:(.text.startup+0x19e0): undefined reference to `svcCreateCodeSet'
<artificial>:(.text.startup+0x19fc): undefined reference to `svcCreateProcess'
collect2: error: ld returned 1 exit status
/opt/devkitpro/devkitARM/3ds_rules:39: recipe for target '/home/erikus/SOURCES/corbenik/external/loader/loader.elf' failed
make[3]: *** [/home/erikus/SOURCES/corbenik/external/loader/loader.elf] Error 1
Makefile:107: recipe for target 'build' failed
make[2]: *** [build] Error 2
make[2]: Leaving directory '/home/erikus/SOURCES/corbenik/external/loader'
Makefile:24: recipe for target 'loader' failed
make[1]: *** [loader] Error 2
make[1]: Leaving directory '/home/erikus/SOURCES/corbenik/external'
Makefile:78: recipe for target 'external' failed
make: *** [external] Error 2

It looks like that the problem is devkitARM, but i just updated it 2 days ago

If you updated devkitARM, you now have a stable version of ctrulib. Recompile ctrulib from git.

EDIT: As you can see from the source - https://github.com/smealum/ctrulib/blob/v1.1.0/libctru/source/svc.s the stable ctrulib doesn't implement wrappers for those.
 
Last edited by chaoskagami,

Gray_Jack

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

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
Thanks, It worked :3

Btw, I got too bored with so much stability lmao, so... how do I do a rom hack using corbenik?

The only thing you can do is patch code, so the answer is not yet. For now? LayeredFS, HANS, SaltySD or a custom update are your choices.

I'm still doing RE and research on that front. No promises. It's slow going.
 
  • Like
Reactions: Gray_Jack

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
Why am I still awake

@gnmmarechal is going to hate me for this, but anyways, official nightlies courtesy (ab)use of github's infrastructure and a cron job on my computer. https://github.com/chaoskagami/skeith

These have an alternate prefix of /skeith (and a name change) so they can coexist with stable releases.
 

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,991
Country
Portugal
Why am I still awake

@gnmmarechal is going to hate me for this, but anyways, official nightlies courtesy (ab)use of github's infrastructure and a cron job on my computer. https://github.com/chaoskagami/skeith

These have an alternate prefix of /skeith (and a name change) so they can coexist with stable releases.
Not going to hate you ;) lel
Gonna update the updater, I suppose. Somehow.
The change in directory will make it somewhat harder. I wonder how I should handle this.
 
Last edited by gnmmarechal,

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
  • Like
Reactions: a9lh-1user

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,991
Country
Portugal

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
no, I know that. But the rest of the updater, I wonder how I should handle it given the directory change.

I had always intended for the official nightly to be able to coexist with stable, incidentally. I'm not really sure how you should handle it, but, well...sorry? :<
 
  • Like
Reactions: gnmmarechal

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,991
Country
Portugal
I had always intended for the official nightly to be able to coexist with stable, incidentally. I'm not really sure how you should handle it, but, well...sorry? :<
hum, I'd rather allow the updater to update to the official nightlies than use my own. But, if I can't figure out a way of making the updater update to the latest nightly of Skeith, I guess I'll have to use my own builds x.x.

I'll have to figure how to handle it. Oh well, for today, at the very least, I'll continue use my own nightlies (until I update the updater).
 
  • Like
Reactions: chaoskagami

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
hum, I'd rather allow the updater to update to the official nightlies than use my own. But, if I can't figure out a way of making the updater update to the latest nightly of Skeith, I guess I'll have to use my own builds x.x.

I'll have to figure how to handle it. Oh well, for today, at the very least, I'll continue use my own nightlies (until I update the updater).

So you'd have to make the updater update the updater to be able to update with updates? (haha)

My head hurts. Time to sleep for reals.
 
  • Like
Reactions: klear

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,991
Country
Portugal
So you'd have to make the updater update the updater to be able to update with updates? (haha)

My head hurts. Time to sleep for reals.
The updater is capable of updating itself. Btw, before you go to sleep, if I compile the latest commit, does the text default to Corbenik or Skeith?
 

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,991
Country
Portugal
RIP. It seems free users can only have 1 cron job on the server. Oh well.

Time to change the script I already have so it downloads this as well.

f2f22d8495f19f121db64d673813e375.png
 

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
The updater is capable of updating itself. Btw, before you go to sleep, if I compile the latest commit, does the text default to Corbenik or Skeith?

Compiling corbenik itself will always produce an output named corbenik.

That's done via manually providing fw_name and fw_folder to make from my cron job/repo.
 
  • Like
Reactions: gnmmarechal

laharl22

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
1,767
Trophies
0
Age
38
XP
615
Country
France

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,991
Country
Portugal
Compiling corbenik itself will always produce an output named corbenik.

That's done via manually providing fw_name and fw_folder to make from my cron job/repo.
oh god, Skeith includes locale.

RIP updater users when I update the updater.
 
  • Like
Reactions: chaoskagami

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,991
Country
Portugal
Sorry~

It is a separate root, after all. Times like these I wish FAT had symlinks.
I could always keep the option of using Corbenik-UN and give users the choice, though Skeith would be the default. (I'm thinking of me actually, lol, as it's extremely boring to wait 10+mins cuz of locale, and I update every commit with UN.)
 

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,991
Country
Portugal
why the folder on release are not corbenik now ?
It's the nightly build, and Chaoskagami wants it to coexist with Corbenik stable.

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

@chaoskagami The lazy way of fixing the updater would be replacing every instance of the word "corbenik" with "skeith" in the updater & server, and make a separate app just for Skeith. Since it's intended for devs anyway, I suppose it wouldn't hurt anyone.
Hum. I'll try to figure something out.




NOW GO TO SLEEP
 
  • Like
Reactions: laharl22

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Nut on the hill