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 04-28-2018, 06:06 PM   #46
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by geek1011 View Post
As for the extra dot, that does not make a difference in the extraction, as it means the current directory. If it bothers you, I can remove it though.
But would it have fouled up my Kobo if I'd actually copied it over to install the patches? I don't have the skills to rebuild a bricked device from an SD image.

I guess I'm saying 'it bothers me' - unless enough knowledgeable people (excluding yourself) tell me to stop worrying
jackie_w is offline   Reply With Quote
Old 04-28-2018, 06:09 PM   #47
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,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jackie_w View Post
But would it have fouled up my Kobo if I'd actually copied it over to install the patches? I don't have the skills to rebuild a bricked device from an SD image.

I guess I'm saying 'it bothers me' - unless enough knowledgeable people (excluding yourself) tell me to stop worrying
It will not foul up your kobo (because the official update tgz uses the dot too, and even if it didn't, the worst it could do is create a whole bunch of useless files in a dir named .), but I still would not recommend trying it right now, as I'm still having issues with consistency of the generated tgz.
geek1011 is offline   Reply With Quote
Advert
Old 04-28-2018, 06:15 PM   #48
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,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jackie_w View Post
Here's my patched KoboRoot.tgz The file was too big to be renamed as a .txt for MR so I've renamed it as a .zip
OK. I think that confirms the issue I think oren and you are having. It is most likely to kobopatch generating a POSIX tar rather than a GNU tar. I will probably be able to fix this for the next version.
geek1011 is offline   Reply With Quote
Old 04-28-2018, 06:24 PM   #49
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by jackie_w View Post
But would it have fouled up my Kobo if I'd actually copied it over to install the patches? I don't have the skills to rebuild a bricked device from an SD image.

I guess I'm saying 'it bothers me' - unless enough knowledgeable people (excluding yourself) tell me to stop worrying
No need to worry. If you check the original kobo firmware update archives, you can see that they do have the dot folder.

Note: I refer only to the directory structure.
tshering is offline   Reply With Quote
Old 04-28-2018, 06:36 PM   #50
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by tshering View Post
No need to worry. If you check the original kobo firmware update archives, you can see that they do have the dot folder.

Note: I refer only to the directory structure.
Thank you for that. I drilled down an original kobo firmware .zip and see that the \. directory does indeed exist there as well.

I feel better now
jackie_w is offline   Reply With Quote
Advert
Old 04-29-2018, 02:46 AM   #51
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 geek1011 View Post
I've implemented a new instruction for the new patch format: FindReplaceString.

An example:
Instead of:
Code:
- FindBaseAddress: "ReadingFooter {\n  qproperty-footerMargin: 105;\n}\n"
- ReplaceString: {Offset: 0x0, Find: "ReadingFooter {\n  qproperty-footerMargin: 105;\n}\n", Replace: "ReadingFooter {min-height:15px;max-height:15px;}\n"}
You can do:
Code:
- FindReplaceString: {Find: "ReadingFooter {\n  qproperty-footerMargin: 105;\n}\n", Replace: "ReadingFooter {min-height:15px;max-height:15px;}\n"}
Sounds good to me, thanks!
dmapr is offline   Reply With Quote
Old 04-29-2018, 03:57 AM   #52
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
Quote:
Originally Posted by geek1011 View Post
I think there were two issues. One is the one I mentioned above, and the other is due to the way I save the output (there may be a race condition).

Can you and jackie_w post the patched KoboRoot.tgz itself so I can try a few things with it (just add .txt to the file extension so you can upload it)?
Okay I will wait until you fix it.

One thing I really like about this patcher is the ability to fold the patches, so I can fold all patches and see them in a small section.
Can you make the "- Enabled: yes/no" visible when I fold the patches.

Also can you add a feature to keep the "- Enabled: yes/no" of patches in a configuration file so when there is a new firmware it will take enabled status from the conf file.
Somthing like:

Code:
[conf]
read = yes

[libnickel.so.1.0.0.yaml]
My 10 line spacing values = no
My 24 line spacing values = yes
Custom left & right margins = yes
...
[nickel.yaml]
Disable reading footer = yes
...

Last edited by oren64; 04-29-2018 at 05:12 AM.
oren64 is offline   Reply With Quote
Old 04-29-2018, 04:36 AM   #53
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,637
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by oren64 View Post
Also can you add a feature to keep the "- Enabled: yes/no" of patches in a configuration file so when there is a new firmware it will take enabled status from the conf file.
I think this would be a very useful addition for every user, not only the patch creators.
Terisa de morgan is offline   Reply With Quote
Old 04-29-2018, 01:29 PM   #54
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,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by oren64 View Post
Okay I will wait until you fix it.

One thing I really like about this patcher is the ability to fold the patches, so I can fold all patches and see them in a small section.
Can you make the "- Enabled: yes/no" visible when I fold the patches.

Also can you add a feature to keep the "- Enabled: yes/no" of patches in a configuration file so when there is a new firmware it will take enabled status from the conf file.
Somthing like:

Code:
[conf]
read = yes

[libnickel.so.1.0.0.yaml]
My 10 line spacing values = no
My 24 line spacing values = yes
Custom left & right margins = yes
...
[nickel.yaml]
Disable reading footer = yes
...
It folds because your code editor supports YAML. I cannot control how it folds though, but I can move the enabled/disabled into a separate file. I will probably do this by having an optional override file so it isn't confusing for users who don't know about it.

As for fixing it, I'll release a fixed version once I have enough info, and once it works, I'll probably take a break for a week or so (I've been quite busy with all the recent kobo stuff like the new hardware, the changes in update URLS for kobo7 devices, kepubify improvements, and this patch tool).

Can you upload your corrupted KoboRoot.tgz (the original file itself, not the contents) so I can inspect it?
geek1011 is offline   Reply With Quote
Old 04-29-2018, 01:46 PM   #55
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
Quote:
Can you upload your corrupted KoboRoot.tgz (the original file itself, not the contents) so I can inspect it?
https://drive.google.com/file/d/1oVz...ew?usp=sharing
oren64 is offline   Reply With Quote
Old 04-29-2018, 02:06 PM   #56
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,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by oren64 View Post
It seems to be OK. Even Google Drive has all 4 files. I'm going to upload a new release which uses GNU-style TARs instead of POSIX ones. It should fix your issue.
geek1011 is offline   Reply With Quote
Old 04-29-2018, 02:14 PM   #57
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,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Here it is: https://github.com/geek1011/kobopatc...ses/tag/v0.5.1 . Please try it and tell me whether the tgz is still corrupted.
geek1011 is offline   Reply With Quote
Old 04-29-2018, 02:31 PM   #58
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
Same thing, the WinRar only show two files and the KoboRoot.tgz file have different file size every run.
oren64 is offline   Reply With Quote
Old 04-29-2018, 02:44 PM   #59
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,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by oren64 View Post
Same thing, the WinRar only show two files and the KoboRoot.tgz file have different file size every run.
OK. I'm going to see if I can figure out why this is happening only on Windows. Which Windows version do you use (so I can test it)?
geek1011 is offline   Reply With Quote
Old 04-29-2018, 02:46 PM   #60
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
Quote:
Originally Posted by geek1011 View Post
OK. I'm going to see if I can figure out why this is happening only on Windows. Which Windows version do you use (so I can test it)?

Windows 10 64bit.
oren64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo [WIP] Port of Kindle Paperwhite OS giorgio130 Kobo Developer's Corner 59 04-26-2016 08:25 AM
Android [WIP] Overclocking the PE plasticarmyman enTourage eDGe 16 06-11-2012 07:08 PM
Seriously thoughtful I always knew Windows was a WIP GeoffC Lounge 4 02-06-2010 02:20 AM
Thirty - WIP - comments wanted ravenlife Writers' Corner 20 08-16-2009 12:10 PM
Opinions needed on a WIP ebook Nate the great Workshop 5 07-15-2009 11:38 AM


All times are GMT -4. The time now is 12:14 AM.


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