LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-23-2014, 01:48 PM   #1
brentw
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Rep: Reputation: Disabled
compiling u-boot for AM335x => /bin/bash: arm-none-linux-gnueabi-gcc: command not fou


Hello,

I will preface this with the fact I am a newbie. I am currently running Ubuntu 12.0.4 on a 64 bit machine.

I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler (arm-2010q1).

I uncompressed everything to a sub folder => /home/brent/work

I have added the following to my .bashrc file:

PATH=/home/brent/work/arm-2010q1/bin:$PATH
CROSS_COMPILE=arm-none-linux-gnueabi-

I have also installed the following:
sudo apt-get install ia32-libs

When I go to built u-boot I am doing the following (per instructions that came with the kit):
1. brent@brent~/work/u-boot$ sudo make distclean

awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }' boards.cfg > .boards.depend

2. brent@brent~/work/u-boot$ sudo make myd_am335x_lcd4.3_config

awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }' boards.cfg > .boards.depend
C onfiguring for myd_am335x_lcd4.3 - Board: myd_am335x, Options: DISPLAY_LCD43

3. brent@brent~/work/u-boot$ sudo make

/bin/bash: arm-none-linux-gnueabi-gcc: command not found
/bin/bash: arm-none-linux-gnueabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
Generating include/autoconf.mk
/bin/bash: line 3: arm-none-linux-gnueabi-gcc: command not found
/bin/bash: arm-none-linux-gnueabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
Generating include/autoconf.mk.dep
/bin/bash: line 3: arm-none-linux-gnueabi-gcc: command not found
/bin/bash: arm-none-linux-gnueabi-gcc: command not found
/bin/bash: arm-none-linux-gnueabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: arm-none-linux-gnueabi-gcc: command not found
/bin/bash: arm-none-linux-gnueabi-ld: command not found
/bin/bash: arm-none-linux-gnueabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: arm-none-linux-gnueabi-gcc: command not found
dirname: missing operand

I have verified the binary is located at /home/brent/work/arm-2010q1/bin

I also do not understand why I need sudo. If I do not I get a permission error.

Any help or information on what I am doing wrong would be greatly appreciated.
 
Old 08-23-2014, 11:29 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,720

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
Maybe this will help
http://e2e.ti.com/support/dsp/omap_a.../t/247614.aspx
 
Old 08-24-2014, 08:07 AM   #3
brentw
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Thanks for the response. I had seen this thread before. I did verify I had both

arm-none-linux-gnueabi-gcc and arm-none-linux-gnueabi-gcc.4.4.1 in my bin directory.

I had added the location to the bin folder in my PATH in the bash.rc file.

I did see one difference in that I did not have the entire path to the bin directory in the .bashrc for the CROSS_COMPILE variable. I have added that.

Unfortunately I still get the same error.

I uncompressed my the cross compiler at /home/brent/work/arm-2010q1. I see in the TI thread it was in /opt.

Would this make a difference?

Any other ideas?

Thanks again
 
Old 08-24-2014, 11:03 AM   #4
brentw
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
thank you again for your help.

my issue was the permissions on the folders.

having to use sudo to do the make should have been a big clue to me.

once I changed the permissions, i am able to build
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling hello world C program for arm ARM926EJ-S rev 5 (v5l) with arm-linux-gnueabi golden_boy615 Linux - Embedded & Single-board computer 2 04-23-2013 10:30 AM
difference b/w arm-iwmmxt-linux-gnueabi-gcc & arm-linux-gcc ravi_shanker Linux - Software 1 09-12-2011 10:30 AM
Compiling debian arm for NSLU2 - arm-linux-gnueabi-objdump not found ergosteur Linux - Kernel 3 10-30-2010 11:24 AM
arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth feiyinziiu Linux - Embedded & Single-board computer 4 10-18-2009 01:30 AM
arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth feiyinziiu Programming 1 10-17-2009 11:03 PM


All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration