chishm's bootloader in new libnds, tutorial?

Tomdev
Posts: 82
Joined: Thu Jan 08, 2009 9:15 pm

chishm's bootloader in new libnds, tutorial?

Post by Tomdev » Thu Jan 22, 2009 8:25 pm

hello everyone

every time i trie to get this loader working the compiler says likely type-uning may break strict aliasing rules:

d:/devkitPro/combined/arm9/source/nds_loader_arm9.c:72: warning: likely type-pun
ning may break strict-aliasing rules: object '*src16' of main type 'short unsign
ed int' is referenced at or around d:/devkitPro/combined/arm9/source/nds_loader_
arm9.c:72 and may be aliased to object '_io_dldi' of main type 'unsigned int' wh
ich is referenced at or around d:/devkitPro/combined/arm9/source/nds_loader_arm9
.c:72.
template.c
arm-eabi-gcc -MMD -MP -MF /d/devkitPro/combined/arm9/build/template.d -g -Wall -
O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb-inte
rwork -I/d/devkitPro/combined/arm9/include -I/D/devkitPro/libnds/include -I/d/de
vkitPro/combined/arm9/build -DARM9 -c /d/devkitPro/combined/arm9/source/template
.c -o template.o
linking combined.arm9.elf
nds_loader_arm9.o: In function `runNds':
d:/devkitPro/combined/arm9/source/nds_loader_arm9.c:243: undefined reference to
`_io_dldi'
d:/devkitPro/combined/arm9/source/nds_loader_arm9.c:243: undefined reference to
`_io_dldi'
d:/devkitPro/combined/arm9/source/nds_loader_arm9.c:243: undefined reference to
`_io_dldi'
d:/devkitPro/combined/arm9/source/nds_loader_arm9.c:243: undefined reference to
`_io_dldi'
collect2: ld returned 1 exit status
make[2]: *** [/d/devkitPro/combined/arm9/combined.arm9.elf] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/d/devkitPro/combined/arm9'
make: *** [arm9/combined.elf] Error 2

has someone got it to work, and if so, could you please say how?

dovoto
Developer
Posts: 43
Joined: Fri Aug 12, 2005 10:01 pm
Contact:

Re: chishm's bootloader in new libnds, tutorial?

Post by dovoto » Fri Jan 23, 2009 4:42 pm

Been trying to get it to work as well. Having issues mainly because fatlib has changed since he has posted the loader. I will post if i get it figured out.

Tomdev
Posts: 82
Joined: Thu Jan 08, 2009 9:15 pm

Re: chishm's bootloader in new libnds, tutorial?

Post by Tomdev » Fri Jan 23, 2009 7:23 pm

what's actually new in libfat, and who made the update? maybe he knows the problem. and if you solve it, i'm so happy if you could post the solution

Tomdev
Posts: 82
Joined: Thu Jan 08, 2009 9:15 pm

Re: chishm's bootloader in new libnds, tutorial?

Post by Tomdev » Tue Jan 27, 2009 12:43 pm

ok, after i removed that error about type punning i saw the source of boot.bin and I think it isn't compatible with the newest libnds. maybe we have to change it to let it work?
Last edited by Tomdev on Sun Feb 07, 2010 10:11 pm, edited 1 time in total.

feraligatr
Posts: 1
Joined: Thu Feb 05, 2009 3:35 am

Re: chishm's bootloader in new libnds, tutorial?

Post by feraligatr » Thu Feb 05, 2009 3:40 am

"disk io dldi" goes from libfat to libnds 1.3.1
so you should use "io_dldi_data" instead of "&_io_dldi"

you said load.bin is incompatible with newest libnds. could you give more details?

Tomdev
Posts: 82
Joined: Thu Jan 08, 2009 9:15 pm

Re: chishm's bootloader in new libnds, tutorial?

Post by Tomdev » Thu Feb 05, 2009 7:30 am

i already tried what you said, and the .bin file is incompatible i think because there are irq inits which break your codes, or doesn't this affect you program because it's still not working(although i don't get error's anymore)

dovoto
Developer
Posts: 43
Joined: Fri Aug 12, 2005 10:01 pm
Contact:

Re: chishm's bootloader in new libnds, tutorial?

Post by dovoto » Fri Feb 06, 2009 5:45 am

Chishm lent us an updated loader. I will ask him if he has a public link to it.

Tomdev
Posts: 82
Joined: Thu Jan 08, 2009 9:15 pm

Re: chishm's bootloader in new libnds, tutorial?

Post by Tomdev » Fri Feb 06, 2009 7:26 am

that would be great :mrgreen: , i had also spoken Chism in a post on gbadev where he said something about an updated loader

xiao32
Posts: 2
Joined: Mon Feb 01, 2010 3:17 pm

Re: chishm's bootloader in new libnds, tutorial?

Post by xiao32 » Mon Feb 01, 2010 3:19 pm

yea, it doesn't work for me either. Which sucks, because I really need it.

Anyone know of another bootloader? (Please dont suggest HomebrewMenu, it doesn't work either (probably cuz its simply an old/modded version of chishms))

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

Re: chishm's bootloader in new libnds, tutorial?

Post by WinterMute » Mon Feb 01, 2010 4:47 pm

HomebrewMenu works fine, we use it regularly.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests