Bash: ./build_kernel.sh: Permission denied error in configuring DSP

I am following http://elinux.org/BeagleBoardUbuntu#DSP to configure
DSP on BeagleXM.

When i execute ./build_kernel.sh, i get an error

aadeesh@ubuntu:~$ ./build_kernel.sh
bash: ./build_kernel.sh: Permission denied

I installed the "Requirements" in
http://bazaar.launchpad.net/~beagleboard-kernel/+junk/2.6-stable/view/head:/readme.txt,
But still the same error appears.

Also i could not find the system.sh file to do the modifications.
I am using Ubuntu 10.10 as my Host and ubuntu-10.10-r4-minimal-armel
on beagle.

Please help.
Aadeesh

It sounds like you need to mark the file as executable before running it:

  chmod 0755 build_kernel.sh
  ./build_kernel.sh

Bye for now,

Make sure you are actually in the 2.6-stable directory.

I've tried to make the script as idoit proof but let me know if you
run into anything else..

Regards,

Sorry, i did not understood "2.6-stable directory" ?
Your idiot proof scripts certainly helps a beginner like me.

Aadeesh

Then where did you get the "./build_kernel.sh" script?

You just can't download the script by itself, you need the bzr repo,
as the script requires other files for data/control..

bzr branch lp:~beagleboard-kernel/+junk/2.6-stable

(for bzr haters, i'm planning a conversion to git on github, which
i've done for the devel tree's) :wink:

then: cd 2.6-stable/

then "./build_kernel.sh" will work..

Looking at your original email, you were asking about DSP, well the
10.10-r4 already has the correct kernel.. (main reason i updated the
image on feb 5th).

So you just need to run the "./create_dsp_package.sh" from my
2.6-stable to get the dsp libs..

http://elinux.org/BeagleBoardUbuntu#DSP

Regards,

ERROR:

aadeesh@ubuntu:~/2.6-stable$ ./build_kernel.sh
+ Detected build host [debian-]
system.sh: line 32: syntax error: unexpected end of file

Also,

aadeesh@ubuntu:~/2.6-stable$ ./create_dsp_package.sh
system.sh: line 22: syntax error near unexpected token `fi'

Regards,
Aadeesh

Looks like you screwed up the "system.sh" when you copied it from
"system.sh.example"

post it to pastebin.com and i'll comment on it..

Regards,

I just copied as
cp system.sh.sample system.sh

Pastebin:

http://pastebin.com/D52p4jLB

Also system.sh is as follows

That's what i figured.. I added some more checks to warn users when
they forgot to modified the "#CC=arm-linux-gnueabi-"

The script doesn't care which of the many cross compilers you use...
It just needs to know where to find it..

So modify the CC variable accordingly..

Otherwise, create_dsp_package.sh no longer needs the CC variable so i
removed that check upstream..

http://bazaar.launchpad.net/~beagleboard-kernel/+junk/2.6-stable/revision/167

(it use to compile stuff, now days it just packages the codec's..)

Regards,

Thanks. Its working now.
Sorry for my silly questions.

You are like my Mentor.

Thank You.
Aadeesh

Hello Robert,

I have system.sh like the following

#!/bin/sh
#copy as “system.sh” and tweak for your system

ARCH=$(uname -m)

#ARM Native gcc compiler (running gcc on arm target)

if [ “x${ARCH}” = “xarmv7l” ] ; then
#Native arm gcc compiler
CC=

fi

###REQUIRED:

#ARM GCC CROSS Compiler:
if CC is not set, a known working linaro based gcc compiler will be downloaded and utilized.

CC=/home/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc-

###OPTIONAL:

###OPTIONAL: LINUX_GIT: specify location of locally cloned git tree.

Uhh.. Please don't translate the error message..

Run "./build_kernel.sh" and paste the FULL terminal output of the run
to pastebin.com

Regards,

ohh sorry, here is the output

http://pastebin.com/raw.php?i=q50MPuC5

Regards,

Mustafa

10 Aralık 2013 Salı 18:16:00 UTC+2 tarihinde RobertCNelson yazdı:

Remove the extra "if" you un-commented out in the file..

To see which if, just use meld: "meld system.sh.sample system.sh"

Regards,