Jump to content


Photo

Flash Gordon Plugin

Flashing

  • Please log in to reply
178 replies to this topic

Re: Flash Gordon Plugin #141 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 18 May 2013 - 23:20

Hey no problem, add it to the collection and if you need some more just ask. I think google will reproduce my nick quite often ;)


@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Flash Gordon Plugin #142 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 18 May 2013 - 23:28

I'm not collecting parasols - lost already too many :-)



Re: Flash Gordon Plugin #143 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 18 May 2013 - 23:31

Well actually its just another bad nickname I didnt even invent myself ;)


@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Flash Gordon Plugin #144 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 18 May 2013 - 23:37

Well, names are fun, even for Plugins :-)



Re: Flash Gordon Plugin #145 radxnl

  • Senior Member
  • 1,527 posts

+57
Good

Posted 19 May 2013 - 00:26

so now we wait for 29-08-2013 ;)



Re: Flash Gordon Plugin #146 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 19 May 2013 - 08:07

you are welcome :)



Re: Flash Gordon Plugin #147 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 19 May 2013 - 09:41

Just one more question regarding the backup feature request and doing it better/faster.

 

When you are doing a backup you use nanddump for extracting the partitions without a filesystem like the kernel. But you spend lots of time to rebuild the root filesystem with mkfs.ubifs and ubinize. Are you aware that it would be also possible to extract the root filesysystem with nanddump too and flash it back with nandwrite?

 

Using this approach means much faster backups, as the filesystem is dumped as is it is and not re-built file per file with all the compression overhead. On the other hand this mans no defragmentation of ubifs by the backup (which is not a big problem for ubifs as it is part of its design to be fragmented due to the wandering tree aproach) and it means that the extractet root image files would be as big as the root flashpartition (as also the freespace needs to be dumped to be consistent) and should be only flashed back on the same box.

 

Basicall it is the Flash/blockdevice quivalent for backup/restore a filesystem witd dd of the rawdevices.

 

dFlash is offering such a quick backup/restore already sind ages, that's why I was wondering why nobody tried that out on your boxes. Because then you could do a very simple single binary backup solution which just scans /proc/mtd and then dumps them out one after the other with nandwrite code. And I could easily add a -n flag to fgwrite which then would enforce flashing root with nandwrite instead of ubiformat.

 

Any interest in trying out such quick backup?


Edited by gutemine, 19 May 2013 - 09:43.


Re: Flash Gordon Plugin #148 rtzhjgg0

  • Senior Member
  • 568 posts

+13
Neutral

Posted 19 May 2013 - 10:06

It wold be interesting to see what pieterg and other devs say about this possibility. If it is compatible to PLi structure.
Selfsat H50M4
Ultimo4K /2xTwinS2, VTI, PLi, ATV...
NAS: Qnap221

Re: Flash Gordon Plugin #149 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 19 May 2013 - 10:12

Dumping the content of Flashchips and writing it back has nothing to do with PLi structure. Only as the bios uses now ubiformat to write the root image it will not be able to flash back such dumps. But this is the same on the dremaboxes, nanddump backups can be only flashed with nandwrite and not with the bios.


Edited by gutemine, 19 May 2013 - 10:13.


Re: Flash Gordon Plugin #150 nietgiftig

  • Senior Member
  • 787 posts

+39
Good

Posted 19 May 2013 - 12:59

Any interest in trying out such quick backup?

 

 

Only if it contains no hidden keys, timebombs or spyware related code.

Let's just say open software

 

And only if the developer is has a normal or if possible nice attitude.

 


 Hardware: Master VU Uno 4K SE  1x Mut@nt HD51.4K & 2x ZgemmaH9T
Software : Pli (v7) (7.1rc) 2019 


Re: Flash Gordon Plugin #151 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 19 May 2013 - 18:18

I never produced any hidden keys or spyware, and if you don't understand the word Testkit it is not my fault.



Re: Flash Gordon Plugin #152 Happysat

  • Senior Member
  • 697 posts

+43
Good

Posted 19 May 2013 - 19:41

True now you only have to take care of this last big problem:

 

8850143dbaf5d4.jpg

 

 

 

 

 

 


Octagon SF8008 / TBS5530  DVB-S2/T2 T-85/1.50Mtr/3x90cm (53e 52e 51,5e 28e 25,9e 23e 19e 13e 9e 4e 1w 5w 14w)


Re: Flash Gordon Plugin #153 offnow

  • Senior Member
  • 56 posts

+8
Neutral

Posted 19 May 2013 - 19:45

... niemand hat die Absicht, eine Mauer zu bauen...


hab keine Lust mehr...

Viel Spaß allen und lebt wohl


Re: Flash Gordon Plugin #154 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 19 May 2013 - 19:53

Maybe it is time for a Woody Allen quote:

 

Masturbation is sex with a loved person.



Re: Flash Gordon Plugin #155 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 20 May 2013 - 12:05

When you are doing a backup you use nanddump for extracting the partitions without a filesystem like the kernel. But you spend lots of time to rebuild the root filesystem with mkfs.ubifs and ubinize. Are you aware that it would be also possible to extract the root filesysystem with nanddump too and flash it back with nandwrite?

Does that mean that the backup will have the same size as the available flash on the box (e.g. 512MB for the Ultimo)?



Re: Flash Gordon Plugin #156 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 20 May 2013 - 14:49

The root.bin would be as big as the mtd partition you are dumping, yes.

 

Simply try it out yourself.



Re: Flash Gordon Plugin #157 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 28 May 2013 - 21:15

Hi gutemine,

 

can you give me a hint how you could use ubiformat?

If I use it I get something like this: "please, first detach mtd...". And detaching don't work for rootfs, because it's in use. Did you comment out this check?


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Flash Gordon Plugin #158 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 28 May 2013 - 21:25

use ubiformat?

It's cleaner (and way faster) to remove the existing rootfs volume, and create a new one.
The UBI layer is fine, there is no need to ubiformat it again.

create a chroot environment with static binaries (klibc-utils or busybox-static will do fine)
use pivot_root to switch the root to it, then chroot into it (to let go of the shell in the old rootfs), and finally umount the (now free) old root.
Now you can remove and replace it.

Re: Flash Gordon Plugin #159 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 28 May 2013 - 21:43

Sounds a little bit difficult... let's see if I can handle it...

 

Currently I use nandwrite to flash rootfs (before I do a remount read-only and a flash_erase). Flashing is not the problem, but after reboot ecc errors (ubi_io_read: error -77 (ECC error)) occur and I have to flash system via usb stick. So I think that I make something wrong. But I do it exactly the same like the _restore script which is used for vu boxes. Well, I use -m option. Perhaps this is the problem.

 

I can post the sources and the binary. But I wanted to post it when it's ready...


Edited by betacentauri, 28 May 2013 - 21:44.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Flash Gordon Plugin #160 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 28 May 2013 - 21:50

Well, I have tested again. Also without -m option it don't work (I use this command: "nandwrite -m /dev/mtd2 ./rootfs.bin"; I have one binary included everything I need).


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04



Also tagged with one or more of these keywords: Flashing

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users