Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-09-2024, 02:41 PM   #1126
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,118
Karma: 4234828
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
@DNSB
Thank you so much!
mergen3107 is offline   Reply With Quote
Old 06-09-2024, 04:57 PM   #1127
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,180
Karma: 15499942
Join Date: Sep 2022
Device: Kobo Libra 2
I added an "album" to my profile containing links to my typography and battery scripts in case anyone needs the links to them.
Aleron Ives is offline   Reply With Quote
Old 06-09-2024, 06:10 PM   #1128
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,268
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by Aleron Ives View Post
I added an "album" to my profile containing links to my typography and battery scripts in case anyone needs the links to them.
Why not add them to your signature on your profile?
PeterT is offline   Reply With Quote
Old 06-09-2024, 09:16 PM   #1129
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,180
Karma: 15499942
Join Date: Sep 2022
Device: Kobo Libra 2
Quote:
Originally Posted by PeterT View Post
Why not add them to your signature on your profile?
I disabled forum signatures, because I got tired of seeing "click here" advertisements after every post, so it would be rather hypocritical of me to add such an advertisement to my own signature.

People can opt in to seeing my projects by clicking on my profile, and then all the people to whom my projects don't apply -- such as Kindle users -- don't have to endure unsolicited, irrelevant signature advertisements every time they see a post from me.
Aleron Ives is offline   Reply With Quote
Old 06-09-2024, 10:41 PM   #1130
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,268
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
The only thing is that as you say the signature is in your face; the Album on profile I wouldn't even know to look there unless you rubbed it IIN my face!

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 06-10-2024, 12:46 AM   #1131
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,180
Karma: 15499942
Join Date: Sep 2022
Device: Kobo Libra 2
Yes, but somehow people are finding out about my battery script, so perhaps if they know who wrote it, they'll know whose profile to check. At any rate, DNSB seems to have made a shortcut to paste in the post numbers every time somebody asks, so it may not matter.
Aleron Ives is offline   Reply With Quote
Old 06-12-2024, 02:13 PM   #1132
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,666
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Aleron Ives View Post
I disabled forum signatures, because I got tired of seeing "click here" advertisements after every post, so it would be rather hypocritical of me to add such an advertisement to my own signature.

People can opt in to seeing my projects by clicking on my profile, and then all the people to whom my projects don't apply -- such as Kindle users -- don't have to endure unsolicited, irrelevant signature advertisements every time they see a post from me.
It would be a good idea to edit the posts for these scripts to include the NickelMenu command to run these scripts. Not everyone will know how to do that.
JSWolf is offline   Reply With Quote
Old 06-12-2024, 04:04 PM   #1133
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,857
Karma: 147879470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
It would be a good idea to edit the posts for these scripts to include the NickelMenu command to run these scripts. Not everyone will know how to do that.
Seems a bit of an odd request when two lines of the script in message #1337 in the NickelMenu thread are:

Quote:
Code:
# You can use NickelMenu to invoke this script like so:
# menu_item :main :Battery :cmd_output :500 :/mnt/onboard/.adds/battcalc.sh
Even @Didier's modified script for the Libra Colour has those two lines though further down the script (see message #1353 in the NickelMenu thread for that script).

Last edited by DNSB; 06-13-2024 at 04:17 PM.
DNSB is offline   Reply With Quote
Old 06-13-2024, 05:36 AM   #1134
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,666
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Seems a bit of an odd request when the first two lines of the script in message #1337 in the NickelMenu thread are:



Even @Didier's modified script for the Libra Colour has those two lines though further down the script (see message #1353 in the NickelMenu thread for that script).
I didn't read the comments. I just read around the code block.
JSWolf is offline   Reply With Quote
Old 06-13-2024, 04:16 PM   #1135
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,857
Karma: 147879470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
I didn't read the comments. I just read around the code block.
Are you trying to say that you didn't bother to read the comments inside the code block or that you didn't read any comments external to the code block?
DNSB is offline   Reply With Quote
Old Yesterday, 05:45 AM   #1136
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,666
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Are you trying to say that you didn't bother to read the comments inside the code block or that you didn't read any comments external to the code block?
I read the message outside of the code block but did not read the code in the code block.
JSWolf is offline   Reply With Quote
Old Yesterday, 11:05 AM   #1137
bopuc
livin' with ebooks
bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.
 
