Reply
Thread Tools
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#41
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, 109 views)

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

The Following 2 Users Say Thank You to J4ZZ For This Useful Post:
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#42
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:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#43
Originally Posted by J4ZZ View Post
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
I have no idea
I created this script two months ago and now I almost forget how it works.
Maybe I can figure out what's wrong later if you upload your bmp somewhere.
 

The Following User Says Thank You to hxka For This Useful Post:
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#44
No. problem...

Here you go.

See attachement.

Regards,

J4ZZ
Attached Files
File Type: zip Fixit.zip (5.3 KB, 104 views)
 

The Following User Says Thank You to J4ZZ For This Useful Post:
raandoom's Avatar
Posts: 46 | Thanked: 131 times | Joined on Jul 2011 @ Russia, Moscow area
#45
Hello, J4ZZ. Can i look your usb icon?
I just tried cut off headers from your "2.bmp" and "3.bmp" with ffmpeg and all works fine
About usb icon: you can't flash it with hxka's script - use FAQ.
 

The Following User Says Thank You to raandoom For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#46
Yep, the problem is in different header. I resaved files in GIMP and they was recognised by script fine. I'll update script later today.
 

The Following User Says Thank You to hxka For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#47
Originally Posted by J4ZZ View Post
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.
That's raandoom's fault (:
In command echo -ne '\x3С' | dd of=secondary.bin bs=1 seek=33584 conv=notrunc he wrote cyrillic 'С', not latin 'C'.

raandoom, you should correct your posts both here and on meegos.ru (:
 

The Following 4 Users Say Thank You to hxka For This Useful Post:
raandoom's Avatar
Posts: 46 | Thanked: 131 times | Joined on Jul 2011 @ Russia, Moscow area
#48
FAQ corrected.
hxka, thanks! I am very sorry. I will be more careful in next time

Last edited by raandoom; 2012-05-01 at 14:34.
 

The Following 2 Users Say Thank You to raandoom For This Useful Post:
raandoom's Avatar
Posts: 46 | Thanked: 131 times | Joined on Jul 2011 @ Russia, Moscow area
#49
This FAQ about how you can use images with custom width and height in NOLO.
* Remember about size limits (in bytes) for compressed images. You can read about it in previous FAQs.

I am already wrote how to compress images, that's why here I try briefly show how correctly patch 'secondary' with your custom-size images

If you decided to use some icon with custom size and some icon with standart size - you must use THIS FAQ for both images, NOT previous. Because instructions and addresses from this FAQ intersect with addresses from older FAQs, that's why using of all FAQs together can lead to bad results

At this moment this FAQ is universal for all images. You can consider it as the Main FAQ and use only its But dont forget about previous: maybe you can find some additional information there.

1. Boot logo:
a) This commands are required:
Code:
echo -ne '\x5A\xA3\x59\x88\x1B\x88\xBF\xF8\x3E\x61' | dd of=my_secondary.bin bs=1 seek=33234 conv=notrunc
echo -ne '\x3C\x4B' | dd of=my_secondary.bin bs=1 seek=33584 conv=notrunc
b) Flashing logo to 'secondary':
Code:
dd if=logo.bin of=my_secondary.bin bs=1 seek=75940 conv=notrunc
c) Specify parameters of used image: size of compressed image (in bytes), width and height:
Size (must be less than 6646 bytes). In this example used size equal to 6646 bytes -> 0x19F6 bytes -> '\xF6\x19'
Code:
echo -ne '\xF6\x19' | dd of=my_secondary.bin bs=1 seek=33562 conv=notrunc
Width. In this example used size equal to 486 pixels -> 0x1E6 pixels -> '\xE6\x01'
Code:
echo -ne '\xE6\x01' | dd of=my_secondary.bin bs=1 seek=33596 conv=notrunc
Height. In this example used size equal to 138 pixels -> 0x8A pixels -> '\x8A\x00'
Code:
echo -ne '\x8A\x00' | dd of=my_secondary.bin bs=1 seek=33598 conv=notrunc
2. Background color:
a) This commands are required:
Code:
echo -ne '\x17\xE0' | dd of=my_secondary.bin bs=1 seek=36834 conv=notrunc
echo -ne '\xC0\x46\x40\x4A' | dd of=my_secondary.bin bs=1 seek=36574 conv=notrunc
b) Of course, the color (in example used black color, #0000):
Code:
echo -ne '\x00\x00\x00\x00' | dd of=my_secondary.bin bs=1 seek=36836 conv=notrunc
A little help for select the right color:
You can use a color value from 16-bit pallete only (rgb565, 65536 colors). You must reverse color bytes and duplicate them in commamd. Example:
0xF800 is RED, it is mean '\x00\xF8\x00\xF8'
0x07E0 is GREEN, it is mean '\xE0\x07\xE0\x07'
0x001F is BLUE, it is mean '\x1F\x00\x1F\x00'

3. USB icon:
a) Flashing compressed icon to 'secondary':
Code:
dd if=usb.bin of=my_secondary.bin bs=1 seek=82596 conv=notrunc
b) Specify parameters of used image: size of compressed image (in bytes), width and height:

