![]() |
#256 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,487
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#257 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,487
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
It looks as if the mass of bytes written to the screen when an error occurred has been suppressed. Makes it a lot easier to see where the error occurred. Thanks!
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#258 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
The line with the mistake is: - ReplaceBytes: {Offset: 0x14, FindH: 20 46, ReplaceH: 04 E0} It should be: - ReplaceBytes: {Offset: 0x14, FindH: 20 46 61 E9 1E 89, ReplaceH: 7B 60 03 E0 00 BF} (BTW I'm not sure whether it is worth using this multi-version patch or not, although it doesn't need updating so long as the code doesn't change, once the code changes it may be more difficult to update than the original.) |
|
![]() |
![]() |
![]() |
#259 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
- How unique are the finds - What is the chance of it breaking silently (I like to be able to mostly depend on my automated testing) - If the patch breaks, will it prevent connecting to a computer and require a reset (as in, are the instructions reached right after booting) One thing I'm experimenting with right now is automated patch updates on a slightly higher level (based on finding/replacing instructions). This would then generate ordinary patches. |
|
![]() |
![]() |
![]() |
#260 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
There is now a new kobopatch request thread, which consolidates all the requests for patches and major kobopatch features.
I have tried my best to collect all the requests from before scattered around the threads, and if I missed anything, please tell me. |
![]() |
![]() |
Advert | |
|
![]() |
#261 |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
![]() Code:
Patching ./usr/local/Kobo/nickel Applying overrides DISABLE `Reduce reading footer and quit caption` ENABLE `Custom font-size nozlib` ENABLE `Custom font-size zlib` DISABLE `Only Reading and My Books` DISABLE `Remove Footer and Recommendations` Error: could not apply patches: invalid patch file 'src/nickel-363.yaml': i286: internal error while validating `Custom font-size zlib` (you should report this as a bug) ![]() Last edited by jcn363; 11-21-2018 at 12:28 PM. |
![]() |
![]() |
![]() |
#262 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
EDIT: I had another look, actually, I think this is a bug in the validation. I will look into this later (I probably forgot to incremented the counter for one of the zlib instructions). Last edited by geek1011; 11-21-2018 at 01:51 PM. |
|
![]() |
![]() |
![]() |
#263 |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
![]() Sorry, my fault. ![]() ![]() Good luck. |
![]() |
![]() |
![]() |
#264 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
![]() |
![]() |
![]() |
#265 |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
When you try recursively a simple change (same length string) the error raises immediately.
![]() Spoiler:
If you remove the space the error raises before. ![]() Spoiler:
![]() Perhaps I'm doing something bad or you should flush memory, redo loops or something, because I think this is really simple. Good luck. |
![]() |
![]() |
![]() |
#266 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
This is happening because it is being re-compressed after every replace (not just the final one). Thus, the compression ratio may differ each time. A possible workaround would be to try playing around with the order of the replacements. I will implement a new ReplaceZlibGroup instruction later this week to solve this issue completely.
|
![]() |
![]() |
![]() |
#267 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#268 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
I have released kobopatch v0.11.0 (which will be included in the next release of the patches).
This release adds a new ReplaceZlibGroup (as requested by jcn363). This instruction replaces multiple strings in a zlib string, then compresses the result (instead of compressing at each replacement). This is useful when making many tiny changes to a zlib stream, and one temporarily makes the stream too long. Usage example for ReplaceZlibGroup: Code:
Example for ReplaceZlibGroup: - Enabled: yes - Description: An example patch for the new ReplaceZlibGroup instruction. - FindZlib: "#someRandomID" - ReplaceZlibGroup: Offset: 0 Replacements: - {Find: "#someRandomID", Replace: "#someRandomIDThatMakesTheZlibStreamTooLongWhichWouldHaveErroredWithReplaceZlib"} - {Find: "#someRandomIDThatMakesTheZlibStreamTooLongWhichWouldHaveErroredWithReplaceZlib", Replace: "#someRandomIDThatIsNowShortEnough"} Last edited by geek1011; 11-26-2018 at 11:14 PM. |
![]() |
![]() |
![]() |
#269 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@geek1011,
Re: ReplaceZlibGroup Please can you also show an example of how to use this for the occasions when I prefer to have the Find: and Replace: statements on separate lines to facilitate comparing the find/replace strings. ETA: Ideally, I'd like to be able to mix and match Find/Replace one-liners and multi-liners in the same ReplaceZlibGroup Here's an extract from a very large patch that I have. How would I use ReplaceZlibGroup to group these 4 find/replace together without losing the last 2 as multi-liners? Spoiler:
Last edited by jackie_w; 11-27-2018 at 11:02 AM. Reason: ETA |
![]() |
![]() |
![]() |
#270 |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
|
![]() |
![]() |
![]() |
Tags |
kobo, kobopatch, patch, patch32lsb |
|
![]() |
||||
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 |