bopuc's Avatar
 
Posts: 32
Karma: 41344
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
I was poking around the patches and patching system today (wow, great stuff!) and I'm wondering how one sees the target CSS ("qss") that is being find/replaced by KoboPatch? I've cracked open the firmware download and checked every corner so I am guessing its all compiled into .so or something?

I'd like to help make some patches but obviously would need to be able to see what I can search for and replace.

(Apologies for asking something that most likely has been answered before. I get overwhelmed easily by pages and pages of branching discussion.)
bopuc is offline   Reply With Quote
Old Yesterday, 04:41 PM   #1138
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,180
Karma: 15499942
Join Date: Sep 2022
Device: Kobo Libra 2
The QSS patches are part of nickel.yaml, which targets the file /usr/local/Kobo/nickel, which appears to be the ELF binary containing the ARM assembly for the Nickel OS. The QSS patches are using "FindZlib", which probably means that the QSS files are zipped before they are compiled into the binary; as such, you can't simply search for the strings you want to replace. You need to extract the zip contents, unzip it, edit the files, rezip them, and insert the modified zip into the ELF, ensuring that the new zip is not larger than the original one.

If you're serious about making patches, you could use Ghidra's ARM module to decompile Nickel and learn how things work, so you can start editing the binary and its associated libraries.
Aleron Ives is offline   Reply With Quote
Old Today, 09:39 AM   #1139
bopuc
livin' with ebooks
bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.bopuc is an enigma wrapped up in a mystery.
 
bopuc's Avatar
 
Posts: 32
Karma: 41344
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
Quote:
Originally Posted by Aleron Ives View Post
The QSS patches are part of nickel.yaml, which targets the file /usr/local/Kobo/nickel, which appears to be the ELF binary containing the ARM assembly for the Nickel OS. The QSS patches are using "FindZlib", which probably means that the QSS files are zipped before they are compiled into the binary; as such, you can't simply search for the strings you want to replace. You need to extract the zip contents, unzip it, edit the files, rezip them, and insert the modified zip into the ELF, ensuring that the new zip is not larger than the original one.

If you're serious about making patches, you could use Ghidra's ARM module to decompile Nickel and learn how things work, so you can start editing the binary and its associated libraries.

Thank you.

How precisely (I am looking for guidance here) did whoever made the existing patches in `nickel.yaml` figure out what strings of qss to find & replace in the firmware, e.g.:

Code:
{Find: "line-height: 1.35em;", Replace: "line-height: 1.3em;"}
My understanding is that KoboPatch does the "heavy lifting" of actually patching the firmware based on the configuration (and search/replace strings) in the YAML files. Somehow, we (patcher makers) need to be able to "see" what we searching for to replace it, right? How do I "get to seeing"?

I have unzipped the firmware bundle, TarUnzipped the "KoboRoot.tgz" contained within, and poked around in various bin files in /usr/local/Kobo with readelf but that's not showing me anything I can recognize. Maybe I'm not using the right flags?

Any and all pointers much appreciated!
bopuc is offline   Reply With Quote
Reply

Tags
kobopatch, patches, patching, request, requests


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for PW3 kernel [posted in another thread] mustdie Kindle Developer's Corner 5 10-21-2015 04:28 PM
Kobobooks.com future feature request thread Mrs_Often Kobo Reader 47 11-08-2012 11:59 AM
[Old Thread] Calibre 'feature request' thread Waba Calibre 2 02-10-2010 07:52 PM
Feature request thread? Dahak Calibre 1 08-02-2009 12:51 AM
3rd party software request thread Adam B. iRex 23 11-28-2008 01:08 PM


All times are GMT -4. The time now is 10:33 AM.


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