remarkable2-framebuffer icon indicating copy to clipboard operation
remarkable2-framebuffer copied to clipboard

Does not work with my version of Xochitl

Open raisjn opened this issue 5 years ago • 253 comments

This issue is for when rm2fb's server process fails to find the signature it needs.

Please respond with which binary was being used and what its md5sum is, thank you!

NOTE: this issue is specifically for if rm2fb server or client prints out an error referencing issue #18. The error message means that the signatures we use are no longer valid in the version of xochitl being used. Please open separate threads for other issues.

raisjn avatar Nov 10 '20 16:11 raisjn

Where this (int *)locate_signature(SDK_BIN.c_str(), "|@\x9f\xe5|P\x9f\xe5", 8); come from? How did you get this magic string?

Witos avatar Nov 16 '20 07:11 Witos

this is the signature of a function we are loooking for

ddvk avatar Nov 16 '20 08:11 ddvk

I know what it is. I don't know how do you know which function to look for? Did you reverse engineer remarkable-shutdown?

Witos avatar Nov 16 '20 08:11 Witos

of course

On Mon, 16 Nov 2020 at 09:19 Witos [email protected] wrote:

I know what it is. I don't know how do you know which function to look for? Did you reverse engineer remarkable-shutdown?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ddvk/remarkable2-framebuffer/issues/18#issuecomment-727816261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIYZFLWDZINBXHPR4QUTDVTSQDN7TANCNFSM4TQ3VQVA .

ddvk avatar Nov 16 '20 08:11 ddvk

@ddvk or @raisjn, I don't have a reMarkable, but I'd like to take a look at xochitl and remarkable-shutdown. Is there somewhere I can find the binaries?

pgaskin avatar Nov 16 '20 16:11 pgaskin

@pgaskin Due to licensing you'll need to have a device to get the binaries.

Eeems avatar Nov 16 '20 16:11 Eeems

Are the firmware updates available somewhere?

pgaskin avatar Nov 16 '20 16:11 pgaskin

I'm sure they are, just not entirely sure where to look. The code that handles updating can be found here: https://github.com/reMarkable/update_engine

Eeems avatar Nov 16 '20 16:11 Eeems

can you ask in the discord channel, https://discord.gg/ATqQGfu

there was an irc bridge as well

On Mon, 16 Nov 2020 at 17:23 Patrick Gaskin [email protected] wrote:

Are the firmware updates available somewhere?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ddvk/remarkable2-framebuffer/issues/18#issuecomment-728169106, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIYZFLWB32UMJWIMUASNQULSQFGZXANCNFSM4TQ3VQVA .

ddvk avatar Nov 16 '20 16:11 ddvk

I have these:

remarkable-shutdown: eacf23b176dcda8f1727ff0ac433ca8f4c85c809 xochitl: c88d155b7ca8c770240b2c00048968f8445f8115

pgaskin avatar Nov 16 '20 16:11 pgaskin

md5sum /usr/bin/remarkable-shutdown /usr/bin/xochitl:

fec600ccae7743dd4e5d8046427244c0  /usr/bin/remarkable-shutdown
aaa77163501618b0cfae54843505df88  /usr/bin/xochitl
More info:

Downloaded the .sos from release 0.0.1.

To show the same data as @pgaskin when doing a sha1sum: sha1sum /usr/bin/remarkable-shutdown /usr/bin/xochitl:

eacf23b176dcda8f1727ff0ac433ca8f4c85c809  /usr/bin/remarkable-shutdown
c88d155b7ca8c770240b2c00048968f8445f8115  /usr/bin/xochitl

Actual error message:

reMarkable: ~/koreader/ LD_PRELOAD=librm2fb_server.so /usr/bin/remarkable-shutdown
ERROR: ld.so: object 'librm2fb_server.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
EPD platform plugin loaded!
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.input: evdevtouch: Using device discovery
qt.qpa.input: evdevtouch: Adding device at "/dev/input/event2"
qt.qpa.input: evdevtouch: Using device /dev/input/event2
qt.qpa.input: evdevtouch: /dev/input/event2: Protocol type B  (multi), filtered=no
qt.qpa.input: evdevtouch: /dev/input/event2: min X: 0 max X: 1403
qt.qpa.input: evdevtouch: /dev/input/event2: min Y: 0 max Y: 1871
qt.qpa.input: evdevtouch: /dev/input/event2: min pressure: 0 max pressure: 0
qt.qpa.input: evdevtouch: /dev/input/event2: device name: cyttsp5_mt
Waveform file with correct FPL_LOT not found, using fallback: /usr/share/remarkable/320_R299_AFC421_ED103TC2U2_VB3300-KCD_TC.wbf
Reading waveforms from /usr/share/remarkable/320_R299_AFC421_ED103TC2U2_VB3300-KCD_TC.wbf
Running INIT (111 phases)
SWTCON initialized \o/
Creating painter
Battery left: 97
REMARKABLE_SHUTDOWN_STATE= ""
Sending update
Epaper integration dying
Epaper integration dead

