Active Topics

 


Reply
Thread Tools
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#1
The localized files can be found on the device here:

Code:
/usr/share/osso/boot/rle/disclaimer-openmode_*.rle
Has anyone found a description of the file format?

Also, editing the files does not change the image on boot - maybe there is some part that writes the data to a specific memory area so that it's directly accessible on bootup (and this happens only once, when open mode is first "detected")? disclaimer-call fails for me when i tell it to write a different .rle file to the openmode area in mtd1 (config area).

Interesting files and binaries:

Code:
/etc/init/xsession/disclaimer-lng-set.conf
/usr/bin/disclaimer-cal
However, trying to remove it manually results in an error:

Code:
~ # disclaimer-cal remove View-openmode
CAL ERROR: nand_write: write (4096 bytes at around 001e2000): Input/output error
disclaimer-cal: Failed to write to CAL
Some interesting snippets from running disclaimer-cal under strace:

Code:
...
open("/proc/mtd", O_RDONLY)             = 3
...
open("/dev/mtd1", O_RDWR)               = 3
...
lseek(3, 1974272, SEEK_SET)             = 1974272 
write(3, "ConF\2\1\1\0View-openmode\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = -1 EIO (Input/output error)
...
The idea would be to add some nice graphic or contact info there (where to bring the device/whom to call when the phone gets lost and is found, ...).

Possibly interesting tool to inspect mtd1: https://dev.openwrt.org/browser/pack...src/calvaria.c

Last edited by thp; 2012-03-22 at 22:28.
 

The Following 10 Users Say Thank You to thp For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#2
i think it's some sort of once-writeable memory with lock. need to try writing to CAL in normal mode, when no disclaimer
Or it can be modded only in normal mode, open mode lock it.

Last edited by coderus; 2012-03-23 at 05:46.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#3
and about rle. i believe it should be rle (some sort of bitmap format, many image editors can export to rle), but compressed/encrypted by nokia, i believe it should work fine with "plain" rle file.
 

The Following User Says Thank You to coderus For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#4
Great idea with a thread for this
Some info that may be usefull, if it is 'hidden' somewhere, in protected area. Is mtd partitioning. Can be seen like this, and possible dumped with some memory dump utility, or dd.
Code:
~ $ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00040000 "bootloader"
mtd1: 002c0000 00040000 "config"
mtd2: 01000000 00040000 "kernel"
mtd3: 00200000 00040000 "log"
mtd4: 1ca40000 00040000 "var"
mtd5: 02000000 00040000 "moslo"
mtd6: 20000000 00040000 "omap2-onenand"
~ $
 

The Following User Says Thank You to For This Useful Post:
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#5
Originally Posted by coderus View Post
and about rle. i believe it should be rle (some sort of bitmap format, many image editors can export to rle), but compressed/encrypted by nokia, i believe it should work fine with "plain" rle file.
I assume RLE is http://en.wikipedia.org/wiki/Run-length_encoding which isn't a file format as such, but a simple compression technique. It should be easy to compress/uncompress the data, but you would still need to work out the underlying file format. It's likely to be some kind of raw framebuffer dump.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#6
success, just executed
Code:
disclaimer-cal remove View-openmode
in normal mode, then flashed to open kernel, and openmode disclaimer not displayed.
 

The Following 15 Users Say Thank You to coderus For This Useful Post:
Posts: 153 | Thanked: 81 times | Joined on Oct 2011 @ New Zealand
#7
Wow congrats, that disclaimer is just plain ugly, and thanks to you guys... is a thing of the past.
 

The Following User Says Thank You to HanzBlix For This Useful Post:
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#8
coderus any way to do something similar when already in open mode.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#9
of course no.
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#10
rle is 16 bit run length encoded data, converted my example png to rle and it seems to work.

RM696-07-1_PR_001:~# disclaimer-cal write View-openmove disclaimer-custom.rle
disclaimer-cal: Disclaimer written to CAL (size: 68843)
Attached Images
 
Attached Files
File Type: gz disclaimer-custom.rle.gz (11.0 KB, 260 views)
 

The Following 4 Users Say Thank You to rainisto For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:11.