View Single Post
Old 08-17-2019, 06:22 PM   #101
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,022
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Maillemom View Post
Good afternoon - I am so sorry to bother everyone on a weekend but I am stumped once again. I feel that I am so close.

I added the log below but can't find where the missing : should be.

Any help is much appreciated.
Trice


Spoiler:
kobopatch cfae583
https://github.com/geek1011/kobopatch



KoboPatch::LoadConfig
reading config file from *os.File
unmarshaling yaml
| {
| "Version": "4.15.12920",
| "In": "src/kobo-update-4.15.12920.zip",
| "Out": "out/KoboRoot.tgz",
| "Log": "out/log.txt",
| "PatchFormat": "kobopatch",
| "Patches": {
| "src/libadobe.so.yaml": "usr/local/Kobo/libadobe.so",
| "src/libnickel.so.1.0.0.yaml": "usr/local/Kobo/libnickel.so.1.0.0",
| "src/librmsdk.so.1.0.0.yaml": "usr/local/Kobo/librmsdk.so.1.0.0",
| "src/nickel.yaml": "usr/local/Kobo/nickel"
| },
| "Overrides": {
| "src/libadobe.so.yaml": null,
| "src/libnickel.so.1.0.0.yaml": null,
| "src/librmsdk.so.1.0.0.yaml": null,
| "src/nickel.yaml": null
| },
| "Lrelease": "",
| "Translations": null,
| "Files": null
| }


KoboPatch::OutputInit


KoboPatch::ApplyPatches
KoboPatch:penIn
Opening firmware zip 'src/kobo-update-4.15.12920.zip'
Looking for KoboRoot.tgz in zip
--> found KoboRoot.tgz
--> opening KoboRoot.tgz
Opening gzip reader
Creating tar reader
patching entry name:'./usr/local/Kobo/libnickel.so.1.0.0' size:16225956 mode:'509' typeflag:'48' with files: src/libnickel.so.1.0.0.yaml
reading entry contents
loading patch file 'src/libnickel.so.1.0.0.yaml' (detected format kobopatch)
| parsing patch file: unmarshaling to map[string]yaml.Node
--> could not parse patch file: yaml: line 323: did not find expected key
Hmmm... in my patch file, that would appear to be the Custom left & right margins patch at point where the comment about 9 values for replacement exists.

Code:
Custom left & right margins:
  - Enabled: yes
  - Description: |
      This patch sets the size of the margins added by the margins
      adjustment slider, as a percentage of screen width.
  - FindBaseAddressString: "\0\0\0\0\x02\0\0\0\x04\0\0\0\x06\0\0\0\x08\0\0\0\x0A\0\0\0\x0C\0\0\0\x0E\0\0\0\x10\0\0\0"
  # 9 values for replacement:
  - ReplaceInt: {Offset: 0x00, Find:  0, Replace: 0}
  - ReplaceInt: {Offset: 0x04, Find:  2, Replace: 1}
  - ReplaceInt: {Offset: 0x08, Find:  4, Replace: 2}
  - ReplaceInt: {Offset: 0x0C, Find:  6, Replace: 3}
  - ReplaceInt: {Offset: 0x10, Find:  8, Replace: 4}
  - ReplaceInt: {Offset: 0x14, Find: 10, Replace: 5}
  - ReplaceInt: {Offset: 0x18, Find: 12, Replace: 6}
  - ReplaceInt: {Offset: 0x1C, Find: 14, Replace: 7}
  - ReplaceInt: {Offset: 0x20, Find: 16, Replace: 8}
By any chance did you remove the # before the '9 values for replacement:'?
DNSB is offline   Reply With Quote