Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 5 files changed
  • 0 commit comments
  • 3 contributors
Commits on Jul 30, 2018
Merge pull request #1 from wrathsoffire76/patch-1
PLEASE ACCPT MY PULL REQUEST :3
Showing with 21 additions and 18 deletions.
  1. +4 −4 Makefile
  2. +9 −6 README.md
  3. +2 −2 docker-build.sh
  4. +3 −3 src/firmware.c
  5. +3 −3 src/package.c
View
@@ -8,7 +8,7 @@ CC = $(DEVKITARM)/bin/arm-none-eabi-gcc
LD = $(DEVKITARM)/bin/arm-none-eabi-ld
OBJCOPY = $(DEVKITARM)/bin/arm-none-eabi-objcopy
name := ReiNX
name := LumaNX
dir_source := src
dir_data := data
@@ -38,9 +38,9 @@ clean:
$(dir_out)/$(name).bin: $(dir_build)/$(name).elf
@mkdir -p "$(@D)"
@mkdir -p "$(dir_out)/ReiNX/sysmodules"
@cp -R $(dir_data)/*.kip $(dir_out)/ReiNX/sysmodules/
@cp -R $(dir_data)/*.bin $(dir_out)/ReiNX/
@mkdir -p "$(dir_out)/LumaNX/sysmodules"
@cp -R $(dir_data)/*.kip $(dir_out)/LumaNX/sysmodules/
@cp -R $(dir_data)/*.bin $(dir_out)/LumaNX/
$(OBJCOPY) -S -O binary $< $@
$(dir_build)/$(name).elf: $(objects)
View
@@ -1,26 +1,29 @@
# ReiNX
# LumaNX
[![License: GPL v2](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
*The modular switch custom firmware*
**Usage:**
Put `ReiNX` folder on the root of your switch's SD card and run `ReiNX.bin` with your favorite fusee launcher.
Put `LumaNX` folder on the root of your switch's SD card and run `LumaNX.bin` with your favorite fusee launcher.
**Compiling:**
You'll need devkitpro with devkitARM and run `make`
~~You'll need devkitpro with devkitARM and run `make`~~
To compile with Docker, `chmod +x docker-build.sh` and run the shell script `./docker-build.sh`. This will compile without requiring installation of DevKit* dependencies.
~~To compile with Docker, `chmod +x docker-build.sh` and run the shell script `./docker-build.sh`. This will compile without requiring installation of DevKit* dependencies.~~
Just ask Derek
**Features:**
* Loads all KIPs from `/ReiNX/sysmodules/` directory
* Loads all KIPs from `/LumaNX/sysmodules/` directory
* Optional custom kernel/secmon/warmboot
* Exclusive ReiNX sysmodules
* Exclusive LumaNX sysmodules
* Now with 500% more memes:tm:
**FAQ:**
View
@@ -8,9 +8,9 @@ rm -rf ./out
ECHO ""
ECHO "Building docker image locally..."
ECHO ""
docker build . -t reinx-builder:latest
docker build . -t LumaNX-builder:latest
ECHO ""
ECHO "Running image and generating build..."
ECHO ""
docker run -v $(pwd)/build:/build -v $(pwd)/out:/out reinx-builder:latest
docker run -v $(pwd)/build:/build -v $(pwd)/out:/out LumaNX-builder:latest
View
@@ -55,7 +55,7 @@ static void SE_lock() {
void drawSplash() {
// Draw splashscreen to framebuffer.
if(fopen("/ReiNX/splash.bin", "rb") != 0) {
if(fopen("/LumaNX/splash.bin", "rb") != 0) {
fread((void*)0xC0000000, fsize(), 1);
fclose();
}
@@ -316,7 +316,7 @@ u8 loadFirm() {
// Load all KIPs.
char **sysmods = NULL;
size_t cnt = enumerateDir(&sysmods, "/ReiNX/sysmodules", "*.kip");
size_t cnt = enumerateDir(&sysmods, "/LumaNX/sysmodules", "*.kip");
for (u32 i = 0; i < cnt ; i++) {
print("%kLoading %s\n%k", YELLOW, sysmods[i], ORANGE);
loadKip(&kip1_info, sysmods[i]);
@@ -382,7 +382,7 @@ void firmware() {
return;
}
print("Welcome to ReiNX %s!\n", VERSION);
print("Welcome to LumaNX %s!\n", VERSION);
loadFirm();
drawSplash();
launch();
View
@@ -60,15 +60,15 @@ void pkg1_unpack(pk11_offs *offs, u8 *pkg1) {
for (u32 i = 0; i < 3; i++) {
if (offs->sec_map[i] == 0 && offs->warmboot_base) {
u8 *extWb = NULL;
if(fopen("/ReiNX/warmboot.bin", "rb") != 0) {
if(fopen("/LumaNX/warmboot.bin", "rb") != 0) {
extWb = malloc(fsize());
fread(extWb, fsize(), 1);
fclose();
}
memcpy((void *)offs->warmboot_base, extWb == NULL ? pdata : extWb, sec_size[offs->sec_map[i]]);
} else if (offs->sec_map[i] == 2 && offs->secmon_base) {
u8 *extSec = NULL;
if(fopen("/ReiNX/secmon.bin", "rb") != 0) {
if(fopen("/LumaNX/secmon.bin", "rb") != 0) {
extSec = malloc(fsize());
fread(extSec, fsize(), 1);
fclose();
@@ -104,7 +104,7 @@ void buildFirmwarePackage(u8 *kernel, u32 kernel_size, link_t *kips_info) {
// Kernel.
u8 *extKern = NULL;
if(fopen("/ReiNX/kernel.bin", "rb") != 0) {
if(fopen("/LumaNX/kernel.bin", "rb") != 0) {
extKern = malloc(fsize());
fread(extKern, fsize(), 1);
fclose();

No commit comments for this range