Reply
Thread Tools Search this Thread
Posts: 1,111 | Thanked: 1,491 times | Joined on Feb 2011 @ Quezon City, Philippines
#31
Originally Posted by hxka View Post
With help of raandoom, I created a script what can easily change boot logo and background color directly from N900..
F***. That's some crazy s*** right there.
Amazing.

What dimensions do we need to make the background image?
It's 416x72. Cool.

Got it working. My boot logo's now a sexy white NOKIA on black background, integrating nicely with u-boot-bootmenu and hildon-startup-progress.
__________________
N9 PR 1.3 Open Mode, N900 CSSU Testing.
Using Open Mode on N9? Having problems crop up? Read this post!

Last edited by Hurrian; 02-18-2012 at 07:20 AM.
 
Posts: 26 | Thanked: 90 times | Joined on Jul 2011 @ Russia, Moscow area
#32
Don't know is there some people who interested in it, but why not. Maybe later, in my free time, i will post how to use icons and logo with custom width and height.

A couple of weeks ago i had a little upgrade my elf Let it be version 1.1. Now elf can compress any files (first version work correct only with files that have 59904 bytes size).
For what? Now it is possibble to compress images for changing USB and R&D icons
You can find elf in attached archive.

General FAQ about changing Nokia logo

Fast FAQ for changing USB and R&D icons
(If have questions - go to general FAQ)

1. Preparing icons
Format of icons must be the same as in general FAQ (16bpp BMP)
Icon sizes:
- 40x40 for USB
- 64x54 for R&D

2. Compress icons
Your actions for compress the same as in general FAQ:
- get RAW from your images
- rename RAW to "rawbmp.bin", run elf and get compressed image in "logo.bin"

3. Checking size of compressed images
There is limitations for size of compressed image:
- "logo.bin" for USB icon must be less or equal to 1089 bytes
- "logo.bin" for R&D icon must be less or equal to 3954 bytes

If all ok - next step, if not - edit your image for decreasing it's compressed size.

4. Patch "secondary.bin"
for USB icon:

Code:
dd if=logo.bin of=secondary.bin bs=1 seek=82596 conv=notrunc
And again, better if we write value with new size of USB icon to "secondary.bin":
* In this example size of "logo.bin" with USB icon equal to 1089 bytes, it is 0x441 bytes, that mean '\x41\x04'

Code:
echo -ne '\x41\x04' | dd of=secondary.bin bs=1 seek=33598 conv=notrunc
echo -ne '\xBF\xF8\x56\x61' | dd of=secondary.bin bs=1 seek=33252 conv=notrunc
echo -ne '\x3C' | dd of=secondary.bin bs=1 seek=33584 conv=notrunc
for R&D icon:

Code:
dd if=logo.bin of=secondary.bin bs=1 seek=71976 conv=notrunc
And again, better if we write value with new size of R&D icon to "secondary.bin":
* In this example size of "logo.bin" with R&D icon equal to 3954 bytes, it is 0xF72 bytes, that mean '\x72\x0F'

Code:
echo -ne '\x72\x0F' | dd of=secondary.bin bs=1 seek=33596 conv=notrunc
echo -ne '\xBF\xF8\x70\x61' | dd of=secondary.bin bs=1 seek=33226 conv=notrunc
echo -ne '\x3C' | dd of=secondary.bin bs=1 seek=33584 conv=notrunc
* Third command in both cases is the same. I write so for those who decide change only one icon. Because this command (third) is required for correct patching value with size of "logo.bin". If you change both icons - you can enter this command (third) only once.

Thats all, flash your phone with new "secondary.bin"
Attached Files
File Type: zip logo_compress.elf.v.1.1.zip (2.5 KB, 75 views)

Last edited by raandoom; 05-01-2012 at 10:23 AM.
 

The Following 8 Users Say Thank You to raandoom For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on Feb 2012
#33
With help of raandoom, I created a script what can easily change boot logo and background color directly from N900..

Guys, respect for still supporting our baby n900.

I always thought that n900's black overall background color is depressing, always wanted to make it white-red, white-pink or some white with bright color. How can I change it? Thanks.
 
Posts: 26 | Thanked: 90 times | Joined on Jul 2011 @ Russia, Moscow area
#34
Tequila628, maybe we talk about different things, because background color of boot screen is white by default, not depressive-black.
And you ask strange question: "How can I change it?"
For whom there is a FAQ by me, and script by hxka? Follow instructions and all will be ok.
 
Posts: 2 | Thanked: 0 times | Joined on Feb 2012
#35
Originally Posted by raandoom View Post
Tequila628, maybe we talk about different things, because background color of boot screen is white by default, not depressive-black.
And you ask strange question: "How can I change it?"
For whom there is a FAQ by me, and script by hxka? Follow instructions and all will be ok.
I'm sorry for misleading you.

