Page 1 of 2

chishm's bootloader in new libnds, tutorial?

Posted: Thu Jan 22, 2009 8:25 pm
by Tomdev
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?

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

Posted: Fri Jan 23, 2009 4:42 pm
by dovoto
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.

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

Posted: Fri Jan 23, 2009 7:23 pm
by Tomdev
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

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

Posted: Tue Jan 27, 2009 12:43 pm
by Tomdev
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?

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

Posted: Thu Feb 05, 2009 3:40 am
by feraligatr
"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?

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

Posted: Thu Feb 05, 2009 7:30 am
by Tomdev
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)

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

Posted: Fri Feb 06, 2009 5:45 am
by dovoto
Chishm lent us an updated loader. I will ask him if he has a public link to it.

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

Posted: Fri Feb 06, 2009 7:26 am
by Tomdev
that would be great :mrgreen: , i had also spoken Chism in a post on gbadev where he said something about an updated loader

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

Posted: Mon Feb 01, 2010 3:19 pm
by xiao32
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))

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

Posted: Mon Feb 01, 2010 4:47 pm
by WinterMute
HomebrewMenu works fine, we use it regularly.