10-23-2006, 11:46 PM | #16 | |
Addict
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
|
Photoshop ???
Quote:
|
|
10-24-2006, 09:50 AM | #17 | |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Quote:
A question to igorsk. I see that you made a function cksum2() in the ebook.py, but you still call cksum(), which in turn calls the standard unix/linux/cygwin cksum to calculate the CRC. Does cksum2() work, as far as you know? If it doesn't, you may want to pack cksum.exe and cygwin DLLs with ebook.py. I haven't had time to check it out last night - was so excited about the process (to be described later on the Russian E-Book forums with full credit to you) working. Last edited by porkupan; 10-24-2006 at 09:54 AM. |
|
Advert | |
|
10-24-2006, 09:52 AM | #18 | |
Addict
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
|
Quote:
|
|
10-24-2006, 10:04 AM | #19 | |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Quote:
Anyway, cksum2() is way way too slow. The first time I tried uploading the new fs I left it running overnight and in the morning there was still no progress. I was already thinking that I bricked the unit, but after I stopped the script and tried the ls command, it worked just fine. Then I realized that I didn't see the actual upload request in the log - it was calculating the checksum the whole night! So I quickly rewrote it using chksum.exe and the next time the upload was finished in under a minute. Maybe I will make a binary module for calculating it... there is already python-fchksum but it's unix-only. P.S. I do read your forum, I just don't want to make yet another account for just one thread... |
|
10-24-2006, 11:45 AM | #20 |
Gizmologist
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
Any chance of getting a simple tool-kit or executable type approach that would allow adding fonts for the less technically agile user?
|
Advert | |
|
10-24-2006, 11:48 AM | #21 | |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Quote:
|
|
10-24-2006, 11:54 AM | #22 | |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Quote:
|
|
10-24-2006, 12:01 PM | #23 |
Uebermensch
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
Someone (boroda, is that you, porkupan?) has published the updated instruction on Russian the-ebook.org. Of course I don't understand a single word. Someone care to translate?
Итак, описываю последовательность своих действий. 0. Прочитал и внимательно ознакомился с инструкциями Игоря Ск. (Mobileread's igorsk) по модификации Rootfs, скачал cramfs-tools.zip. 1. Выяснил размер файл-системы в partition Fsk. Для этого сначала слил 0х100 байт из /dev/mtd14 (./ebook.py get /dev/mtd14 0x100) и посмотрел значение второго 32-битного слова: 0x40A000 - это и есть размер файловой системы в partition Fsk. 2. Слил всю файл-систему из Fsk (она же /dev/mtd14, mounted on /opt) единым файлом: $ ./ebook.py get /dev/mtd14 0x40A000 3. Разобрал полученный файл командой cramfsck (если вы залили в директорию, в которой вы оперируете, присоединенные Игорем Ск. к cramfs-tools.zip Cygwin DLLs, то вам не нужно все это делать в окне cygwin, можно просто в досовской командной строке. Сам я все делал под cygwin, но это в принципе не обязательно): $ ./cramfsck.exe -v -x opt -d opt.dt mtd14 4. Для страховки собрал директорию обратно в единый файл и удостоверился, что MD5 чексам такая же, как у оригинала. $ md5sum mtd14 12e8e500e0dac98f9cd89650c0510d85 *mtd14 $ ./mkcramfs -D opt.dt opt opt.fs $ md5sum opt.fs 12e8e500e0dac98f9cd89650c0510d85 *opt.fs 5. Скопировал заранее приготовленные шрифты в директорию ./opt/sony/ebook/FONT 6. Собрал crams image командой mkcramfs $ ./mkcramfs -D opt.dt opt opt.fs Если кому-то лень самому заливать, корректировать и собирать имидж, вы можете его скачать отсюда, пока Сергей не удалил. 7. Перевел ебуку в режим recovery. $ ./ebook.py um recovery Ридер перегрузился и приготовился получать "updates" 8. Попытался залить opt.fs: $ ./ebook.py pwrite "Fsk" opt.fs Поскольку эту процедуру я попытался выполнить в командной строке "ДОСа", выяснилось, что необходима команда cksum (cygwin'овский экзешник может быть добавлен в местную директорию, и будет работать, если вы залили все DLLs из cramfs-tools.zip). Когда разобрался с cksum, апдэйт файл-системы в партишн Fsk был проведен успешно. 9. Перевел Ридер в normal mode. $ ./ebook.py um normal программка немного ругнулась, но ебука перегрузилась и после некоторого ожидания на экране появился кружок из стрелочек, который символизирует перезагрузку контента. Кружок этот оставался на экране значительно дольше, чем обычно, и я уже начал было нервничать, но вдруг на экране появилось родное Ридеровское меню, в котором присутствовали теперь и буквы на родном языке. 10. Вот, собственно и все. Попробовал RTF - работает. Текстовый либриенный LRF еще не пробовал, попробую вечером. Не вижу причин, почему он не должен работать. Похоже, Ридер требует называть файлы исключительно латиницей (попытка загрузить на SD карту файл, названный русскими буквами - Бонч-Бруевич.rtf, окончилась неуспехом, пришлось переименовать в Bonch-Bruevich.rtf). Шрифты Dutch801 BT и Swis721 BT с полным набором уникодов я нашел на интернете, курьер переписал с начала и до кириллицы на Courier New Bold (читается вполне нормально, но я все-таки пожалуй перепишу его каким-нибудь более приятным моноспэйсным шрифтом, если не удастся найти Courier10 BT с кириллицей). Добавлять другие шрифты я не пытался. Если вы скачаете мой имидж, то можете разобрать его, и переписать шрифты или попробовать скорректировать их. Рендерингом Dutch кириллицы в RTF файле я остался не очень доволем (см. картинку выше). Буду очень рад, если кто-нибудь сможет помочь со шрифтами. |
10-24-2006, 12:15 PM | #24 | |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Quote:
Not sure there is any value in translating the above Russian text into English. I basically reitereated in Russian the info in igorsk's readme files and the Sony Reader hacking Wiki. The sole purpose of the excersize was adding the Cyrillic support to the Reader's fonts. I did provide the link to my modified image of the Fsk (/opt) filesystem with the new fonts already built-in. I didn't uncover any new info, and I didn't find any problems with the process, described by igorsk. I was working in a cygwin environment, but all of this could be done in "DOS" Command Line window with just a bit of investigative effort. If you have the ready image, and you don't wish to unassemble and reassemble it to add or remove your own stuff, you will not really need cygwin libraries and/or environment (get the cksum.exe too). |
|
10-24-2006, 12:46 PM | #25 | |
Gizmologist
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
Quote:
|
|
10-24-2006, 01:16 PM | #26 |
Enthusiast
Posts: 37
Karma: 14
Join Date: Oct 2006
|
I for one can't wait for this... Having to use pdf for Japanese fonts is quite a bother :s.
|
10-24-2006, 03:04 PM | #27 | |
your neighbor
Posts: 20
Karma: 10
Join Date: Sep 2006
Device: PRS-500 lost (if you found it, I hope you enjoy it); DX on preorder
|
Quote:
|
|
10-24-2006, 04:08 PM | #28 | ||
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
|
Quote:
Quote:
|
||
10-24-2006, 04:23 PM | #29 | |
Guru
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
|
Quote:
|
|
10-24-2006, 07:29 PM | #30 | |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hello from Pixie's briar patch! | sweetPixiesmile | Introduce Yourself | 10 | 08-08-2010 08:33 PM |
1.7.1 Patch Released | curbarthedog | iRex | 22 | 11-18-2009 02:03 PM |
Latest MobiDeDRM Patch | pdurrant | Kindle Formats | 65 | 08-09-2009 03:02 PM |
New patch: 2.9.1 | vranghel | iRex | 10 | 03-16-2007 04:51 AM |
MSBlaster patch | emale07 | Lounge | 0 | 08-13-2003 11:17 AM |