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

Mariko support #55

Closed
BlackRabbit22 opened this issue Feb 17, 2021 · 17 comments
Closed

Mariko support #55

BlackRabbit22 opened this issue Feb 17, 2021 · 17 comments

Comments

@BlackRabbit22
Copy link

As you've stated, on Mariko one cannot launch payloads from hos, however if the console reboots, it reboots into a payload.

You could create a payload that renames the payload.bin file to payload.bin.tmp and then have the payload that handles updating be named to payload.bin. Cause the switch to reboot, and it will reboot into the payload that handles updating, once its done with its operations, rename payload.bin.tmp to payload.bin and force a reboot again.

@HamletDuFromage
Copy link
Owner

HamletDuFromage commented Feb 17, 2021

yeah, mariko support is something I'm thinking about (last commit shows I'm now detecting it), but the problem is that I believe payloads have to be written to support mariko, and I don't know the first thing about writting payloads :^)
But maybe once I read up on it more

@BlackRabbit22
Copy link
Author

Yeah I understand, just a suggestion. I don't know much about writing payloads either, otherwise I would've submitted a PR instead of making a suggestion :)

Still, thank you for your work.

@rashevskyv
Copy link
Contributor

You can use tegraExplorer and it's built in script language. Works fine on mariko

@HamletDuFromage
Copy link
Owner

You can use tegraExplorer and it's built in script language. Works fine on mariko

There isn't even a need for that, I can just modify the payload to do what BlackRabbit mentioned, I just haven't got around to do it tbh

@HamletDuFromage
Copy link
Owner

tell you what @rashevskyv , if you're willing to help me test it, I'll try to do it in the next few days

@rashevskyv
Copy link
Contributor

rashevskyv commented May 12, 2021

tell you what @rashevskyv , if you're willing to help me test it, I'll try to do it in the next few days

Sure. I'm working on it for my AIO package right now

@HamletDuFromage
Copy link
Owner

Well if you're doing it, then there's no point in me doing it at the same time. Let me know !

@rashevskyv
Copy link
Contributor

rashevskyv commented May 12, 2021

NP. I will ping you when I am done

@rashevskyv
Copy link
Contributor

Script that I will be use for my package
startup.zip

@HamletDuFromage
Copy link
Owner

HamletDuFromage commented May 21, 2021

@rashevskyv I looked at it and I'm sure it works but it seems hard to maintain. I tried to do it but I can't test it since I only have a v1 switch. Do you think you could test it for me? I pushed the changes to my repo and here is the app compiled
aio-switch-updater.zip

@rashevskyv
Copy link
Contributor

My modchip going mad after reboot.
Payload size that app copied to SD is different than TegraExplorer

изображение

@rashevskyv
Copy link
Contributor

Ah, you are still using your own payload.
I have used TegraExplorer for mariko update and all works like a charm

@HamletDuFromage
Copy link
Owner

Well, I don't use TegraExplorer, I use my own payload.
https://github.com/HamletDuFromage/aiosu-rcm/blob/71b9c33fcb75754712941599837bbcddbd4525e4/bootloader/main.c#L438

It should also create payload.aio which is either ams or hekate, depending on what exists on your sd card
https://github.com/HamletDuFromage/aio-switch-updater/blob/master/source/dialogue_page.cpp#L29

I hope your modchip is ok. Maybe my payload isn't fully compatible with Mariko switches

@rashevskyv
Copy link
Contributor

Modchip is fine, thanks :)
I think your payload cannot work with mariko

@rashevskyv
Copy link
Contributor

https://github.com/rashevskyv/kefir-updater

I forked aio-switch-updater and add tegraexplorer instead of aio-rcm (and removed all functions that i do not need in my aio-pack). I am not a programmer at all and my methods are far from elegant, but all what I need is works.

@HamletDuFromage
Copy link
Owner

I saw it, and if it works then it's great. However I would prefer to not rely on tegraexplorer and scripts to make everything easier to manage. I'll try to update my payload and maybe I can ask you to test it for me again?

@HamletDuFromage
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants