MediaBoot Script (en): Unterschied zwischen den Versionen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen
K (Mfgeg verschob Seite Media-Boot (en) nach MediaBoot Script (en))
 
(43 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
[[Kategorie:Index]]
 
[[Kategorie:Enigma2]]
 
[[Kategorie:FAQ und Anleitungen]]
 
 
{|width="40%"
 
{|width="40%"
  |[[Bild:deutsch.png]] - [[Media-Boot|in Deutsch]]
+
  |[[Bild:deutsch.png]] - [[MediaBoot Script|in Deutsch]]
  |[[Bild:english.png]] - [[Media-Boot (en)|in English]]
+
  |[[Bild:english.png]] - [[MediaBoot Script (en)|in English]]
 
  |}
 
  |}
{|width=99%
+
The '''Media-Boot''' script by [http://www.i-have-a-dreambox.com/wbb2/profile.php?userid=14123 emanuel] installs an image onto a media device such as USB, CF, SD or SSD, inclusive the GP3 [http://en.wikipedia.org/wiki/Software_repository Feed].  
<div style="margin: 0; margin-right:10px; border: 1px solid #dfdfdf; padding: 1em 1em 1em;  background-color:#F8F8FF; align:right;">[[Bild:Artikel_Hinweis.png|right|40px|The Gemini Project]]
 
=== Install a OE2.0 Image on a media device **UNDER CONSTRUCTION** ===
 
</div>
 
|-
 
|
 
<div style="background-color: #FFFFFF; border: 1px padding: .4em; solid #cccccc;">
 
__TOC__
 
  
The media-boot script by [http://www.i-have-a-dreambox.com/wbb2/profile.php?userid=14123 emanuel] installs an image onto a media device such as USB, CF, SD or SSD, inclusive the GP3 [http://en.wikipedia.org/wiki/Repository#Software-Repository Feed]. While executing the script the device gets partitioned into 3 partitions (boot, swap and root). Subsequently the image (as tar.bz2 archive) is downloaded and unpacked onto the device. After an automatic restart of the Dreambox the image from the device is bootet and offers enough memory for all your needs. Interesting e.g. for the DM800se with small flash capacity ;)
+
While executing the script the device gets partitioned into 3 partitions (boot, swap and root). Subsequently the image (as tar.bz2 archive) is downloaded and unpacked onto the device.  
  
 +
After an automatic restart of the Dreambox the image from the device is booted and offers enough memory for all your needs. Interesting e.g. for the DM800se with small flash capacity ;)
  
The Media-Boot Script is available in two versions. You can choose between folowing OE2.0 based images.
+
The Media-Boot Script is available in two versions. You can choose between following [[OE 2.0]] based images.
 
 
* media-boot (DMM exp. OE2.0)
 
* merlin-media-boot (Merlin 3 OE2.0)
 
  
 +
* media-boot (DMM exp. OE 2.0)
 +
* merlin-media-boot (Merlin 3 OE 2.0)
  
 
==== Requirements: ====
 
==== Requirements: ====
 +
* DM500HD with a [http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=131383&threadview=0&hilight=500hd&hilightuser=0&page=1 USB Mod]. Without USB Mod it is also possible as described [http://www.i-have-a-dreambox.com/wbb2/thread.php?postid=1710563#post1710563 here], but the backup/restore of the image takes '''quite''' a while.
 +
* DM800se, DM8000HD or  DM7020HD.
 +
* An image with most recent second stage loader in flash memory.
 +
* A functioning internet connection.
 +
* Bios of the Dreambox needs to be configured correctly.
 +
* A media device larger than 1GB.
 +
* Create Bootlog, if the boot fails.
 +
* The media device needs to be formated in FAT32.
 +
* Use other media device, if the boot fails. Mainly USB Sticks can be problematic.
 +
* Media-Boot uses a plugged media device. Problems occur when plugging additional devices into the Dreambox. As a result the device names move and booting is no longer possible.  This problem can only be solved by making a Bootlog and editing the <code>autoexec_*.bat</code>.
 +
* Take a look at Tips & Tricks.
  
* DM500HD (benötigt einem [http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=131383&threadview=0&hilight=500hd&hilightuser=0&page=1 USB Mod]), DM800se, DM8000HD,  DM7020HD.
+
= Bios configuration =
* Eine funktionierende Internetverbindung.
 
* Bios der Dreambox muss korrekt eingestellt sein.
 
* Ein Speichermedium grösser 1GB.
 
* Bootlog erstellen, wenn das booten nicht startet.
 
* Das Speichermedium muss in FAT32 formatiert sein.
 
* Anderes Speichermedium benutzen, wenn das booten nicht klappt. Vor allem USB Sticks sind da manchmal problematisch.
 
* Media-Boot funktioniert mit einem eingesteckten Speichermedium. Probleme gibt es nur, beim Anstecken von weiteren Speichermedien. Dadurch verschieben sich die Gerätenamen und das Booten ist nicht mehr möglich. Das Problem kann nur durch einen Bootlog und dem editieren der autoexec_*.bat behoben werden.
 
* Abschnitt Tipps & Tricks anschauen
 
 
 
= Bios Einstellen =
 
 
 
 
{|
 
{|
 
|[[Bild:Dumbo Plugin Bios DM8000.png|thumb|none|Bios - DM 8000 HD PVR|250px]]
 
|[[Bild:Dumbo Plugin Bios DM8000.png|thumb|none|Bios - DM 8000 HD PVR|250px]]
 
|[[Bild:Dumbo Plugin Bios DM800se.png|thumb|none|Bios - DM 800 HD se|254px]]
 
|[[Bild:Dumbo Plugin Bios DM800se.png|thumb|none|Bios - DM 800 HD se|254px]]
 
|}
 
|}
Die Einstellungen des Bios müssen angepasst werden, damit man von einem angesteckten Medium via FAT booten kann.<br/>
+
You need to prepare the Bios to be able to boot via a removable media containing the FAT filesystem.<br/>
Der folgende Abschnitt zeigt die nötigen Anpassungen, für die einzelnen, unterstützten Dreamboxen.
+
The following chapter shows you the needed preparation for the different kind of Dreamboxes.
  
Die '''USB Unterstützung''' muss bei allen Boxen aktiviert werden.
+
The '''USB support''' needs to be activated for all Boxes.
  
{{Hinweis|'''Verbindung zum Bios herstellen'''<br/>Das Bios der Box erreicht man auf dem gleichen Weg, wie wenn ein Image via Webbrowser geflasht wird.<br/>Nur muss man mit '''[[Telnet (deutsch)|telnet ip_der_dreambox]]''' auf das Bios zugreifen. Dann können die benötigten Einstellungen angepasst werden. Weitere Informationen zum BIOS Zugriff, findet ihr im Wiki Artikel [[Dreambox Bios]].}}
+
{{Hinweis|'''Changing the Bios'''<br/>Like flashing the Bios via Webbrowser you can connect to the Bios.<br/>After you see "STOP" at the display you can connect via '''[[Telnet (en)|telnet ip_of_dreambox]]''' to the Bios. Than you can change the needed values. Further informations about accessing the BIOS can be found in Wiki article [[Dreambox Bios (en)]].}}
  
 
+
{{Hinweis|'''Choose Boot Source '''<br/>If you cannot change the values at '''Boot Source''' between Flash / CF / USB, <br/>then use the {{Taste|Page Up}} or {{Taste|Page Down}} keys at your keyboard.<br/>'''Mac''' users can use the following combination {{Taste|Fn}}+{{Taste|Shift}}+{{Taste|↑/↓}}.
{{Hinweis|'''Boot Source auswählen'''<br/>Habt ihr Probleme mit dem Ändern der '''Boot Source''' zwischen Flash / CF / USB, dann benutzt die [Page UP] oder [Page Down] Tasten bzw. die [Bild ↑] oder [Bild ↓] Taste, wenn der Cursor an der entsprechenden Stelle steht. '''Mac''' Benutzer, können folgende Kombination benutzen [Fn]+[Shift]+[Pfeil oben/unten].  
+
The following picture shows how these keys can look ;)
Das folgende Bild zeigt, wie solche Tasten aussehen können ;)
 
 
[[Bild:Dumbo Plugin keys example.png|none|409px]]
 
[[Bild:Dumbo Plugin keys example.png|none|409px]]
 
}}
 
}}
 
  
 
=== DM 500 HD ===
 
=== DM 500 HD ===
Primary boot source: usb [/autoexec_dm500hd.bat]
+
<syntaxhighlight lang="asm">
+
Primary boot source: usb [/autoexec_dm500hd.bat]
Secondary boot source: flash
 
 
Enable USB support: [ENABLED]
 
  
 
+
Secondary boot source: flash
 
 
=== DM 800HD PVR ===
 
Primary boot source: usb [/autoexec_dm800.bat]
 
 
   
 
   
Secondary boot source: flash
+
Enable USB support: [ENABLED]
+
</syntaxhighlight>
Enable USB support: [ENABLED]
 
 
 
  
 
=== DM 800HD se ===
 
=== DM 800HD se ===
Primary boot source: usb [/autoexec_dm800se.bat]
+
<syntaxhighlight lang="asm">
 +
Primary boot source: usb [/autoexec_dm800se.bat]
 
   
 
   
Secondary boot source: flash
+
Secondary boot source: flash
 
   
 
   
Enable USB support: [ENABLED]
+
Enable USB support: [ENABLED]
 
+
</syntaxhighlight>
  
 
=== DM 7020HD ===
 
=== DM 7020HD ===
Primary boot source: usb [/autoexec_dm7020hd.bat]
+
<syntaxhighlight lang="asm">
 +
Primary boot source: usb [/autoexec_dm7020hd.bat]
 
   
 
   
Secondary boot source: flash
+
Secondary boot source: flash
 
   
 
   
Enable USB support: [ENABLED]
+
Enable USB support: [ENABLED]
 
+
</syntaxhighlight>
  
 
=== DM 8000HD PVR ===
 
=== DM 8000HD PVR ===
Primary boot source: usb [/autoexec_dm8000.bat]
+
<syntaxhighlight lang="asm">
 +
Primary boot source: usb [/autoexec_dm8000.bat]
 
   
 
   
Secondary boot source: flash
+
Secondary boot source: flash
 
   
 
   
Enable USB support: [ENABLED]
+
Enable USB support: [ENABLED]
 +
</syntaxhighlight>
  
 +
= Configure Media-Boot =
 +
Download the wanted script from [http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=170168 Media-Boot Thread] unpack and copy the file with [[FTP]] onto the Dreambox in the directory <code>/home/root</code>.
  
Zurück zum [[#top | Inhaltsverzeichnis]]
+
Make sure the script has the correct rights, otherwise it can not be executed. Use the following command when connected via [[Telnet (en)|telnet]] or ssh. Attention this command is for the script for the DMM exp. Image. If you use the script for Merlin, you need to replace <code>media-boot</code> by <code>'''merlin-media-boot'''</code>!
  
 +
<syntaxhighlight lang="Bash">
 +
chmod 755 media-boot
 +
</syntaxhighlight>
  
= Media-Boot einrichten =
+
== Media-Boot Script ==
 +
=== Informations ===
 +
Informations about Media-Boot can be displayed as follows.
  
Holt euch das gewünschte Skript vom [http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=170168 Media-Boot Thread] entpackt es und kopiert es anschliessend via [[FTP]] auf die Dreambox in das Verzeichnis /home/root.
+
<syntaxhighlight lang="Bash">
 
+
root@dm800se:~# ./media-boot --help
Stellt sicher, dass das Skript die korrekten Dateirechte besitzt, ansonsten kann es nicht ausgeführt werden. Benutzt dazu folgenden Befehl, wenn ihr via [[telnet]] oder [[ssh]] eingeloggt seid. Achtung, der folgende Befehl bezieht sich auch das Skript für ein DMM exp. Image. Benutzt ihr das Skript für Merlin, müsst ihr media-boot immer mit dem Namen '''merlin-media-boot''' ersetzen!
 
 
 
chmod 755 media-boot
 
 
 
 
 
Zurück zum [[#top | Inhaltsverzeichnis]]
 
 
 
 
 
== Media-Boot Skript ==
 
 
 
=== Informationen ===
 
 
 
Informationen über Media-Boot könnt ihr wie folgt abrufen.
 
 
 
root@dm800se:~# ./media-boot --help
 
 
   
 
   
media-boot: is a script to install dreambox image (OE2) on extern device >= 1GB
+
media-boot: is a script to install dreambox image (OE2) on extern device >= 1GB
 
   
 
   
NOTE:  this script is only for advanced users!
+
NOTE:  this script is only for advanced users!
        Make sure the selected device is not your harddisk!!
+
        Make sure the selected device is not your harddisk!!
 
   
 
   
Usage: media-boot -i /dev/sd<a-z>
+
Usage: media-boot -i /dev/sd<a-z>
        install image on selected device /dev/sd<a-z>
+
        install image on selected device /dev/sd<a-z>
 
   
 
   
Usage: media-boot -d
+
Usage: media-boot -d
        shows avaible devices on box
+
        shows avaible devices on box
 
root@dm800se:~#
 
  
 +
root@dm800se:~#
 +
</syntaxhighlight>
  
Zurück zum [[#top | Inhaltsverzeichnis]]
+
=== List the available media devices ===
 +
With the following command you can list the available devices. In the example (output reduced) a hard disk and a USB Stick with 8GB is found. The name of the device is important for starting the Media-Boot script in the next step. In this example the USB Stick has the name <code>'''/dev/sdb'''</code>.
  
 
+
<syntaxhighlight lang="Bash">
=== Auflisten der verfügbaren Speichermedien ===
+
root@dm800se:~# ./media-boot -d
 
 
Mit dem folgenden Befehl, könnt ihr die verfügbaren Speichermedien anzeigen. Im folgenden Beispiel (Ausgabe verkürzt) wird eine Festplatte und ein USB Stick mit 8GB gefunden. Der Name des Speichermediums ist wichtig, wenn ihr im nächsten Schritt das Media-Boot Skript startet. Im diesem Beispiel hat der USB Stick den Gerätenamen '''/dev/sdb'''.
 
 
 
root@dm800se:~# ./media-boot -d
 
 
   
 
   
media-boot: found following devices on box:
+
media-boot: found following devices on box:
 
   
 
   
Disk /dev/sda: 500.1 GB, 500107862016 bytes
+
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
+
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
+
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   
 
   
    Device Boot      Start        End      Blocks  Id System
+
  Device Boot      Start        End      Blocks  Id System
/dev/sda1              1      60801  488384028+ 83 Linux
+
/dev/sda1              1      60801  488384028+ 83 Linux
 
   
 
   
Disk /dev/sdb: 8006 MB, 8006926336 bytes
+
Disk /dev/sdb: 8006 MB, 8006926336 bytes
84 heads, 6 sectors/track, 31028 cylinders
+
84 heads, 6 sectors/track, 31028 cylinders
Units = cylinders of 504 * 512 = 258048 bytes
+
Units = cylinders of 504 * 512 = 258048 bytes
 
   
 
   
    Device Boot      Start        End      Blocks  Id System
+
  Device Boot      Start        End      Blocks  Id System
/dev/sdb1              5      31025    7817216  b Win95 FAT32
+
/dev/sdb1              5      31025    7817216  b Win95 FAT32
 +
</syntaxhighlight>
  
 +
=== Execute Media-Boot ===
 +
{{Hinweis|'''Boot from CF/SD card in a DM8000HD'''<br/><br/>Before executing media-boot, you must execute the next command in the console.
 +
'''<nowiki>export EXTRA_DEV_ON_BOOT=sdx</nowiki>'''<br/>
 +
sdx has to match with the device nameof the CF or SD card.}}
  
Zurück zum [[#top | Inhaltsverzeichnis]]
+
Media-Boot is started with the following command. Make sure you use the correct device name, pay attention you don't make a mistake and specify your hard disk. Be patient, the initializing, downloading and unpacking of the image takes a while.
  
 +
<syntaxhighlight lang="Bash">
 +
root@dm800se:~# ./media-boot -i /dev/sdb
  
=== Media-Boot ausführen ===
+
media-boot: installing on device: /dev/sdb
 +
media-boot: stoping automount reboot to get back
 +
media-boot: stoping udev
 +
.
 +
.
 +
.
 +
</syntaxhighlight>
  
Media-Boot wird mit folgendem Befehl gestartet. Benutzt aber bitte den korrekten Gerätenamen, nicht dass ihr aus Versehen eure Festplatte erwischt. Seid bitte geduldig, das initialisieren, runter laden und entpacken des Images dauert eine Weile.
+
Afterwards the box restarts automatically, and the image from the stick is booted. You can check the available memory with following command.
  
Nach automatischen Neustart der Box, sollte das Image vom Speichermedium gestartet und bereit sein. Kontrollieren könnt ihr den verfügbaren Speicherplatz mit folgendem Befehl '''df -h'''.
+
<syntaxhighlight lang="Bash">
 +
df -h
 +
</syntaxhighlight>
  
root@dm800se:~# ./media-boot -i /dev/sdb
+
=== Install Chkbootmedia ===
+
After booting the Dreambox successfully from the media device the additional package (chkbootmedia_x.xx_all.ipk) needs to be installed. This is needed to prevent overwriting the <code>autoexec_*.bat</code> when kernel updates are installed. This would lead to a failed boot of the media device.
media-boot: installing on device: /dev/sdb
 
media-boot: stoping automount reboot to get back
 
media-boot: stoping udev
 
.
 
.
 
.
 
  
 +
Download the package from [http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=170168&threadview=0&hilight=&hilightuser=0&page=1 here] and copy the file with [[FTP]] onto the Dreambox in the directory <code>/tmp</code>. Install the package with the following commmand.
  
Zurück zum [[#top | Inhaltsverzeichnis]]
+
<syntaxhighlight lang="Bash">
 +
opkg install /tmp/chkbootmedia*
 +
</syntaxhighlight>
  
 +
= Backup / Restore Image =
 +
You can create or restore a backup with the following commands. The example uses again the media device <code>/dev/sdb</code>. The name of the media device can be found with the command [[fdisk (en)|fdisk -l]].
  
=== Chkbootmedia installieren ===
+
== Backup Image ==
 +
When the image is running from the media device you can make a backup with the [http://en.wikipedia.org/wiki/Dd_%28Unix%29 dd] command. In this example the path for the backup refers to the hard disk and the file name is <code>'''my_backup.img'''</code>. The size of the backups is the same size as the used media device. The process takes a while, please be patient and wait until the command line shows a prompt again.
  
Nachdem die Dreambox erfolgreich vom Speichermedium gestartet ist, muss noch das Paket (chkbootmedia_x.xx_all.ipk) installiert werden. Dieses stellt sicher, das durch Kernelupdates die autoexec_*.bat nicht überschrieben wird. Ansonsten ist ein booten vom Speichermedium nicht mehr möglich.
+
<syntaxhighlight lang="Bash">
 +
dd if=/dev/sdb of=/media/hdd/my_backup.img
 +
</syntaxhighlight>
  
Holt das Paket von [http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=170168&threadview=0&hilight=&hilightuser=0&page=1 hier] und kopiert es via [[FTP]] auf die Dreambox in das /tmp Verzeichnis. Installiert das Paket mit folgendem Befehl.
 
  
opkg install /tmp/chkbootmedia*
+
== Restore Image ==
 +
Start the Dreambox from Flash memory and use the following command for restoring. Make sure the device name is correct. Again use the command [[fdisk (en)|fdisk -l]] to double check!
  
 +
Make sure you use a media device which is at least the same size as the backup file (*.img). The process takes a while, please be patient and wait until the command line shows a prompt again.
  
Zurück zum [[#top | Inhaltsverzeichnis]]
+
<syntaxhighlight lang="Bash">
 +
dd if=/media/hdd/my_backup.img of=/dev/sdb
 +
</syntaxhighlight>
  
  
= Image sichern / wiederherstellen =
+
= DM8000HD with SATA SSD device =
 +
[[Bild:Dumbo Plugin ssd.jpg|thumb|SSD Power|150px]]
  
 +
Media-Boot can also install the Image onto a [http://en.wikipedia.org/wiki/Serial_ATA SATA] [http://en.wikipedia.org/wiki/Solid-State-Drive SSD] device. Advantage: the Image can boot '''very fast''' from this medium. As device you can use e.g. the [http://www.delock.de/produkte/gruppen/flash+speicher/SATA_Flash_Modul_2GB_Vertikal_54162.html DeLOCK SATA 2GB Flash Module] (vertical). The device fits (in height) perfectly in the DM 8000HD PVR and can be connected to the power supply of the Dreambox with the delivered cable.
  
Ein Backup erstellen oder wiederherstellen könnt ihr mit folgenden Befehlen. Das Beispiel bezieht sich wieder auf den Gerätenamen /dev/sdb. Den Gerätenamen könnt ihr auch mit dem Befehl [[fdisk|fdisk -l]] herausfinden.
+
The BIOS of the Dreambox must also be changed for the SATA SDD device. but '''not''' as described in the article. The Dreambox only boots from a SATA device, when the <code>'''Kernel Command Line'''</code> is activated and set correctly. Keep in mind you can only boot from Flash, when the Kernel Command Line is deactivated again. Otherwise the Image from the SSD device will still be booted.
  
== Image sichern ==
+
Also important to know: the Dreambox can actually not boot directly from SATA, but only from USB. With this setup the Flashkernel boots and subsequently the forced Kernel command line will load the root partition from the SSD device. Therefore it's extremely important to have the same image in Flash as on the SSD device. And of course make sure to update both Images - in Flash and on the SSD - when a kernelupdate occurs.
  
Läuft das Image vom Speichermedium, dann könnt ihr es mit dem [http://de.wikipedia.org/wiki/Dd_%28Unix%29 dd] Befehl sichern. Der Sicherungsort in diesem Beispiel ist die Festplatte und der Dateiname des Backups lautet '''mein_backup.img'''. Die Grösse des Backups ist übrigens gleich gross wie das benutzte Speichermedium. Das Sichern dauert eine Weile, seid bitte Geduldig und wartet, bis die Kommandozeile wieder bereit ist für neue Befehlseingaben.
+
== Connect SATA SSD Device ==
 +
{|
 +
|[[Bild:Dumbo Plugin SSD installation.png|thumb|SSD - 8K old Revision|280px]]
 +
|[[Bild:Dumbo Plugin SSD installation new.png|thumb|SSD - 8K new Revision|280px]]
 +
|}
  
  dd if=/dev/sdb of=/media/hdd/mein_backup.img
+
Use both pictures when connecting the SSD device.  
  
  
== Image wiederherstellen ==
+
== Adapting the BIOS ==
 +
This section shows the BIOS adjustments for Dreamboxes. In the BIOS you activate the '''Change Command Line''' (enabled) and change the '''Kernel Command Linie''' as described. For <code>root=/dev/sdX3</code> the <code>X</code> should be replaced with the correct character. Use the media-boot script or the command <code>fdisk -l</code>, to find out the SSD device.
  
Startet die Dreambox vom Flashspeicher und benutzt folgenden Befehl für die Wiederherstellung. Stellt sicher, das der Gerätename korrekt ist. Benutzt hier auch wieder den Befehl [[fdisk|fdisk -l]] und zwar gewissenhaft!
+
<syntaxhighlight lang="asm">
 +
Change Command Line      [ENABLED ]
 +
 +
Kernel Command Line      [console=ttyS0,115200 rootdelay=10 root=/dev/sdX3 rootfstype=ext4 rw]
 +
</syntaxhighlight>
  
Beim Wiederherstellen muss darauf geachtet werden, dass die Grösse der Speichermediums gleich gross (oder grösser ist), wie die der  Backupdatei (*.img). Das Wiederherstellen dauert eine Weile, seid bitte Geduldig und wartet, bis die Kommandozeile wieder bereit ist für neue Befehlseingaben.
+
== Execute Media-Boot ==
 +
Start the Media-Boot Script as described before. The package Chkbootmedia is not needed, because the <code>autoexec_.bat</code> is not read.
  
dd if=/media/hdd/mein_backup.img of=/dev/sdb
 
  
 +
= Tips & Tricks =
 +
== Install the GP3.2 Plugin ==
 +
The script offers the possibility to install the GP3.2 Plugin, GP3 Addons or GP3-Skins. This way the BluePanel and the additional plugins and Skins are available immediately after booting the media device.
  
Zurück zum [[#top | Inhaltsverzeichnis]]
+
Attention: an OE 2.0 Image is required in Flash for this feature.
  
 +
Edit the script and search the following lines:
  
= Tipps & Tricks =
+
<syntaxhighlight lang="make">
 
+
EXTRA=""
== GP3.2 Plugin Installieren ==
 
 
 
Das Skript bietet die Möglichkeit das GP3.2 Plugin, GP3 Addons oder GP3-Skins zu installieren. Somit sind das BluePanel und die Wunschplugins, Skins nach erfolgreichem Booten sofort verfügbar.
 
 
 
Editiert das Skript und sucht folgende Zeilen:
 
 
 
EXTRA=""
 
 
   
 
   
#EXTRA="geminiplugin geminidreamnetcast geminijukebox geminirezapp geminigweather gemininetcastwebif geminirssreader geminiwebcam"
+
#EXTRA="geminiplugin geminidreamnetcast geminijukebox geminirezapp geminiweather gemininetcastwebif geminirssreader"
 
+
</syntaxhighlight>
Die gewünschten Pakete, müsst ihr beim Eintrag '''EXTRA=""''' zwischen die Anführungszeichen einfügen. Der Eintrag, um das GP3.2 Plugin, NFS Server und die Gemini Jukebox zu installieren würde wie folgt ausschauen.
 
 
 
  EXTRA="geminiplugin gemininfs geminijukebox"
 
 
 
Wenn ihr die Paketnamen nicht kennt, dann könnt ihr bei einem eingerichteten Image mit GP3 Plugin die Namen wie folgt ermitteln. Führt aber vorher den Befehl '''opkg update''' aus. Der erste Befehl zeigt alle GP3 Pakete, der zweite die GP3 Skins.
 
  
opkg list *gemini*
+
You should add the wanted packages at '''EXTRA=""''' between the quotes. The line for installing the GP3.2 Plugin, NFS Server and Gemini Jukebox looks like the following example.
opkg list *gp-skin*
 
  
 +
<syntaxhighlight lang="make">
 +
EXTRA="geminiplugin gemininfs geminijukebox"
 +
</syntaxhighlight>
  
Zurück zum [[#top | Inhaltsverzeichnis]]
+
If you don't know the package name you can list the name when using an image with the GP3 Plugin using the following command. But before using the command do <code>'''opkg update'''</code>. The first command shows all GP3 packages, the second only the GP3 Skins.
  
 +
<syntaxhighlight lang="Bash">
 +
opkg list *gemini*
 +
opkg list *gp-skin*
 +
</syntaxhighlight>
  
= Supportthread =
+
{{Hinweis|If you use the Merlin script, you should remove the Quickbutton Plugin with the command<br/> '''opkg remove enigma2-plugin-extensions-quickbutton'''.}}
  
Braucht ihr Hilfe zu Media-Boot, dann folgt bitte folgendem Link ;)
+
= Support thread =
 +
If you need help with Media-Boot, follow the Link ;)
  
 
[http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=170168 Media-Boot]  
 
[http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=170168 Media-Boot]  
  
  
'''Zurück zur Übersicht:[[Gemini-Wiki:Portal]] oder [[Hauptseite]]'''
+
[[Kategorie:Enigma2 (en)]]
 +
[[Kategorie:Instructions (en)]]

Aktuelle Version vom 8. Januar 2014, 21:30 Uhr

Deutsch.png - in Deutsch English.png - in English

The Media-Boot script by emanuel installs an image onto a media device such as USB, CF, SD or SSD, inclusive the GP3 Feed.

While executing the script the device gets partitioned into 3 partitions (boot, swap and root). Subsequently the image (as tar.bz2 archive) is downloaded and unpacked onto the device.

After an automatic restart of the Dreambox the image from the device is booted and offers enough memory for all your needs. Interesting e.g. for the DM800se with small flash capacity ;)

The Media-Boot Script is available in two versions. You can choose between following OE 2.0 based images.

  • media-boot (DMM exp. OE 2.0)
  • merlin-media-boot (Merlin 3 OE 2.0)

Requirements:

  • DM500HD with a USB Mod. Without USB Mod it is also possible as described here, but the backup/restore of the image takes quite a while.
  • DM800se, DM8000HD or DM7020HD.
  • An image with most recent second stage loader in flash memory.
  • A functioning internet connection.
  • Bios of the Dreambox needs to be configured correctly.
  • A media device larger than 1GB.
  • Create Bootlog, if the boot fails.
  • The media device needs to be formated in FAT32.
  • Use other media device, if the boot fails. Mainly USB Sticks can be problematic.
  • Media-Boot uses a plugged media device. Problems occur when plugging additional devices into the Dreambox. As a result the device names move and booting is no longer possible. This problem can only be solved by making a Bootlog and editing the autoexec_*.bat.
  • Take a look at Tips & Tricks.

Bios configuration

Bios - DM 8000 HD PVR
Bios - DM 800 HD se

You need to prepare the Bios to be able to boot via a removable media containing the FAT filesystem.
The following chapter shows you the needed preparation for the different kind of Dreamboxes.

The USB support needs to be activated for all Boxes.

Ambox notice.png Changing the Bios
Like flashing the Bios via Webbrowser you can connect to the Bios.
After you see "STOP" at the display you can connect via telnet ip_of_dreambox to the Bios. Than you can change the needed values. Further informations about accessing the BIOS can be found in Wiki article Dreambox Bios (en).
Ambox notice.png Choose Boot Source
If you cannot change the values at Boot Source between Flash / CF / USB,
then use the Page Up or Page Down keys at your keyboard.
Mac users can use the following combination Fn+Shift+↑/↓.

The following picture shows how these keys can look ;)

Dumbo Plugin keys example.png

DM 500 HD

Primary boot source: usb [/autoexec_dm500hd.bat]
 
Secondary boot source: flash
 
Enable USB support: [ENABLED]

DM 800HD se

Primary boot source: usb [/autoexec_dm800se.bat]
 
Secondary boot source: flash
 
Enable USB support: [ENABLED]

DM 7020HD

Primary boot source: usb [/autoexec_dm7020hd.bat]
 
Secondary boot source: flash
 
Enable USB support: [ENABLED]

DM 8000HD PVR

Primary boot source: usb [/autoexec_dm8000.bat]
 
Secondary boot source: flash
 
Enable USB support: [ENABLED]

Configure Media-Boot

Download the wanted script from Media-Boot Thread unpack and copy the file with FTP onto the Dreambox in the directory /home/root.

Make sure the script has the correct rights, otherwise it can not be executed. Use the following command when connected via telnet or ssh. Attention this command is for the script for the DMM exp. Image. If you use the script for Merlin, you need to replace media-boot by merlin-media-boot!

chmod 755 media-boot

Media-Boot Script

Informations

Informations about Media-Boot can be displayed as follows.

root@dm800se:~# ./media-boot --help
 
media-boot: is a script to install dreambox image (OE2) on extern device >= 1GB
 
NOTE:   this script is only for advanced users!
        Make sure the selected device is not your harddisk!!
 
Usage: media-boot -i /dev/sd<a-z>
        install image on selected device /dev/sd<a-z>
 
Usage: media-boot -d
        shows avaible devices on box
 
root@dm800se:~#

List the available media devices

With the following command you can list the available devices. In the example (output reduced) a hard disk and a USB Stick with 8GB is found. The name of the device is important for starting the Media-Boot script in the next step. In this example the USB Stick has the name /dev/sdb.

root@dm800se:~# ./media-boot -d
 
media-boot: found following devices on box:
 
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1       60801   488384028+ 83 Linux
 
Disk /dev/sdb: 8006 MB, 8006926336 bytes
84 heads, 6 sectors/track, 31028 cylinders
Units = cylinders of 504 * 512 = 258048 bytes
 
   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               5       31025     7817216   b Win95 FAT32

Execute Media-Boot

Ambox notice.png Boot from CF/SD card in a DM8000HD

Before executing media-boot, you must execute the next command in the console.

export EXTRA_DEV_ON_BOOT=sdx
sdx has to match with the device nameof the CF or SD card.

Media-Boot is started with the following command. Make sure you use the correct device name, pay attention you don't make a mistake and specify your hard disk. Be patient, the initializing, downloading and unpacking of the image takes a while.

root@dm800se:~# ./media-boot -i /dev/sdb
 
media-boot: installing on device: /dev/sdb
media-boot: stoping automount reboot to get back
media-boot: stoping udev
.
.
.

Afterwards the box restarts automatically, and the image from the stick is booted. You can check the available memory with following command.

df -h

Install Chkbootmedia

After booting the Dreambox successfully from the media device the additional package (chkbootmedia_x.xx_all.ipk) needs to be installed. This is needed to prevent overwriting the autoexec_*.bat when kernel updates are installed. This would lead to a failed boot of the media device.

Download the package from here and copy the file with FTP onto the Dreambox in the directory /tmp. Install the package with the following commmand.

opkg install /tmp/chkbootmedia*

Backup / Restore Image

You can create or restore a backup with the following commands. The example uses again the media device /dev/sdb. The name of the media device can be found with the command fdisk -l.

Backup Image

When the image is running from the media device you can make a backup with the dd command. In this example the path for the backup refers to the hard disk and the file name is my_backup.img. The size of the backups is the same size as the used media device. The process takes a while, please be patient and wait until the command line shows a prompt again.

dd if=/dev/sdb of=/media/hdd/my_backup.img


Restore Image

Start the Dreambox from Flash memory and use the following command for restoring. Make sure the device name is correct. Again use the command fdisk -l to double check!

Make sure you use a media device which is at least the same size as the backup file (*.img). The process takes a while, please be patient and wait until the command line shows a prompt again.

dd if=/media/hdd/my_backup.img of=/dev/sdb


DM8000HD with SATA SSD device

SSD Power

Media-Boot can also install the Image onto a SATA SSD device. Advantage: the Image can boot very fast from this medium. As device you can use e.g. the DeLOCK SATA 2GB Flash Module (vertical). The device fits (in height) perfectly in the DM 8000HD PVR and can be connected to the power supply of the Dreambox with the delivered cable.

The BIOS of the Dreambox must also be changed for the SATA SDD device. but not as described in the article. The Dreambox only boots from a SATA device, when the Kernel Command Line is activated and set correctly. Keep in mind you can only boot from Flash, when the Kernel Command Line is deactivated again. Otherwise the Image from the SSD device will still be booted.

Also important to know: the Dreambox can actually not boot directly from SATA, but only from USB. With this setup the Flashkernel boots and subsequently the forced Kernel command line will load the root partition from the SSD device. Therefore it's extremely important to have the same image in Flash as on the SSD device. And of course make sure to update both Images - in Flash and on the SSD - when a kernelupdate occurs.

Connect SATA SSD Device

SSD - 8K old Revision
SSD - 8K new Revision

Use both pictures when connecting the SSD device.


Adapting the BIOS

This section shows the BIOS adjustments for Dreamboxes. In the BIOS you activate the Change Command Line (enabled) and change the Kernel Command Linie as described. For root=/dev/sdX3 the X should be replaced with the correct character. Use the media-boot script or the command fdisk -l, to find out the SSD device.

Change Command Line      [ENABLED ]
 
Kernel Command Line      [console=ttyS0,115200 rootdelay=10 root=/dev/sdX3 rootfstype=ext4 rw]

Execute Media-Boot

Start the Media-Boot Script as described before. The package Chkbootmedia is not needed, because the autoexec_.bat is not read.


Tips & Tricks

Install the GP3.2 Plugin

The script offers the possibility to install the GP3.2 Plugin, GP3 Addons or GP3-Skins. This way the BluePanel and the additional plugins and Skins are available immediately after booting the media device.

Attention: an OE 2.0 Image is required in Flash for this feature.

Edit the script and search the following lines:

EXTRA=""
 
#EXTRA="geminiplugin geminidreamnetcast geminijukebox geminirezapp geminiweather gemininetcastwebif geminirssreader"

You should add the wanted packages at EXTRA="" between the quotes. The line for installing the GP3.2 Plugin, NFS Server and Gemini Jukebox looks like the following example.

EXTRA="geminiplugin gemininfs geminijukebox"

If you don't know the package name you can list the name when using an image with the GP3 Plugin using the following command. But before using the command do opkg update. The first command shows all GP3 packages, the second only the GP3 Skins.

opkg list *gemini* 
opkg list *gp-skin*
Ambox notice.png If you use the Merlin script, you should remove the Quickbutton Plugin with the command
opkg remove enigma2-plugin-extensions-quickbutton.

Support thread

If you need help with Media-Boot, follow the Link ;)

Media-Boot