maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   unpack firmware (https://talk.maemo.org/showthread.php?t=85297)

eltoffer 2012-07-06 04:59

unpack firmware
 
ok the question is siimple and maybe this is not the right place, i just want to know how to "unpack" BIN firmware file i want to extract some files from pr1.1

An9 2012-07-06 05:59

Re: unpack firmware
 
That would be a great idea to modifie the fw, just like i was duing with symbian 5th edition!:)

eltoffer 2012-07-06 06:24

Re: unpack firmware
 
no no impossible to build a CFW for harmattan i just want to extract some files from pr1.1

rainisto 2012-07-06 06:42

Re: unpack firmware
 
this has been already answered, but as people don't know how to use search in the forums apparently, then here is the recap:

flasher -u can decompres bin, unlzo http://talk.maemo.org/showthread.php...48#post1043548 can convert rootfs to ext4, you can get files out of there

eltoffer 2012-07-06 16:33

Re: unpack firmware
 
flasher -u : --invalid option

An9 2012-07-06 16:40

Re: unpack firmware
 
Great info, thanx...i asume that it is posible to modify files on fw and repack it right...i know we could make change...sounds like i got job tonight.:cool:

rainisto 2012-07-06 16:40

Re: unpack firmware
 
you just have to use a version of flasher which still has that option (like maybe 3.5) ;-)

rainisto 2012-07-06 16:42

Re: unpack firmware
 
Quote:

Originally Posted by An9 (Post 1233013)
Great info, thanx...i asume that it is posible to modify files on fw and repack it right...i know we could make change...sounds like i got job tonight.:cool:

you can repack, but without master OEM signing key you cannot create an image that can be flashed to the device.

So in short you can extract, but you cannot repack.

eltoffer 2012-07-06 17:15

Re: unpack firmware
 
Quote:

Originally Posted by rainisto (Post 1233017)
you can repack, but without master OEM signing key you cannot create an image that can be flashed to the device.

So in short you can extract, but you cannot repack.

i know you are some kind of Nokia dev, so at this stage that Meego is dead for Nokia, would it be possible to get that "keys" to build our own CFW???

An9 2012-07-06 17:26

Re: unpack firmware
 
Yeah...that's great idea, or we have to do the cracking thing...than i em sore i will repack in it even NitDroid and lot of software that i have to use as standard instalation ready made.

eltoffer 2012-07-06 17:27

Re: unpack firmware
 
Quote:

Originally Posted by rainisto (Post 1233015)
you just have to use a version of flasher which still has that option (like maybe 3.5) ;-)

i used this but still no success im i doing something wrong?

rainisto 2012-07-06 18:06

Re: unpack firmware
 
Quote:

Originally Posted by eltoffer (Post 1233035)
i used this but still no success im i doing something wrong?

yes that one works just fine.

itsnotabigtruck 2012-07-06 23:04

Re: unpack firmware
 
It's possible to pack your own firmware images without any keys - the caveat is that flashing them will put your phone into open mode no matter what starting with the PR1.2 bootloader version.

The procedure is to:

  • Unpack FIASCO image using flasher 3.5
  • Unpack sparse image (rootfs.jffs2) using unlzo.py
  • Mount rootfs image as an ext4 loopback device
  • Do what you'd like
  • Unmount rootfs
  • Repack sparse image using sparsify.py
  • Build FIASCO image from sparse image and layout file using fiasco-gen
  • Flash FIASCO image to device using flasher 3.12.1

It isn't very easy to do, and most of those steps have to be done from a Linux system. Also, realistically, it isn't all that useful - though I released sparsify hoping that someone would do it anyway. :p If you really want to pack a custom image I'd help out with more info.

Edit: On second thought, one potential use would be for quick deployment of NITDroid, but IIRC e-yes wasn't too interested in this.

coderus 2012-07-07 04:05

Re: unpack firmware
 
it's not necessary for nitdroid, deb package much better for installing and upgrade.
and in my opinion customs for MeeGo is evil. it's linux, we always can do what we need without reflashing.

Only potential i see: dd mmcblk0p2 and then pack it to fiasco - good backup system :)

eltoffer 2012-07-07 05:26

Re: unpack firmware
 
i just want to extract SWYPE-KEYBOARD debian file fro pr 1.1 is that possible? as i see it wont give me the DEB file isnt it??

nieldk 2012-07-07 06:35

Re: unpack firmware
 
Quote:

Originally Posted by eltoffer (Post 1233209)
i just want to extract SWYPE-KEYBOARD debian file fro pr 1.1 is that possible? as i see it wont give me the DEB file isnt it??

not possible (and not legal probably)

An9 2012-07-07 07:15

Re: unpack firmware
 
Quote:

