Any way to change ARM9 entry adress?

Post Reply
Fabio94
Posts: 5
Joined: Wed Mar 16, 2011 7:34 pm
Location: Germany -> Bavaria -> near Nuremberg

Any way to change ARM9 entry adress?

Post by Fabio94 » Thu Mar 31, 2011 8:03 pm

Hello is there anyway to change the ARM9 entry adress?
Hello from Germany! :)

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Any way to change ARM9 entry adress?

Post by WinterMute » Fri Apr 01, 2011 12:34 am

That kind of depends on what you mean by changing the arm9 entry address. What's this for?
Help keep devkitPro toolchains free, Donate today

Personal Blog

Fabio94
Posts: 5
Joined: Wed Mar 16, 2011 7:34 pm
Location: Germany -> Bavaria -> near Nuremberg

Re: Any way to change ARM9 entry adress?

Post by Fabio94 » Fri Apr 01, 2011 3:33 pm

acekard 2i autoboot, if the ARM9 adress is 0x02000450 it boots, if the ARM9 adress is 0x02000000 it doesn't boot...
Hello from Germany! :)

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Any way to change ARM9 entry adress?

Post by WinterMute » Sat Apr 02, 2011 1:56 pm

Add this to the LDFLAGS in your arm9 makefile.

Code: Select all

-Wl,--section-start,.init=0x02000450,--nmagic
.init is the first section in the binary, used to make sure the crt0 goes at the start regardless of link order, --nmagic prevents the linker from aligning the output sections to a page boundary. 0x02000450 is obviously the requested start address and can be anywhere in the 4meg region.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Fabio94
Posts: 5
Joined: Wed Mar 16, 2011 7:34 pm
Location: Germany -> Bavaria -> near Nuremberg

Re: Any way to change ARM9 entry adress?

Post by Fabio94 » Sat Apr 02, 2011 4:51 pm

Thanks WinterMute!
You and devkitpro are the best!
Hello from Germany! :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests