Homebrew [Release] Linux for the 3DS

xerpi

Well-Known Member
OP
Member
Joined
Dec 25, 2011
Messages
212
Trophies
1
Age
27
Location
Barcelona
XP
1,283
Country
Thanks and any news for sd i hope

The problem with the SD is that only the ARM9 processor has access to the SD registers, so in order to be able to use the SD on Linux (running on ARM11), we need to write a custom ARM9 firmware/kernel that acts as a server/proxy between the SD card registers and Linux, just like the 3DS OS does. See https://3dbrew.org/wiki/PXI_Registers
 

GizmoTheGreen

Well-Known Member
Member
Joined
Oct 8, 2009
Messages
812
Trophies
1
XP
898
Country
The problem with the SD is that only the ARM9 processor has access to the SD registers, so in order to be able to use the SD on Linux (running on ARM11), we need to write a custom ARM9 firmware/kernel that acts as a server/proxy between the SD card registers and Linux, just like the 3DS OS does. See https://3dbrew.org/wiki/PXI_Registers

Wouldn't it be better/safer to just have the ARM9 run whatever it does in games/os/homebrew menu and interface it the same way as other homebrews, but as a "driver"?
if you started poking running custom proxies on the arm9 and it bugs out, it could mess up your sd card, or worse, something in nand could be fuxxored :ninja:

New version with touchscreen support is here! It also has updated Wayland and Weston (to version 1.10).
Same download link: https://drive.google.com/file/d/0ByXgF-rsC8PTWVNlZmtCX1F1M0E/view?usp=sharing
Hint: run weston-simple-touch to test the touchscreen easily B-)

Awesome!
 

xerpi

Well-Known Member
OP
Member
Joined
Dec 25, 2011
Messages
212
Trophies
1
Age
27
Location
Barcelona
XP
1,283
Country
Wouldn't it be better/safer to just have the ARM9 run whatever it does in games/os/homebrew menu and interface it the same way as other homebrews, but as a "driver"?
if you started poking running custom proxies on the arm9 and it bugs out, it could mess up your sd card, or worse, something in nand could be fuxxored :ninja:

The problem with the original ARM9 kernel is that it doesn't offer sector-based disk read/writes, it only works with FAT32. Yeah I have to be very careful to not mess up the NAND, but well, libnds has the same problem because the SDMMC registers are also the same on the Nintendo DS.
 

GizmoTheGreen

Well-Known Member
Member
Joined
Oct 8, 2009
Messages
812
Trophies
1
XP
898
Country
The problem with the original ARM9 kernel is that it doesn't offer sector-based disk read/writes, it only works with FAT32. Yeah I have to be very careful to not mess up the NAND, but well, libnds has the same problem because the SDMMC registers are also the same on the Nintendo DS.

aaah, okay, got it.
 

hobbledehoy899

Well-Known Member
Member
Joined
Nov 13, 2015
Messages
2,867
Trophies
1
XP
2,131
Country
Antarctica
The problem with the original ARM9 kernel is that it doesn't offer sector-based disk read/writes, it only works with FAT32. Yeah I have to be very careful to not mess up the NAND, but well, libnds has the same problem because the SDMMC registers are also the same on the Nintendo DS.
Here's my idea... LinuxNAND, a specalized emu/redNAND that is made for the Lunix 3DS port.
 

xerpi

Well-Known Member
OP
Member
Joined
Dec 25, 2011
Messages
212
Trophies
1
Age
27
Location
Barcelona
XP
1,283
Country
More improvements...I've managed to get the I2C driver working, so I've started a RTC driver to be able to get the current date. It's almost working but getting the month and day of the month is missing for now :/
I've also updated the Buildroot .config for those compiling Linux by themselves.
 

WilliamO7

Well-Known Member
Newcomer
Joined
Aug 6, 2015
Messages
68
Trophies
0
Location
The troll hole
XP
113
Country
More improvements...I've managed to get the I2C driver working, so I've started a RTC driver to be able to get the current date. It's almost working but getting the month and day of the month is missing for now :/
I've also updated the Buildroot .config for those compiling Linux by themselves.

Does this mean we'll be able to reboot/shutdown the console from Linux soon (since I know it needs i2c to work on the 3DS side.)
 

RednaxelaNnamtra

Well-Known Member
Member
Joined
Dec 8, 2011
Messages
1,150
Trophies
1
XP
2,943
Country
Germany
@xerpi
Is there anything that needs to be done before loading the linux itself to be able to use the touchscreen? I ask, because when I boot it directly from arm9loaderhax it isn't working for me.
 

Sumsquat

Well-Known Member
Newcomer
Joined
Jan 15, 2016
Messages
66
Trophies
0
Age
32
XP
73
Country
Gambia, The
Hi there!
First of all, thanks for your effort, I enjoy this homebrew a lot!
But weston-simple-touch doesn't seem to work for me. I always get an error message.
I'll add a picture of the error to this post later.

Greetings!
 

xerpi

Well-Known Member
OP
Member
Joined
Dec 25, 2011
Messages
212
Trophies
1
Age
27
Location
Barcelona
XP
1,283
Country
Hi there!
First of all, thanks for your effort, I enjoy this homebrew a lot!
But weston-simple-touch doesn't seem to work for me. I always get an error message.
I'll add a picture of the error to this post later.

Greetings!
I guess you have started Weston first (/start-weston.sh), then opened the Weston terminal, and typed: weston-simple-touch?
 
  • Like
Reactions: Sumsquat

xtheman

Well-Known Member
Member
Joined
Jan 28, 2016
Messages
5,837
Trophies
0
Location
???
XP
3,770
Country
United States
I cant get pass login. I can enter the login but not the password. It wont input anything
 
Last edited by xtheman, , Reason: said what when i meant wont
General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Hope they made lots of spaget