Size (must be less than 1089 bytes). In this example used size equal to 1089 bytes -> 0x441 bytes -> '\x40\xF2\x41\x46'
* Please note, a more intuitive explanation: let assume that the size of your compressed icon in hex is 0xXYZ, this mean that bytes for patching must be looks like '\x40\xF2\xYZ\xX6'
Code:
echo -ne '\x40\xF2\x41\x46' | dd of=my_secondary.bin bs=1 seek=33252 conv=notrunc
Width. In this example used size equal to 102 pixels -> 0x66 pixels -> '\x66'
Code:
echo -ne '\x66' | dd of=my_secondary.bin bs=1 seek=33246 conv=notrunc
Height. In this example used size equal to 44 pixels -> 0x2С pixels -> '\x2С\x21'
Code:
echo -ne '\x2C\x21' | dd of=my_secondary.bin bs=1 seek=33250 conv=notrunc
c) Optional! For those who don't like white square after the disappearance of USB icon.
If you never noticed this square, then you probably do not need that
I dont use this and dont test it, but it must work. In example used black color.
Code:
echo -ne '\x00' | dd of=my_secondary.bin bs=1 seek=35126 conv=notrunc
And as you can see, there is only one byte for color. It is mean that if you write '\xAA' - the color of square will be 0xAAAA. That not so much color, there is more than nothing

4. R&D icon:
a) Flashing compressed icon to 'secondary':
Code:
dd if=rd.bin of=secondary.bin bs=1 seek=71976 conv=notrunc
b) Specify parameters of used image: size of compressed image (in bytes), width and height:

Size (must be less than 3954 bytes).
* Attention, how build correct string of bytes for patching:
Template string: '\x40\xFk\xYZ\xX6'
k - must have value 2 or 6. Depends on size of compressed icon.
k = 2, if size of your compressed icon less tnan 0x800 bytes (size < 2048 bytes). Further, use XYZ values like in paragraph 3b.
k = 6, if size of your compressed icon more than or equal to 0x800 bytes (size >= 2048 bytes). In this case, value 0x800 will be added to your XYZ value.
Example: size = 2753 bytes = 0xAC1 bytes = (0x800 + 0x2C1) bytes => k=6 => '\x40\xF6\xC1\x26'
Code:
echo -ne '\x40\xF6\xC1\x26' | dd of=my_secondary.bin bs=1 seek=33226 conv=notrunc
Width. In this example used size equal to 64 pixels -> 0x40 pixels -> '\x40'
Code:
echo -ne '\x40' | dd of=my_secondary.bin bs=1 seek=33222 conv=notrunc
Height. In this example used size equal to 54 pixels -> 0x36 pixels -> '\x36'
Code:
echo -ne '\x36' | dd of=my_secondary.bin bs=1 seek=33224 conv=notrunc
That's all. Sorry, if something is hard to understand Ask questions - i will try to help.

Last edited by raandoom; 2013-01-07 at 21:23.
 

The Following 10 Users Say Thank You to raandoom For This Useful Post:
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#50
Wow, that's just brilliant. Thanks for updating the guide and for fixing the little error.

Best regards,

J4ZZ
__________________

N900 ~ $ make me a sandwich
-bash: no, make it yourself
N900 ~ $ sudo make me a sandwich
-bash: ok then...
 
Reply

Tags
nolo bootloader, patch

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:53.