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 03-04-2020, 12:21 PM   #331
Regard_39
Enthusiast
Regard_39 doesn't litterRegard_39 doesn't litter
 
Regard_39's Avatar
 
Posts: 29
Karma: 134
Join Date: Apr 2017
Device: Kobo Glo, Kobo Aura, Kobo Libra H2O, Kindle Oasis
Oh, thank you DNSB. I put the fonts file in the .kobo folder.
Everything's perfect now. And thank you JSWolf also for correcting the link
Regard_39 is offline   Reply With Quote
Old 03-04-2020, 01:45 PM   #332
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: 35,507
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Regard_39 View Post
Oh, thank you DNSB. I put the fonts file in the .kobo folder.
Everything's perfect now. And thank you JSWolf also for correcting the link
Good to hear that it's working now.
DNSB is online now   Reply With Quote
Advert
Old 03-06-2020, 03:03 AM   #333
jpirez
Junior Member
jpirez began at the beginning.
 
jpirez's Avatar
 
Posts: 7
Karma: 10
Join Date: Jul 2016
Location: UK
Device: Kobo Forma
Hi
With the new version of kobopatch_4.20.14601 I am having this problem.
Any help will be very much appreciated.

Patching ./usr/local/Kobo/nickel
Error: could not apply patches: could not load patch file 'src/nickel.yaml': could not parse patch file: line 294: patch "Reduce new header/footer height": yaml: unmarshal errors:
line 294: cannot unmarshal !!str `Enabled:no` into kobopatch.InstructionNode
jpirez is offline   Reply With Quote
Old 03-06-2020, 07:50 AM   #334
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jpirez View Post
Hi
With the new version of kobopatch_4.20.14601 I am having this problem.
Any help will be very much appreciated.

Patching ./usr/local/Kobo/nickel
Error: could not apply patches: could not load patch file 'src/nickel.yaml': could not parse patch file: line 294: patch "Reduce new header/footer height": yaml: unmarshal errors:
line 294: cannot unmarshal !!str `Enabled:no` into kobopatch.InstructionNode
You need a space between Enabled: and no.
geek1011 is offline   Reply With Quote
Old 03-13-2020, 08:28 AM   #335
jpirez
Junior Member
jpirez began at the beginning.
 
jpirez's Avatar
 
Posts: 7
Karma: 10
Join Date: Jul 2016
Location: UK
Device: Kobo Forma
Thanks
jpirez is offline   Reply With Quote
Advert
Old 03-16-2020, 06:53 AM   #336
huyxom
Junior Member
huyxom began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2011
Device: Kindle 2
Quote:
Originally Posted by geek1011 View Post
You need a space between Enabled: and no.
Do I have to upgrade my firmware to newest before patching up?
huyxom is offline   Reply With Quote
Old 03-16-2020, 07:04 AM   #337
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,037
Karma: 129333114
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 huyxom View Post
Do I have to upgrade my firmware to newest before patching up?
Yes. The firmware running on your Kobo needs to match the firmware you are patching.
JSWolf is offline   Reply With Quote
Old 03-16-2020, 10:01 AM   #338
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by huyxom View Post
Do I have to upgrade my firmware to newest before patching up?
Not if you download an old patch zip. There's an index in one of the stickied threads.
geek1011 is offline   Reply With Quote
Old 03-16-2020, 09:34 PM   #339
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
kobopatch v0.15.0 is out

Kobopatch v0.15.0 significantly improves symbol and offset-related functions.

New instructions/fields:
  • FlexAbsOffset can be used in place of wherever an absolute offset is taken (ReplaceBytes.Base, ReplaceBytes.FindInstBLX, ReplaceBytes.ReplaceInstBLX, ReplaceBytes.FindInstBW, ReplaceBytes.ReplaceInstBW, ReplaceBytes.ReplaceInstNOP, BaseAddress), with the exception of deprecated instructions/fields which need to retain compatibility regarding symbol offsets.
    • It can be used shorthand with an integer (for the Offset field) or a string (for the Sym field).
    • It has an Offset field for absolute offsets.
    • It has a Sym field for dynamic symbols.
    • It has a SymPLT field for their PLT entries.
    • It has a SymPLTTail field for matching the corresponding tail call stub.
    • It has a Rel field for adding/subtracting from the resulting absolute offset. Note that in general, it is preferred to use the Offset field of a more specific instruction, unless using the Rel field greatly simplifies the readability or maintainability of a patch.
    • All symbols can be matched using mangled or demangled names.
  • ReplaceBytes now has new generators:
    • InstBLX can find/replace BLX instructions and takes a FlexAbsOffset.
    • InstBW can find/replace B.W instructions and takes a FlexAbsOffset.
    • The branch generators above have simple sanity checks built-in.
    • InstNOP replaces with NOPs.
  • ReplaceBytes now has new fields:
    • CheckOnly skips replacements and instead just ensures the Find is present. This is mainly useful for multi-version patches made using the new symbol stuff which also needs to do things like ensure an argument is as expected.
    • Base overrides the current offset for that single instruction and takes a FlexAbsOffset. The Offset field is added to the resolved Base.
  • BaseAddress now accepts a FlexAbsOffset.

