![]() |
#226 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Not sure how easy it is to implement and how useful it'll be since all it avoids is a one-time setup, but as I was extracting a couple of other KoboRoot.tgz files to add the hyphen dictionaries to the files section I thought “would be nice if there was a merge section where I could just list these and they would get unpacked and processed by the tool…”
Thanks again for simplifying the patch carryover from version to version! |
![]() |
![]() |
![]() |
#227 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@dmapr: I raised the same question a while ago, and the conclusion (on both ends
![]() And, indeed, I did just that, and learned in the process that GNU tar has a concatenate option that does just what we need ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#228 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
|
Quote:
![]() A really useful wrapper. I don't knew about the concatenate option. |
|
![]() |
![]() |
![]() |
#229 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Quote:
|
|
![]() |
![]() |
![]() |
#230 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 146
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One
|
Quote:
Gesendet von meinem SM-G930F mit Tapatalk |
|
![]() |
![]() |
Advert | |
|
![]() |
#231 |
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
|
The purpose of the last part of script is to create a last updated install file with Kfmon.
Good luck. |
![]() |
![]() |
![]() |
#232 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Which basically boils down to GNU tar's concatenate feature (ie., -A), with the caveat that it only works on uncompressed tarballs, hence the manual g(un)zipping.
|
![]() |
![]() |
![]() |
#233 |
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.10.1 (which will be included in the next release of the patches).
This release is a refactor of the kobopatch command, along with other improvements: - More readable logs - Nicer output during patching - Faster - Patch testing is now integrated (with the -t flag) - Can now use testdata (a tarball with nickel, libnickel, etc) from kobopatch-patches as the input firmware - Legacy transitional stuff has been removed |
![]() |
![]() |
![]() |
#234 |
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
|
![]() Acknowledgment and marginal/collateral questions Code:
$ ./kobopatch.sh kobopatch v0.10.1 https://github.com/geek1011/kobopatch Loading configuration from kobopatch.yaml Error: could not load config file: error reading kobopatch.yaml: yaml: unmarshal errors: line 186: key "src/fonts/IBMPlexMono-Regular.ttf" already set in map Code:
src/fonts/IBMPlexMono-Regular.ttf: mnt/onboard/fonts/IBMPlexMono-Regular.ttf src/fonts/IBMPlexMono-Regular.ttf: mnt/onboard/adds./koreader/fonts/ibm/IBMPlexMono-Regular.ttf What is the reason because a file can't copy twice? What is the reason because cssextract only apply to zlib? Good luck. |
![]() |
![]() |
![]() |
#235 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
There are a few ways I could solve this. The first (backwards-compatible) way is to support using a list of files as the target as well as a single file. The second (non backwards-compatible) way is to switch the sides around. The third (hacky) way I could do it is to allow adding an ignored character to the end of the file name to make it unique. Which way do you think would be best? As for cssextract, I just haven't implemented non-zlib extraction yet, as I haven't needed it. If you want, I could implement it sometime in the next 2 weeks. |
|
![]() |
![]() |
![]() |
#236 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
The first approach seems both more elegant, more practical, and is backwards-compatible to boot
![]() |
![]() |
![]() |
![]() |
#237 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
I have now implemented multiple destinations for additional files and released it in kobopatch v0.10.2 (and kobopatch-patches v22).
You can now do things like: Code:
files: src/whatever.txt: usr/local/whatever.txt src/fonts/IBMPlexMono-Regular.ttf: - mnt/onboard/fonts/IBMPlexMono-Regular.ttf - mnt/onboard/.adds/koreader/fonts/ibm/IBMPlexMono-Regular.ttf Last edited by geek1011; 11-04-2018 at 07:28 PM. |
![]() |
![]() |
![]() |
#238 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,581
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you, I'm sure I'll find some case I can use it
![]() |
![]() |
![]() |
![]() |
#239 | ||
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
|
Quote:
Quote:
![]() I'm agree with NiLuJe. As for cssextract, it was just curiosity, not a really need. Good luck. |
||
![]() |
![]() |
![]() |
#240 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
No problem! Tell me if there are any other features you would like.
|
![]() |
![]() |
![]() |
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 |