Stránka 1 z 1

ofgwrite Flashing Tools

Napsal: 16.listopad 2020 - 18:38
od EnoSat
ofgwrite.jpg

Kód: Vybrat vše

Flash without USB stick
I wrote a tool which allows you to flash the box during operation. It was created due to the fact that has gutemine published a similar tool in the OpenPLi forum, but no source code to do this . Since there actually everything was already described , I then set myself even think ...
Short first: I have multiple problems with the tool flashed my box . But I take no guarantee that the runs with you !
Therefore, you should definitely take a backup before taking action on a USB stick . According OpenPLi forum , you can supposedly do not scrap with the tools I use his box ... I have not done ;-)
After a warning : If the root file system is flashed , is only stopped e2 and then the box reboots. I.e. not executing the program , if a recording is in progress !
One next to the appended binary requires either a suitable backup or create a new image for the box.
Ofgwrite_v1.8.zip copy the file to the box and unpack ( unzip ofgwrite_v1.8.zip ) . The file can be unpacked ofgwrite go somewhere . For example, the / tmp or / hdd . I go further assume that the file is located in / hdd .

    If the file is not executable " chmod 755 ofgwrite " Run

    Change to the backup directory and copy the new image on the box , unpack it and change into the directory . After that you should be in the directory box , depending on ET9X00 , ET6X00 , ... are

    ofgwrite call : / hdd / ofgwrite parameters see below

parameter:
Usage: ofgwrite <parameter> <image_directory>
Options :
-k - kernel flash kernel (default)
-r - rootfs flash root ( default)
-n - show only nowrite found image and mtd partitions ( no write)
-h - help show help

Without parameters, only this info is displayed. If you want to see what makes the tool exactly, but really anything is changed without the , can
	
Code:
ofgwrite -n -r -k <image_dir>

calling. Do not be afraid, for n nothing really happened.
To flash and run it normally like so: ofgwrite-r-k / (if you are already in the correct directory) otherwise / hdd / ofgwrite-r-k / hdd/fullbackup/2013..../et9x00 /.
You can also just flash the kernel (-k only). But then you should make sure that the kernel of the installed kernel modules fit. So einzuspielen a kernel from a 3.6.0 backup, if only the current 3.8.7 kernel modules are available on the machine is not a good idea!
If you have any problems, please spending time posting!
Edit: New version 1.8 is appended. This version shows after the completion of E2 on the television a progress bar (see attached image)
The current source code can be found here: https://github.com/openatv/ofgwrite
Flashovanie bez USB kľúča
Nástroj, ktorý vám umožní aktualizovať box počas prevádzky.
Bol vytvorený kvôli tomu, že gutemine zverejnil podobný nástroj na fóre OpenPLi, ale k tomu žiadny zdrojový kód.

Najprv krátko:
Mám niekoľko problémov s nástrojom, ktorý mi zablikal do políčka. Ale neberiem žiadnu záruku, že beží s vami!
Preto by ste si mali pred vykonaním akcie na USB kľúči určite urobiť zálohu.
Podľa fóra OpenPLi vraj nemôžete šrotovať s nástrojmi, ktoré používam v jeho schránke ... Neurobil som ;-)

Po varovaní:
Ak bliká koreňový súborový systém, zastaví sa iba e2 a potom sa krabica reštartuje. Tj. nevykonávanie programu, ak práve prebieha nahrávanie!
Jeden vedľa pripojeného binárneho súboru vyžaduje buď vhodnú zálohu, alebo vytvorí nový obraz poľa.
Ofgwrite_v1.8.zip skopírujte súbor do poľa a rozbaľte (rozbaľte ofgwrite_v1.8.zip). Súbor je možné rozbaliť niekam napísať.
Napríklad /tmp alebo /hdd. Ďalej predpokladám, že súbor sa nachádza v priečinku /hdd. Ak súbor nie je možné spustiť „chmod 755 ofgwrite“ Spustiť Zmeniť do záložného adresára a skopírovať nový obrázok z krabice, rozbaliť ho a zmeniť do adresára.
Potom by ste sa mali nachádzať v adresárovom poli, v závislosti na ET9X00, ET6X00, ... sú parametre
ofgwrite call: /hdd/ofgwrite
pozri parameter nižšie:

Použitie:
ofgwrite <parameter> <image_directory>
Možnosti:
-k - jadro flash jadro ( predvolené)
-r - rootfs flash root (predvolené)
-n - zobraziť iba teraz nájsť nájdený obrázok a oddiely mtd (bez zápisu)
-h - pomôcť zobraziť pomoc Bez parametrov sa zobrazí iba táto informácia.

Ak chcete zistiť, čo robí nástroj presne, ale bez neho sa zmení skutočne všetko, môžete volať
Code:
ofgwrite -n -r -k <image_dir>.
Nebojte sa, pretože n sa skutočne nič nestalo.
Blikať a spustiť to normálne takto:
ofgwrite -r -k / (ak už ste v správnom adresári) inak /hdd/ofgwrite-r-k /hdd/fullbackup/2013 .... / et9x00 /.
Môžete tiež len flashovať jadro (iba -k). Potom by ste sa však mali ubezpečiť, že jadro nainštalovaných modulov jadra zapadá.
Takže einzuspielen jadro zo zálohy 3.6.0, ak sú na stroji k dispozícii iba aktuálne moduly jadra 3.8.7, nie je dobrý nápad!
Ak máte nejaké problémy, venujte prosím čas zverejňovaniu!
Edit:
Je pripojená nová verzia 1.8. Táto verzia zobrazuje po dokončení E2 v televízii indikátor priebehu (pozri priložený obrázok)
Aktuálny zdrojový kód nájdete tu: https://github.com/openatv/ofgwrite

PS1: nechelo sa mi to prekladat (tak zatial cez translator - ak bude chut, tak prelozim normalne, alebo niekto ochotny posle korektny preklad)
PS2: ci uz je v image sa vecsinou lahko overi napisanim v konzole (telenet a pod...) ofgwrite -help

Re: ofgwrite Flashing Tools

Napsal: 16.listopad 2020 - 18:45
od ctiforum
Pekná vec, ale dočítal som sa na domovskej stránke toto:

Warning:
Run the program once with -n parameter and check whether mtd partitions
are recognized properly. If not, don't use this tool!!!
On VU+ boxes there is a risk of bricking the box which is afaik not
possible with Xtrend boxes.

Platí to, alebo to už je v tejto verzii nejako fixnuté?

Re: ofgwrite Flashing Tools

Napsal: 16.listopad 2020 - 18:57
od EnoSat
ja osobne pouzivam ofgwrite ktore je uz sucastou HD51 prikazom ofgwrite -mX /media/sda1/hd51 (kde X je cislo banky pamete), myslim ze je to uz verzia 4.4