07-06-2018, 06:15 PM | #61 | |
Grand Sorcerer
Posts: 6,393
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
My configuration file includes to different files for nickel (GeoffR and oren64) and one translation. Thank you very much. With this tool you allow me to skip four steps: to merge GeoffR's and oren64's patches, to configure every time which patches I want to apply, to update the script for adding translations and copy binary files to the tools directory. So a big thank you. |
|
07-06-2018, 06:35 PM | #62 | |
Wizard
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
And you're welcome for kobopatch . You used it exactly how I intended it to be used (and how I use it myself). Now for zlib, then kobopatch will be complete. It's been quite tricky so far, due to implementation differences in different libraries, but the end result will be worth it (less time required to make simple modifications, and easier to update to new firmware versions). |
|
Advert | |
|
07-07-2018, 05:11 PM | #63 |
Zealot
Posts: 105
Karma: 37418
Join Date: Jan 2013
Device: Kobo Glo, Aura, H2OE2, Libra 2
|
Updated my H2O e2 to the latest firmware using this patching system. Everything went well, took a while to understand how to use the kobopatch.yaml file but expect that to save lots of time on future updates.
Thanks for this new system it looks a excellent step forward. One additional thing I would like to be able to do is replace the hyphen.en_GB file with my own custom one during the patching process. Is this possible? |
07-07-2018, 05:40 PM | #64 | |
Wizard
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
You're welcome. Probably. I am most likely going to add the ability to replace custom files sometime soon. |
|
07-08-2018, 08:27 AM | #65 |
Zealot
Posts: 105
Karma: 37418
Join Date: Jan 2013
Device: Kobo Glo, Aura, H2OE2, Libra 2
|
It's really not that difficult to understand, my main problem was entering the list of patches with the yes / no flag and the inevitable typos I made which stopped the patching process and needed correcting.
The second issue I had was when I ran the new patch using the kobopatch.yaml from the previous patch version. The patching process stopped at every missing patch even though they were flagged as "no", it then took some time to identify the missing patch and remove it from the .yaml file. One solution would be to only list "patch name: yes" in the .yalm file Alternatively what do you think about making missing "no" patches have a soft fail. I don't see why the patch process needs to stop when a "no" patch is missing. |
Advert | |
|
07-08-2018, 08:42 AM | #66 | |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Quote:
|
|
07-08-2018, 12:10 PM | #67 | |
Wizard
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
For the overrides, you only need to list the yes ones, as all patches are disabled by default. Your last suggestion sounds good though. I'll do it for the next version. |
|
07-08-2018, 12:13 PM | #68 |
Wizard
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
07-08-2018, 12:37 PM | #69 |
Guru
Posts: 891
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
Checked, works fine. Conveniently. Thanks.
Last edited by Semwize; 07-10-2018 at 11:17 AM. |
07-08-2018, 01:52 PM | #70 | |
Zealot
Posts: 105
Karma: 37418
Join Date: Jan 2013
Device: Kobo Glo, Aura, H2OE2, Libra 2
|
Quote:
Can I also suggest adding a option to reduce the detail in the log file. Most of what's there means nothing to me, all I need is a list of patches successful processed. For info: my kobopatch.yaml file Spoiler:
Sorry, lost the indentation on pasting to the forum. ## The indentation matters! Each override should be indented by 4 spaces. Corrected --- Thanks PeterT Last edited by npr; 07-08-2018 at 02:40 PM. |
|
07-08-2018, 02:15 PM | #71 | |
Grand Sorcerer
Posts: 12,756
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
|
|
07-09-2018, 11:09 AM | #72 |
Wizard
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Zlib support is coming very soon (https://github.com/geek1011/kobopatch/issues/4). I just figured out the biggest issue I was having.
The instructions I will be implementing are: FindZlib: Finds a zlib css offset, not sensitive to line breaks or whitespace differences - FindZlib: "#StatsView[qApp_deviceIsTrilogy=true]" FindZlibHash: Finds a zlib css string by it's SHA1 hash - FindZlib: w4ujrwe4ujtowe485rwoe4j (I know that isn't a valid hash) ReplaceZlib: Replaces a zlib css string at the current offset (found with above functions or set with BaseAddress) - ReplaceZlib: Offset: 0 Find: "margin: 20px" Replace: "margin: 40px" In the future, I might also implement the following instruction: SetZlibCSS: Sets a property for a CSS selector - SetZlibCSS: Offset: 0 Select: "BookProgressBarWidget[qApp_deviceIsTrilogy=true]" Set: "min-height: 32px" Please tell me what you think of those instructions or if you have any better/more useful ideas for instructions. Also, to save me some time for testing, it would be nice if oren64 could convert a simple patch to one using ReplaceZlib. Last edited by geek1011; 07-09-2018 at 11:13 AM. |
07-09-2018, 01:31 PM | #73 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@geek1011,
I have a basic question about FindZlib. Using your above example: If "#StatsView[qApp_deviceIsTrilogy=true]" is the correct unique string for this CSS stream but it is not the first line of the stream can you still use this function or do you need to use FindZlibHash instead? |
07-09-2018, 01:42 PM | #74 | |
Wizard
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
I'm almost finished now, I just need to test it and get it cross-compiling for macOS. |
|
07-09-2018, 04:07 PM | #75 |
Wizard
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
I have released v0.7.0 with zlib support.
I have implemented the instructions detailed above. For the old format, the instructions are called find_zlib, find_zlib_hash, and replace_zlib. Please port your old-style zlib patches over and test them. You can post converted patches here. Once they are stable, please post them in this thread. Also, you can use my new tool, cssextract, to extract the css from nickel with the information needed (offsets, hashes, css, etc) to make the patches for kobopatch. If you have any questions, feel free to ask. Also, if you have any suggestions for new zlib instructions, I'd love to know. Last edited by geek1011; 07-09-2018 at 04:56 PM. |
Tags |
kobo, kobopatch, patch, patch32lsb |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
kobopatch - A new (WIP) patching system | geek1011 | Kobo Developer's Corner | 93 | 05-27-2018 04:04 PM |
Patching H2O | Maillemom | Kobo Developer's Corner | 8 | 10-19-2016 10:58 AM |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 06:35 PM |
Instructions for patching firmware 3.8.0 | GeoffR | Kobo Developer's Corner | 92 | 10-22-2014 08:22 AM |
how to clean more disk space in root file system to upgrade system | chinaet | iRex | 1 | 12-18-2006 04:54 PM |