Rockbox Development > New Ports

Need help compiling rockbox using devkitARM toolchain.

<< < (2/2)

gama:
@speachy, hi there.

I have made some progress.  For now I started compiling as an sdl application.

There is only one thing left to build the main rockbox binary, the firmware/kernel/thread.c code.  I have been reading the different implementations (unix, win32, arm) but don't know how should I implement it for the 3DS.

If I try to build the arm/thread.c file the assembler fails with:


--- Code: ---firmware/kernel/thread.o
{standard input}: Assembler messages:
{standard input}:765: Error: bad instruction `ldmiane r4,{ r0,pc }'
make: *** [/home/stalker/3ds-dev/rockbox/tools/root.make:478: /home/stalker/3ds-dev/rockbox/build-n3ds/firmware/kernel/thread.o] Error 1

--- End code ---

Can you please let me know of your comments?

[EDIT]

Ok, if I compile the arm/thread.c code within a 3ds example app, the code compiles fine.  There must be something missing in the rockbox makefile.

amachronic:
As far as I know the 3DS has an operating system of some sort. If you are able to run without it, then the native ARM threading code is what you want. If you're under an OS then you probably want the SDL threading approach.

gama:
There is another dev who is working on a native port of rockbox.

But I am working on a sdl hosted application.

Yes, homebrew runs on userland, though there is access to certain kernel features to some extent through the toolchain.

There is something I still don't understand, if I use the sdl threads code, does rockbox still needs the store_context, load_context and start_thread implementations?

[EDIT]  It seems the thread-sdl.c code is not being compiled.  Found it, I have to use the HAVE_SDL_THREADS flag.

gama:
[UPDATE]

I have been able to compile and run rockbox on the N3DS.

But currently I cannot test any codec since libctru does not have a dirfd implementation.

Navigation

[0] Message Index

[*] Previous page

Go to full version