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

Latest luma commit (474eb30) doesn't boot #1232

Closed
ghost opened this issue Mar 22, 2019 · 5 comments
Closed

Latest luma commit (474eb30) doesn't boot #1232

ghost opened this issue Mar 22, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 22, 2019

Device info
N3DS XL
Firmware 11.9
fastboot3DS 1.2 stable
Commit 474eb30


Issue: When booting the system it just shows a black screen and doesn't do anything, though booting to Luma 9.1 dose work


Please leave a comment if you have any questions

@AuroraWright
Copy link
Member

Apparently an issue with fastboot3DS (neither boot9strap nor godmode9 have this issue). Might be fixed, but as a reminder we only support (and test) b9s as a launcher.

@derrekr
Copy link

derrekr commented Mar 23, 2019

Hi,
for future releases it would be nice if Luma could be tested on fastboot3DS as launcher as well.
We and our users would highly appreciate it.

@ghost
Copy link

ghost commented Mar 23, 2019

@derrekr

If it's a Luma bug that fastboot just happens to expose, it'll be fixed on our side of course, but we won't deliberately target or aim for fastboot3DS compatibility.

@profi200
Copy link
Contributor

profi200 commented Mar 23, 2019

I have pinpointed the issue to the __libc_init_array() call in ARM11 _start which in turn calls this weird _init() which got pulled in from crti.o in dkA. When i try to include a simple bx lr version it complains about:
"multiple definition of `_init'; /opt/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.3.0/armv6k/fpu/crti.o:(.init+0x0): first defined here"

.text:1FF8008C EXPORT _init
.text:1FF8008C _init ; CODE XREF: __libc_init_array+3C↓p
.text:1FF8008C MOV R12, SP
.text:1FF80090 STMFD SP!, {R3-R12,LR,PC}
.text:1FF80094 SUB R11, R12, #4
.text:1FF80098 SUB SP, R11, #40
.text:1FF8009C LDMFD SP, {R4-R11,SP,LR}
.text:1FF800A0 BX LR
.text:1FF800A0 ; End of function _init

edit:
And all this happens before the stack pointer is set in _start.

edit2:
Setting the stack pointer earlier fixes it. Just tested it.

@ghost
Copy link
Author

ghost commented Mar 23, 2019

@AuroraWright would the fix suggested by profi200's fix work with b9s to and when could his fix be applied to a new commit

@TuxSH TuxSH closed this as completed in 4e5f6e1 Mar 23, 2019
Sahlo97 pushed a commit to Sahlo97/Luma3DS that referenced this issue Dec 9, 2021
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