I meant the black background in the settings menu, conversations or contacts, etc (in the whole phone pretty much) as well as the top menu, I was wondering if I could change it to anything but black, wanted to do it for 2 years now...


This is my settings menu, I pointed with arrows to explain what do I mean with background colors.


Do you know the way to change them?
Much appreciated.
 
Posts: 26 | Thanked: 90 times | Joined on Jul 2011 @ Russia, Moscow area
#36
Please, stop offtop. This topic not about this.
 
Posts: 391 | Thanked: 352 times | Joined on May 2010 @ Germay or my own reality
#37
Originally Posted by raandoom View Post
Then you need to cut off the header, because elf need raw rgb565 as input file. You can do it with any hex editor (but you need to be sure that your BMP is "top-down row order", NOT "bottom-up row order") or using this in Linux:
Code:
ffmpeg -vcodec bmp -i mylogo.bmp -vcodec rawvideo -f rawvideo -pix_fmt rgb565 rawbmp.bin

First of all mate you are just awesome. I totally missed the news in this thread. And I always wanted to change my bootsplash as I did on my old phones before... So my deep respect to you.

And second:
How many bytes is the header of bmp, because the ffmpeg command errors out with
Code:
[bmp @ 0x8408a10]unsupported BMP file, patch welcome
[image2 @ 0x8407440]Could not find codec parameters (Video: bmp)
does anybody knows how to get the bmp support for ffmpeg?
ffmpeg -formats doesn't list bmp support either.

Thanks in advance...

J4ZZ
 
Posts: 391 | Thanked: 352 times | Joined on May 2010 @ Germay or my own reality
#38
Originally Posted by hxka View Post
With help of raandoom, I created a script what can easily change boot logo and background color directly from N900.
Usage:
logo.sh [ -h ] [ -l logo ] [ -c color ]
-h: shows this help.
-l: flashes an boot logo. File must be 16bit BMP. (Example of saving in GIMP)
-c: set backgroud boot color.
Color must be in framebuffer 16bit format.
It consists of two bytes: RRRR RGGG GGGB BBBB, where RRRRR, GGGGGG, and BBBBB — values of red, green and blue colors.
And these bytes must be swapped because of little-endianness.
So, for example, if you want to code red color, it will be 1111100000000000 = 00F8, blue will be 1F00 and green will be E007.
Result:

Here the link: http://dl.dropbox.com/u/4105928/logo.sh
It should support all of RX-51 revisions, but if something would go wrong, you can always use Cold Flashing.
Thanks raandoom, Xlab and tz1.
I just tried your script, but I always get
Code:
wrong height, must be 72.
for my *.bmp
It's definetely 72 px high, I tried with Pixelformer, Photoshop and Gimp...

Any ideas what's the issue here?

Regards,

J4ZZ
 
Posts: 391 | Thanked: 352 times | Joined on May 2010 @ Germay or my own reality
#39
Ok, raandoom's guide worked just fine... but having a working script would be much nicer

Anyway, here is my first custom bootsplash it's nothing special but hey, it's cracked NOLO

Edit: moved to here


Greetz,

J4ZZ
Attached Files
File Type: zip maemo_bootsplash.zip (107.3 KB, 28 views)

Last edited by J4ZZ; 04-24-2012 at 07:01 PM.
 

The Following 2 Users Say Thank You to J4ZZ For This Useful Post:
Posts: 391 | Thanked: 352 times | Joined on May 2010 @ Germay or my own reality
#40
Originally Posted by raandoom View Post

4. Patch "secondary.bin"
for USB icon:

Code:
dd if=logo.bin of=secondary.bin bs=1 seek=82596 conv=notrunc
And again, better if we write value with new size of USB icon to "secondary.bin":
* In this example size of "logo.bin" with USB icon equal to 1089 bytes, it is 0x441 bytes, that mean '\x41\x04'

Code:
echo -ne '\x41\x04' | dd of=secondary.bin bs=1 seek=33598 conv=notrunc
echo -ne '\xBF\xF8\x56\x61' | dd of=secondary.bin bs=1 seek=33252 conv=notrunc
echo -ne '\x3С' | dd of=secondary.bin bs=1 seek=33584 conv=notrunc
I just tried that to add proper usb icon with black background but to no success...
No more bootsplash at all and what made me even more nervous, no more "Power-On Self Test" vibration.

So there must be an error somewhere here.

Could you please have a look raandoom ?

I tried both secondary.bins (the original one, and the one with my custom splash)

Flashing back my custom secondary.bin helped fixing this issue, but how do I get the custom usb icon working?

Thanks in advance,


J4ZZ
 

The Following User Says Thank You to J4ZZ For This Useful Post:
Reply

Tags
nolo bootloader, patch

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 08:50 AM.