Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2010, 07:57 AM   #1
robertlz
Junior Member
robertlz began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Kindle boot-up screen modification?

Hi,

I guess some of you already know bout the 'DUOKAN' system from China.

What I want to do is to change its boot-up screen. I already found the boot-up screen image file which is in raw dump format of framebuffer of kindle. There are total 600x800 4-bit HEX characters.

My question is how can I convert a picture of 600x800 to the format of raw data for framebuffer. I googled a lot and there is no direct answer. I am thinking writing a python script to do it, but to avoid unnecessary efforts, I am wondering if there is any tool which can do it.

Thanks a lot.

I attached the raw screen file.
Attached Files
File Type: bin dkswitchmenu.bin (234.4 KB, 334 views)
robertlz is offline   Reply With Quote
Old 10-29-2010, 02:00 PM   #2
r0b1n
Junior Member
r0b1n began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2010
Location: Ukraine
Device: Kindle 3 Wi-Fi
I think you can try to find "raw" plugin/converter for GIMP or Photoshop. But still little chance of finding a suitable program for these purposes...

I quick wrote dirty Python scripts for convert BIN<->BMP (gray-scale 1byte per color).






Spoiler:

bmpToBin
Code:
#!/usr/bin/python

import Image

width = 600
height = 800

bin_file = "dkswitchmenu_new.bin"

bmp_file = "image.bmp"

# open bmp
im = Image.open(bmp_file)

# open bin 
f = open(bin_file, "wb")

for i in range(240000):
    
    c1 = im.getpixel((i*2%width,i*2/width))
    c2 = im.getpixel(((i*2+1)%width,(i*2+1)/width))
    
    # to 1 byte
    r = (c2 >> 4) | c1
    
    #second - i*2+1
    f.write(chr(r))

f.close()
binToBmp
Code:
#!/usr/bin/python

import Image

width = 600
height = 800

bin_file = "dkswitchmenu.bin"
bmp_file = "image.bmp"

im = Image.new("L", (width,height))

f = open(bin_file, "rb")

for i in range(240000):
    # read from file and put into image
    
    # read 1 byte
    r = ord(f.read(1))
    c1 = (r & 0xF0) >> 4
    c2 = (r & 0x0F)
    
    # first - i*2
    im.putpixel((i*2%width,i*2/width),c1 << 4)
    
    #second - i*2+1
    
    im.putpixel((  (i*2+1)%width,(i*2+1)/width),c2 << 4)
im.save(bmp_file)
f.close()

Last edited by r0b1n; 10-29-2010 at 05:01 PM.
r0b1n is offline   Reply With Quote
Advert
Old 10-29-2010, 09:23 PM   #3
robertlz
Junior Member
robertlz began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Hi, r0b1n,

Many many thanks for your help and your time.

robertlz is offline   Reply With Quote
Old 11-06-2010, 11:06 AM   #4
meem
A Reader who can think..!
meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.meem lived happily ever after.
 
Posts: 257
Karma: 108298
Join Date: Jul 2010
Location: Earth Planet
Device: Kindle 3 WiFi - Kindle DX (B004)
Where we may put image file to replace the original ?
meem is offline   Reply With Quote
Old 11-06-2010, 03:43 PM   #5
Rinzwind
Connoisseur
Rinzwind began at the beginning.
 
Posts: 96
Karma: 16
Join Date: Oct 2010
Location: Netherlands
Device: Kindle 3G UK 3.03
Quote:
Originally Posted by meem View Post
Where we may put image file to replace the original ?
I really do not know. but as an alternative... Why not post the image on the duokan.com forums and ask them to use this when someone wants the english version of the duokan fw?
Rinzwind is offline   Reply With Quote
Advert
Old 11-07-2010, 03:08 PM   #6
512
Junior Member
512 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
hi, I've done this "beta" version of the splashscreen, feel free to try it. My kindle will arrive tomorrow, so I can't test it now.
Thanks to r0b1n for his scripts!
Attached Files
File Type: bin dkswitchmenu_new.bin (234.4 KB, 314 views)
512 is offline   Reply With Quote
Old 11-07-2010, 03:37 PM   #7
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
Quote:
Originally Posted by 512 View Post
hi, I've done this "beta" version of the splashscreen, feel free to try it. My kindle will arrive tomorrow, so I can't test it now.
Thanks to r0b1n for his scripts!
Have tested it - so it works. Had started with something, but needed some translation help, as there are several others. Google translate is not so good with images well, we will get there.
FethryDuck is offline   Reply With Quote
Old 11-08-2010, 06:17 AM   #8
512
Junior Member
512 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
ok,thank you! I'll test it as I can install duokan's...I've some problems with the installation, the splashscreen doesn't appear...I'll try to reset my kindle and then install the duokan's

If you have suggestion for improving my horrible splashscreen version (fonts, graphics and so on) please let me know!
512 is offline   Reply With Quote
Old 07-10-2011, 11:38 PM   #9
abkindlen
Junior Member
abkindlen began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
All of this, somekinda exceeded my scripting skills.
I had serious trouble installing the PIL module to my OSX 1.6.7 Python
Here's a easy Workaround:

The Screenshot Shortcut (Alt + Shift + G) works as soon as the bootloading bar disapears. So it did on my Kindle 3(.2) Wifi US.
So i just took a screenshot. It does not contain the Bootloaderbar!

Spoiler:

Last edited by abkindlen; 07-10-2011 at 11:50 PM.
abkindlen is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opus cannot boot, stuck on boot screen baloma Bookeen 35 11-13-2010 04:20 AM
DR800 Help!!My reader die on boot screen moom iRex 4 04-28-2010 11:41 AM
Customizing boot-up screen? Jellby Gen3 Developer's Corner 5 03-16-2010 10:46 AM
Touch screen modification on PRS 700 for improved clarity and contrast gokalp Sony Reader 24 06-29-2009 02:22 PM
Advanced Sony Reader 505 Protection Screen Modification of the Comes-With Cover spooky69 Sony Reader 3 12-31-2007 11:08 AM


All times are GMT -4. The time now is 01:19 AM.


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