|
Multiboot 7025 version 2.0
THE EAGLE HAS LANDED ...
================================================== =====================
Multiboot for Dreambox 7025 BETA 2.0 by thowi from 29. April 2006
================================================== =====================
Thanks to noggi and grblmpfh for the basic research in this
area and others that contributed usefull stuff and feedback
for creating the first Release.
Thanks to 3c5x9 for creating the addon menu coding in
enigma2, great job !
================================================== =====================
Version History
================================================== =====================
BETA 1.0 this was the first Release of multiboot
BETA 1.3 almost full addon menu support
BETA 2.0 full addon Menu support now included with Wizzards !
added ImageX dummy Name if no name passed for
compatibility with addon menu
================================================== =====================
Multiboot for DM 7025 with CF card - how do you start using it ?
First you need a CF Card for your Dreambox 7025 with at least
256MB. Bigger ones work, then after the last partition simply
there will be unused space (for backups,...)
Currently there is (yet) no support for this empty space from
multiboot. Smaller cards then 256MB do NOT work - except,
you adapt the scripts YOURSELF and make them work without
the last Partition(s) for images (but no support on this)
First time you have to Flash an image that recognizes the CF Card.
In principle multiboot therefore will work only with images that
have the CF card support included, however at present all images
have it included because it is in the CSV of DM contained.
Important - while Flashing the CF card has to be ALWAYS outside
of the dreambox especially when pressing the lower button when
switching it on.
Only then one can flash via the WebIF normaly (with CF card
inside that cannot be done).
Then copy the multibootXX.tar.bz2 file to /var/tmp with ftp
(TCP/IP must be working already).
If you have flashed an image that offer in Blue Pannel Manual
Addon Installation you can use this functionality to extract
the kit.
If not, then unpack the whole files by entering the following
commands in a Telnet session. The cd / ist important, because
kit is now built with full filenames including directories,
and the kill is needed so that multiboot addon menu
becomes visible in Games/Extensions menu (but you can restart
also enigma from menu if your images offers this functionality).
> cd /
> bunzip2 /var/tmp/multibootXX.tar.bz2
> tar -xvf /var/tmp/multibootXX.tar
> /var/tmp/multiboot.sh kill
If you now want to change the partition layout on the Cf card edit
the init.cmd file before executing the enable command
(if you don't know how to do this then better don't do it !):
For example reducing the FAT Partition to 16MB (smaller will not
work because you need space for all 3 kernels), or the Linux
Partitions size from 75MB to for example 64MB (smaller will
not work because Images on CF card are about
56MB big and you need free space for logs, Plugins,...).
You can also increase the Linux Partition size to use up all
empty space of the CF card.
(Size of the card - FAT Size)/3 - Standard is (256-30)/3=75MB)
It is recommended to leave the partitions layout as it is !
Now you can install multiboot on cf card either from menu
or manually with the script as follows.
Remark: If you just want to upgrade multiboot from a previous
version without loosing the current Images on CF card then
replace the enable command now with update !
> cd /
> /var/tmp/multiboot.sh enable
If you do it from addon menu then simply choose enable
(or update) there.
By this command the CF card is prepared for multiboot and all
4 partitions are created, however only the first (FAT) is filled
with the multiboot tools needed.
If you now want to continue working with multiboot in menu mode
now ALL commands are there available also !
The rest of this documentation describes the usage of multiboot
with the command line interface, the menu usage will just execute
the same commands and show the output.
Subsequently if you are not using the menu interface, continue
working on /media/cf, only during enable, disable and update
the kit has to be unpacked at /var/tmp and the multiboot.sh
executed from there (the menu does this automatically).
Before entering the command always change directory to /media/cf:
> cd /media/cf
Or enter multiboot with full path:
> /media/cf/multiboot.sh
For test purposes we will start to fill (only for the first time)
all 3 partitions with a copy of the Flash:
> multiboot.sh copy 1
Optional you can pass as 2. Parameter a Name for the image
(if blanks are included use "" as in example above)
> multiboot.sh copy 2 "Name of second Image"
But there is also an option name|n available with which you can
extend the Partition name later:
> multiboot.sh name 2 "Name of Partition 2 or further text"
The third image is created for testing purpose as a copy
of the second image:
> multiboot.sh copy 3 2 "Copy of second Image"
> multiboot.sh info
Last command should show that all 3 Images are now installed and
that you are still booted from flash (when copying an image
now booting is now always set to flash to prevent problems).
Then test with one of the copied images if you can boot-enable
it (in our example #1) and simply reboot:
> multiboot.sh boot 1
> multiboot.sh reboot
Now should be bootet from the first partition:
> multiboot.sh info
That command should confirm this !!!
Now the CF card is already functional for multiboot - Congratulation!
Before you now copy a further image to the flash, you
have to halt again
> multiboot.sh halt
Now the box should be halted and you can remove the CF card
for flashing the next image.
After Flashing and maybe changig necessary things (like Settings,
Plugins download,...) you can continue.
If the image flashing is completed simply shutdown with halt and
reboot with CF card insterted (which is still pointing to
Flash booting)
Then simply this new Flashimage is copied on the next
partition copy:
> multiboot.sh copy 2 "Name of second Image"
Optional you can pass also a third Parameter a Name for the image
(if blanks are included use "" as in example above)
Before flashing and copying a further image on the CF card you must
halt.
> multiboot.sh halt
Now the box is halted and you can remove the CF map card once
more for flashing the last image. After this you can flash the last
image for copying to the CF card and maybe doing necessary setups
(Settings, Plugins download, ... - but you can do this naturally
also later when bootedfrom the CF card) .
If the image is flashed you have to shutdown with halt and reboot
again, then instert the CF card (which is still pointing to
Flash booting)
Then simply this new Flashimage is copied on the last partition:
> multiboot.sh copy 3 "Name of third Image"
Now you can still copy another last image in the Flash for
booting, but you have to halt again for doing this.
> multiboot.sh halt
Now the box is halted and you can remove the CF card
for puttitng the last image to the Flash. Flash it
and if necessary changes are needed (Settings, Plugins
to download,...) do them im Flash.
Then you should extend the image in flash, so that it
also contains the addon menu and the fstab is extended
that all CF card partitions are mounted (if you don't do
this you can always do it manually
with info option) - but no Image is copied in this case !
> multiboot.sh copy 0
Now much fun with multibooting & testing!
In principle you can select now that all Partitions are filled
with multiboot.sh or the multiboot addon menu by passing the
wanted partitionnumber (X = 1,2,3 and 0 for the Flash) of the
Image you want to boot:
> multiboot.sh boot X
With the info option from multiboot you can also display
the current /media/cf/autorun.bat to find out what will
be booted next.
If you want to copy a new image over a partition already
filled then do not worry, you don't need to beginn from start.
Simply put the wanted image into the Flash (as above) and
then copy it to the wanted partition, the script deletes
the previous partition cleanly.
You now have also the possibiltiy to copy images between
partitions on the cf card. Simply pass also the source partition
number after the target partiitonnumber as third argument when
using the copy option of multiboot. 0 will be always
the booted partition as source, also when no source number
is passed.
There is no also the possibility to copy only settings
(like Channel Lists) between Partitions with the s|settings
option. Optionaly pass also the source partition number after
the target partitionnumber as third argument when using the
settings option of multiboot. 0 will be always the booted
partition as source, also when no source number is passed.
If you pass the same number for source and target for either
the copy or the settings option then the image or settings will
be deleten, and in case of the settings after a reboot you will
have to go trought the Installation wizzard again. In the menu
this feature is called delete image or delete settings.
If you want to copy further stuff too (besides the settings),
feel free to add the appropiate commands at the end of
/media/cf/cpsettings.sh, and also the rmsettings.sh
Attention, after coping the settings you will have to check the
SAT config, this is not copied and if it doesn't match then
the settings will not work.
When the Partitions are not available at the cf1,cf2,cf3
directories you can use the info option to mount them
(but fstab should be extended during image copy to do this
automatically, except for the flash image where you can do
this if wanted with a copy 0).
When a new version of multiboot is released you don't need to
do everything again. Simply FTP over the new multibootXX.tar.bz2
file to /var/tmp and use the same comands
as during installation to extract the files there and then use
the update option to update the files at /media/cf:
> cd /var/tmp
> bunzip2 multibootXX.tar.bz2
> cd /
> tar -xvf /var/tmp/multibootXX.tar
The above works also with Manual Install from Blue Pannel
if available.
> /var/tmp/multiboot.sh update
And finally for geting rid of Multiboot you have to boot
from Flash and unpack the kit again on /var/tmp
and then execute multiboot from there (as done above for
update):
> /var/tmp/multiboot.sh disable
> /var/tmp/multiboot.sh reboot
If you want do disable multiboot from CF card via the menu,
you should FTP the kit again to /var/tmp, and install it
with Blue Pannel and execute disable from menu.
Then the CF card should be again empty and after a Reboot be
mounted as a whole on /media/cf
What can you do if you grilleld your multiboot - for example
the FAT accitentially deletet or important files there lost,
or when it is pointing to a partition that isn't bootable,
or empty ?
You can always try to boot from Flash (turn on without CF card)
and immediately after the first things are shown on the LCD
re-insert the cf card so that it is recognized when booting
from flash. And then worst case is that
you start again from the beginning with multiboot.sh enable
(but try before the info option if the FAT Partition is
seeable again so that maybe with update you can
re-copy the files or with boot 0 you can make
it booting from flash without any tricks)
Worst case is formating the Cf card on a PC and start again
from the beginning !
How does now finally the new support from multiboot for the
games/addon menu work ?
Well, when you copy an image on the CF card there will be also
a small addon linked to
/usr/lib/enigma2/python/Plugins/Extensions/Multiboot
(or on the first Image it will be copied there by the tar -xvf
of the multiboot kit)
which allows you to execute the boot, info, copy, enable,
disable,... comand from the menu.
If you copy an image from flash, then the plugin is installed in
the copy of the image also.
If it doesn't show up try the info option in a terminal
which should re-install the plugin (eg. create the link)
and after a restart it should be there:
> /media/cf/multiboot.sh info
> /media/cf/multiboot.sh restart
Alternatively there is also a small script available
which just adds this link to an image:
> /media/cf/linkmb.bat
All features of multiboot.sh not availabel from the command line
are now available from menu interface too !
With images that don't offer the possibility to add this
multiboot menu addon or where it was not installed (yet)
you would need still telnet to choose booting another
partition for booting.
Enjoy Multibooting with your remote control !
|