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 09-01-2018, 10:51 AM   #226
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
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!
dmapr is offline   Reply With Quote
Old 09-01-2018, 11:34 AM   #227
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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 ) was that it was a job best left to a wrapper script.

And, indeed, I did just that, and learned in the process that GNU tar has a concatenate option that does just what we need .
NiLuJe is offline   Reply With Quote
Advert
Old 09-01-2018, 12:48 PM   #228
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
Quote:
Originally Posted by NiLuJe View Post
@dmapr: I raised the same question a while ago, and the conclusion (on both ends ) was that it was a job best left to a wrapper script.

And, indeed, I did just that, and learned in the process that GNU tar has a concatenate option that does just what we need .
Thanks a lot!
A really useful wrapper. I don't knew about the concatenate option.
boriar is offline   Reply With Quote
Old 09-01-2018, 09:42 PM   #229
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Quote:
Originally Posted by NiLuJe View Post
@dmapr: I raised the same question a while ago, and the conclusion (on both ends ) was that it was a job best left to a wrapper script.

And, indeed, I did just that, and learned in the process that GNU tar has a concatenate option that does just what we need .
Awesome, thanks!
dmapr is offline   Reply With Quote
Old 09-03-2018, 07:27 AM   #230
Dirk-71
Zealot
Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.
 
Posts: 146
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One
Quote:
Originally Posted by NiLuJe View Post
@dmapr: I raised the same question a while ago, and the conclusion (on both ends ) was that it was a job best left to a wrapper script.

And, indeed, I did just that, and learned in the process that GNU tar has a concatenate option that does just what we need .
I guess this is stuff for developers? I don't understand anything. If this could be useful information for novice's as well, I am interested to learn more about it in a practical way.

Gesendet von meinem SM-G930F mit Tapatalk
Dirk-71 is offline   Reply With Quote
Advert
Old 09-03-2018, 05:07 PM   #231
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
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.
jcn363 is offline   Reply With Quote
Old 09-03-2018, 07:49 PM   #232
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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.
NiLuJe is offline   Reply With Quote
Old 11-03-2018, 05:38 PM   #233
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,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
geek1011 is offline   Reply With Quote
Old 11-04-2018, 10:34 AM   #234
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
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
obviously I've two lines that try to copy the same file to two different folder.
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
I don't think this could be consider an error, but...
What is the reason because a file can't copy twice?
What is the reason because cssextract only apply to zlib?
Good luck.
jcn363 is offline   Reply With Quote
Old 11-04-2018, 05:49 PM   #235
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,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jcn363 View Post
What is the reason because a file can't copy twice?
What is the reason because cssextract only apply to zlib?
For the file copying, that was an oversight. I wanted to keep the same format as for the patches (source on left, dest on right), and I couldn't imagine a situation where someone may need to copy a file to two different places.

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.
geek1011 is offline   Reply With Quote
Old 11-04-2018, 06:10 PM   #236
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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 .
NiLuJe is offline   Reply With Quote
Old 11-04-2018, 07:19 PM   #237
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,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
P.S. An example of the nicer log format introduced in v0.10.1 is here: https://linx.geek1011.net/lxhlcvbl.txt

Last edited by geek1011; 11-04-2018 at 07:28 PM.
geek1011 is offline   Reply With Quote
Old 11-05-2018, 12:21 AM   #238
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
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
Terisa de morgan is offline   Reply With Quote
Old 11-05-2018, 03:00 AM   #239
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
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:
Originally Posted by geek1011 View Post
For the file copying, that was an oversight. I wanted to keep the same format as for the patches (source on left, dest on right), and I couldn't imagine a situation where someone may need to copy a file to two different places.

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.
Quote:
Originally Posted by NiLuJe View Post
The first approach seems both more elegant, more practical, and is backwards-compatible to boot .

I'm agree with NiLuJe.
As for cssextract, it was just curiosity, not a really need.
Good luck.
jcn363 is offline   Reply With Quote
Old 11-05-2018, 07:27 AM   #240
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,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.
geek1011 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 01:55 PM.


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