Giter Club home page Giter Club logo

Comments (14)

pixel-stuck avatar pixel-stuck commented on August 13, 2024

@d0k3 this is most likely an issue with the MPU, most likely it is improperly set up (see here: https://github.com/d0k3/Decrypt9WIP/blob/master/source/abstraction/bs-start.s#L15-L37 ) I think the easiest way to fix this would simply be removing this: https://github.com/d0k3/Decrypt9WIP/blob/master/source/abstraction/gw-start.s#L43-L45

since the MPU is the Memory Protection Unit, and by default, I think, ITCM is protected it makes sense you're having trouble reading from it with the MPU enabled ;) anyways, hope you get it fixed :)

from decrypt9wip.

gemarcano avatar gemarcano commented on August 13, 2024

I don't think the answer is disabling cache. Based on 3dbrew, ITCM should have been configured to be in a RO region of memory by the 3DS software. Only other suggestions would be to flush cache (perhaps clean it also?), then letting it run. For a real good stretch, adding an interrupt handler to catch memory aborts could be a way to identify if something weird memory access wise is happening.

from decrypt9wip.

d0k3 avatar d0k3 commented on August 13, 2024

There is nothing wrong with the MPU setup for the bootstrap binary (bs-start.s, which is used by Brahma & A9LH), everything works there. The two problems with editing gw-start.s for me are (1) I can't test this entrypoint myself, and (2) CakeHax (which works fine atm) will also be affected by gw-start.s.

It is confirmed, though, that this problem only happens with accesses to ITCM. You can confirm this yourself by using the system info feature in D9 (will crash from GW entrypoint) or trying to dump ITCM with GodMode9 (will crash, too).

from decrypt9wip.

pixel-stuck avatar pixel-stuck commented on August 13, 2024

@d0k3 my point was, you didn't carry over any of the ACTUAL MPU settings from bs-start.s, just the cache enables, itcm enable and MPU enable, which might cause problems since FIRMs MPU settings are still in place :)

from decrypt9wip.

d0k3 avatar d0k3 commented on August 13, 2024

Okay, should be fixed now, in ca977ef. Can anyone help me test this?

from decrypt9wip.

d0k3 avatar d0k3 commented on August 13, 2024

Didn't mean to close, so anyone with an O3DS and compilation skills available?

from decrypt9wip.

mariogamer2 avatar mariogamer2 commented on August 13, 2024

yes

from decrypt9wip.

mariogamer2 avatar mariogamer2 commented on August 13, 2024

My sysNAND web browser is glitchy,it's always freeze on most pages, so I cannot test...

from decrypt9wip.

 avatar commented on August 13, 2024

9.2 old3ds. works.

Interestingly, when I built the project with "make" first, then "make gateway" the launcher.dat was defective. when I built with "make gateway" straight from a cleaned repo, the launcher was good.

from decrypt9wip.

 avatar commented on August 13, 2024

One bug though, when running sys info on this build, it freezes right after the NAND CID line is printed.

from decrypt9wip.

d0k3 avatar d0k3 commented on August 13, 2024

That's because TWL Customer ID needs access to ITCM, which the GW Launcher.dat entrypoint does not provide reliably. There are other problems with the Launcher.dat entrypoint, and I don't want this to hinder development, so the Gateway Launcher.dat entrypoint is now considered deprecated, see 9f376bd

Closing this issue for now, Launcher.dat bugs will no more be fixed.

from decrypt9wip.

mariogamer2 avatar mariogamer2 commented on August 13, 2024

@d0k3 What is exactly the LauncherTemplate.dat and what is the difference with CakeHax?

from decrypt9wip.

d0k3 avatar d0k3 commented on August 13, 2024

This is the wrong place to ask questions such as this. LauncherTemplate.dat uses the GW closed source entrypoint (same es GW software). CakeHax is an open source entrypoint by mid-kid.

from decrypt9wip.

 avatar commented on August 13, 2024

@mariogamer2 this is for D9 issues not CFW#101

from decrypt9wip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.