View Single Post
Old 10-04-2023, 05:51 PM   #26
elinkser
Groupie
elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.
 
Posts: 188
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
@raisjn

I appreciate your consideration of my concerns.

I'm familiar enough about computer security to avoid using a cool network app to connect from my insecure kobo to my phone I use for banking, but I don't necessrily expect regular users to be.
They may have an expectation that they are being taken care of.


On a funner note, I finally got around to trying the remarkable port of Simon Tatham's Portable Puzzle Collection!
(I first tried the binary, then recompiled it for my Clara HD - attached).
mv puzzles.bin puzzles.xz
xz -d puzzles.xz


First tried the binary:

mrichards42/remarkable_puzzles
https://github.com/mrichards42/remarkable_puzzles

Simon Tatham's Portable Puzzle Collection for the reMarkable tablet.

$ mkdir mypuzzles

$ cd mypuzzles/

$ wget https://github.com/mrichards42/remar...puzzles.tar.gz

$ tar zxvf puzzles.tar.gz

On the kobo create etc/puzzles/ folder in /mnt/onboard/.adds/rmkit/.

Copy the config/, help/, icons/ folders to the /mnt/onboard/.adds/rmkit/etc/puzzles/ folder.

Copy the puzzles binary to the /mnt/onboard/.adds/rmkit/bin/apps/ folder.

/mnt/onboard/.adds/rmkit/bin/apps/puzzles: /lib/libm.so.6: version `GLIBC_2.27' not found (required by /mnt/onboard/.adds/rmkit/bin/apps/puzzles)


OK let's try to build:

$ git clone --recurse-submodules https://github.com/mrichards42/remarkable_puzzles.git

$ cd remarkable_puzzles/

$ source ~/koxtoolchain/refs/x-compile.sh kobo env bare

$ nano -l defs.mk
Code:
...
 11 export BUILD ?= release
...
 26 else ifeq ($(ARCH),kobo)
 27         CXX = arm-kobo-linux-gnueabihf-g++
 28         CC  = arm-kobo-linux-gnueabihf-gcc
 29         STB = stb.arm.o

$ nano -l vendor/rmkit/src/common.make
Code:
  3 CXX_BIN?=arm-kobo-linux-gnueabihf-g++
  4 CC_BIN?=arm-kobo-linux-gnueabihf-gcc
  5 STRIP_BIN?=arm-kobo-linux-gnueabihf-strip
$ nano -l vendor/rmkit/src/rmkit/input/events.cpy
Code:
241 //        case ABS_MT_SLOT:
242 //          slot = data.value;
243 //          break
...
282 //        case ABS_MT_DISTANCE:
283 //          slots[slot].distance = self.distance = data.value
284 //          if self.distance > 0:
285 //            self.left = 0
286 //          break
$ nano -l vendor/rmkit/src/rmkit/input/input.cpy
Code:
 69 //          if ev_data[i].code == SYN_DROPPED:
 70 //            syn_dropped = true
 71 //            event.handle_drop(fd)
 72 //            continue
$ nano -l vendor/rmkit/src/remux/launcher.cpy
Code:
 31 #define TOUCH_FLOOD_EVENT ABS_DISTANCE
$ ARCH=kobo make puzzles

$ cp build/release/puzzles .

$ arm-kobo-linux-gnueabihf-strip -s puzzles
$ ls -l puzzles
-rwxr-xr-x 1 1892712 puzzles

$ zip puzzles.zip puzzles
$ ls -l puzzles.zip
-rw-r--r-- 1 1119921 puzzles.zip

$ xz puzzles
$ ls -l puzzles.xz
-rwxr-xr-x 1 919152 puzzles.xz

On the kobo create etc/puzzles/ folder in /mnt/onboard/.adds/rmkit/.

Copy the config/, help/, icons/ folders to the /mnt/onboard/.adds/rmkit/etc/puzzles/ folder.

Copy the puzzles binary to the /mnt/onboard/.adds/rmkit/bin/apps/ folder.
mv puzzles.bin puzzles.xz
xz -d puzzles.xz

Works great, puzzle lovers rejoice!

Last edited by elinkser; 02-28-2024 at 07:31 PM.
elinkser is offline