Deprecations (these will still remain indefinitely for compatibility with the old patches):
  • ReplaceBytesAtSymbol is now deprecated in favour of ReplaceBytes.Base.Sym.
  • FindBaseAddressSymbol is now deprecated in favour of BaseAddress.Sym.
  • ReplaceBytesNOP is now deprecated in favour of ReplaceBytes.ReplaceNOP.
  • ReplaceBLX is now deprecated in favour of ReplaceBytes.FindInstBLX and ReplaceBytes.ReplaceInstBLX.

Bugfixes/improvements:
  • The log for ReplaceBytes is now a lot more useful and easier to understand, especially when using generators.
  • Instruction names in certain error messages have been corrected.
  • The bug where all symbol offsets were off by one has been fixed in the new instructions (the old ones are being left as-is to maintain backwards-compatibility.
I've tested the results of an updated version of the patches against the original ones, and everything is perfectly identical.

There is also a new symdump tool (which can be used on libnickel or any other dynamic library) based on the new symbol code.

---

For usage examples, see the updated patches on GitHub (they will be released soon) here, here, and here.

---

A major benefit of these changes is that patches like "My 24 line spacing values", along with many others are now multi-version or very close to it. In addition, these changes make it easier to experiment and harder to make mistakes in offsets.

Last edited by geek1011; 03-16-2020 at 09:57 PM.
geek1011 is offline   Reply With Quote
Old 03-17-2020, 03:55 AM   #340
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
@geek1011
Is there something new about this petition?

Quote:
Originally Posted by boriar View Post
@geek1011
Would it be possible to include the directory and recursion options in the "ADDITIONAL FILES" section?
Something like:
*** src/[whateverdir]: usr/local/[whateverdir]
where all files within the [whateverdir] directory are copied with the same file structure at the indicated site.
Of course, big thanks as always for improve continuously the patch system
boriar is offline   Reply With Quote
Old 03-17-2020, 05:45 PM   #341
Scaledish
A friend
Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.
 
Scaledish's Avatar
 
Posts: 133
Karma: 1152040
Join Date: Mar 2020
Location: Somewhere in boston
Device: Kobo Forma
Question

why do I need to reinstall the firmware on my kobo or download it at all for that matter?

thanks for the work on this!
Scaledish is offline   Reply With Quote
Old 03-17-2020, 05:47 PM   #342
Scaledish
A friend
Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.
 
Scaledish's Avatar
 
Posts: 133
Karma: 1152040
Join Date: Mar 2020
Location: Somewhere in boston
Device: Kobo Forma
on some internet connections, I don't have access to https://pgaskin.net/KoboStuff/kobofirmware.html
is there another mirror?
Scaledish is offline   Reply With Quote
Old 03-17-2020, 05:53 PM   #343
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,037
Karma: 129333114
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 Scaledish View Post
on some internet connections, I don't have access to https://pgaskin.net/KoboStuff/kobofirmware.html
is there another mirror?
No need for a mirror. The second post in the thread about 4.20.14622 has all the same links from the firmware site.

https://www.mobileread.com/forums/sh...d.php?t=328041
JSWolf is offline   Reply With Quote
Old 03-17-2020, 05:59 PM   #344
Scaledish
A friend
Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.Scaledish ought to be getting tired of karma fortunes by now.
 
Scaledish's Avatar
 
Posts: 133
Karma: 1152040
Join Date: Mar 2020
Location: Somewhere in boston
Device: Kobo Forma
Quote:
Originally Posted by JSWolf View Post
No need for a mirror. The second post in the thread about 4.20.14622 has all the same links from the firmware site.

https://www.mobileread.com/forums/sh...d.php?t=328041
thats great, works perfectly. may I ask WHY I need to download the firmware again? what does it do, considring its already on the device?

sorry, one more question. do I need do do this EVERY firmware update?

thanks in advance for the help
Scaledish is offline   Reply With Quote
Old 03-17-2020, 06:09 PM   #345
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Scaledish View Post
may I ask WHY I need to download the firmware again? what does it do, considring its already on the device?
If a firmware is already installed on the device you don't need to do it again.
ETA: However, the kobopatch system does require a copy of the firmware .zip file in one of it's directories so you may need to download a copy.

Quote:
Originally Posted by Scaledish View Post
sorry, one more question. do I need do do this EVERY firmware update?
Yes you do. Many (but not all) patches have to be updated every time a new firmware is released and you must only ever install the patches intended for the same firmware as is installed on your Kobo. All things being well, a new kobopatch pack will be released within a few days of each new firmware release.

Last edited by jackie_w; 03-17-2020 at 06:15 PM. Reason: ETA
jackie_w is offline   Reply With Quote
Reply

Tags
kobo, kobopatch, patch, patch32lsb


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kobopatch - A new (WIP) patching system geek1011 Kobo Developer's Corner 93 05-27-2018 03:04 PM
Patching H2O Maillemom Kobo Developer's Corner 8 10-19-2016 09:58 AM
Instructions for patching firmware 3.17.3 GeoffR Kobo Developer's Corner 60 09-17-2015 05:35 PM
Instructions for patching firmware 3.8.0 GeoffR Kobo Developer's Corner 92 10-22-2014 07:22 AM
how to clean more disk space in root file system to upgrade system chinaet iRex 1 12-18-2006 03:54 PM


All times are GMT -4. The time now is 07:18 PM.


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