maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   N9/N950 Open Mode "Warning" Image Editing (https://talk.maemo.org/showthread.php?t=83199)

thp 2012-03-22 21:44

N9/N950 Open Mode "Warning" Image Editing
 
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

coderus 2012-03-23 05:40

Re: N9/N950 Open Mode "Warning" Image Editing
 
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.

coderus 2012-03-23 05:52

Re: N9/N950 Open Mode "Warning" Image Editing
 
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.

nieldk 2012-03-23 06:55

Re: N9/N950 Open Mode "Warning" Image Editing
 
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"
~ $


pelago 2012-03-23 15:34

Re: N9/N950 Open Mode "Warning" Image Editing
 
Quote:

Originally Posted by coderus (Post 1183063)
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 2012-03-23 17:05

Re: N9/N950 Open Mode "Warning" Image Editing
 
success, just executed
Code:

disclaimer-cal remove View-openmode
in normal mode, then flashed to open kernel, and openmode disclaimer not displayed.

HanzBlix 2012-03-24 08:11

Re: N9/N950 Open Mode "Warning" Image Editing
 
Wow congrats, that disclaimer is just plain ugly, and thanks to you guys... is a thing of the past.

thedead1440 2012-03-24 09:26

Re: N9/N950 Open Mode "Warning" Image Editing
 
coderus any way to do something similar when already in open mode.

coderus 2012-03-24 09:27

Re: N9/N950 Open Mode "Warning" Image Editing
 
of course no.

rainisto 2012-03-24 13:11

Re: N9/N950 Open Mode "Warning" Image Editing
 
2 Attachment(s)
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)


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

vBulletin® Version 3.8.8