08-25-2018, 08:34 AM | #16 |
Wizard
Posts: 2,735
Karma: 6987557
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
GeoffR, I'm going to remove the 24 line spacing values patch which you sent me, as it seems to be the one causing crashes. Also, the dictionary pop-up size patch has been updated by jackie_w (see the kobopatch thread).
|
08-25-2018, 08:38 AM | #17 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
Advert | |
|
08-25-2018, 08:40 AM | #18 | ||
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Quote:
As an occasional contributor of new & updated patches I had not been planning to have to do everything twice. I'm not trying to be lazy or difficult but my experience working in IT tells me that trying to maintain parallel equivalent systems usually turns out badly for everyone. |
||
08-25-2018, 08:43 AM | #19 |
Wizard
Posts: 2,735
Karma: 6987557
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
I have removed the 24 line spacing values patch for fw 4.10.11591 which GeoffR sent me. For those who are fine with the potential crashes on the Adobe epub reader, here it is:
Spoiler:
Later today, I'm going to investigate the reports that the brightness slider one doesn't work, as I thought it did when I tested it. I think I'll be able to fix whatever the problem is. Last edited by geek1011; 08-25-2018 at 12:41 PM. |
08-25-2018, 08:51 AM | #20 | |
Wizard
Posts: 2,735
Karma: 6987557
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
As for the zlib patches, since kobopatch makes it WAY easier to maintain them, I can write a converter to the old format if anyone wants it. The thing is, I've designed kobopatch so it can be as complex or as simple as you need it. If you only want the basics (like the old version), you can modify the patch files directly and ignore kobopatch.yaml. The new syntax should be pretty simple to pick up. I'm also willing to add anything to make it simpler (if it even can be made simpler). Some of my future plans include: automatic firmware downloading, an automated patch removal tool, optional automated installation, and if I can get it to work (I've been unsucessful so far), a virtual kobo in QEMU. Last edited by geek1011; 08-25-2018 at 09:04 AM. |
|
Advert | |
|
08-25-2018, 09:09 AM | #21 |
Wizard
Posts: 2,735
Karma: 6987557
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
What is more complex about kobopatch? Most people have said it's simpler due to the combined instructions (like FindReplaceString), zlib support, and the overrides in kobopatch.yaml.
|
08-25-2018, 09:33 AM | #22 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
My problem is that if people are reluctant to even try to move forward to the new system "because the old works just fine" (and I agree, it does work fine and I've been very grateful for it for several years) then we will forever have 2 systems. I get it that, on the whole, people hate change but I'm sceptical that keeping 2 systems in-sync is workable in the long run (BTW, I'm happy to be proved wrong ) For the record, any future contributions from me will be for kobopatch in .yaml format. If someone else wants to translate them to .patch format and do the testing that's perfectly OK by me. |
|
08-25-2018, 09:48 AM | #23 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I find the new system more difficult than the old one when it comes to updating the patches, that is very likely just that I have become so used to the old way, but there are a couple of specific things that might help:
Does anyone know of a working yaml-mode for Emacs 24? The one on the Debian repository is a bit glitchy. Is there a way to run kobopatch on a single yaml file that is equivalent to: Code:
patch32lsb -i libnickel.so.1.0.0 -p libnickel.so.1.0.0.patch -o out Last edited by GeoffR; 08-25-2018 at 09:50 AM. Reason: spelling |
08-25-2018, 10:43 AM | #24 | |
Wizard
Posts: 2,735
Karma: 6987557
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
As for the last thing you do, I can put together a tool later today. It's pretty simple, as the patching functionality is separated into a Go package. My workflow is slightly different. I usually first run "./scripts/build.sh;./scripts/test.sh" after making a folder for the new firmware and copying the previous patches (note that a tarball needs to be out in the testdata dir with the binaries for the firmware). This tells me the most obviously broken patches. I then fix the easy ones with objdump (passed through c++filt), and try applying them. If they work, I continue on to the more complex ones. I use the Hopper dissembler for this, as it allows me to easily make modifications, and export executables (which I copy and test over telnet). It also has really good tools for viewing the assembly in different forms (hex, cfg, pseudocode, custom types, etc). Finally, I update the patch files and build a zip. I enable all the patches, and test the functionality of each one. To release the patches, I make a new git tag. If you have any further questions, I'd be happy to answer them. Also note that I probably won't have time to update all the patches from scratch in the next firmware version, as I don't usually have so much spare time. I will still be able to port your changes, update the other patches, and make a release, but you'll need to do most of the updating like usual. |
|
08-25-2018, 12:56 PM | #25 | ||
Wizard
Posts: 2,735
Karma: 6987557
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
Quote:
Do you (or anyone else) want me to make a tool to translate them to .patch format automatically? |
||
08-25-2018, 01:57 PM | #26 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Having said that, I'd be happy to compromise on fully supporting a transition period as long as it's length is agreed and, most of all, short & finite (e.g. 4.10.11591 only). I'm the wrong person to ask about what needs to be done to help with the transition because, speaking only for myself, I had few problems making it. Perhaps those who have had trouble will help by elaborating on their actual problems (like GeoffR already did). My concern is about those who won't even bother trying. Last edited by jackie_w; 08-25-2018 at 02:18 PM. Reason: typo |
|
08-25-2018, 02:03 PM | #27 | |
Zealot
Posts: 113
Karma: 32126
Join Date: Dec 2017
Location: Madrid (Spain)
Device: Kobo Aura H2O Ed2, Onyx Boox C67ML
|
Quote:
Your system seems to be more "elaborated" and with additional options, and probably in the future I will move to it, but today I only use six or seven patches, not the full set, and with GeoffR patcher system, I only change numbers in some txt files following the instructions inside and run it. The system has not changed for a long time, whilst yours is moving very quickly, with some features that are tricky for me (e.g. it has overrides, that depend in a specific number of spaces in the line, different way to visually separate the patches inside the file ...), just little things but with a "higher" probability for me to mesh the fw, and just now I prefer spending more time than . Anyway, I encourage you to follow the development of kobopatch, as it seems to be a good tool, and probably in the near future I will use it, as I do now with kepubify (that by the way, I prefer over the use of calibre conversion through kobo addons). |
|
08-25-2018, 02:16 PM | #28 | |
Wizard
Posts: 2,735
Karma: 6987557
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
In addition, I strongly recommend you try out the new features, as they really do make things simpler. Here are the only changes I need to make to the patch zips to configure it the way I want. Also, @GeoffR, I've finished making the tool you requested (it took me ~10 minutes), and released it in kobopatch v0.9.2. It's called kobopatch-apply, and has the same syntax you requested. If you need anymore tools, I'd be happy to help. Last edited by geek1011; 08-25-2018 at 02:18 PM. |
|
08-25-2018, 02:39 PM | #29 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
If/when you're ready to move forward let me offer you an open personal invitation to help you create your new set of .yaml patch files. You can do it via PM or in open forum in a new thread, your choice. All I would need to start with is:
|
|
08-25-2018, 02:42 PM | #30 | |
Zealot
Posts: 113
Karma: 32126
Join Date: Dec 2017
Location: Madrid (Spain)
Device: Kobo Aura H2O Ed2, Onyx Boox C67ML
|
Quote:
In theory, should they produce the same final koboroot file or not? |
|
Tags |
kobopatch, patches, patching |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.13.1 | GeoffR | Kobo Developer's Corner | 56 | 07-01-2016 09:59 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 AM |
Instructions for patching firmware 3.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 05:32 AM |
Instructions for patching firmware 3.12.1 | GeoffR | Kobo Developer's Corner | 56 | 03-20-2015 05:14 AM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |