Ubuntu 11.04 not responding to PING from uboot 1.3.2
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ubuntu 11.04 not responding to PING from uboot 1.3.2
Hi
I am facing a very strange problem. I have ubuntu 11.04 installed on my Laptop which acts as my host. To my Host I connect Mini2440 SBC which has uboot 1.3.2 on it.
The eth0 on my Host has 10.0.0.4 as ipaddress, and the mini2440 has 10.0.0.111 as its IP address.
When I try to Ping from mini2440 to my host, I see ARP requests being received on my host (monitoring eth0), but I dont see any ARP replies being sent.
When I try to do a TFTP from mini2440 to my host, I see ARP requests being received and ARP replies being sent back from host, but mini2440 doesnt receive them.
My host and mini2440 are connected directly to each other through a cross cable.
I have disabled UFW, SeLinux and avahi-daemon on my Ubuntu Host.
Now When I try to ping from mini2440 to some other system like a windows machine or a crunchbang system, then the connecttion between them is established.
Also, similarly, my Ubuntu Host is able to ping and talk to other windows or crunchbang system.
I think it is a configuration issue on my Ubuntu host. Please help.
The only gateway showing on the Ubuntu system is 192.168.1.1. The gateway here needs to point to the mini, 10.0.0.111.
You may have to create different configs, and use the config for your use at any given time. I'm guessing 192.168.1.1 is your wireless router.
Are you using the Network Manager applet that comes on Ubuntu? I have had a lot of problems with it. I removed it, and installed wicd. Its in the repos. I have found it to be much easier to manage, change settings etc.
You can create different configs for eth0 and wlan0, and then select which one you want active.
But After this I was not able to connect to Internet as my wlan0 interface was failing. I tried to kill wpa_supplicant but that
also didnt help much.
Also I configured my eth0 statically through wicd tool, but still it failed to come up.
I have now installed crunchbang on one of my partitions, but it also comes with network manager tool. So could you tell me the right way to do install wicd.
Also I tried the following command to add a new route
Code:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
$ route add host 10.0.0.111 netmask 255.255.255.0 gw 10.0.0.4 dev eth0
host: unknown host
When I removed network-manager and installed wicd, I used Synaptic package manager, not command line. I suspect there is some package that is still there. I had a look at my Ubuntu system. I marked network-manager for install, it want to install three packages. They are 1. network-manager-gnome 2. network-manager-pptp 3. network-manager-pptp-gnome. Have a look with Synaptic package manager to see if any of these are still installed.
Quote:
Also I configured my eth0 statically through wicd tool, but still it failed to come up.
How did you try to bring it up? 'sudo ifconfig eth0 up' is the command. If the interface doesn't come up with that command, we need to look into the driver you have ( or do not have ) loaded. It may be on of the above packages is still there causing problems also.
I removed all the packages related to network-namager through synaptic package manager and re-installed wicd.
I am able to see my default wireless connection but I am not able to connect to my wireless connection. I could connect it to earlier using NM. when I do a iwlist scan following output i get
Code:
sudo iwlist scan
lo Interface doesn't support scanning
eth0 Interface doesn't support scanning
wlan0 Scan Completed:
Cell 01 - Address : 00:08:5C:7B:A4:A1
Channel:11
Frequency:2.46 GHz (Channel 11)
Quality=29/70 Signal level=-81 dBm
Encryption key:on
when i do a iwlist scan
Code:
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Frequency:2.462 Ghz Access Point: Not-Associated
Tx-Power=14 dBm
Retry Long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Also When I reconnect the wireless connection I monitor /var/log/syslog messages and see that there is a error for
Code:
avahi-daemon: Registering new address record for 169.254.11.25 on wlan0.IPv4
avahi-autopid(wlan0)[3399]: SIOCSIFFLAGS failed: Permission denied
avahi-autopid(wlan0)[3399]: Callout STOP, address 169.254.11.25 on wlan0
Kernel: [ 1214.310174] ADDRCONF(NETDEV_UP): WLAN: link is not ready
Yes this is access point. I did a reboot after installing WICD and have restarted quite a few times. I am not sure of the permissions because i ran wicd client as a root only.
I am not sure which Wireless driver I am using, but the output of lspci gave
Well, you learn something new each day. Here is what avahi-autopid is for...
Quote:
Description
avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-Local Addresses" (IETF RFC3927), a protocol for automatic IP address configuration from the link-local 169.254.0.0/16 range without the need for a central server. It is primarily intended to be used in ad-hoc networks which lack a DHCP server.
Since you are trying to set up an ad-hoc connection, it appears avahi-autopid is trying to assign an IP address; based on this error:
If you want to test your connection, without the avahi-daemon running, in a konsole you can stop the daemon with the command 'sudo service avahi-daemon stop'. I also have read a lot of threads suggesting if you don't use avahi-daemon, you can simply un-install it with Synaptic package manager. I did that on my netbook and all is well. You can always re-install it, if you need it in the future.
Last edited by camorri; 08-05-2011 at 03:52 PM.
Reason: added info
Hi
Yeah static IP worked for me. Was able to get wlan0 up and running. But then you have to give correct IP and DNS settings.
Also my Initial problem of Ubuntu on my laptop not able to Ping mini2440 with uboot got resolved.
I couldnt find the correct reason, but when I connected a L2 switch between my laptop and mini2440 it was able to do so.
The possible reason could be that Uboot initiates the ethernet link only when required, i.e when it sends a ARP message and then downs the link. It seems the current Atheors 8152 Driver for eth0 doesn't reply back if the link is down. So it never relies back to ARP. On connecting a L2 switch, the switch keeps the link layer up and then on receiving an ARP request for itself the Kernel replies.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.