Originally Posted by itsnotabigtruck (Post 1233157)
It's possible to pack your own firmware images without any keys - the caveat is that flashing them will put your phone into open mode no matter what starting with the PR1.2 bootloader version.

The procedure is to:

  • Unpack FIASCO image using flasher 3.5
  • Unpack sparse image (rootfs.jffs2) using unlzo.py
  • Mount rootfs image as an ext4 loopback device
  • Do what you'd like
  • Unmount rootfs
  • Repack sparse image using sparsify.py
  • Build FIASCO image from sparse image and layout file using fiasco-gen
  • Flash FIASCO image to device using flasher 3.12.1

It isn't very easy to do, and most of those steps have to be done from a Linux system. Also, realistically, it isn't all that useful - though I released sparsify hoping that someone would do it anyway. :p If you really want to pack a custom image I'd help out with more info.

Edit: On second thought, one potential use would be for quick deployment of NITDroid, but IIRC e-yes wasn't too interested in this.

Thanx for very important info, it sem it's more complicated than Symbian OS CFW.....new chalange with linux!:rolleyes:

eltoffer 2012-07-09 03:42

Re: unpack firmware
 
Quote:

Originally Posted by nieldk (Post 1233223)
not possible (and not legal probably)

its possible mounting pr1.1 on a virtual device and using apt-get -d swype-keyboard, why not legal????

lzs2000131 2012-11-23 16:28

Re: unpack firmware
 
Quote:

Originally Posted by itsnotabigtruck (Post 1233157)
It's possible to pack your own firmware images without any keys - the caveat is that flashing them will put your phone into open mode no matter what starting with the PR1.2 bootloader version.

The procedure is to:

  • Unpack FIASCO image using flasher 3.5
  • Unpack sparse image (rootfs.jffs2) using unlzo.py
  • Mount rootfs image as an ext4 loopback device
  • Do what you'd like
  • Unmount rootfs
  • Repack sparse image using sparsify.py
  • Build FIASCO image from sparse image and layout file using fiasco-gen
  • Flash FIASCO image to device using flasher 3.12.1

It isn't very easy to do, and most of those steps have to be done from a Linux system. Also, realistically, it isn't all that useful - though I released sparsify hoping that someone would do it anyway. :p If you really want to pack a custom image I'd help out with more info.

Edit: On second thought, one potential use would be for quick deployment of NITDroid, but IIRC e-yes wasn't too interested in this.

Can you help me with repacking sparse image using sparsify.py?
I don't know how to repack it.
And I think I gonna make it after this process!

colin.stephane 2012-11-23 18:35

Re: unpack firmware
 
Quote:

Originally Posted by eltoffer (Post 1234166)
its possible mounting pr1.1 on a virtual device and using apt-get -d swype-keyboard, why not legal????

Why not just :

apt-get install -d swype-keyboard=version-from-pr1.1

???

A++

lzs2000131 2012-11-26 04:40

Re: unpack firmware
 
Quote:

Originally Posted by itsnotabigtruck (Post 1233157)
It's possible to pack your own firmware images without any keys - the caveat is that flashing them will put your phone into open mode no matter what starting with the PR1.2 bootloader version.

The procedure is to:

  • Unpack FIASCO image using flasher 3.5
  • Unpack sparse image (rootfs.jffs2) using unlzo.py
  • Mount rootfs image as an ext4 loopback device
  • Do what you'd like
  • Unmount rootfs
  • Repack sparse image using sparsify.py
  • Build FIASCO image from sparse image and layout file using fiasco-gen
  • Flash FIASCO image to device using flasher 3.12.1

It isn't very easy to do, and most of those steps have to be done from a Linux system. Also, realistically, it isn't all that useful - though I released sparsify hoping that someone would do it anyway. :p If you really want to pack a custom image I'd help out with more info.

Edit: On second thought, one potential use would be for quick deployment of NITDroid, but IIRC e-yes wasn't too interested in this.

Thank you! By these steps I have successfully packed a firmware and flashed. With a little adjustment to the last step. The only problem is the warning picture when booting up, "disclaimer-cal remove View-openmode" won't work at all,I don't know how could I remove it.

rainisto 2012-11-26 05:06

Re: unpack firmware
 
Quote:

Originally Posted by lzs2000131 (Post 1298423)
Thank you! By these steps I have successfully packed a firmware and flashed. With a little adjustment to the last step. The only problem is the warning picture when booting up, "disclaimer-cal remove View-openmode" won't work at all,I don't know how could I remove it.

remove command can only be runned in _closed_ mode (which is stated in all the FAQ's, so there is no problem, just user error when reading the instructions :-)


All times are GMT. The time now is 09:59.

vBulletin® Version 3.8.8