JuiceBox Software Development

From eLinux.org
Revision as of 08:26, 26 January 2010 by Wmat (talk | contribs) (Fixing broken links and missing uploads.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Build Existing code

First see JuiceBox Code Test and be sure that you can compile these programs. You will have to update the Makefile (first rename xxx.mak to Makefile, then update it). You will have to update the compiler, and objcopy paths to match your system. Some other changes may be needed.

Do you see this error? If so ld cannot find your arm libraries

/PATHTOTOOLS/arm-linux/bin/ld: warning: ld-linux.so.2, needed by /PATHTOTOOLS/bin/../sysroot/lib/libc.so.6, not found (try using -rpath or -rpath-link)

If your ARM tools are not in your library path you may have to add -Wl,-R$(LDPATH) to the linker line of the Makefile

LDPATH = /usr/local/devkitPro/devkitGP2X/sysroot/lib
$(GCC) $(GCFLAGS) -T $(PROJECT).dld $(OBJECTS) -Wl,-R$(LDPATH) -Xlinker -Map -Xlinker $(PROJECT).map -o $(PROJECT).elf

Known Errors

nand_1.dld has a mistake.

RAM (rw) : ORIGIN = 0x010001000, LENGTH = 0x1000

Should read: (note the extra leading zero)

RAM (rw) : ORIGIN = 0x10001000, LENGTH = 0x1000


The demo code contain some very useful functions. They have all been combined here for ease of use. Please feel free to improve upon Media:jb-dev.tgz.