View Single Post
Sandeep's Avatar
Posts: 110 | Thanked: 59 times | Joined on Nov 2010 @ Bangalore
#24
Hello hxka, I'm getting this error:

/home/user/logo # sh logo.run -l nokia_logo.bmp -c 0000
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary

Usage: mktemp [-dt] [-p DIR] TEMPLATE

tar: -: Not found in archive
tar: Exiting with failure status due to previous errors
logo.run: line 89: /flash.sh: not found
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary

Usage: rm [OPTION]... FILE...


Please let me know what's wrong.

Originally Posted by hxka View Post
I updated the script. There was a lot of changes, but the most important is it now can replace not only logo, but R&D and USB icons with arbitrary dimentions and set background for USB icon.
usage:
logo.run [ -h ] [ -l image ] [ -r image ] [ -u image ] [ -c color ] [ -b color ]
-h: shows this help.
-l: specify a boot logo.
-r: specify a R&D mode image.
-u: specify a USB icon.
Images must be 16bit BMP.
-c: set backgroud 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.
-b: set background color for USB icon.
This one is limited by one byte. I.e. if you specify AB, resulting color will be ABAB.
logo.run