+ Antworten
Ergebnis 1 bis 3 von 3

Thema: UFSinstaller

  1. #1
    Developer
    Registriert seit
    18.07.2012
    Ort
    Ridderkerk, Niederlande
    Beiträge
    634
    Thanks
    144
    Thanked 712 Times in 304 Posts

    UFSinstaller

    Those of you who regularly make use of my buildsystem may have noticed a new directory in it: ufsinstaller. And yes: it serves the same purpose as the tfinstaller, but now for the Kathrein UFS922. Both receivers share a few features that makes them somewhat similar:
    • Flash memory is too small to run either Enigma2 or Neutrino it;
    • Dual tuner;
    • STx7109 Soc;
    • Built-in hard disk.

    So my thought was: why not automate the installation and running of Enigma2 or Neutrino using a combination of flash memory for the kernel and a hard disk partition for the rootfs in the same manner as on the tf7700? The result is the ufsinstaller. It has been realized in the following way. Just as on the tf7700, two kernels are built: one is the kernel which is used to run Enigma2 or Neutrino and that is flashed into flash memory. The tf7700 runs the other kernel off the USB stick used for installation, but on the ufs922 it is flashed into flash memory too. The second kernel represents a mini installation environment that handles the partitioning of the hard disk, changing the bootargs and flashing and checking the final result before running the image for the first time.

    The whole thing has been set up in such a way that the original unmodified bootloader is still used, albeit with different bootargs, and the recovery kernel is left intact, providing a workable way back to the original Kathrein software, should one wish to.
    The behaviour of the install process is controlled by the text file Image_Installer.ini and offers the same possibilities as with the tfinstaller. The version in the git is optimized for a re-installation.

    Building and installing Enigma2 or Neutrino is done in the following way:
    1. Build the desired image using the buildsystem. Select flash as the destination.
    2. Run 'fakeroot ./flash.sh' in the flash subdirectory.
    3. Copy the entire contents of the subdirectory flash/out to an empty FAT32 formatted USB stick.
    4. For the first installation, change the following entries in the file Image_Installer.ini:
      • partition=0 to partition=1
      • keepsettings=1 to keepsettings=0
      • keepbootargs=1 to keepbootargs=0
      • format=0 to format=1
        • The entry createmini controls how the hard disk is partitioned. When 0, the disk gets 3 partitions: sda1 (2 Gbyte) is for the rootfs, sda2 becomes the swap area (256 Mbyte) and the remainder of the capacity becomes the record partition sda3. Its format is normally ext3, but can be changed to jfs or ext2 if so desired. For details, see the file Image_Installer.ini.
        • If createmini is set to 1, four rootfs partitions are created as sda1, sda2, sda3 and sda4. sda5 becomes the swap area of 256 Mbyte, and again the remainder is the record partition. The enables up to four different images on the hard disk.

      • A word of caution: the first installation completely wipes out the existing hard disk info, including the Kathrein channel list and recordings.

    5. For a first installation, the receiver should be running the original Kathrein software (see the next post on how to do this).
    6. To install the image, switch off the receiver using the mains switch on the back and insert the prepared USB disk in the front USB port. Press and hold the front panel key RECORD and switch the receiver on. Keep pressing the key until the display shows "[ ]/UP2TE2/OPT". Then release the key and briefly press the front panel key STOP. The installation will now begin. If the parameters format and partition are set to 1 the formatting and partitioning of the hard disk can take several minutes depending on its size. Progress can be observed in the serial log.
    7. Halfway the installation, you are asked to press and hold the RECORD key on the front panel again, so keep observing the front panel display. After the restart release the key when the aforementioned text "[ ]/UP2TE2/OPT" appears in the display and briefly press STOP on the front panel.
    8. The installation is complete after the third restart, when the image is run for the first time.


    That's it for the moment. In a following post I will tell how to go back to the Kathrein original, as this is not trivial.

    Regards,

    Audioniek.
    Geändert von Audioniek (31.07.2021 um 14:44 Uhr)
    Receivers: Rebox: RE-4000, 8000, 9000, 2200, 2210, 2220, 4200, 4210, 4220, 8220, 8500, SAB Unix Triple, Golden Media Spark TripleX, Amiko Alien 2+, Sogno Spark Revolution, Kathrein UFS910(1 & 14W)/912/913/922(CX24116 & AVL2108 tuners), Vizyon revolution 820HD PVR, AB IPBox 91HD/9000HD/9000HD rev.2, Xsarius Alpha HD10, nBox BKSA/BSLA/BXZB/BZZB, Vitamin HD 5000
    Sats: Astra 1, 2 & 3, Hotbird
    Main activity: building my own E2 images for Fortis receivers


  2. #2
    Developer
    Registriert seit
    18.07.2012
    Ort
    Ridderkerk, Niederlande
    Beiträge
    634
    Thanks
    144
    Thanked 712 Times in 304 Posts
    As promised above here is the instruction to bring a UFS922 back to its factory state.

    Follow these instructions.

    A word of caution: when this procedure is followed, ALL contents of the internal hard disk will be lost.

    Step 1: repartition and reformat the internal hard disk
    • Switch the receiver completely off using the mains switch on the back.
    • Open the lid for the CI-slots, and press and hold the front panel REC key.
    • While still pressing the REC key, switch the receiver back on using the mains switch on the back.
    • When the front panel display shows "[ ] / UP2 / TE2 / OPT" release the REC key.
    • Briefly press the front panel TV/R key.
    • The front panel display should now show "HDD/RS FAC / [ ] / [ ]".
    • Briefly press the front panel REC key.
    • The front panel display should now show the count down "HDD RST REBOOT 3 => 2 => 1 => 0".
    • The receiver will reboot shortly after the final display "HDD RST REBOOT 0"


    Step 2: install firmware version 2.0
    • Format a USB stick with FAT32.
    • Unpack UFS922_V2.0.zip (attachment below) on the USB stick.
    • Eject the stick from the computer (do not pull it straight out).
    • Switch the receiver completely off using the mains switch on the back.
    • Insert the prepared USB stick in the front panel USB port behind the lid for the CI slots.
    • Press and hold the front panel AUX key.
    • While still pressing the AUX key, switch the receiver back on using the mains switch on the back.
    • When the front panel display shows "EMERGENCY BOOT" release the AUX key.
    • The display should show "Load Script File", followed by: "Wait: USB load".
    • Next, the front panel display should briefly read "Done: f17400 Rd".
    • Next, the front panel display should read "Check Update File".
    • Flashing the firmware now begins and will take several minutes to complete.
    • The front panel display should now read "(1/3) Er XXX", with XXX counting up to 100.
    • Next, the front panel display should read "(1/3) Wr XXX", with XXX counting up to 100.
    • Next, the front panel display should read "(2/3) Er XXX", with XXX counting up to 100.
    • Next, the front panel display should read "(2/3) Wr XXX", with XXX counting up to 100.
    • Next, the front panel display should read "(3/3) Er XXX", with XXX counting up to 100.
    • Next, the front panel display should read "(3/3) Wr XXX", with XXX counting up to 100.
    • Flashing version 2.0 firmware is now complete.


    Step 3: Resetting the bootargs
    • The receiver will briefly switch off and try to reboot.
    • The boot will fail, because the kernel command line is still wrong.
    • Switch the receiver off using the mains switch on the back.
    • Connect a PC with a terminal program through a null modem cable to the receiver.
    • Start the terminal program and select the COM port used for the connection.
    • Set the communication parameters to 115200 baud, 8 bits, one stop bit, no parity (115200N81).
    • With the terminal program running, switch on the receiver and immediately start pressing the Enter key repeatedly until you see the receivers' prompt: MB411>
    • Now enter the following lines one by one (copy/paste is recommended here):

    Code:
    setenv baboot
    setenv bacmd
    setenv baflag
    setenv bootargs
    setenv bootargs ''console=ttyAS0,115200 root=/dev/mtdblock3 mem=83m bigphysarea=5632 coprocessor_mem=3m@0x04000000,3m@0x04300000''
    setenv bootcmd 'bootm 80040000'
    saveenv
    • Finally enter: reset and press <enter>.


    Step 4: Finishing the recovery
    The receiver will reboot and show the sign on 'Kathrein UFS-922' followed by the text 'Starten...'. The internal hard disk is being examined and will be found to have information missing. After a while the receiver will restart again, after initializing the hard disk.

    On the screen connected to the HDMI port, you will see Programmsuchlauf durchfuhren! for a while, then the screen will go black.

    Software V2.0 is running now, but cannot start showing a channel for at least two reasons: There is no tuner configuration and there is no channel list.

    At this point the receiver is ready to receive a new Enigma2 or Neutrino image using the ufsinstaller.

    Step 5: Making the Kathrein firmware operational
    If you want to go back to the original firmware completely, proceed as follows.
    • Press MENU on the remote control (note: the following texts assume the language is set to Deutsch).
    • Insert the USB prepared in step 2 in the front panel USB port. The stick contains an initial channel list.
    • Select Service-Menu and press OK.
    • Select Aktualisierung uber USB and press OK.
    • Select Programmlisten-Aktualisierung and press OK.
    • Acknowledge the pop-up by pressing OK.
    • After the channel list restore is finished, press BACK twice so you are in the main menu again.
    • Select Einstellungen and press OK.
    • Select Antenne & Satelliten and press OK (note: at this point you can do a Erst-Installation as an alternative).
    • Select Tuner-Konfiguration and press OK.
    • Enter your tuner configuration as per the user manual.
    • After doing this, press BACK repeatedly until the main menu is left. Acknowledge storing the tuner configuration pop-up by pressing OK.

    You should now be able to watch TV using software version 2.0.

    As a final step install the latest version (2.10), fine tune the settings and reconstruct or restore the channel list you prefer.

    Note: software version 2.10 can not be used the recover the internal hard disk; hence the use of software version 2.0, which can.

    Regards,

    Audioniek.

    The Kathrein V2.0 firmware: UFS922_V2.0.zip
    Geändert von Audioniek (31.07.2021 um 14:54 Uhr)
    Receivers: Rebox: RE-4000, 8000, 9000, 2200, 2210, 2220, 4200, 4210, 4220, 8220, 8500, SAB Unix Triple, Golden Media Spark TripleX, Amiko Alien 2+, Sogno Spark Revolution, Kathrein UFS910(1 & 14W)/912/913/922(CX24116 & AVL2108 tuners), Vizyon revolution 820HD PVR, AB IPBox 91HD/9000HD/9000HD rev.2, Xsarius Alpha HD10, nBox BKSA/BSLA/BXZB/BZZB, Vitamin HD 5000
    Sats: Astra 1, 2 & 3, Hotbird
    Main activity: building my own E2 images for Fortis receivers


  3. #3
    Developer
    Registriert seit
    18.07.2012
    Ort
    Ridderkerk, Niederlande
    Beiträge
    634
    Thanks
    144
    Thanked 712 Times in 304 Posts
    The UFS910


    Owners of a UFS910 that had a look inside may have noticed that the main board has a provision for a SATA connector. In the early days, this was often the case with receivers based on the STi7100, STi7101 or STi7109 SoC as this SoC has a SATA port integrated. It is therefore possible to expand a UFS910 giving it an internal SATA connected hard disk. The process of adding one is straightforward as it involves disassembling the receiver to make the solder side of the main board accessible and soldering in a SATA connector in the location provided. Before soldering in the connector, first check if the four 10nF coupling capacitors are present. They are located right beside the location for SATA connector. In the two receivers of the author the capacitors were already mounted. If they are not, add them before soldering in the SATA connector. Their value is 10nF, the shape is 0603 if I remember correctly.

    The power supply of the UFS910 was not designed to power an internal hard disk but practice has shown that it has capacity to spare to keep a low power 2.5 inch drive that only requires +5 Volts going.

    After adding the connectors for SATA and power and mounting the drive, it is time for the next step. I have added the UFS910 to the ufsinstaller directory in the build environment. To make use of it, simply build an image for the UFS910 using flash as destination and run fakeroot ./flash.sh in the flash directory to prepare the files required.

    The basic approach with the UFS910 is the same as with the UFS922 and the TF7700. The kernel used by the image resides in NOR flash, the rootfs of the image sits on a 2 Gbyte partition on the hard disk. Control of the installation process is again through the file Image_Installer.ini and the options are exactly the same, including the difference between a first installation (requiring partitioning and formatting of the hard disk) and an update (which does not).

    There is only one minor difference in the process. Whereas the UFS922 gets two kernels flashed, on the UFS910 initially the kernel performing the installation and partitioning/formatting of the hard disk is flashed; at the end of the installation process it is overwritten by the actual kernel used by the image.

    Final note: as far as I know, (I have not tested/verified this) the Kathrein factory firmware does not recognize an internal SATA hard disk and cannot use it. This is very likely caused by the fact that its kernel lacks the SATA driver.

    Regards,

    Audioniek.
    Receivers: Rebox: RE-4000, 8000, 9000, 2200, 2210, 2220, 4200, 4210, 4220, 8220, 8500, SAB Unix Triple, Golden Media Spark TripleX, Amiko Alien 2+, Sogno Spark Revolution, Kathrein UFS910(1 & 14W)/912/913/922(CX24116 & AVL2108 tuners), Vizyon revolution 820HD PVR, AB IPBox 91HD/9000HD/9000HD rev.2, Xsarius Alpha HD10, nBox BKSA/BSLA/BXZB/BZZB, Vitamin HD 5000
    Sats: Astra 1, 2 & 3, Hotbird
    Main activity: building my own E2 images for Fortis receivers

  4. The Following User Says Thank You to Audioniek For This Useful Post:



Berechtigungen

  • Neue Themen erstellen: Ja
  • Themen beantworten: Ja
  • Anhänge hochladen: Ja
  • Beiträge bearbeiten: Ja
  •