Seite 3 von 3 ErsteErste 123
Ergebnis 21 bis 22 von 22
  1. #21
    Neuer Benutzer
    Registriert seit
    09.05.2016
    Beiträge
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Danke schonmal für die zahlreichen Antworten.
    Ich werd mich mal etwas näher in das Thema Multiboot unter SH4 einlesen.
    Schade das es die meisten Images nicht als .tar.gz gibt.
    Darüber ist es nämlich einfach und es wird kein extra RAM benutzt.
    Einfach das tar.gz Image unter Partition MINI... installieren.
    Danach kann man dann wenn man möchte mit dem STB Admin Tool immer wieder neu aussuchen, welches Image als Standartimage verwendet wird.
    Nach dem reboot, wird dann immer das ausgewählte Image vom Stick geladen.


  2. #22
    Erfahrener Benutzer
    Registriert seit
    24.01.2015
    Beiträge
    123
    Thanks
    20
    Thanked 38 Times in 25 Posts
    I know this is old, but if anyone finds it while searching for help...

    I run all my images from an NFS server and I use this script to extract the .img files to a directory. It could be easily modified to extract to a USB flash disk. (just comment out part checking for and creating target dir. ($2)) If the uImage is in the same folder (like usual) It also copies the uImage file into the /boot dir.

    Unzip file someplace and then run:
    Code:
    ./extract_jffs2.sh  /path/enigma2/e2jffs2.img /path/target
    Code:
    #!/bin/bash
    
    ## Script to extract e2jffs2.img filesystem using mtd kernel modules.
    
    
    if [[ $# -lt 1 ]]
    then
        echo "Usage: $0 e2jffs2.img Destination_Dir"
        echo "(Full or relative paths can be used)"
        exit 1
    fi
    
    
    if [ "$(whoami)" != "root" ]
    then
        echo "$0 must be run as root!"
        exit 1
    fi
    
    
    if [[ ! -e $1 ]]
    then
        echo "$1 does not exist"
        exit 1
    fi
    
    
    if [[ -d $2 ]]
    then
        echo "$2 already exists!!"
        exit 1
    else
        mkdir $2
    fi
    
    
    if [[ ! -d $2 ]]
    then
        echo "$2 is not a valid extract directory"
        exit 1
    fi
    
    
    # cleanup if necessary
    umount /tmp/e2jffs2 &>/dev/null
    umount /tmp/mtdblock0 &>/dev/null
    modprobe -r jffs2 &>/dev/null
    modprobe -r block2mtd &>/dev/null
    modprobe -r mtdblock &>/dev/null
    sleep 0.25
    losetup -d /dev/loop1 &>/dev/null
    sleep 0.25
    
    
    modprobe loop || exit 1
    losetup /dev/loop1 "$1" || exit 1
    modprobe block2mtd || exit 1
    modprobe jffs2 || exit 1
    if [[ ! -e /tmp/mtdblock0 ]]
    then
        mknod /tmp/mtdblock0 b 31 0 || exit 1
    fi
    
    
    echo "/dev/loop1,128KiB" > /sys/module/block2mtd/parameters/block2mtd
    
    
    if [[ ! -e /tmp/e2jffs2 ]]
    then
        mkdir /tmp/e2jffs2
    fi
    
    
    mount -t jffs2 -o ro /tmp/mtdblock0 /tmp/e2jffs2 || exit 1
    
    
    (cd /tmp/e2jffs2; tar cf - .) | (cd "$2" ; tar xpf -) || exit 1
    
    
    
    
    # cleanup if necessary
    #umount /tmp/jffs2 &>/dev/null
    #umount /tmp/mtdblock0 &>/dev/null
    #modprobe -r jffs2 &>/dev/null
    #modprobe -r block2mtd &>/dev/null
    #modprobe -r mtdblock &>/dev/null
    umount /tmp/e2jffs2
    #umount /tmp/mtdblock0
    modprobe -r jffs2
    modprobe -r block2mtd
    modprobe -r mtdblock
    sleep 0.25
    #losetup -d /dev/loop1 &>/dev/null
    losetup -d /dev/loop1
    sleep 0.25
    
    
    rmdir /tmp/e2jffs2
    rm /tmp/mtdblock0
    
    
    cp $(dirname $1)/uImage $2/boot/
    
    
    echo "Successfully extracted $1 to $2"
    exit 0
    If you want to expand on the script, you could pass the zipfile as the first argument and have the script unzip the file first. (and of course remove the unzipped contents after...)
    Angehängte Dateien Angehängte Dateien


Berechtigungen

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