Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2023, 07:36 AM   #151
x3oo
Enthusiast
x3oo began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Feb 2009
Device: cybook
dropbox only provides 2gb and pocketbook cloud too.
it would be great to run syncthing on pocketbook

https://github.com/syncthing/syncthing
x3oo is offline   Reply With Quote
Old 10-20-2023, 04:25 PM   #152
gilali
Connoisseur
gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.gilali solves Fermat’s last theorem while doing the crossword.
 
Posts: 74
Karma: 28960
Join Date: Oct 2017
Location: Paris
Device: KOBO Libra + H2Ov2 + Aura2
Hello
Not working on PB743C with FW v6.8.1550
gilali is offline   Reply With Quote
Advert
Old 11-09-2023, 03:49 PM   #153
m4mmon
Enthusiast
m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.
 
Posts: 49
Karma: 107174
Join Date: Mar 2012
Device: PB631, PB741, PB840
ok PB 634 (Verse Pro) / 6.8.1834

The device came from the factory with 6.8.1834.
Pocketbook support page provides one update, 6.8.1835.
I successfully tested jailbreak obviously, USBNet and ssh.

Spoiler:
/mnt/secure # uname -a
Linux pocketbook 3.10.65+ #2 SMP Wed Jun 21 18:01:07 EEST 2023 armv7l GNU/Linux
m4mmon is offline   Reply With Quote
Old 11-30-2023, 07:11 AM   #154
contracode
Junior Member
contracode began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2023
Device: PocketBook InkPad Color 3 (PB743K3)
This is not working on the PocketBook InkPad Color 3 (PB743K3) w/ firmware version 6.8.2480.
contracode is offline   Reply With Quote
Old 12-20-2023, 09:32 AM   #155
Marek
Zealot
Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.Marek ought to be getting tired of karma fortunes by now.
 
Marek's Avatar
 
Posts: 141
Karma: 1000000
Join Date: Jul 2023
Device: PW4 :(, KT5, PW5
Would be really cool if this wasn't completely ancient
For now i have started with dropbear cuz it was the most annoying part of the bunch.

install the pocketbook toolchain from https://github.com/Niluje/koxtoolchain
clone my repo from: https://github.com/notmarek/dropbear-pocketbook
./patch.sh
./mipsbuild.sh
yay you did it the stuff is now built
copy src/dropbearmulti to your pocketbook at /mnt/secure/bin/dropbear
YAYAYY we have working dropbear with key auth and all the jazz
HAVE FUN

(or well just use the binary attached to this post - cuz im so nice or sth)
Attached Files
File Type: gz dropbear2022.83.patched.tar.gz (171.9 KB, 41 views)
Marek is offline   Reply With Quote
Advert
Old 03-04-2024, 09:56 AM   #156
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,645
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
I'm curious as to why it's not working on the InkPad Color 3 (pb743).

From how I understand the jailbreak to function it first unpacks the binaries "jailbreak" and "su" to /var/tmp, then uses the jailbreak binary (some weird voodoo exploit by sending a buffer to an IPC queue) to change permissions on /mnt/secure, then copies the su binary to this location (making further permissions to this newly situated su binary).

The most obvious failure point would be in setting permissions for /mnt/secure.

I've added a few lines to the jailbreak.app file to provide a simple dialog message that tests for the presence of the files and the required permissions. Could someone experiencing the failure try running it and report back? (They should only show if the root process fails)
Attached Files
File Type: zip Jailbreak.zip (19.7 KB, 130 views)

Last edited by neil_swann80; 03-05-2024 at 02:32 PM.
neil_swann80 is online now   Reply With Quote
Old 03-04-2024, 11:42 AM   #157
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 760
Karma: 622656
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Tested it on the device, where enableOPDS was not successful installed.
Installer went through without error message, afterwards I got no root in pbterm but the Jailbreak-installer detected the su binary and asked me if a wanted to uninstall it, which I did and this work well, sind next time Jailbreak asked me to install again.
nhedgehog is offline   Reply With Quote
Old 03-04-2024, 12:56 PM   #158
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,645
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by nhedgehog View Post
Tested it on the device, where enableOPDS was not successful installed.
Installer went through without error message, afterwards I got no root in pbterm but the Jailbreak-installer detected the su binary and asked me if a wanted to uninstall it, which I did and this work well, sind next time Jailbreak asked me to install again.
Did you prefix your test commands in pbterm with: /mnt/secure/su ???
Sounds like the root/jailbreak worked.
neil_swann80 is online now   Reply With Quote
Old 03-04-2024, 01:22 PM   #159
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 760
Karma: 622656
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
No I didn't. What I just did in pbterm was:
1) NotJailbreaked device
working:
ls /mnt/secure
cp /mnt/secure/device.cfg /mnt/ext1/
not working
ls /mnt/secure >> /mnt/secure/test.tst

