Raspberry Pi Developing 3DS Homebrew?

Discussion in '3DS - Homebrew Development and Emulators' started by TheGrayShow1467, Mar 16, 2015.

  1. TheGrayShow1467
    OP

    TheGrayShow1467 屈折

    Member
    936
    1,205
    Oct 12, 2014
    United States
    Hello all!
    So several people have been talking about making CFW, Region Free patches, other crap... but no major hype in terms of the homebrew division of the 3DS scene... So, yeah... I want to make homebrew... with a Raspberry Pi.

    COMMON QUESTION:
    Isn't there already a homebrew development thread?

    ANSWER:
    Yes, there is a homebrew development thread.
    No, there is not any info on how to make homebrew with a Raspberry Pi.

    So this brings me to my question... Is it possible to use a Raspberry Pi as a platform to develop 3DS homebrew?
    If it is, I would greatly appreciate a little help finding all the necessary tools and setup of hardware.
    If not, why not try to make it possible? Hell, make an entire image for those who want to explore this land!

    Thank you, reader, for your time!
     
  2. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,670
    21,707
    Sep 13, 2009
    Poland
    Gaming Grotto
    An RPi is a computer like any other - run a compatible Linux distro, grab the right tools and you should be golden, provided you find ARM builds of what you need, which might be your only problem. To be fair though, Python tools should be platform independent, so you have that working for ya.
     
  3. Monado_III

    Monado_III GBAtemp Advanced Fan

    Member
    638
    353
    Feb 8, 2015
    Canada
    /dev/null
    Might it be different because the RPi is already an ARM computer unlike what pretty much every other computer/laptop is?
     
    TheGrayShow1467 likes this.
  4. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,670
    21,707
    Sep 13, 2009
    Poland
    Gaming Grotto
    Python tools are platform-independent and C/C++ is exactly the same regardless of the platform you're coding on, so as long as you have a compiler working on your architecture you should be fine. Unfortunately, most of utilities that could help you with development are coded for x86, so that's a bummer, but not a hurdle you can't overcome.
     
  5. daxtsu

    daxtsu GBAtemp Guru

    Member
    5,546
    3,956
    Jun 9, 2007
    Antarctica
    The only real issue I can forsee is finding/building an ARM version of GCC arm-eabi-none, although I guess you could maybe try and shoehorn the compiler already built for your distro into compiling for the 3DS, if it supports the 3DS target CPU (and doesn't target a Linux elf format only, for example)..
     
    100pcrack and TheGrayShow1467 like this.
  6. Heran Bago

    Heran Bago Where do puyo come from?

    Member
    3,018
    441
    Nov 6, 2005
    United States
    Foggy California
    Yes! Anything is possible if you believe in yourself. If the tools and programming libraries don't exist then you can make them. If you don't know how to then you can still learn how. You can do anything if you set your mind to it.
     
    100pcrack and TheGrayShow1467 like this.
  7. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,670
    21,707
    Sep 13, 2009
    Poland
    Gaming Grotto
    To be a 100% fair, I think coding homebrew on a Rasberry Pi seems like busy work to me considering all the available resources for normal x86 desktops, but it can be done if you really want to go through the trouble. Honestly though, the OP would probably do himself a big favour if he'd just settle for a normal PC rather than an RPi, even if only because an RPi will require additional work to even get things started and only more work along the way. For starters, testing homebrew is going to be a bother, I can't see the Rasberry emulating the 3DS at any capacity wheras on a desktop you can at least use CITRA for some quick fixes.
     
    100pcrack and TheGrayShow1467 like this.
  8. yodamerlin

    yodamerlin Bok bok.

    Member
    309
    162
    Apr 1, 2014
    You probably will have to compile some tools from the source which could take quite a few hours (1-10 maybe)
     
    TheGrayShow1467 likes this.
  9. Slushie3DS

    Slushie3DS Cold Beverage Lover

    Member
    707
    294
    Jan 9, 2015
    United States
    If I remember correctly, the Raspberry Pi uses the Linux Kernel, and some sort of modified distro. It should be fully possible to install devkitARM, ctrulib, and other tools using the Pi. I use them on a Linux distro, myself. As for certain things, like armips, you will need to install a Windows layer (Wine) underneath your distro and reach it from command line with this command.

    Code:
    wine cmd
     
    TheGrayShow1467 likes this.
  10. daxtsu

    daxtsu GBAtemp Guru

    Member
    5,546
    3,956
    Jun 9, 2007
    Antarctica

    Doesn't WINE only correctly work on x86 systems? rPi is an ARM-based computer.
     
    TheGrayShow1467 likes this.
  11. Slushie3DS

    Slushie3DS Cold Beverage Lover

    Member
    707
    294
    Jan 9, 2015
    United States
    Hmm, I never actually thought of that. I did google it, though.

    Seems as if he'd have to jump through hoops. Although, not everything in the scene is dependent on Windows warez. I've only had to use them on two things.
     
    TheGrayShow1467 likes this.
  12. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,670
    21,707
    Sep 13, 2009
    Poland
    Gaming Grotto
    Hoops the size of pinhead holes, he might as well go straight to Bochs or something like that and even that won't work very well.
     
    100pcrack and TheGrayShow1467 like this.
  13. Slushie3DS

    Slushie3DS Cold Beverage Lover

    Member
    707
    294
    Jan 9, 2015
    United States
    I wonder if armips is open source and could be compiled for the linux kernel. I never really cared to look into it.

    I honestly think I may get a Raspberry Pi to play with. I didn't realize they were so cheap.
     
    TheGrayShow1467 likes this.
  14. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,670
    21,707
    Sep 13, 2009
    Poland
    Gaming Grotto
    They've recently rolled out a new model with a greatly improved CPU, it's well worth the asking price if you want a microcomputer for small projects.
     
  15. raulpica

    raulpica With your drill, thrust to the sky!

    Supervisor
    11,041
    7,361
    Oct 23, 2007
    Italy
    PowerLevel: 9001
    I've tried booting Win 3.1 with QEmu, barely usable. I think Bochs is probably even slower.
     
    100pcrack and TheGrayShow1467 like this.
  16. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,670
    21,707
    Sep 13, 2009
    Poland
    Gaming Grotto
    Forgot about QEmu. Anywho, if Windows NT4 is any indication, it seems... okay... ish? If you're a snail?




    Like I said, it's not worth the effort, but it's still better than running a Linux distro in an x86 emulator to use WINE to launch a Windows application, let's be serious here, this isn't inception. :P
     
    TheGrayShow1467 likes this.
  17. CalebW

    CalebW Fellow Temper

    Member
    637
    154
    Jun 29, 2012
    United States
    I successfully built DevkitARM and libctru for the Pi and it works great(I think I had to do a friggin Canadian Cross though...I can't remember if I built it directly on the Pi. Building directly on the Pi is a helluva lot simpler but it just takes longer unless you have distcc set up on your Pi.)!! So it's very possible, as to homebrew development it's the same on any platform you just have to build devkitARM arm binaries for the pi's processor.

    To build it on the Pi(you may want to ssh into your Pi for this):
    1. In your Pi, navigate to a workspace and type
    Code:
    sudo apt-get install wget && wget http://sourceforge.net/projects/devkitpro/files/buildscripts/buildscripts-20150216.tar.bz2 && tar -xf buildscripts-20150216.tar.bz2 && cd buildscripts
    2. Next follow the instructions in the README.
    3. To build ctrulib, clone it from git and compile it.
     
    zaksabeast, WhoAmI?, Minnow and 2 others like this.
  18. Mnecraft368
    This message by Mnecraft368 has been removed from public view by Depravo, Feb 2, 2016, Reason: Off topic.
    Feb 2, 2016
  19. CalebW
    This message by CalebW has been removed from public view by Depravo, Feb 2, 2016, Reason: Off topic.
    Feb 2, 2016
  20. WhoAmI?

    WhoAmI? PASTA's dirty animal

    Member
    1,273
    1,009
    Mar 15, 2015
    Poké Ball
    You can actually make and compile homebrew on the Raspberry Pi xD Me and @nastys used a Raspberry Pi to compile rxTools, some time ago.

    We had to compile DevkitPro AND ImageMagick, as well as armips and a few other things for a "real" 3DS Dev Environment. We is da awesome!!!!!! WOOT WOOT!!!!!!

    Edit: Made this comment without reading all the others.
     
    Last edited by WhoAmI?, Feb 2, 2016
    100pcrack likes this.
  21. shinyquagsire23

    shinyquagsire23 SALT/Sm4sh Leak Guy

    Member
    1,966
    3,249
    Nov 18, 2012
    United States
    Las Vegas
    I'm pretty sure the gcc that can just be installed normally on a Pi can cross-compile for most other ARM processors? That shouldn't be an issue, but actually getting devkitARM set up and using other utilities would be a pain.
     
  22. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,326
    1,728
    May 30, 2015
    United States
    Wrong, armips can easily be compiled for Linux (ask me how I know :P)

    EDIT: wow I need to look at dates... Lol

    — Posts automatically merged - Please don't double post! —

    Yep, get into a plane and take off, you're now flying :D
     
    Last edited by dark_samus3, Feb 2, 2016