Android installation help

  • I have installed the Android on the SD card and have transferred the set-bootloader.sh file like described. When i run the ./set_bootloader.sh it comes up with /bin/sh^M: bad interpretor. Any idea on what I am doing wrong?


    Any help is highly appreciated. Below you find the telnet printout. Thank you.


    dreamone login: root
    Password:
    root@dreamone:~# cd /data/android
    root@dreamone:/data/android# ls -al
    total 2176216
    drwxrwxr-x 2 1000 1000 4096 Oct 15 20:24 .
    drwxrwxr-x 6 1000 1000 4096 Sep 19 14:13 ..
    -rw-rw-r-- 1 1000 1000 638 Sep 19 00:15 autoexec.img
    -rw-rw-r-- 1 1000 1000 9791488 Sep 20 14:36 boot.img
    -rw-rw-r-- 1 1000 1000 1843270 Aug 22 23:07 bootlogo.bmp
    -rw-rw-r-- 1 1000 1000 69206016 Sep 19 00:15 cache.img
    -rw-rw-r-- 1 1000 1000 184 Jun 10 22:21 env.txt
    -rwxrwxr-x 1 1000 1000 3141 Aug 22 23:14 flash_all_sd.sh
    -rw-rw-r-- 1 1000 1000 586 Jun 10 22:21 fw_env.config
    -rwxrwxr-x 1 1000 1000 33176 Jun 10 22:21 fw_printenv
    -rwxrwxr-x 1 1000 1000 33176 Jun 10 22:21 fw_setenv
    -rw-rw-r-- 1 1000 1000 134217728 Sep 19 00:15 odm.img
    -rw-rw-r-- 1 1000 1000 134217728 Sep 19 00:15 product.img
    -rwxrwxrwx 1 root root 511 Oct 15 20:44 set_bootloader.sh
    -rw-rw-r-- 1 1000 1000 1342177280 Sep 19 00:15 system.img
    -rwxrwxr-x 1 1000 1000 2388 Sep 20 18:32 update_sd.sh
    -rw-rw-r-- 1 1000 1000 536870912 Sep 19 00:15 vendor.img
    root@dreamone:/data/android# ./set_bootloader.sh
    -bash: ./set_bootloader.sh: /bin/sh^M: bad interpreter: No such file or directory
    root@dreamone:/data/android# ^C
    root@dreamone:/data/android#

  • ^M is ASCII Charakter #13. Looks like the script has been edited with a windows editor, and the lines terminate with the wrong end of line characters CRLF instead of LF only. You should use a linux compatible text editor like Notepad++ for example.

    DM900 UHD mit DVB-T2 | OE2.5 unstable 4.3.1r28 mit GP3.3

    2 Mal editiert, zuletzt von Dibagger ()

  • Thanks a lot for your response. I have opened the file in Notepad ++ editor all lines ends with LF. I have also tried to run it on my Ubuntu operated PC and the file execute. When i run it on root@dreamone:/data/android# ./set_bootloader.sh


    it still comes up with:


    -bash: ./set_bootloader.sh: /bin/sh^M: bad interpreter: No such file or directory


    Any help is highly appreciable. Thank you.

    • Offizieller Beitrag

    Use original image!

    no brain no pain! :495:
    Auf gar keinen Fall die GP-Wiki lesen!!
    sie könnte Deinen Kopf zu schwer für Deinen Hals machen :grinning_squinting_face:
    :sonne:458859-modellist-gif


    attachment.php?attachmentid=158292 Wir wollen uns für das Update bedanken!!
    attachment.php?attachmentid=204594

  • Thanks a lot for your advise. I am curious to know some more about this. For my installation I have installed the GP4. My understanding is that this forms the original image as basis, and GP4 is installed on top of it. Based on your advise, do I need to remove GP4 installation and only use the original image, with no option to use GP4? Thanks for any further advise.

  • I have just installed original image without any success, and I am starting to realise that this installation is not for my level. However, I would like to thank you all for contributing for me to understand this. Thank you/ Vielen danke.