Welcome to LIGHT Forum.......The place to be.......Enjoy your stay and have fun ....

Announcement

Collapse
No announcement yet.

Expanding ROM and RAM in PurE2

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Expanding ROM and RAM in PurE2

    There are various ways of expanding your ROM: Flodder, Flash Expander, MiniMultiBoot, Barry Allen, OpenMultiBoot, Neoboot....

    OK, time to pull together various threads which help people set up their machines with PurE2 properly...

    Let's explain the notions/jargon and the principles...

    ROM = "Flash/NAND/eMMC" etc. To expand ROM (= Read Only Memory, i.e. "permanent" memory) we use Flash Expander, Flodder, OpenMultiBoot etc. Let's call this our receiver's "hard drive".

    When you reboot the receiver/PC/etc. this memory should still contain all the files it had before the reboot, i.e. Operating System (OS) should still be there, plus plugins/apps etc. It should remain unchanged. Of course, unless you installed or uninstalled something on purpose and rebooted, in which case it will be changed slightly - but all the other stuff should still be there.

    RAM = "working memory". To enlarge RAM (= Randomly Accessed Memory) we use SWAP (either partition or in this case) file. Swap Manager is built-into PurE2 along the lines of old PowerBoard achievements.

    The files/apps which were in RAM are "lost" once a receiver is rebooted. They are populated once again, from scratch, when one restarts a receiver, depending on which apps one starts etc. So, this memory is not "permanent" but "variable", as it were. In terms of PCs, this is - you guessed it - RAM!

    ================================================== ================================

    Let's deal with RAM first, as it is simple...

    You will find Swap Manager in PurE2 > MENU > pManager > Device Manager > go to the right and then all the way down..

    Activate Swap file? YES

    Swap file size - I usually make a 512MB one...

    Swap file location - USB, mSD or SSD (not a device with moving parts, like old HDDs).

    Note that some older boxes need this, of course. But some newer boxes have a SWAP partition done by default, at the time of flashing an image, on eMMC/NAND/in Flash itself. Ergo, one doesn't need a Swap file on top of that.

    To see if you already have a Swap partition, after flashing an image, Telnet into your box via PuTTy, for instance, and write:

    Code:
    df -h
    and also

    Code:
    free -h
    See the output and act accordingly. In DB500HD you will need a Swap file made by Swap Manager, of course.

    But in Zgemma H7S, on the other hand, you would not, as you would have 1/2 GB Swap partition done at the moment of flashing an image, by default.

    Have a look:

    Code:
    • root@zgemmah7:~# df -h
    • Filesystem Size Used Available Use% Mounted on
    • /dev/root 733.5M 513.0M 164.5M 76% /
    • devtmpfs 185.8M 4.0K 185.8M 0% /dev
    • tmpfs 64.0K 0 64.0K 0% /media
    • /dev/mmcblk0p1 3.0M 10.0K 3.0M 0% /boot
    • tmpfs 502.0M 760.0K 501.2M 0% /var/volatile
    • /dev/sda1 436.6G 7.8G 405.5G 2% /media/hdd
    • /dev/sdb1 27.9G 155.1M 26.3G 1% /media/usb
    • root@zgemmah7:~# free -h
    • total used free shared buff/cache available
    • Mem: 1.0G 904M 62M 640K 37M 68M
    • Swap: 490M 8.9M 482M
    Good luck!


    Let's deal with ROM now...

    There are various ways of expanding your ROM: Flodder, Flash Expander, MiniMultiBoot, Barry Alen, OpenMultiBoot etc. etc.

    OpenMultiBoot (OMB)

    We will presume that in your Sat TV receiver (= STB = Set Top Box) you have installed PurE2.

    We will also presume that you have a clean/empty, big enough USB stick in your machine.

    One presses MENU button on one's remote control (RC) and goes to "PurE2 feeds" (= Plugins in your MENU), then to Extensions, where one should

    a) Install enigma2-plugin-extensions-openmultiboot and restart your machine

    b) in your PC with Windows or Linux OS, use FileZilla Client, for instance, to FTP into your STB (in other words, connect your PC and your STB)

    c) from your PC send an unpacked PurE2 image with 'zip' suffix to the following folder of your STB ==> /media/hdd/open-multiboot-upload (do not unpack it!)

    d) go to MENU > Plugins > OpenMultiBoot > install PurE2 image in this plugin's menu

    e) restart PurE2, then chose non-flash PurE2 image from the menu and wait until it starts fully.

    After it boots, you'll have PurE2 image installed on the USB memory stick with plenty of space and you will be able to install a bunch of stuff.

    If your STB has a small RAM - you can install a large SWAP file on the same USB stick, too...

    I tested this on my old 500HD (only 64MB small ROM/Flash) with Japhar SIM card and it's brilliant!

    Of course, now you may install more images made for your machine - the same way as above - and have fun...


    FLASH EXPANDER

    This is a bit more complicated and hence not as stable, long term - but a great tool, nevertheless!!!

    We will presume you have an STB with a USB port, using PurE2 image, of course... I have tested it in my F500HD, hence the title below...

    gorski's 11 theses for 500HD bliss with Flash Expander - with proper USB device mounting instructions, too...

    1) First thing one does is one partitions one's BIG and FAST USB 3.0 memory stick into 2 partitions (Mini Tool Partition Wizard freeware under Windows, for instance, is a good tool to do this with).

    2) Then, one plugs the USB stick into one's 500HD. Old Ferrari clones have 2 USB ports: internal and external one.

    3) Then, one mounts the 2 USB 3.0 stick partitions by going to:

    MENU > pManager > Device Manager > Mount Manager > blue button > yellow button (to switch Automount OFF) > Exit > do this for both partitions on the USB stick.

    4) Then, do not restart E2 but instead go back to mount those two partitions in a fixed manner, via FSTAB file.

    How?

    5) This you can do either by using the MENU or the BLUE button, then using the > or < buttons on your remote, changing the mounts to get as follows:

    -smaller (say, 2GB) partition as /media/usb (= partition 1)

    -bigger (say the rest, i.e. 30GB of 32GB USB stick) partition as /media/hdd (= partition 2)

    6) Press OK to write it into the FSTAB file, then out of 3 options choose RESTART THE BOX. The box reboots.

    (If it doesn't work the first time round, the second time it will be as you want it to be!)

    7) Now, go to MENU > Plugins > Extensions > install this plugin, i.e. Flash Expander.

    8) Exit and if necessary restart E2, then go back to Plugins > start Flash Expander and use it to move the /usr folder to the smaller 2GB partition (it will later on appear as /usr in various menus, as you'll see soon). Restart will follow, when it moves the /usr folder content to USB /media/usb partition.

    9) I then use a SWAP Manager, which you will find in the same part of pManager, to create a SWAP file (512MB) and activate it (see top post for details).

    This is the result, firstly showing the partitions using "df -h" command and then "before and after" SWAP creation, using "free" command:

    Code:
    • root@dm500hd:~# df -h
    • Filesystem Size Used Available Use% Mounted on
    • /dev/root 60.0M 56.3M 3.7M 94% /
    • devtmpfs 66.3M 4.0K 66.3M 0% /dev
    • tmpfs 66.4M 128.0K 66.3M 0% /var/volatile
    • /dev/mtdblock2 3.8M 2.7M 1.0M 73% /boot
    • /dev/sda2 26.9G 171.9M 25.4G 1% /media/hdd
    • /dev/sda1 2.4G 179.3M 2.1G 8% /usr
    • (before)
    • root@dm500hd:~# free
    • total used free shared buff/cache available
    • Mem: 136044 68520 10992 132 56532 42494
    • Swap: 0 0 0
    • (after)
    • root@dm500hd:~# free
    • total used free shared buff/cache available
    • Mem: 136044 72472 10880 132 52692 39912
    • Swap: 524284 0 524284
    10) Now, we can start downloading

    -plugins/addons (like Franc's FNC plugins, then ffmpeg package for E2iPlayer etc. etc.)

    -tools you may need (like Dream Explorer)

    -skins you may want to have extra

    -picons galore

    -EPG

    -etc. etc.

    and

    11) direct picons, EPG, buffering, cache etc. to /media/hdd (partition 2), just like we directed SWAP file to it...

    Only the careful configuration of it all will ensure all will be well with our "oldie but goldie"!!!

  • #2
    In the last few days I have experimented a bit trying to set up my DB500HD clone and I realised that if one is using just 1 big USB stick one should partition it in 3 partitions, like so:

    1) something like 2GB for Flash Expander

    2) the rest of the USB stick for HDD but minus 1GB which should go to

    3) Linux SWAP Partition - make sure it is not more than 1024MB = 1GB precisely!!!

    It looks like this, in your PC, using Mini Tool Partition Wizard:



    1) In effect, Flash Expander will use the first 2GB mounted as /media/usb ==> to put the /usr folder there.

    2) Your HDD needs will be served with the largest part of the USB stick on the second partition, mounted as /media/hdd.

    Mount those 2 partitions as described above, all is the same...















    So, all is the same as in the first post....

    EXCEPT FOR THIS, WHICH IS A NOVUM I JUST DISCOVERED

    3) When you start the SWAP Manager 2 you will no longer need to CREATE a SWAP file - you will have a SWAP PARTITION!!!

    So, MENU > Plugins > Swap Manager 2...




    ==> it will automatically recognise the third partition, which is formatted as SWAP!!! It looks like this:



    So, activate it using the red button and you'll see this:



    Then, use the yellow button to make it start with E2, so in effect to "autostart" each time you restart E2:




    Now, ain't that better in an old, HW limited lady, hehe.....

    Comment


    • #3
      ​Demo of an old DB500HD clone with Japhar SIM card, enabled by PurE2!!!!



      https://youtu.be/e4CjUm0LpIM


      https://youtu.be/rgiGAs7c1aY


      https://youtu.be/0yp3q3XWPWQ


      https://youtu.be/OF-JVNNT7sQ


      https://youtu.be/xdUKlQb1lGk

      Last edited by gorski; 20-12-2020, 22:55.

      Comment

      Working...
      X