ClashTheBunny avatar Dec 10 '20 02:12 ClashTheBunny

can you try using the full path to the so file in the ldpreload?

raisjn avatar Dec 10 '20 02:12 raisjn

That's exactly my problem. I saw a note in #rm2 about it and it worked perfectly! I've got KOReader up on the screen as we speak. I also did need the full version number at the end.

ClashTheBunny avatar Dec 10 '20 03:12 ClashTheBunny

https://github.com/toltec-dev/toltec/pull/163#issuecomment-751889405

Triggered the watchdog to downgrade the device. Seems to be some weired combinations between the new entware-reenable doing something that maybe crashes (?) the device and then rm2fb fails to find a signature. My device is a rM 1.

Mounted the old partition to get the hash of the xochitl in question:

MD5: 6709a445112e783c59a926aabdbd49c9 /mnt/usr/bin/xochitl

LinusCDE avatar Dec 28 '20 23:12 LinusCDE

rm2fb should probably check to see if it's being run on a rM1 and just stop if not.

Eeems avatar Dec 28 '20 23:12 Eeems

Not sure if I installed something today that cause this other than entware-rerenable (and that probably switched the repo to stable and reinstalled sw a bunch). I have binge read a fair amount of hours in the last 2 days without any issues.

LinusCDE avatar Dec 28 '20 23:12 LinusCDE

Failing with update 2.6.1.71 (getting Unable to find update fn).

6f4162d7685b27a69acbd5ad2b6c447d  /usr/bin/xochitl
fcf12062da3fbfeb5aca3ac225ecddc2  /usr/bin/remarkable-shutdown

matteodelabre avatar Mar 16 '21 21:03 matteodelabre

I am encounter this as well after an update to 2.6, I noticed someone said they downgraded and re-upgraded, what are the instructions for that? I can only use xochitl if I start it manually from command-line.

EDIT: I got it to boot at least by removing rm2fb: reMarkable: ~/ opkg remove rm2fb Removing package rm2fb from root... Removed /etc/systemd/system/multi-user.target.wants/rm2fb.service. Removed /etc/systemd/system/xochitl.service.wants/rm2fb.service. make sure to disable / uninstall any launchers like draft, oxide or remux before rebooting your tablet to complete the uninstallation

Foxmilk avatar Mar 20 '21 04:03 Foxmilk

Same issue here after update to 2.6.

Edit: If I type: LD_PRELOAD=/home/root/librm2fb_client.so.1.0.0 xochitl I got this:

OPENED SHARED MEM: /dev/shm/swtfb.01 at 735dc000, errno: 1
Unable to find update fn
PLEASE SEE https://github.com/ddvk/remarkable2-framebuffer/issues/18
Aborted

Pemo11235 avatar Mar 20 '21 13:03 Pemo11235

See #55

Eeems avatar Mar 20 '21 14:03 Eeems

Same issue after update to 2.8.

Witos avatar Jun 04 '21 18:06 Witos

Same issue after update to 2.8.

Could you perhaps compare some of the library versions to see what was updated that might cause this?

Eeems avatar Jun 04 '21 20:06 Eeems

Got the message:

21d4e562034aff4f8a9f103137920976  /usr/bin/xochitl
fcf12062da3fbfeb5aca3ac225ecddc2  /usr/bin/remarkable-shutdown

edit: version 2.8.0.98-patch_23.2.02-0-gd889977

consp avatar Jun 24 '21 09:06 consp

Hi @consp, what system version are you using?

matteodelabre avatar Jun 24 '21 10:06 matteodelabre

Hi @consp, what system version are you using?

Sorry for the late reply.

2.8.0.98-patch_23.2.02-0-gd889977

consp avatar Jul 01 '21 11:07 consp

Can also confirm those hashes - looks like they are remarkable-hacks 28098_rm2 patch_23.2.02

i-am-shodan avatar Jul 06 '21 21:07 i-am-shodan

Can also confirm those hashes - looks like they are remarkable-hacks 28098_rm2 patch_23.2.02

Should have mentioned that. Yes, the are with remarkable-hacks.

consp avatar Jul 08 '21 08:07 consp

Running 2.8.0.98 (Unpatched) and am also getting the error.

878c12dfee135d1a0a9e83552db61891  /usr/bin/xochitl
fcf12062da3fbfeb5aca3ac225ecddc2  /usr/bin/remarkable-shutdown

RickyGrassmuck avatar Jul 10 '21 18:07 RickyGrassmuck

Which remarkable2-framebuffer version did you install? The version currently in Toltec stable doesn't work with 2.8. You need the version in testing, or manually install from this repo's latest release.

matteodelabre avatar Jul 11 '21 10:07 matteodelabre

I’m running 1.6 in Toltec testing. The display package as it’s now called.

i-am-shodan avatar Jul 11 '21 11:07 i-am-shodan