[Release] Linux for the 3DS

Discussion in '3DS - Homebrew Development and Emulators' started by xerpi, Dec 29, 2015.

  1. xerpi
    OP

    xerpi GBAtemp Regular

    Member
    163
    433
    Dec 25, 2011
    Barcelona
    Currently the environment is very simple, you have Busybox (which "simulates" some programs like ls, cat, top, etc) and Weston (the Wayland compositor) plus a few Weston clients demos.

    DOWNLOAD:

    https://drive.google.com/open?id=0ByXgF-rsC8PTRFRwQUhGZXAzYXc

    Installation:

    1. Install sighax or boot9strap
    2. Copy the linux folder to the root of the SD card
    3. Copy firm_linux_loader.firm to the SD (if you are using Luma CFW copy it to the luma/payloads folder).
    4. Run the .firm file
    5. Profit!

    Linux login:

    * User: root
    * Pass: root

    Other stuff:

    * You can start Weston by running:
    # /start-weston.sh
    * You can mount the SD card (read-only) to /media/sd by running:
    # /sdmount.sh
    * You can change the input mode (keybord, mouse) by pressing SELECT

    Build instructions:
    https://gist.github.com/xerpi/3c720d345820691a2985502fcd80268f

    Old downloads:


    Other downloads:

    Sources:
    * Linux: https://github.com/xerpi/linux_3ds
    * Buildroot: https://github.com/buildroot/buildroot
    * FIRM Linux loader: https://github.com/xerpi/firm_linux_loader

    Note: Currently the SD card support is read-only.
     
    Last edited by xerpi, Jun 5, 2017


  2. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,282
    5,540
    Apr 20, 2015
    United States
    Tigard, OR
    nice job!

    I actually made a video using the last release you made in the "Linux for 3DS" thread, but I didn't do that much in it. is this build any different to it?

    I should try out the client demos...
     
    sl0ps likes this.
  3. xerpi
    OP

    xerpi GBAtemp Regular

    Member
    163
    433
    Dec 25, 2011
    Barcelona
    Yeah it's a bit different! I've changed the compression format and now it's muuuch faster, it will only take 3 seconds to boot :D
    I've also improved the keyboard and the mouse virtual input methods.
    And as you already know I've added Weston clients.

    Nice video btw, thanks :)
     
    Last edited by xerpi, Dec 29, 2015
    ihaveamac likes this.
  4. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,282
    5,540
    Apr 20, 2015
    United States
    Tigard, OR
    I will get on trying it out right now

    any way we could put our own files into the filesystem? I want to try doing that even if it means building my own version

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

    I just noticed you edited some things into the post on how to build.
     
  5. TR_mahmutpek

    TR_mahmutpek GBAtemp Advanced Fan

    Member
    624
    133
    Jul 28, 2015
    Thanks for the tutorial but what we can do with linux on 3ds?
     
    SLiV3R likes this.
  6. xerpi
    OP

    xerpi GBAtemp Regular

    Member
    163
    433
    Dec 25, 2011
    Barcelona
    You'll need to follow the Building instructions until you have built buildroot.
    When you have the buildroot/output/images/rootfs.cpio.gz file generated, you can add your files to buildroot/output/target/ and then run make again, buildroot will regenerate the rootfs.cpio.gz with your files inside.
     
    ihaveamac likes this.
  7. mironicurse

    mironicurse GBAtemp Regular

    Member
    106
    35
    Sep 28, 2015
    Russia
    xerpi, i know you was on gp2x forums pretty often. Tell me, is it possible to port Ginge to 3dslinux?
     
    wsh1994 likes this.
  8. AtlasFontaine

    AtlasFontaine GBAtemp Maniac

    Member
    1,052
    623
    Jul 18, 2015
    Venezuela
    Venezuela-Zulia.
    Will you fix the screen rotation? or is that supposed to look like that? GJ Tho.
     
  9. MarcusD

    MarcusD nobody's hero

    Member
    1,097
    2,077
    Oct 16, 2015
    Hungary
    a pixel between life and death
    It looks like that, becaue that's how the 3DS's screen physically is. That's why I have to export the images rotated 90degrees to the right, so it'll be in the "correct" orientation for the user.
     
    AtlasFontaine likes this.
  10. william341

    william341 Last remaining VinsClone

    Member
    385
    203
    Dec 26, 2014
    United States
    Quick question: Wouldn't it be better to use the Circle Pad to move the mouse?
     
    MegaSuperab2 likes this.
  11. JerwuQu

    JerwuQu Advanced Member

    Newcomer
    56
    66
    Feb 15, 2015
    Really cool! But why does it need ARM9 access? :o
     
  12. VeryCrushed

    VeryCrushed Devious Prorammer

    Member
    451
    402
    Dec 26, 2014
    United States
    The Programmers Den
    ARM9 will grant access to SD, WiFi, Touchscreen, etc. I'm pretty sure its also required to even boot it which is why its 9.2 and below.
     
  13. laharl22

    laharl22 GBAtemp Maniac

    Member
    1,426
    141
    Dec 19, 2014
    France
    Anyone can post a precompiled version ?
     
  14. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,282
    5,540
    Apr 20, 2015
    United States
    Tigard, OR
    laharl22 likes this.
  15. laharl22

    laharl22 GBAtemp Maniac

    Member
    1,426
    141
    Dec 19, 2014
    France
    This project is very good i dont know why linux was never come to the psp
     
  16. Rosselman

    Rosselman Spooky Skeleton

    Member
    453
    238
    Oct 29, 2015
    Cote d'Ivoire
    Santiago
    You have Wayland running on a 3DS? That's impressive, even if it's only a novelty for now.

    Typing console commands with the PSP controls seems like a torture. Besides, it was weak, and the MIPS architecture doesn't make the porting easier, unlike ARM.
     
  17. SLiV3R

    SLiV3R 3DS Friend Code: 0473-9069-2206

    Member
    2,162
    1,026
    Jan 9, 2006
    Very cool! But what can the average user do with this? :)
     
    TR_mahmutpek likes this.
  18. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,282
    5,540
    Apr 20, 2015
    United States
    Tigard, OR
    nothing really, it's kind of just a toy to play with.
     
    SLiV3R likes this.
  19. SLiV3R

    SLiV3R 3DS Friend Code: 0473-9069-2206

    Member
    2,162
    1,026
    Jan 9, 2006
    Ok. But in the future then?
     
  20. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,282
    5,540
    Apr 20, 2015
    United States
    Tigard, OR
    I think it's kind of impractical to use Linux on the 3DS for anything serious when you could just, you know, make a native homebrew program. but who knows?