Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Here are some patches for firmware 3.1.0 (d1b2f00933), tested on my Glo. Since libnickel.so.1.0.0 is the same in both the mark4 and mark5 archives, these patches should work on Glo/Aura HD/Aura and whichever other devices can run the mark4 or mark5 firmware.
Here are the normal line spacing, font size, margins, and page breaks patches:
Spoiler:
Code:
# Firmware 3.1.0 (d1b2f00933)
<Patch>
patch_name = `My line spacing values`
patch_enable = `yes`
# Bypass code-injected values 1.0, 1.2, 1.5, 2.0, 3.0
replace_bytes = 73FA06, 35 F6 BC EB, 00 46 00 46
replace_bytes = 73FA54, 35 F6 94 EB, 00 46 00 46
replace_bytes = 73FA7A, 35 F6 82 EB, 00 46 00 46
replace_bytes = 73FAB0, 35 F6 66 EB, 00 46 00 46
replace_bytes = 73FB0C, 35 F6 38 EB, 00 46 00 46
# Other values for replace
replace_float = 73FB50, 1.05, 0.765
replace_float = 73FB58, 1.07, 0.795
replace_float = 73FB60, 1.1, 0.83
replace_float = 73FB68, 1.35, 0.865
replace_float = 73FB70, 1.7, 0.905
replace_float = 73FB78, 1.8, 0.95
replace_float = 73FB80, 2.2, 1.0
replace_float = 73FB88, 2.4, 1.05
replace_float = 73FB90, 2.6, 1.1
replace_float = 73FB98, 2.8, 1.25
</Patch>
<Patch>
patch_name = `Custom fonts sizes`
patch_enable = `yes`
# Values for replace
replace_int = 1157928, 12, 16
replace_int = 115792C, 14, 20
replace_int = 1157930, 16, 22
replace_int = 1157934, 17, 24
replace_int = 1157938, 18, 25
replace_int = 115793C, 19, 26
replace_int = 1157940, 20, 27
replace_int = 1157944, 21, 28
replace_int = 1157948, 22, 29
replace_int = 115794C, 24, 30
replace_int = 1157950, 25, 31
replace_int = 1157954, 26, 32
replace_int = 1157958, 28, 33
replace_int = 115795C, 32, 34
replace_int = 1157960, 36, 35
replace_int = 1157964, 40, 36
replace_int = 1157968, 44, 37
replace_int = 115796C, 46, 38
replace_int = 1157970, 48, 39
replace_int = 1157974, 50, 40
replace_int = 1157978, 52, 42
replace_int = 115797C, 54, 44
replace_int = 1157980, 56, 48
replace_int = 1157984, 58, 52
</Patch>
<Patch>
patch_name = `Custom left & right margins`
patch_enable = `yes`
# Values for replace
replace_int = 13EF57C, 02, 01
replace_int = 13EF580, 04, 02
replace_int = 13EF584, 06, 03
replace_int = 13EF588, 08, 04
replace_int = 13EF58C, 10, 05
replace_int = 13EF590, 12, 06
replace_int = 13EF594, 14, 07
replace_int = 13EF598, 16, 08
</Patch>
<Patch>
patch_name = `Fix page breaks bug`
patch_enable = `yes`
replace_bytes = DE6576, E8 D0, E8 E7
#Alternative method
#replace_bytes = DE6576, E8 D0, 00 46
</Patch>
This is an alternative for the line spacing patch which allows an extra 4 line spacing values:
Spoiler:
Code:
# Firmware 3.1.0 (d1b2f00933)
<Patch>
patch_name = `My 14 line spacing values`
patch_enable = `yes`
# Bypass code-injected values 1.0, 1.2, 1.5, 2.0, 3.0
#replace_bytes = 73FA06, 35 F6 BC EB, 00 46 00 46
#replace_bytes = 73FA54, 35 F6 94 EB, 00 46 00 46
#replace_bytes = 73FA7A, 35 F6 82 EB, 00 46 00 46
replace_bytes = 73FAB0, 35 F6 66 EB, 00 46 00 46
#replace_bytes = 73FB0C, 35 F6 38 EB, 00 46 00 46
# Table A
# E0 = 0.50, E1 = 0.53125, E2 = 0.5625, E3 = 0.59375
# E4 = 0.625, E5 = 0.65625, E6 = 0.6875, E7 = 0.71875
# E8 = 0.75, E9 = 0.78125, EA = 0.8125, EB = 0.84375
# EC = 0.875, ED = 0.90625, EE = 0.9375, EF = 0.96875
# F0 = 1.0, F1 = 1.0625, F2 = 1.125, F3 = 1.1875
# F4 = 1.25, F5 = 1.3125, F6 = 1.375, F7 = 1.4375
# F8 = 1.5 ...
#
# Table B ... E7=0.725
# E8 = 0.75625, E9 = 0.7875, EA = 0.81875, EB = 0.85
# EC = 0.88125, ED = 0.9125, EE = 0.94375, EF = 0.975
# F0 = 1.0125, F1 = 1.075, F2 = 1.1375, F3 = 1.2
# F4 = 1.2625 F5 = 1.325 F6 = 1.3875, F7 = 1.45
# F8 = 1.5125 ...
# First code-injected value 1.0
# Replace byte with a value from table A:
replace_bytes = 73F9FA, F0, E8
# Second code-injected value 1.2
# Replace byte with a value from table B:
replace_bytes = 73FA4A, F3, EB
# Third code-injected value 1.5
# Replace byte with a value from table A:
replace_bytes = 73FA70, F8, ED
# Last code-injected value 3.0
# Select Table A:
replace_bytes = 73FB00, C4 F2, C3 F6
replace_bytes = 73FB03, 03, 73
# Replace byte with a value from table A.
replace_bytes = 73FB02, 08, F4
# Other values for replace
# 1.0 0.75
replace_float = 73FB50, 1.05, 0.765
replace_float = 73FB58, 1.07, 0.795
replace_float = 73FB60, 1.1, 0.83
# 1.2 0.85
replace_float = 73FB68, 1.35, 0.865
# 1.5 0.90625
replace_float = 73FB70, 1.7, 0.925
replace_float = 73FB78, 1.8, 0.95
# 2.0 ----
replace_float = 73FB80, 2.2, 1.0
replace_float = 73FB88, 2.4, 1.05
replace_float = 73FB90, 2.6, 1.1
replace_float = 73FB98, 2.8, 1.175
# 3.0 1.25
</Patch>
and the bug that causes a redundant cover image to be downloaded/generated is still present in this firmware, so here is a patch to fix it:
|