Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to choose framebuffer device #61

Closed
tux-linux opened this issue Apr 28, 2021 · 5 comments
Closed

Option to choose framebuffer device #61

tux-linux opened this issue Apr 28, 2021 · 5 comments

Comments

@tux-linux
Copy link

I realized I had a couple of old LeapPads lying around in my house and wondered if I could get a shell with a serial connection. Turns out that yes, it's possible and it even has built-in USBNet modules. Although having a crappy CPU and only 43 MiB of RAM, it runs Linux 2.6.31 and I managed to compile FBInk for it using one of the musl toolchains for armv5l.
For the record, here's what it looks like:
PXL_20210428_144651382
To use it, though, I had to change the framebuffer device to /dev/fb1 but FBInk always uses fb0. I did get around this by changing the file descriptor in fbink.c but it would be nice to have an option to change it at run-time (and default to fb0 when not specified).
Just a suggestion...

@NiLuJe
Copy link
Owner

NiLuJe commented Apr 28, 2021

Could probably do that via an env var, yeah ;).

IIRC, there's even a semi-standard convention for it... somewhere :D.

@tux-linux
Copy link
Author

Could probably do that via an env var, yeah ;).

IIRC, there's even a semi-standard convention for it... somewhere :D.

The LeapPad seems to have a multi-layer FB somehow...

~ # cat /proc/version
Linux version 2.6.31-leapfrog (fLPAD@lf2000-release) (gcc version 4.5.4 20110722 (prerelease) (GCC) ) #1 Mon Nov 25 17:26:03 PST 2013
~ # ls /dev/fb*
/dev/fb0  /dev/fb1  /dev/fb2

@tux-linux
Copy link
Author

FWIW, if you want to see how it looks in a video: https://www.youtube.com/watch?v=6EfoECqD9Pk
From my side, I'll try looking at fbink.c and see if I could make some changes and make a pull request to offload you that work ;)

@NiLuJe
Copy link
Owner

NiLuJe commented Apr 28, 2021

Stupid question: what's the cassette tape for? :D.

@tux-linux
Copy link
Author

tux-linux commented Apr 28, 2021

Stupid question: what's the cassette tape for? :D.

To help it stay put ;)
Handling serial connections with toothpicks isn't a very steady method :D
(Although, it works very well)

@NiLuJe NiLuJe closed this as completed in b0eafdd Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants