Homebrew [Release] Linux for the 3DS

NermaN

Active Member
Newcomer
Joined
Nov 6, 2016
Messages
30
Trophies
0
Age
29
XP
236
Country
Russia
@xerpi Your work on 3ds support for linux is quite impressive, but it seems very not convenient for me to play with it without Wi-Fi, seems like ath9k should support AR6014 chipset, which is used in 3DS, but seems like you currently don't tried to run it, it there any reasons? If i would do it, i would start with wifi rather then screen, cause remote ssh it everything xD
 
  • Like
Reactions: uyjulian

xerpi

Well-Known Member
OP
Member
Joined
Dec 25, 2011
Messages
212
Trophies
1
Age
28
Location
Barcelona
XP
1,330
Country
@xerpi Your work on 3ds support for linux is quite impressive, but it seems very not convenient for me to play with it without Wi-Fi, seems like ath9k should support AR6014 chipset, which is used in 3DS, but seems like you currently don't tried to run it, it there any reasons? If i would do it, i would start with wifi rather then screen, cause remote ssh it everything xD

You are right, I'm aware of the ath9k driver and I hope it's compatible with AR6014. I'll try to get it working when I finish university, later this month.
 

Nulla

Member
Newcomer
Joined
Jun 8, 2017
Messages
9
Trophies
0
Age
29
XP
100
Country
United States
Is the mouse broken in the latest release? Can't seem to be able to click on anything in weston. I can move the cursor but it is not registering mouse clicks. Pressing select appears to do nothing. It was working fine for me back on the old A9LH version
 

xerpi

Well-Known Member
OP
Member
Joined
Dec 25, 2011
Messages
212
Trophies
1
Age
28
Location
Barcelona
XP
1,330
Country
Is the mouse broken in the latest release? Can't seem to be able to click on anything in weston. I can move the cursor but it is not registering mouse clicks. Pressing select appears to do nothing. It was working fine for me back on the old A9LH version
Yeah you are right, I'm aware of this. I'll try to fix it in a few weeks.
 
  • Like
Reactions: Manzini and Nulla

Nulla

Member
Newcomer
Joined
Jun 8, 2017
Messages
9
Trophies
0
Age
29
XP
100
Country
United States
My laptop is not fast enough

If your laptop has something better than a core 2 duo, then it's fast enough (hw virtualization instructions).

try it anyway. VirtualBox is free, and you are just looking at the command line

if that doesn't suit your purposes, use digital ocean then
you can rent a vm .007/hour, then just follow the steps sshed using PuTTY

Just wanted to say that if he had Windows 10 he could also just install Windows Subsystems for Linux straight from Microsoft and have native 64-bit Linux support plus apt-get with Ubuntus repos
 

anoraktrend

Member
Newcomer
Joined
Sep 11, 2016
Messages
24
Trophies
0
Age
26
XP
93
Country
United States
then install Ubuntu as a secondary OS, it's decently easy to install a Xubuntu or Lubuntu to a flash drive to test out, and even easier to install it.
 

YugamiSekai

Mr. Picross
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
22
XP
2,386
Country
United States
then install Ubuntu as a secondary OS, it's decently easy to install a Xubuntu or Lubuntu to a flash drive to test out, and even easier to install it.
I'd rather not dual-boot any Linux distros after screwing up the partition and having to format Windows last time I had it
 

TheCyberQuake

Certified Geek
Member
Joined
Dec 2, 2014
Messages
5,012
Trophies
1
Age
28
Location
Las Vegas, Nevada
XP
4,433
Country
United States
I'd rather not dual-boot any Linux distros after screwing up the partition and having to format Windows last time I had it
You shouldn't ever have to format windows (if you know what you are doing). At most you would just need to repair the mbr, which I had to do after having dual boot Linux+windows (using grub) and removing Linux later.
 

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,287
Country
United States
It is possible to program with GNU GCC on 3ds?

Right now, probably not. The entire root filesystem is still compiled into the kernel as a initramfs; you'll need a disk-backed partition due to how large GCC is (it will not fit in RAM, period.)

I don't think buildroot will be sufficient for use as an actual development system, either.

The 3DS is also particularly RAM-starved, so you might need swap. I'm unsure. In addition, using -pipe is probably impossible, and you probably can't spawn multiple processes (make -jN) due to memory constraints.
 

Nulla

Member
Newcomer
Joined
Jun 8, 2017
Messages
9
Trophies
0
Age
29
XP
100
Country
United States
Right now, probably not. The entire root filesystem is still compiled into the kernel as a initramfs; you'll need a disk-backed partition due to how large GCC is (it will not fit in RAM, period.)

I don't think buildroot will be sufficient for use as an actual development system, either.

The 3DS is also particularly RAM-starved, so you might need swap. I'm unsure. In addition, using -pipe is probably impossible, and you probably can't spawn multiple processes (make -jN) due to memory constraints.
One thing that could simplify adding programs is chroot. And yes, 3DS Linux does come with chroot via Busybox, but I've never tried it myself. In theory you could run any Linux distro you want this way. The SDCard is still readonly though so you'll need to add programs to your root from a PC
 
Last edited by Nulla,

uyjulian

Homebrewer
Member
Joined
Nov 26, 2012
Messages
2,568
Trophies
2
Location
United States
Website
sites.google.com
XP
3,904
Country
United States
Compiler performance might be improved by using ssh or telnet to a computer that has the correct cross-compilers installed.

However, I agree about writing C code with a touchscreen. The touchscreen doesn't even have multi-touch, so it will be a pain to program.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87... +1