Closed NiLuJe closed 4 years ago
Other than that, I didn't even double-check the serial stuff since the raw tty mode worked out just fine for a quick'n dirty test ;).
And, yep, stuff appears to work out just fine (even my fancy ZSH prompt, or a curses UI like nano's). :+1:
I didn't touch/test the KFMon script, but you'll probably want to get rid of the crash screen stuff (it currently depends on KOReader's fonts, so it won't work as-is anyway ;p) ;).
(I highly recommend keeping fbdepth to switch to 8bpp, though, as that'll help performance).
(Also not sure if the dropbear binary was imported on purpose?)
Okay, I lied ;p. Cleaned up the KFMon startup script :).
I had a PW2 plugged in, so I tried a Kindle build, for shit'n giggles ;).
It's basically as simple as using the right TC w/
diff --git a/Makefile b/Makefile
index 9d08cf9..91d1344 100644
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,7 @@ build/libfbink.a:
build/libfbink_kobo.a:
mkdir -p build
make -C FBInk clean
- make -C FBInk CROSS_TC=$(CROSS_TC) KOBO=true MINIMAL=true FONTS=true staticlib
+ make -C FBInk CROSS_TC=$(CROSS_TC) KINDLE=true MINIMAL=true FONTS=true staticlib
cp FBInk/Release/libfbink.a build/libfbink_kobo.a
build/fbdepth:
(We don't care about fbdepth on Kindle, they're all @ 8bpp (or 4bpp for really old ones).)
Woah this is great, thanks for putting so much effort into this!! :smiley: It's really nice to see this working on different devices
And sorry for the kind of verbatim stealing of the koreader startup scripts. I got fed up with ptrace breaking on arm in unexpected ways.. (I got tracexec running in an arm emulator, but the kobo is still different apparently..) :/ The 8bpp creates indeed a nice speedup
Thanks for telling me about printf("%m\n")
:)
As for dropbear, I hoped it would also be an SSH client .. which it was not. I tried multiple times to cross-compile a static dbclient
(dropbear ssh client) but failed miserable. Do you maybe-maybe have one lying around which I could integrate here?
// TODO: Making the font & size configurable might be nice ;).
As for that, I was thinking about creating a named pipe so any program can give commands to the terminal emulator. And then some method to allow images to be displayed on top of certain areas - you'd be able to run full jupyter notebooks with plotting and all from the terminal o.o
Build works fine :+1:. The MINIMAL=true
options seems to have decreased the binary size by 100Kb
I do have a bundle 'o stuff centered around an SSH server ;).
(Actual binaries are around here.
FYI, dropbear is built as a multi-call binary, like busybox, which means either run it via a symlink (e.g., dropbear
-> dropbearmulti
, which is how it's setup here), or pass the requested "app" as the first argument (dropbearmulti dropbear ...
)).
EDIT: Okay, just realized you said client :D. Weeeell, it also installs both dbclient and the OpenSSH suite ;).
Great, works perfectly! Now I even have zsh and tmux :) And font size 2 is indeed a lot nicer
Mainly to make it build against older Kobo kernels, as that's what I use in my ToolChains ;).
Hid the g_serial stuff behind an ifdef/make arg, and made it somewhat portable ;).