02-03-2012, 03:44 AM | #16 | |
Member
Posts: 18
Karma: 15762
Join Date: Jan 2012
Device: Boyue Likebook Mars
|
Quote:
If you are rooted, you also can simply use the Root Explorer supplied to remount the partition where your app access the fonts (button at the top). But if the app is clever enough, you wouldn't even need it, it would remount without you having to do it. |
|
02-03-2012, 10:36 AM | #17 |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
The fonts partition is CRAMFS, it cannot be remounted for RW. It has nothing to do with any "NAND locks". The CRAMFS partitions can only be fully reprogrammed/reflashed.
|
02-03-2012, 01:51 PM | #18 | ||
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
To mount any partition in read-write mode: mount -o remount,rw device mountpoint
i.e., 'system' filesystem: Code:
mount -o remount,rw /dev/block/mmcblk2p10 /system
Code:
mount -o remount,rw rootfs /
Quote:
PRS T1 is NAND 'unlocked' by default. AFAIK 'NAND unlock' and 'S-OFF' has nothing to do with 'FULL ROOT'... besides, you have 'full root' now. Quote:
As porkupan has told you: He has also given to you (somewhere, I can't remember where just now) the full explanation of this solution, and one other option, i.e., to bind mount the font folder with some other folder containing your desired fonts. |
||
02-04-2012, 01:09 AM | #19 | |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Quote:
I read there that mount -bind method to overwrite the system is not reliable method, the post said it need some apk to be installed to remount every time a device is restarted. That's why I've decided to go with modifying cramfs file for system fonts. I'm trying to implement 1st option. 1st thing I need to do is to get fonts cramfs file to external microSD to transfer it later to PC to modify it. I've made the following: Entered into recovery mode by using the app "@Test Mode" Then, started Terminal emulator and typed the command dd if=/dev/mmcblk2p5 of=/mnt/sd/mmcblk2p5_fonts.img the result was dev/mmcblk2p5: cannot open for read: No such file or directory Apparently my device path is different ?! Last edited by giosa; 02-04-2012 at 01:12 AM. |
|
02-04-2012, 02:27 AM | #20 |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
I looked and could not find mmcblk2p5 on /dev directory of my PRSt=T1?
|
02-04-2012, 03:17 AM | #21 | |
Wannabe Connoisseur
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Please be aware that you're playing around at a very low level on your T1. Be prepared for the possibility that you may brick your device. I can't find the thread with a quick look, but I think someone else on this forum overwrote the bootloader so that even the recovery flash image no longer worked. Cheers, Simon. |
|
02-04-2012, 08:32 AM | #22 | |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Quote:
Thanks Simon for your dedication. |
|
02-04-2012, 09:37 AM | #23 |
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
giosa,
Please, try this (while booted in 'normal mode'): Code:
dd if=/dev/block/mmcblk2p5 of=/cache/fonts.img Then you can use the cramfs tools to play a bit with the fonts image (to learn only, or to extract it somewhere)... Anyway, I think its a better and sure approach to bind mount a modified copy of /ebook/fonts folder... It's not automatic, but if it works right you can automate it by adding the bind mount command to one of the scripts that are already executed at boot time... As Boroda has told you, it's always better to try the manual proccess first and then (if you obtain the desired result), try to find a way to automate it... I can also tell you that it's possible. Last edited by j0534ng31; 02-04-2012 at 09:39 AM. |
02-04-2012, 11:07 AM | #24 | ||||
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Quote:
Quote:
Quote:
Quote:
|
||||
02-04-2012, 12:19 PM | #25 |
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
Exactly the same contents as in /ebook/fonts folder... Not a big surprise.
Yes, I mean that you can try to bind mount it manually, just to see if it works the way you expect to... After that, we'll see what's the best method to automate the bind mount proccess. I'm sorry!... English, obviously, is not my native language Last edited by j0534ng31; 02-04-2012 at 12:29 PM. |
02-04-2012, 02:30 PM | #26 | ||
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Quote:
Quote:
Let me share what I've done so far. 1. I've got mmcblk2p5_fonts.img to my PC. it was about 16MB. 2. I've upacked it with cramfsck and as you said it extracted /book/fonts content. I've renamed my font file to DroidSansFallback.ttf original DroidSansFallback was about 3.4MB (btw when I tried to view it in windows fonts view it said not valid font file, others opened OK) and replaced the original with it. 3. Then I repacked the folder with fonts back to mmcblk2p5_fonts.img Original img was 16MB now it's 10MB So it looks like it's ready to be written back to PRS T1, but I think there's high risk to brick the device. which is you're mother language? |
||
02-05-2012, 01:19 AM | #27 | ||
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
Quote:
I'm not trying to be rude, but I mean, you don't seem to fully understand the procedure nor to be capable by yourself to imagine how to do this (quite easy) task... (You've asked for help to porkupan/boroda here and at the-ebook.org, snarkophilus at the other thread,...) And you should know how to do it, what are the risks of each option and how to be prepared to solve the posible problems. However, you say that you are sure you are going to use the cramfs method... of course, the dangerous one... After the dangerous one goes wrong then... perhaps you'll have a bricked T1 and there will be no 'after'... Do you understand what I'm trying to tell you? You seem to be so resolved to change those fonts, that you are risking your T1... I think it's better to learn first and, then, make so much adjustments as you want... The cramfs method is a bit risky, but with your little 10MB font image there is 'almost' no risk... However, the bind mount method has NO risk at all (if something goes wrong, you only have to reboot), it can be used to learn how the T1 fonts work and it's an easy and painless way to try a big amount of fonts... At least, you should act on Boroda advice and learn how to boot in recovery mode with 'serial gadget console' enabled. So, if something goes wrong, you'll be capable to overwrite 'p5' with the original one. Quote:
Be lucky! I'm spanish |
||
02-05-2012, 09:12 AM | #28 | |||||||||
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
No, I'm not gonna do it till I'm sure what I'm doing. I'm happy going mount bind route, if you don't mind giving me detailed enough guide so I can follow it.
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
1. Find out for sure, exactly which font(s) I need to substitute with my font (renamed as originals to replace) 2. Write modified mmcblk2p5.img back to PRS T1 I don't know how to go about these two things. Quote:
Quote:
Quote:
I'm unfortunately I can't speak Spanish, I do Russian though. I'm Georgian. |
|||||||||
02-05-2012, 01:36 PM | #29 |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
@j0534ng31
An example that will work, root required 1.Rename any of your favorite fonts set(a fonts set contains four fonts, normally regular,bold,italic,bolditalic to "VerdanaW1G.otf, VerdanaW1G-Bold.otf, VerdanaW1G-BoldItalic.otf, VerdanaW1G-Italic.otf" (your fonts can be either "ttf" or "otf", but you must rename them as the name listed above) 2.Copy all the fonts in /ebook/fonts/ to /sdcard/fonts/, then copy your renamed fonts in step1 to /sdcard/fonts/, so the orginal VerdanaW1G fonts will be replaced. 3. in terminal, type: mount -o bind /sdcard/fonts/ /ebook/fonts/ 4. then in sony reader, select the font type "Vendana" Note: After you binded /sdcard/fonts/ to /ebook/fonts/, if connect to the PC via usb&data transfer mode, this mothod will not work untill you disconnect the usb. And, if you reboot your T1, the bind will also disappear, so I recommend to use GScript.apk to run this command easily once after the T1 was boot up. -------------------------------------------------------------------------- Do you mean this method? if so I doubt it will solve my problem, because it doesn't seem to deal with book titles, TOC, bookmarks etc. it only helps change fonts in reader, am I wrong? |
02-05-2012, 06:47 PM | #30 | ||||
Connoisseur
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
Yes, I suppose it should work, at least it's almost the same way I'll do it.
Quote:
I mean, I suppose font file names must be renamed as "font_name"/"font_name-Regular", "font_name-Bold", "font_name-BoldItalic", "font_name-Italic" (always ended in .ttf or .otf) But I don't know for sure if/why our new font name must replace an existing one. Quote:
This script should be automatically executed at boot time. Quote:
I suppose:
I bet for 'tt0003m_.ttf' as menu font, and the font collection 'SWNMTeb.ttc' as the dictionary fonts EDITED: Some info I've found in a guide: Quote:
About the way to write the modified cramfs, I'd boot in 'recovery mode', then I'd mount the sdcard filesystem to /mnt/sdcard or /tmp/sdcard, and then: Code:
dd if=/mnt/sdcard/mynewfonts.img of=/dev/mmcblk2p5 Last edited by j0534ng31; 02-05-2012 at 09:02 PM. |
||||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
friend needs some help with adb | emusan | enTourage Archive | 2 | 05-27-2011 01:00 PM |
Curiosity ? What is ADB and why do I need it? | Sethman | Nook Developer's Corner | 3 | 02-05-2011 03:44 PM |
adb is not recognized | jyl | Nook Developer's Corner | 3 | 01-18-2011 09:49 AM |
Help with adb | Thibor | Nook Developer's Corner | 5 | 12-05-2010 07:22 AM |
Classic Using Adb | rdfry | Barnes & Noble NOOK | 5 | 02-27-2010 08:19 PM |