LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-07-2014, 10:59 PM   #1
rvijay435
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Rep: Reputation: Disabled
Question ethtool: Command not found


I am cross-compiling Linux-2.6.31.5 for my Target board.
My target board is a customized board based on MPC8548E processor from Freescale.

I am able to port the Linux onto target and run my applications.

The problem is, the default speed by which the board is working is:
10 Mbps, Full Duplex.

So, I wanted to change it to 100 Mbps, Full Duplex.

I remembered ethtool usage on the host system and tried the same on the target as:

ethtool -s eth1 speed 100 duplex full autoneg off;

But the error message displayed is:
ethtool: command not found.

Please get me a solution for this.

Note:
I am trying to use ethtool command on the target, not the host.
 
Old 02-08-2014, 06:53 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rvijay435 View Post
the error message displayed is:
ethtool: command not found.
Then it's not in your $PATH (prefix path) or its not installed (install it).


Quote:
Originally Posted by rvijay435 View Post
Please get me a solution for this.
*English may not be your first language so please note questions should be phrased as a request, something like "Could you please suggest a solution for this?" or "How can I fix this?", and not something that could be construed as a demand or an order. Also note requests end with a question mark. So please mind how you phrase things. Thanks in advance.
 
Old 02-08-2014, 07:01 AM   #3
rvijay435
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi unSpawn,
Thanks for the reply.

Sorry for my English.


It is already installed on the host. But I am trying to use it on the Target. I need to install it in NFS Server path, so that I can access that command on the target.

To install it the steps given are:
./configure
make
make install

When I gave ./configure command it gave me the following error:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... powerpc-buildroot-linux-uclibcspe-gcc -m32 -mhard-float -mcpu=603e --sysroot=/home/User1/MYPROJECT/MYMODULE/BuildrootToolchain_GCC_GPP/target
checking whether the C compiler works... no
configure: error: in `/home/User1/MYPROJECT/MYDIRECTORY/ETHTOOL/ethtool-3.10':
configure: error: C compiler cannot create executables
See `config.log' for more details

Could you please suggest a solution for this?

Thanks in advance.

Quote:
Originally Posted by unSpawn View Post
Then it's not in your $PATH (prefix path) or its not installed (install it).



*English may not be your first language so please note questions should be phrased as a request, something like "Could you please suggest a solution for this?" or "How can I fix this?", and not something that could be construed as a demand or an order. Also note requests end with a question mark. So please mind how you phrase things. Thanks in advance.

Last edited by rvijay435; 02-08-2014 at 07:11 AM.
 
Old 02-08-2014, 07:38 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rvijay435 View Post
Sorry for my English.
No need to apologize, it's just good to be aware. Enough said.


Quote:
Originally Posted by rvijay435 View Post
Code:
checking whether the C compiler works... no
Did you check config.log contents? Have you compiled anything successful before using these settings? If not this could point to anything ranging from missing dependencies, wrong set of flags to mount point flags...
 
Old 02-08-2014, 07:48 AM   #5
rvijay435
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Yes actually I checked the config.log contents. But I didn't understand much. Need to check it again.

Yes I am able to compile all my applications and run them on the target successfully with this cross-compiler.
I think there is no problem with the cross-compiler.

If you have any idea, could you please let me know what are the flags I need to use while compiling?

Thanks in advance.


Quote:
Originally Posted by unSpawn View Post
No need to apologize, it's just good to be aware. Enough said.



Did you check config.log contents? Have you compiled anything successful before using these settings? If not this could point to anything ranging from missing dependencies, wrong set of flags to mount point flags...
 
Old 02-08-2014, 08:11 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
No, not that many ideas without looking at config.log (attach as plain text file?).
Could it be in requires the kernel source?..
 
Old 02-09-2014, 10:24 PM   #7
rvijay435
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Re: ethtool: command not found

Quote:
Originally Posted by unSpawn View Post
No, not that many ideas without looking at config.log (attach as plain text file?).
Could it be in requires the kernel source?..
Please Find the Attachment of config.log as text file.
Attached Files
File Type: txt config_log.txt (10.7 KB, 39 views)
 
Old 02-10-2014, 01:44 AM   #8
rvijay435
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi unSpawn,
I found few lines in config.log file which I feel the cause for errors. Please go through the following lines:

/home/User1/MYPROJECT/MYMODULE/BuildrootToolchain_GCC_GPP/host/usr/bin/../lib/gcc/powerpc-buildroot-linux-uclibcspe/4.5.4/../../../../powerpc-buildroot-linux-uclibcspe/bin/ld: cannot find crt1.o: No such file or directory
/home/User1/MYPROJECT/MYMODULE/BuildrootToolchain_GCC_GPP/host/usr/bin/../lib/gcc/powerpc-buildroot-linux-uclibcspe/4.5.4/../../../../powerpc-buildroot-linux-uclibcspe/bin/ld: cannot find crti.o: No such file or directory
/home/User1/MYPROJECT/MYMODULE/BuildrootToolchain_GCC_GPP/host/usr/bin/../lib/gcc/powerpc-buildroot-linux-uclibcspe/4.5.4/../../../../powerpc-buildroot-linux-uclibcspe/bin/ld: cannot find -lc
/home/User1/MYPROJECT/MYMODULE/BuildrootToolchain_GCC_GPP/host/usr/bin/../lib/gcc/powerpc-buildroot-linux-uclibcspe/4.5.4/../../../../powerpc-buildroot-linux-uclibcspe/bin/ld: cannot find crtn.o: No such file or directory
collect2: ld returned 1 exit status

How can I fix this?
 
Old 02-11-2014, 12:40 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Find the development package concerned. I don't know about the others but crt1.o may be part of glibc-devel?
 
  


Reply



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
[SOLVED] complete noob question. "command not found" "command not found" jeanlucpicard Linux - Newbie 4 08-27-2013 02:14 AM
ethtool command not changing speed of Ethernet card bennetthaselton Linux - Networking 5 05-04-2011 09:06 AM
setup command not found in Ubuntu 10.04 Command Prompt vinaytp Ubuntu 2 05-06-2010 01:10 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
ethtool command question simquest Linux - General 1 12-16-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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
Open Source Consulting | Domain Registration