r/n900 • • 15d ago

Lightweight Linux 6.12 with custom shell, overclocked 67hz screen and N900 specific tweaks from Leste

Got my hands on this N900 (had one back in the day) and started hacking around since I want a device that makes remoting into my smart home machine etc easier with proper keyboard. Project is AI Assisted before somebody nitpicks on that. I'm C++ gamedev/build engineer as my day job so not fully vibeslop either.

Stuff so far:
- Installed onto EMMC
- Found a bug in mainline kernel causing the EMMC to work with 1-bit bus width instead of the 8-bit, boosting the disk performance by ~5x
- Brought in all of the N900 related kernel patches from Maemo Leste
- Overdriving the screen to 67hz. It seems to handle even higher numbers, but the GPU can't keep up with that. Might investigate more when I have time.
- First prototype of my own custom Shell written in Rust on top of Wayland, it's literally the first design that AI came up with. I have my own ideas that I want to implement, but I need to draw them down and make all of the assets first.

I really have no idea how far I'm going to take this. It might be that I just implement the stuff that I need and thats it or I keep working on it as a hobby.

67 Upvotes

17 comments sorted by

3

u/elPytel 15d ago

So cool, keep us posted!

I would like to try install that to sd card and dual boot it with maemo.

4

u/JjyKs 15d ago

After I get the shell to be more than just a wrapper for terminal and verify how it works from the sd card (I suppose it should be ok?) I can put everything in Github ๐Ÿ˜„ Don't expect any kind of full blown OS though but it's kinda cool proof of concept IMO :)

1

u/elPytel 15d ago

Cool, how is the whole build of the OS big?

1

u/JjyKs 14d ago

Root filesystem is 70mb and kernel is 9.5mb. But as I said, there's not really much inside of it atm. It's actually on quite large side IMO for what it is atm ๐Ÿ˜…

2

u/elPytel 14d ago

I was building Poky Linux for embedded devices with Yocto as a part of my university studies. And I would say that the size is reasonable.

3

u/balancechiang 14d ago

Perhaps we should submit this as an issue in Leste?

3

u/JjyKs 14d ago edited 14d ago

Will do after I understand the problem better. So far I only understand why it fixes the N900 case, but honestly have no idea how it would affect newer devices that don't run into this problem. Not a fan of vibecoded submissions to stuff like this so I need to learn about it first.

I donโ€™t think that it affects majority of users since itโ€™s usually ran from sd card.

1

u/abissom 14d ago

FYI, Leste does not have policy against AI submissions, as long as they make sense ... Quite a few things are already AI-assisted in the official repos

1

u/JjyKs 14d ago

Yea, that's how I prefer it too. But I haven't dug deep enough into it to make sure that it actually makes sense outside of N900 specifically

2

u/Tails8521 14d ago

Found a bug in mainline kernel causing the EMMC to work with 1-bit bus width instead of the 8-bit, boosting the disk performance by ~5x

Does this only affect modern mainline kernel, or did it also affect the kernel that shipped with the N900 back then? The slowness of the EMMC I/O was such a pain point, especially considering the swap partition on it.

Screen being overclockable is a cool find.

4

u/JjyKs 14d ago

Only modern AFAIK. I dug up some old benchmarks and they seemed to have the same 25mbps performance that I now have with this

2

u/abissom 14d ago edited 14d ago

Mind sharing this patch?

FYI, I have done quite a bit of work (and upstreamed) on kernel for N900, and yesterday was working on getting Bluetooth working.

4

u/JjyKs 14d ago

https://pastebin.com/QZy6eULR

Here, it's super small but works at least on my board rev :) What I'm not sure yet is how this would affect other board revisions or other phones that would be caught by the same rev 3 filter.

2

u/Calm-Caterpillar2103 15d ago

Reminds me of what I did for the dream :)

2

u/diejuse 14d ago

Great!

2

u/MojArch 14d ago

I wonder how well the new gnome Mobil shell would work on it.

1

u/Valuable-Book-5573 13d ago

i want to try it so bad