Thomas Waldecker | 12 Jul 2012 09:18
Picon

ELDK 5.2.1 install script not working out of the box, need to run fromdos

Hi, 

I am new to this list.
After downloading ELDK 5.2.1 from the ftpserver you have to do a fromdos install.sh:

    tq <at> ubuntu:~$ wget ftp://ftp.denx.de/pub/eldk/5.2.1/install.sh
    tq <at> ubuntu:~$ chmod u+x install.sh
    tq <at> ubuntu:~$ ./install.sh 
    bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

I consider this is a bug. Looks the script was saved with windows line endings.
After running fromdos it works as intended (ERROR is ok - only reproduced the behavior in the home
directory). 

    tq <at> ubuntu:~$ fromdos install.sh 
    tq <at> ubuntu:~$ ./install.sh 
    Error: target directory "./targets/powerpc" does not exist

Kind regards,
Thomas Waldecker
Wolfgang Denk | 12 Jul 2012 10:33
Picon
Picon
Favicon

Re: ELDK 5.2.1 install script not working out of the box, need to run fromdos

Dear Thomas,

In message
<B88C075EE1324644BA0452D5EFDD582808B54543@...>
you wrote:
> 
> I am new to this list.
> After downloading ELDK 5.2.1 from the ftpserver you have to do a fromdos install.sh:
> 
>     tq <at> ubuntu:~$ wget ftp://ftp.denx.de/pub/eldk/5.2.1/install.sh
>     tq <at> ubuntu:~$ chmod u+x install.sh
>     tq <at> ubuntu:~$ ./install.sh 
>     bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory
> 
> I consider this is a bug. Looks the script was saved with windows line endings.

I bet you did not verify the downloaded file against the
install.sha256 checksum file?   The file on the server is clean.

If your version was corrupted, then it must have been corrupted
during your download or when storing it in your local file system.

I cannot confirm such a problem on our end,

Best regards,

Wolfgang Denk

--

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
(Continue reading)


Gmane