2) Jailbreaked device
working:
ls /mnt/secure
cp /mnt/secure/device.cfg /mnt/ext1/
not working
ls /mnt/secure >> /mnt/secure/test.tst
/mnt/secure/su ls /mnt/secure >> /mnt/secure/test.tst

PS: Funfact device.cfg & device.cfg.back are existing in /mnt/secure
device.cfg has have_opds=1 in it, so your installer worked despite my previous comment BUT library does not show the Network library entry. Sorry I didn't check the device.cfg itself previously.

Last edited by nhedgehog; 03-04-2024 at 01:28 PM.
nhedgehog is offline   Reply With Quote
Old 03-04-2024, 01:42 PM   #160
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,645
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by nhedgehog View Post
not working
ls /mnt/secure >> /mnt/secure/test.tst
/mnt/secure/su ls /mnt/secure >> /mnt/secure/test.tst
The default permissions for /mnt/secure are 755 (after jailbreak). You'll need to change the permissions before running that command.
I can't run that command on my rooted device without making this change either.

/mnt/secure/su chmod 777 /mnt/secure



Weirdly to run mkdir in /mnt/secure with su I need 775 permissions... but for the command you specified 777 is needed. Really odd. But if you can chmod you have root!

Quote:
Originally Posted by nhedgehog View Post
PS: Funfact device.cfg & device.cfg.back are existing in /mnt/secure
device.cfg has have_opds=1 in it, so your installer worked despite my previous comment BUT library does not show the Network library entry. Sorry I didn't check the device.cfg itself previously.
You'll likely have the same issue as electronicfur, the only solution root, then ssh and nano to make the changes in ebrmain (as ebrmain is on part of the cramfs filesystem rom).

Last edited by neil_swann80; 03-04-2024 at 11:11 PM.
neil_swann80 is online now   Reply With Quote
Old 03-04-2024, 04:18 PM   #161
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 760
Karma: 622656
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Thanks, yes root is definitely working. Chmod on /mnt/secure too and afterwards I can write on /mnt/secure. Though /ebrmain/config is and remains readonly. I'll check ssh the next days. BTW. firmware is: 6.8.2676-U-W
nhedgehog is offline   Reply With Quote
Old 03-04-2024, 11:18 PM   #162
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,645
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
The bulk of the Pockebook OS is on a compressed read-only rom image - cramfs. Not easy to modify, usually the rom itself is reflashed/rewritten in its entirety to make changes. A command line editor like nano is the only way I know to make the changes to any files within the cramfs on-the-fly.

Last edited by neil_swann80; 03-04-2024 at 11:55 PM.
neil_swann80 is online now   Reply With Quote
Old 03-05-2024, 01:57 AM   #163
EastEriq
Groupie
EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!
 
Posts: 171
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
Quote:
Originally Posted by nhedgehog View Post
Though /ebrmain/config is and remains readonly.
Code:
sudo mount -o rw,remount /ebrmain
though, if it is as Neil writes, that all crams is rewritten as bulk for each small change, then it might be better not to abuse of it.


EastEriq is offline   Reply With Quote
Old 03-05-2024, 02:23 AM   #164
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,645
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by EastEriq View Post
Code:
sudo mount -o rw,remount /ebrmain
though, if it is as Neil writes, that all crams is rewritten as bulk for each small change, then it might be better not to abuse of it.


Swapping a bit here and there CAN BE safe enough, but adding/removing data is more risky and could brick the device.

I have to enter "/mnt/secure/su" rather than "sudo" before my commands in both pbterm and via ssh. I've tried setting a permanent alias without any luck. I ended up writing a simple shell .app launcher for pbterm (to export a variable) as a bodge-fix which works well enough. Works for ssh also if I launch pbterm first.

Code:
#!/bin/sh
export udo="/mnt/secure/su"
/mnt/ext1/applications/pbterm
exit
now I can simply enter $udo at the command line.

Last edited by neil_swann80; 03-05-2024 at 06:54 AM.
neil_swann80 is online now   Reply With Quote
Old 03-11-2024, 12:35 AM   #165
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,645
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
FYI... After reading through the services.app file I've noticed you can easily run scripts on startup by populating:

/mnt/ext1/system/init.d/*.sh

Last edited by neil_swann80; 03-11-2024 at 12:57 AM.
neil_swann80 is online now   Reply With Quote
Reply

Tags
root


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paperwhite 2 usbnet asks for root password cokolokolo Kindle Developer's Corner 2 09-07-2014 04:51 PM
/etc/sysconfig/iptables from 3.0.1 wahlis Amazon Kindle 1 08-14-2011 10:10 AM
iLiad Samba/smbd/shared folder access to iLiad ajnorth iRex Developer's Corner 12 02-29-2008 09:02 AM


All times are GMT -4. The time now is 09:30 AM.


MobileRead.com is a privately owned, operated and funded community.